From ba32761426190d4c399f6d8708ef40f184289d02 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 31 Oct 2023 14:19:20 +0000 Subject: [PATCH] Add webapp-schulverwaltung build #53ce100146174cbf989be1c902ece3261c0b09c5 --- public/apps/webapp-schulverwaltung/218.js | 2 +- public/apps/webapp-schulverwaltung/232.js | 2 +- public/apps/webapp-schulverwaltung/269.js | 2 +- public/apps/webapp-schulverwaltung/373.js | 2 +- public/apps/webapp-schulverwaltung/403.js | 2 +- public/apps/webapp-schulverwaltung/480.js | 2 +- public/apps/webapp-schulverwaltung/862.js | 2 +- public/apps/webapp-schulverwaltung/958.js | 2 +- public/apps/webapp-schulverwaltung/main.js | 2 +- public/apps/webapp-schulverwaltung/styles.css | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/public/apps/webapp-schulverwaltung/218.js b/public/apps/webapp-schulverwaltung/218.js index 6ac7070a..9c5e35e0 100644 --- a/public/apps/webapp-schulverwaltung/218.js +++ b/public/apps/webapp-schulverwaltung/218.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[218],{6218:(gt,w,o)=>{o.r(w),o.d(w,{EventsModule:()=>An});var N=o(6486),_=o(1523),J=o(5301),x=o(5619),O=o(7081),C=o(2572),c=o(7398),T=o(4664),b=o(4141),F=o(1389),Z=o(6031),v=o(2547);function K(n){const{HasEvaluationStarted:a,EvaluationUntil:e,HasTestGrading:s}=n.EvaluationStatusRef;if(!0===a&&(14030===n.StatusId||10350===n.StatusId))return{value:f.Rating};if(!0===a&&!1===s){if(e)return{value:f.RatingUntil};if(10300===n.StatusId)return{value:f.IntermediateRating}}return!1===a&&!0===s&&10260!==n.StatusId&&10250!==n.StatusId?{value:f.Tests}:!0===a&&!0===s?e?{value:f.Tests,label:f.RatingUntil}:{value:f.Tests,label:f.IntermediateRating}:null}function vt(n){return!0===n.EvaluationStatusRef.HasEvaluationStarted}var t=o(5879),U=o(1074),Tt=o(9018),B=o(3005),X=o(8173),g=o(9515),V=o(654),f=function(n){return n.Rating="rating",n.RatingUntil="rating-until",n.IntermediateRating="intermediate-rating",n.Tests="add-tests",n}(f||{});let j=(()=>{class n{constructor(e,s,i,r,l,d,m){this.coursesRestService=e,this.studyClassRestService=s,this.loadingService=i,this.storage=r,this.translate=l,this.eventsRestService=d,this.settings=m,this.loading$=this.loadingService.loading$,this.search$=new x.X(""),this.roles$=new x.X(void 0),this.formativeAssessments$=this.studyClassRestService.getActiveFormativeAssessments(),this.studyClasses$=this.studyClassRestService.getActive(),this.events$=this.loadEvents().pipe((0,O.d)(1)),this.filteredEvents$=(0,C.a)([this.events$,this.search$]).pipe((0,c.U)((0,F.h)(v.P)))}getEvents(e=!1){return this.filteredEvents$.pipe((0,c.U)(s=>e?s.filter(i=>i.evaluationText):s))}loadEvents(){return this.roles$.pipe((0,T.w)(e=>this.loadingService.load(this.loadEventsForRoles(e))))}loadEventsForRoles(e){return(0,Z.n)(e,"ClassTeacherRole")?(0,C.a)([this.loadCoursesNotRated(e),this.formativeAssessments$,this.studyClasses$]).pipe((0,c.U)((0,F.h)(this.createAndSortEvents.bind(this)))):this.loadCoursesNotRated(e).pipe((0,c.U)(s=>this.createAndSortEvents(s)))}loadCoursesNotRated(e){return this.coursesRestService.getExpandedCourses(e).pipe((0,c.U)(s=>s.filter(i=>!function xt(n){return!0===n.EvaluationStatusRef.HasReviewOfEvaluationStarted&&!!n.FinalGrades?.length}(i))))}createAndSortEvents(e,s=[],i=[]){const r=i.filter(l=>!s.map(d=>d.Id).includes(l.Id));return[...this.createFromCourses(e),...this.createFromAssessments(s),...this.createFromStudyClasses(r)].sort((l,d)=>l.Designation.localeCompare(d.Designation))}createFromStudyClasses(e){return e.map(s=>({id:s.Id,Designation:s.Number,detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.StudentCount,state:null}))}createFromAssessments(e){return this.createFromStudyClasses(e).map(i=>({...i,state:f.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(i.id,"evaluation")}))}createFromCourses(e){return e.map(s=>{const i=K(s);return{id:s.Id,Designation:this.eventsRestService.getDesignation(s),detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.AttendanceRef.StudentCount||0,dateFrom:s.DateFrom,dateTo:s.DateTo,state:i?.value||null,evaluationText:this.getEvaluationText(i,s.EvaluationStatusRef.EvaluationUntil),evaluationLink:this.getEvaluationLink(i?.value,s)}})}getEvaluationText(e,s){const i=e?.label||e?.value;return i?this.translate.instant(`events.state.${i}`)+(i===f.RatingUntil?` ${s?(0,J.Z)(s,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,s){return e&&e!==f.Tests?this.buildLink(s.Id,"evaluation"):null}buildLink(e,s){return(this.settings.eventlist[s]??"").replace(":id",String(e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(Tt.R),t.LFG(B.b),t.LFG(X.V),t.LFG(g.sK),t.LFG(V.O),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ct=(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events"]],features:[t._Bn([j])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var W=o(7328),tt=o(3019),bt=o(6699),I=o(2096),et=o(2181),G=o(8180),Zt=o(3942),A=o(7483);function At(n,a){return[...a.filter(e=>e.Id!==n?.Id),n].filter(e=>null!=e)}function yt({id:n,selectedGradeId:a},e){return e.map(s=>s.Id!==n?s:{...s,GradeId:a})}function It(n,a){switch(a.type){case"reset":return a.payload;case"updateResult":return n?{...n,Tests:(0,A.De)(a.payload.testResult,n.Tests||[]),Gradings:At(a.payload.grading,n.Gradings||[])}:null;case"toggle-test-state":return n?{...n,Tests:(0,A.P2)(a.payload,n.Tests||[])}:null;case"final-grade-overwritten":return n?{...n,Gradings:yt({id:a.payload.id,selectedGradeId:a.payload.selectedGradeId},n.Gradings||[])}:null;case"replace-grades":return n?{...n,Gradings:a.payload}:null;case"delete-test":return n?{...n,Tests:(0,A.yY)(a.payload,n.Tests||[])}:null;default:return n}}var Ot=o(2194),nt=o(3986);function st(n){return n.map(({finalGrade:a})=>a).filter(Gt)}function Gt(n){return null!==n}function $t(n,a){return a.map(e=>{if(void 0===e.Results||0===e.Results?.length)return{kind:"no-result",test:e};const s=e.Results?.find(i=>i.StudentId===n.Id);return void 0!==s?{kind:"grade",result:s,test:e}:{kind:"no-result",test:e}})}function Lt(n,a,e){const s=a.find(r=>r.StudentId===n.Id),i=e.find(r=>r.StudentId===n.Id);return s?{id:s.Id,average:Mt(s),finalGradeId:s.GradeId,freeHandGrade:i?Number(i.Grade):null,canGrade:s.CanGrade}:null}function Mt(n){return 0===n.AverageTestResult?null:n.AverageTestResult}function it(n,a){return n===a?0:n{class n extends Nt.v{constructor(e,s){super(e,s,qt.Ly,"Gradings")}updateGrade(e,s){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:s}).pipe((0,c.U)(()=>e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(Jt.eN),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var jt=o(1608);let P=(()=>{class n{constructor(e,s,i,r,l){this.coursesRestService=e,this.gradingScalesRestService=s,this.gradingsRestService=i,this.loadingService=r,this.sortService=l,this.action$=new W.t(1),this.loading$=this.loadingService.loading$,this._courseId$=new W.t(1),this.courseId$=this._courseId$.asObservable(),this.fetchedCourse$=this._courseId$.pipe((0,T.w)(d=>this.loadingService.load(this.coursesRestService.getExpandedCourse(d))),(0,O.d)(1)),this.course$=(0,tt.T)(this.action$,this.fetchedCourse$).pipe((0,c.U)(d=>"type"in d?d:{type:"reset",payload:d}),(0,bt.R)(It,null),(0,et.h)(Zt.Nf)),this.tests$=this.course$.pipe((0,c.U)(d=>d.Tests||[]),(0,c.U)(A.df)),this.filter$=new x.X("all-tests"),this.expandedHeader$=new x.X(!1),this.filteredTests$=(0,C.a)([this.tests$,this.filter$]).pipe((0,c.U)(([d,m])=>d.filter(h=>"all-tests"===m||h.IsOwner))),this.sorting$=this.sortService.sorting$,this.studentGrades$=(0,C.a)([this.course$,this.filteredTests$,this.sorting$]).pipe((0,c.U)((0,F.h)(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe((0,c.U)(vt)),this.gradingScaleIds$=this.course$.pipe((0,c.U)(d=>(0,Ot.Z)([...(d.Tests??[]).map(m=>m.GradingScaleId),d.GradingScaleId]))),this.gradingScales$=this.gradingScalesRestService.loadGradingScales(this.gradingScaleIds$),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe((0,c.U)(d=>d.map(m=>({id:m?.Id||this.UNDEFINED_GRADINGSCALE_ID,options:m?.Grades.map(q=>({Key:q.Id,Value:q.Designation}))||[]})).reduce((m,h)=>({...m,[h.id]:h.options}),{})),(0,O.d)(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe((0,c.U)(d=>function Ft(n){const a=n.map(e=>e.average).filter(e=>null!=e&&0!==e).map(Number);return(0,nt.Y)(a)}(st(d)))),this.meanOfFinalGradesForCourse$=(0,C.a)([this.gradingScalesOptions$,this.studentGrades$]).pipe((0,T.w)((0,F.h)(this.meanOfOverwrittenGradesForCourse.bind(this))))}setCourseId(e){this._courseId$.next(e)}gradingOptionsForTest$(e){return this.gradingOptions$(e.GradingScaleId)}gradingOptionsForCourse$(){return this.course$.pipe((0,T.w)(e=>this.gradingOptions$(e.GradingScaleId)))}toStudentGrades(e,s=[],i){return function Pt(n,a,e,s){return n?.map(i=>({student:i,finalGrade:Lt(i,e,s),grades:$t(i,a)}))}(e.ParticipatingStudents??[],s,e.Gradings??[],e.FinalGrades??[]).sort((({key:n,ascending:a})=>(e,s)=>{const i=a?1:-1;switch(n){case"FullName":return i*e.student.FullName.localeCompare(s.student.FullName);case"FinalGrade":return e.finalGrade?.finalGradeId&&s.finalGrade?.finalGradeId?i*it(e.finalGrade.finalGradeId,s.finalGrade.finalGradeId):-1*i;case"TestsMean":return e.finalGrade?.average&&s.finalGrade?.average?i*it(e.finalGrade.average,s.finalGrade.average):-1*i}return i*((n,a,e)=>{const s=a.grades.filter(at).find(r=>r.test.Id===n.Id),i=e.grades.filter(at).find(r=>r.test.Id===n.Id);return n.IsPointGrading&&s?.result.GradeId===i?.result.GradeId?(s?.result.Points??0)-(i?.result.Points??0):-1*((s?.result.GradeId??Number.POSITIVE_INFINITY)-(i?.result.GradeId??Number.POSITIVE_INFINITY))})(n,e,s)})(i))}setSorting(e){this.sortService.setSorting(e)}getSortingChar$(e){return this.sortService.getSortingChar$(e)}sortBy(e){this.sortService.toggleSorting(e)}toggleHeader(e){this.expandedHeader$.next(e)}saveGrade(e){this.course$.pipe((0,G.q)(1),(0,T.w)(s=>this.coursesRestService.updateTestResult(s.Id,e))).subscribe(s=>this.updateStudentGrades(s))}publish(e){this.coursesRestService.publishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}unpublish(e){this.coursesRestService.unpublishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}deleteTest(e){this.action$.next({type:"delete-test",payload:e})}overwriteFinalGrade({id:e,selectedGradeId:s}){this.gradingsRestService.updateGrade(e,s).subscribe(()=>{this.action$.next({type:"final-grade-overwritten",payload:{id:e,selectedGradeId:s}})})}setAveragesAsFinalGrades(e){this.coursesRestService.setAverageAsFinalGrade(e).subscribe(s=>this.action$.next({type:"replace-grades",payload:s.Gradings}))}updateStudentGrades(e){const s=e.body.Gradings.find(i=>i.EventId===e.courseId);void 0!==s&&this.action$.next({type:"updateResult",payload:{testResult:e.body.TestResults[0],grading:s}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return null===e?(0,I.of)(null):this.gradingScalesOptions$.pipe((0,c.U)(s=>s[e]),(0,O.d)(1))}meanOfOverwrittenGradesForCourse(e,s){return this.course$.pipe((0,c.U)(i=>{if(null===i.GradingScaleId||void 0===e[i.GradingScaleId])return null;const r=e[i.GradingScaleId];return function Ut(n,a){const e=n.map(i=>i.freeHandGrade).filter(i=>!!i),s=n.map(i=>i.finalGradeId).filter(i=>null!==i).map(i=>a.find(r=>r.Key===i)).filter(i=>void 0!==i).map(i=>i?.Value).filter(i=>void 0!==i).map(Number).filter(i=>!isNaN(i));return(0,nt.Y)([...s,...e])}(st(s),r)}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(kt.R),t.LFG(zt),t.LFG(B.b),t.LFG(jt.K))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac})}return n})();var $=o(8645),L=o(3997),k=o(9773);let R=(()=>{class n{constructor(e,s){this.state=e,this.route=s,this.courseId$=this.route.paramMap.pipe((0,c.U)(i=>Number(i.get("id"))),(0,L.x)()),this.destroy$=new $.x}ngOnInit(){this.courseId$.pipe((0,k.R)(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(_.gz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests"]],features:[t._Bn([P])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var u=o(6814),M=o(6567),Q=o(59),Y=o(4229),Rt=o(6016),Qt=o(7625);const Yt=function(n){return{count:n}};function Dt(n,a){if(1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,1===e.course.ParticipatingStudents.length?"courses.registration":"courses.registrations",t.VKq(4,Yt,e.course.ParticipatingStudents.length))," ")}}const Ht=function(){return["/events"]};let Kt=(()=>{class n{constructor(e,s){this.reportsService=e,this.eventsRestService=s}loadReportUrl(){return this.reportsService.getEventReportUrl(this.course.Id)}getDesignation(){return this.eventsRestService.getDesignation(this.course)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(Rt.F),t.Y36(V.O))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-header"]],inputs:{course:"course"},decls:14,vars:5,consts:[[1,"mb-3",3,"routerLink"],[1,"d-flex","align-items-center","justify-content-between","header"],[1,"d-flex","align-items-center"],[1,"d-flex","flex-column","text-start"],["class","font-color-light-gray",4,"ngIf"],[1,"d-flex"],["routerLink","add",1,"edit","btn","btn-primary","btn-icon","ms-2"],[1,"material-icons"],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"font-color-light-gray"]],template:function(s,i){1&s&&(t._UZ(0,"erz-backlink",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),t._uU(5),t.qZA(),t.YNc(6,Dt,3,6,"div",4),t.qZA()(),t.TgZ(7,"div",5)(8,"a",6)(9,"i",7),t._uU(10,"add"),t.qZA()(),t.TgZ(11,"a",8)(12,"i",7),t._uU(13,"description"),t.qZA()()()()),2&s&&(t.Q6J("routerLink",t.DdM(4,Ht)),t.xp6(5),t.Oqu(i.getDesignation()),t.xp6(1),t.Q6J("ngIf",i.course.ParticipatingStudents),t.xp6(5),t.Q6J("href",i.loadReportUrl(),t.LSH))},dependencies:[u.O5,_.rH,Qt.I,g.X$],styles:["h1[_ngcontent-%COMP%]{margin-bottom:0}.font-color-light-gray[_ngcontent-%COMP%]{color:#adb5bd}.header[_ngcontent-%COMP%]{padding-bottom:1rem;border-bottom:1px solid #dee2e6}"]})}return n})();var y=o(253);const Bt=function(n){return{designation:n}};let Xt=(()=>{class n{constructor(e){this.activeModal=e}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-publish-test"]],inputs:{test:"test"},decls:11,vars:12,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"click"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return i.activeModal.close(!0)}),t._uU(9),t.ALo(10,"translate"),t.qZA()()),2&s&&(t.xp6(2),t.hij(" ",t.xi3(3,3,i.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",t.VKq(10,Bt,i.test.Designation))," "),t.xp6(4),t.hij(" ",t.lcZ(7,6,"tests.publishing.cancel")," "),t.xp6(3),t.hij(" ",t.lcZ(10,8,"tests.publishing.confirm")," "))},dependencies:[g.X$],encapsulation:2})}return n})();var rt=o(3620),p=o(6223);const Vt=function(n){return{maxPoints:n}};function Wt(n,a){if(1&n&&(t.TgZ(0,"div",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors.invalidPoints",t.VKq(4,Vt,e.maxPoints))," ")}}function te(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"input",5,6),t.NdJ("ngModelChange",function(){t.CHM(e);const i=t.MAs(2),r=t.oxw();return t.KtG(r.onPointsChange(i.value))}),t.qZA(),t.YNc(3,Wt,3,6,"div",7),t.qZA()}if(2&n){const e=t.MAs(2),s=t.oxw();t.xp6(1),t.ekj("is-invalid",e.errors),t.s9C("max",s.maxPoints),t.s9C("tabindex",s.tabIndex),t.Q6J("disabled",s.grade.test.IsPublished)("ngModel","grade"===s.grade.kind?s.grade.result.Points:null),t.xp6(2),t.Q6J("ngIf",e.errors)}}let ee=(()=>{class n{constructor(){this.gradeChanged=new t.vpe,this.maxPoints=0,this.pointsSubject$=new $.x,this.gradeSubject$=new $.x,this.gradingScaleDisabledSubject$=new x.X(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.points$=this.pointsSubject$.pipe((0,rt.b)(1250),(0,et.h)(this.isValid.bind(this))),this.grade$=this.gradeSubject$.pipe((0,rt.b)(1250)),this.destroy$=new $.x}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=function wt(n){return(n?.test?.MaxPointsAdjusted||n?.test?.MaxPoints)??0}(this.grade),this.points$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e)),this.grade$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyForGradeChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e))}ngOnChanges(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale())}ngOnDestroy(){this.destroy$.next()}onPointsChange(e){this.pointsSubject$.next(e),this.gradingScaleDisabledSubject$.next(!(null===e||""===e))}onGradeChange(e){this.gradeSubject$.next(e)}isValid(e){return""===e||null===e||!isNaN(Number(e))&&!(Number(e)<0||Number(e)>this.maxPoints)}buildRequestBodyPointsChange(e){const s=null===e||""===e?null:Number(e);return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,Points:s}}buildRequestBodyForGradeChange(e){return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,GradeId:e}}disableGradingScale(){return!!this.grade.test.IsPublished||"no-result"!==this.grade.kind&&null!=this.grade.result.Points&&this.grade.test.IsPointGrading}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},outputs:{gradeChanged:"gradeChanged"},features:[t.TTD],decls:5,vars:8,consts:[[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],["class","point-input-container me-2 me-md-3",4,"ngIf"],["data-testid","grade-select",1,"grade-select",3,"options","allowEmpty","value","disabled","tabindex","valueChange"],[1,"point-input-container","me-2","me-md-3"],["type","number","step","0.01","min","0","data-testid","point-input",1,"form-control",3,"max","disabled","tabindex","ngModel","ngModelChange"],["points","ngModel"],["class","invalid-feedback","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,te,4,7,"div",2),t.TgZ(3,"erz-select",3),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.ALo(4,"async"),t.qZA()()()),2&s&&(t.xp6(2),t.Q6J("ngIf",i.grade.test.IsPointGrading),t.xp6(1),t.Q6J("options",i.gradeOptions)("allowEmpty",!0)("value","grade"===i.grade.kind?i.grade.result.GradeId:null)("disabled",t.lcZ(4,6,i.gradingScaleDisabled$))("tabindex",i.tabIndex))},dependencies:[u.O5,p.Fj,p.wV,p.JJ,p.qQ,p.Fd,p.On,Y.H,u.Ov,g.X$],styles:[".point-input-container[_ngcontent-%COMP%]{width:4em}[_nghost-%COMP%] select{min-width:13ch}@media (min-width: 576px){.point-input-container[_ngcontent-%COMP%]{width:5em}}"]})}return n})();var ne=o(9707);let se=(()=>{class n{constructor(e){this.translate=e}transform(e){return`${e.Weight} (${e.WeightPercent}%)${this.getPoints(e)}`}getPoints(e){return e.IsPointGrading?`, ${e.MaxPointsAdjusted??e.MaxPoints} ${this.translate.instant("tests.summary.points")}`:""}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(g.sK,16))};static#e=this.\u0275pipe=t.Yjl({name:"testSummaryShort",type:n,pure:!0})}return n})();function ie(n,a){1&n&&(t.TgZ(0,"i",12),t._uU(1,"edit"),t.qZA())}const ae=function(n){return[n,"edit"]};function re(n,a){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9)(2,"erz-preserve-line-height"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"a",10),t.YNc(6,ie,2,0,"i",11),t.qZA()(),t.TgZ(7,"erz-preserve-line-height"),t._uU(8),t.ALo(9,"testSummaryShort"),t.qZA(),t.TgZ(10,"erz-preserve-line-height"),t._uU(11),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.xi3(4,5,e.test.Date,"dd.MM.yyyy")),t.xp6(2),t.Q6J("routerLink",t.VKq(10,ae,e.test.Id)),t.xp6(1),t.Q6J("ngIf",e.test.IsOwner&&!1===e.test.IsPublished),t.xp6(2),t.hij(" ",t.lcZ(9,8,e.test)," "),t.xp6(3),t.Oqu(e.test.Owner)}}function oe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.unpublishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"i",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t._uU(9),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.edit")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.published")),t.xp6(3),t.Oqu(e.expanded?"expand_more":"expand_less")}}function de(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.publishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock_open"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"i",18),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t._uU(9),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.publish")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.not-published")),t.xp6(3),t.Oqu(e.expanded?"expand_more":"expand_less")}}let le=(()=>{class n{constructor(){this.toggle=new t.vpe,this.publish=new t.vpe,this.unpublish=new t.vpe}toggleHeader(){this.toggle.emit(!this.expanded)}publishTest(){this.publish.emit(this.test)}unpublishTest(){this.unpublish.emit(this.test)}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-table-header"]],inputs:{test:"test",expanded:"expanded"},outputs:{toggle:"toggle",publish:"publish",unpublish:"unpublish"},decls:11,vars:6,consts:[[1,"d-flex","flex-column","h-100","justify-content-between"],["role","button",1,"test-designation","d-flex","flex-row","my-3","align-items-end","justify-content-between",3,"click"],[3,"ngClass"],[1,"material-icons","align-self-start"],[1,"d-flex","flex-column"],["class","d-flex flex-column mb-3",4,"ngIf"],["class","d-flex align-items-center justify-content-between test-status",4,"ngIf","ngIfElse"],["notPublished",""],[1,"d-flex","flex-column","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"btn","btn-link","p-0","edit",3,"routerLink"],["class","material-icons",4,"ngIf"],[1,"material-icons"],[1,"d-flex","align-items-center","justify-content-between","test-status"],[1,"d-flex","btn","btn-link","ps-0","edit",3,"title","click"],[1,"material-icons","me-1"],["role","button",1,"material-icons","expand-mobile",3,"click"],[1,"d-flex","btn","btn-link","ps-0",3,"title","click"],[1,"material-icons","expand-mobile",3,"click"]],template:function(s,i){if(1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleHeader()}),t.TgZ(2,"div",2),t._uU(3),t.qZA(),t.TgZ(4,"i",3),t._uU(5),t.qZA()(),t.TgZ(6,"div",4),t.YNc(7,re,12,12,"div",5),t.YNc(8,oe,10,7,"div",6),t.YNc(9,de,10,7,"ng-template",null,7,t.W1O),t.qZA()()),2&s){const r=t.MAs(10);t.xp6(2),t.Q6J("ngClass",i.expanded?"expanded":"collapsed"),t.xp6(1),t.hij(" ",i.test.Designation," "),t.xp6(2),t.Oqu(i.expanded?"expand_more":"expand_less"),t.xp6(2),t.Q6J("ngIf",i.expanded),t.xp6(1),t.Q6J("ngIf",i.test.IsPublished)("ngIfElse",r)}},dependencies:[u.mk,u.O5,_.rH,ne.r,u.uU,g.X$,se],styles:["[_nghost-%COMP%]{font-weight:300}.collapsed[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.test-designation[_ngcontent-%COMP%]{display:none!important}.test-status[_ngcontent-%COMP%]{order:-1;padding-bottom:1rem}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#000}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.edit[_ngcontent-%COMP%]{color:#00000080;text-decoration:none}@media (min-width: 750px){.test-designation[_ngcontent-%COMP%]{display:inherit!important}.test-status[_ngcontent-%COMP%]{order:initial}.expand-mobile[_ngcontent-%COMP%]{display:none!important}}"]})}return n})();var D=o(6651);function ce(n,a){if(1&n&&(t.TgZ(0,"span",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.calculatePointsAverage(e.test))}}let ue=(()=>{class n{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,3,A.dP)}safeAverage(e,s,i){try{return(0,D.ey)(i(e),this.locale,s)}catch{return D.GR}}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(t.soG))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-average-grades"]],inputs:{test:"test"},decls:4,vars:2,consts:[[1,"d-flex","flex-row","w-100"],["class","mr-2 mr-md-3 average-points","data-testid","average-points",4,"ngIf"],["data-testid","average-grade"],["data-testid","average-points",1,"mr-2","mr-md-3","average-points"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,ce,2,1,"span",1),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&s&&(t.xp6(1),t.Q6J("ngIf",i.test.IsPointGrading),t.xp6(2),t.Oqu(i.calculateGradeAverage(i.test)))},dependencies:[u.O5],styles:[".average-points[_ngcontent-%COMP%]{min-width:4em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:5em}}"]})}return n})(),pe=(()=>{class n{constructor(){this.disabled=!1,this.gradeIdSelected=new t.vpe}onGradeChange(e){void 0!==this.gradeId?.valueOf()&&this.gradeIdSelected.emit({id:this.gradeId?.valueOf(),selectedGradeId:e})}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled"},outputs:{gradeIdSelected:"gradeIdSelected"},decls:1,vars:4,consts:[["data-testid","grade-select",3,"options","allowEmpty","value","disabled","valueChange"]],template:function(s,i){1&s&&(t.TgZ(0,"erz-select",0),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.qZA()),2&s&&t.Q6J("options",i.options)("allowEmpty",!0)("value",i.valueId)("disabled",i.disabled)},dependencies:[Y.H],styles:["[_nghost-%COMP%] select{min-width:13ch}"]})}return n})();function ge(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",25)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function _e(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",27)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function me(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"span",30),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,r=t.oxw(2);return t.KtG(r.state.sortBy(i))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij("",t.lcZ(3,1,"tests.points")," "))}function he(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",28)(1,"div",11),t.YNc(2,me,4,3,"div",29),t.TgZ(3,"div",12)(4,"span",30),t.NdJ("click",function(){const r=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.state.sortBy(r))}),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"div",13),t._uU(8),t.ALo(9,"async"),t.qZA()()()}if(2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(2),t.Q6J("ngIf",e.IsPointGrading),t.xp6(3),t.Oqu(t.lcZ(6,4,"tests.grade")),t.xp6(3),t.hij(" ",t.lcZ(9,6,s.state.getSortingChar$(e))," ")}}function fe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"erz-grade-select",39),t.NdJ("gradeIdSelected",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.state.overwriteFinalGrade(i))}),t.ALo(1,"async"),t.ALo(2,"async"),t.qZA()}if(2&n){const e=t.oxw().$implicit,s=t.oxw(2);t.Q6J("options",t.lcZ(1,4,s.state.gradingOptionsForCourse$()))("valueId",e.finalGrade.finalGradeId)("gradeId",e.finalGrade.id)("disabled",!1===t.lcZ(2,6,s.isEditFinalGradesAllowed(e)))}}function ve(n,a){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.finalGrade.freeHandGrade," ")}}function xe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",40)(1,"erz-grade",41),t.NdJ("gradeChanged",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.saveGrade(i))}),t.ALo(2,"async"),t.qZA()()}if(2&n){const e=a.$implicit,s=a.index,i=t.oxw(),r=i.$implicit,l=i.index,d=t.oxw(2);t.Q6J("ngClass",void 0!==d.selectedTest&&e.test.Id===(null==d.selectedTest?null:d.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("grade",e)("gradeOptions",t.lcZ(2,5,d.state.gradingOptionsForTest$(e.test)))("student",r.student)("tabIndex",1e3*(1+s)+l)}}const Te=function(n){return["student",n,"grades"]},H=function(n){return{selected:n}};function Ce(n,a){if(1&n&&(t.TgZ(0,"tr")(1,"td",32)(2,"a",33)(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span",20),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"decimalOrDash"),t.qZA()()(),t.TgZ(9,"td",34),t.YNc(10,fe,3,8,"erz-grade-select",35),t.YNc(11,ve,2,1,"div",36),t.qZA(),t.TgZ(12,"td",37),t._uU(13),t.ALo(14,"decimalOrDash"),t.qZA(),t.YNc(15,xe,3,7,"td",38),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.VKq(18,Te,e.student.Id)),t.xp6(2),t.Oqu(e.student.FullName),t.xp6(2),t.AsE(" ",t.lcZ(7,10,"tests.mean"),": ",t.xi3(8,12,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(3),t.Q6J("ngClass",t.VKq(20,H,void 0===s.selectedTest)),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&!e.finalGrade.freeHandGrade),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&e.finalGrade.freeHandGrade),t.xp6(2),t.hij(" ",t.xi3(14,15,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(2),t.Q6J("ngForOf",e.grades)("ngForTrackBy",s.trackGradeOf(e.student))}}function be(n,a){if(1&n&&(t.TgZ(0,"td",40),t._UZ(1,"erz-average-grades",42),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)||e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)}}function Ze(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setAverageAsFinalGrade())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"tests.set-final-grade")," "))}const dt=function(n,a){return{"btn-primary":n,"btn-outline-secondary":a}};function Ae(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr",4)(5,"th",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("all-tests"))}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",7),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("my-tests"))}),t._uU(10),t.ALo(11,"translate"),t.qZA()(),t.YNc(12,ge,2,3,"th",8),t.YNc(13,_e,2,3,"th",9),t.qZA(),t.TgZ(14,"tr")(15,"th",10),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FullName"))}),t.TgZ(16,"div",11)(17,"div",12),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"div",13),t._uU(21),t.ALo(22,"async"),t.qZA()()(),t.TgZ(23,"th",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FinalGrade"))}),t.TgZ(24,"div",11)(25,"div",12),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"div",13),t._uU(29),t.ALo(30,"async"),t.qZA()()(),t.TgZ(31,"th",15),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("TestsMean"))}),t.TgZ(32,"div",11)(33,"div",12),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",13),t._uU(37),t.ALo(38,"async"),t.qZA()()(),t.YNc(39,he,10,8,"th",16),t.qZA()(),t.TgZ(40,"tbody"),t.YNc(41,Ce,16,22,"tr",17),t.TgZ(42,"tr")(43,"td",18)(44,"div",19)(45,"div"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"div",20),t._uU(49),t.ALo(50,"translate"),t.ALo(51,"decimalOrDash"),t.ALo(52,"async"),t.qZA()()(),t.TgZ(53,"td",21),t._uU(54),t.ALo(55,"decimalOrDash"),t.ALo(56,"async"),t.qZA(),t.TgZ(57,"td",22),t._uU(58),t.ALo(59,"decimalOrDash"),t.ALo(60,"async"),t.qZA(),t.YNc(61,be,2,2,"td",23),t.qZA()()(),t.YNc(62,Ze,3,3,"button",24),t.ALo(63,"async"),t.qZA(),t.BQk()}if(2&n){const e=a.erzLet,s=t.oxw();t.xp6(6),t.Q6J("ngClass",t.WLB(61,dt,"all-tests"===e.filter,"all-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(8,24,"tests.all-tests")," "),t.xp6(2),t.Q6J("ngClass",t.WLB(64,dt,"my-tests"===e.filter,"my-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(11,26,"tests.owned-tests")," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngForOf",e.tests),t.xp6(5),t.hij(" ",t.lcZ(19,28,"tests.student.name")," "),t.xp6(3),t.hij(" ",t.lcZ(22,30,s.state.getSortingChar$("FullName"))," "),t.xp6(2),t.Q6J("ngClass",t.VKq(67,H,void 0===s.selectedTest)),t.xp6(3),t.hij(" ",t.lcZ(27,32,"tests.grade")," "),t.xp6(3),t.hij(" ",t.lcZ(30,34,s.state.getSortingChar$("FinalGrade"))," "),t.xp6(5),t.hij(" ",t.lcZ(35,36,"tests.mean")," "),t.xp6(3),t.hij(" ",t.lcZ(38,38,s.state.getSortingChar$("TestsMean"))," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(2),t.Q6J("ngForOf",e.studentGrades)("ngForTrackBy",s.trackStudentGrade),t.xp6(5),t.Oqu(t.lcZ(47,40,"tests.average")),t.xp6(3),t.AsE(" ",t.lcZ(50,42,"tests.mean"),": ",t.xi3(51,44,t.lcZ(52,47,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(4),t.Q6J("ngClass",t.VKq(69,H,void 0===s.selectedTest)),t.xp6(1),t.hij(" ",t.xi3(55,49,t.lcZ(56,52,s.state.meanOfFinalGradesForCourse$),"1-3")," "),t.xp6(4),t.hij(" ",t.xi3(59,54,t.lcZ(60,57,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(3),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngIf",t.lcZ(63,59,s.state.canSetFinalGrade$))}}const ye=function(n,a,e,s){return{tests:n,studentGrades:a,filter:e,expanded:s}};let Ie=(()=>{class n{constructor(e,s){this.state=e,this.modalService=s}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}changeFilter(e){this.state.filter$.next(e)}saveGrade(e){this.state.saveGrade(e)}setAverageAsFinalGrade(){this.state.course$.pipe((0,G.q)(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe((0,c.U)(s=>!(!K(s)?.value||!e.finalGrade?.canGrade)))}publish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.publish(e))}unpublish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.unpublish(e))}trackStudentGrade(e){return e}trackGradeOf(e){return function(s,i){return`${e.Id}_${i.test.Id}`}}calculatePointsAverage(e){return this.safeAverage(e,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,A.dP)}safeAverage(e,s){try{return s(e).toString()}catch{return"\u2013"}}openModal(e){const s=this.modalService.open(Xt);return s.componentInstance.test=e,s}onCloseModal(e,s){e.result.then(i=>{i&&s()},()=>{})}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},features:[t._Bn([j])],decls:5,vars:14,consts:[[4,"erzLet"],[1,"table-responsive-wrapper"],[1,"table","table-hover","h-100"],[1,"h-100"],[1,"h-100","header-collapsible"],["colspan","3",1,"desktop","pt-3","sticky"],["type","button",1,"btn","desktop",3,"ngClass","click"],["type","button",1,"btn","ms-2","desktop",3,"ngClass","click"],["container","body","class","grade h-100 test-info-desktop",3,"ngClass",4,"ngFor","ngForOf"],["container","body","class","grade h-100 header-mobile test-info-mobile","colspan","3",3,"ngClass",4,"ngFor","ngForOf"],[1,"primary-column-width","sticky",3,"click"],[1,"d-flex"],[1,"column-title"],[1,"sort-direction","ms-1"],[1,"secondary-column-width","sticky","sticky-col-2","desktop",3,"ngClass","click"],[1,"secondary-column-width","border-end","sticky","sticky-col-3","desktop",3,"click"],["container","body","class","grade h-100",3,"ngClass",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"sticky"],[1,"d-flex","flex-column"],[1,"mobile","mean"],[1,"desktop","sticky","sticky","sticky-col-2",3,"ngClass"],[1,"desktop","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf"],["data-testId","apply-average-button","class","btn btn-primary m-3","type","button",3,"click",4,"ngIf"],["container","body",1,"grade","h-100","test-info-desktop",3,"ngClass"],[3,"test","expanded","toggle","publish","unpublish"],["container","body","colspan","3",1,"grade","h-100","header-mobile","test-info-mobile",3,"ngClass"],["container","body",1,"grade","h-100",3,"ngClass"],["class","column-title me-3 point-input-container",4,"ngIf"],[3,"click"],[1,"column-title","me-3","point-input-container"],[1,"primary-column-width","sticky","name"],[3,"routerLink"],[1,"grade","sticky","sticky-col-2",3,"ngClass"],[3,"options","valueId","gradeId","disabled","gradeIdSelected",4,"ngIf"],[4,"ngIf"],[1,"grade","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"options","valueId","gradeId","disabled","gradeIdSelected"],[1,"grade",3,"ngClass"],[3,"grade","gradeOptions","student","tabIndex","gradeChanged"],[3,"test"],["data-testId","apply-average-button","type","button",1,"btn","btn-primary","m-3",3,"click"]],template:function(s,i){1&s&&(t.YNc(0,Ae,64,71,"ng-container",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async")),2&s&&t.Q6J("erzLet",t.l5B(9,ye,t.lcZ(1,1,i.state.filteredTests$),t.lcZ(2,3,i.state.studentGrades$),t.lcZ(3,5,i.state.filter$),t.lcZ(4,7,i.state.expandedHeader$)))},dependencies:[u.mk,u.sg,u.O5,_.rH,M.e,ee,le,ue,pe,u.Ov,g.X$,D.fY],styles:[".filter-hover[_ngcontent-%COMP%]:hover{background-color:#dedede}table[_ngcontent-%COMP%] th.grade.selected[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade.selected[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:none!important}.desktop.selected[_ngcontent-%COMP%]{display:table-cell!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;vertical-align:top}.header-collapsible[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding:0 1rem}.mobile[_ngcontent-%COMP%]{display:block!important}.mean[_ngcontent-%COMP%]{color:#4e4e4ef2;font-size:.875rem;line-height:1}td.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:none!important}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1rem}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.average[_ngcontent-%COMP%]{max-width:18ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:0}.point-input-container[_ngcontent-%COMP%]{width:5em}@media (min-width: 576px){.table-responsive-wrapper[_ngcontent-%COMP%]{display:block;overflow-x:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-mobile[_ngcontent-%COMP%]{display:none!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%]{max-width:auto;overflow:visible}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;padding-top:.25rem;padding-bottom:.25rem;border-top:initial;min-width:100px;max-width:100px}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%]{min-width:300px;max-width:300px}.mobile[_ngcontent-%COMP%]{display:none!important}.primary-column-width[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:300px;max-width:300px}.secondary-column-width[_ngcontent-%COMP%]{min-width:100px;max-width:100px}table[_ngcontent-%COMP%] .sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}table[_ngcontent-%COMP%] .sticky.sticky-col-2[_ngcontent-%COMP%]{left:300px}table[_ngcontent-%COMP%] .sticky.sticky-col-3[_ngcontent-%COMP%]{left:452px}}"]})}return n})();function Oe(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"erz-select",7),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.testSelected(i))}),t.qZA(),t._UZ(2,"erz-test-edit-grades",8),t.BQk()}if(2&n){const e=t.oxw(2).erzLet;t.xp6(1),t.Q6J("options",e.testOptions)("value",e.selectedTestId)("allowEmpty",!1),t.xp6(1),t.Q6J("selectedTest",e.selectedTest)}}function Ge(n,a){if(1&n&&(t.TgZ(0,"a",9),t.ALo(1,"async"),t.TgZ(2,"i",10),t._uU(3,"arrow_right_alt"),t.qZA(),t.TgZ(4,"span",11),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&n){const e=t.oxw(3);t.s9C("href",t.lcZ(1,2,e.buildLinkToRatingOverview()),t.LSH),t.xp6(5),t.Oqu(t.lcZ(6,4,"tests.link-to-rating-overview"))}}function Pe(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"erz-tests-header",5),t.YNc(2,Oe,3,4,"ng-container",4),t.YNc(3,Ge,7,6,"a",6),t.ALo(4,"async"),t.BQk()),2&n){const e=t.oxw().erzLet,s=t.oxw(),i=t.MAs(8);t.xp6(1),t.Q6J("course",e.course),t.xp6(1),t.Q6J("ngIf",e.tests.length>0)("ngIfElse",i),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,4,s.state.canSetFinalGrade$))}}function $e(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Pe,5,6,"ng-container",4),t.ALo(2,"async"),t.BQk()),2&n){const e=t.oxw(),s=t.MAs(10);t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,e.state.loading$))("ngIfElse",s)}}function Le(n,a){1&n&&(t.TgZ(0,"p",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"tests.no-tests")))}function Me(n,a){1&n&&t._UZ(0,"erz-spinner")}const Se=function(n,a,e,s,i){return{course:n,tests:a,testOptions:e,selectedTestId:s,selectedTest:i}};let Ee=(()=>{class n{constructor(e,s,i){this.settings=e,this.state=s,this.translate=i,this.selectTest$=new $.x,this.testOptions$=this.state.tests$.pipe((0,c.U)(r=>[{Key:-1,Value:this.translate.instant("tests.grade")},...r.map(l=>({Key:l.Id,Value:l.Designation}))]),(0,L.x)()),this.selectedTestId$=(0,tt.T)(this.selectTest$,this.state.tests$.pipe((0,G.q)(1),(0,c.U)(r=>r[0]?.Id))).pipe((0,L.x)()),this.selectedTest$=this.selectedTestId$.pipe((0,T.w)(r=>this.state.tests$.pipe((0,c.U)(l=>l.find(d=>d.Id===r)))),(0,L.x)())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe((0,G.q)(1),(0,c.U)(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(b.L6),t.Y36(P),t.Y36(g.sK))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-list"]],decls:11,vars:17,consts:[[1,"erz-container","erz-container-padding-y","erz-container-padding-x-responsive"],[4,"erzLet"],["noTests",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"course"],["class","d-flex justify-content-end pe-3 border-top pt-3","data-testId","link-to-rating-overview",3,"href",4,"ngIf"],[1,"tests-dropdown",3,"options","value","allowEmpty","valueChange"],[3,"selectedTest"],["data-testId","link-to-rating-overview",1,"d-flex","justify-content-end","pe-3","border-top","pt-3",3,"href"],[1,"material-icons","fw-bold"],[1,"ps-1"],[1,"mt-3","px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,$e,3,4,"ng-container",1),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.YNc(7,Le,3,3,"ng-template",null,2,t.W1O),t.YNc(9,Me,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&s&&(t.xp6(1),t.Q6J("erzLet",t.qbA(11,Se,t.lcZ(2,1,i.state.course$),t.lcZ(3,3,i.state.tests$),t.lcZ(4,5,i.testOptions$),t.lcZ(5,7,i.selectedTestId$),t.lcZ(6,9,i.selectedTest$))))},dependencies:[u.O5,M.e,Q.O,Y.H,Kt,Ie,u.Ov,g.X$],styles:[".tests-dropdown[_ngcontent-%COMP%]{display:block;padding:1rem 0}@media (min-width: 576px){.tests-dropdown[_ngcontent-%COMP%]{display:none}}a.rating-overview[_ngcontent-%COMP%]{text-decoration:none}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}"]})}return n})();var lt=o(4716);let we=(()=>{class n{constructor(e){this.activeModal=e}get canDeleteTest(){return 0===(this.test?.Results?.filter(s=>null!==s.GradeId||null!==s.GradeValue||null!==s.Points)||[]).length}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-delete"]],inputs:{test:"test"},decls:13,vars:10,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"hidden","click"],[1,"px-2"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"],[1,"px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.TgZ(9,"button",5),t.NdJ("click",function(){return i.activeModal.close(i.canDeleteTest?i.test:null)}),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&s&&(t.xp6(2),t.hij(" ",t.lcZ(3,4,i.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),t.xp6(3),t.Q6J("hidden",!i.canDeleteTest),t.xp6(2),t.hij(" ",t.lcZ(8,6,"tests.dialog.no")," "),t.xp6(4),t.hij(" ",t.lcZ(12,8,i.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[g.X$]})}return n})();var ct=o(6869),Fe=o(902),Ue=o(3296),S=o(1257);function ke(n){return a=>{const e=Number(a.value);return e<=n?{greaterThan:{value:e,greaterThanValue:n}}:null}}function qe(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Ne(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function ze(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Re(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",32)(2,"div",33)(3,"div",17)(4,"label",34),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",35),t._UZ(8,"input",36),t.ALo(9,"async"),t.YNc(10,ze,3,4,"div",7),t.ALo(11,"async"),t.qZA()()(),t.TgZ(12,"div",33)(13,"div",17)(14,"label",37),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"div",35),t._UZ(18,"input",38),t.ALo(19,"async"),t.YNc(20,je,3,4,"div",7),t.ALo(21,"async"),t.qZA()()()(),t.TgZ(22,"div",39),t.pZz(),t.TgZ(23,"math")(24,"mi"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"mo"),t._uU(28,"="),t.qZA(),t.TgZ(29,"mfrac")(30,"mrow")(31,"mi"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mo"),t._uU(35,"\xd7"),t.qZA(),t.TgZ(36,"mn"),t._uU(37,"5"),t.qZA()(),t.TgZ(38,"mi"),t._uU(39),t.ALo(40,"translate"),t.qZA()(),t.TgZ(41,"mo"),t._uU(42,"+"),t.qZA(),t.TgZ(43,"mn"),t._uU(44,"1"),t.qZA()()(),t.BQk()),2&n){const e=t.oxw(3);let s,i;t.xp6(5),t.Oqu(t.lcZ(6,11,"tests.form.max-points")),t.xp6(3),t.ekj("is-invalid",(null==(s=t.lcZ(9,13,e.maxPointsErrors$))?null:s.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(11,15,e.maxPointsErrors$)),t.xp6(5),t.Oqu(t.lcZ(16,17,"tests.form.max-points-adjusted")),t.xp6(3),t.ekj("is-invalid",(null==(i=t.lcZ(19,19,e.maxPointsAdjustedErrors$))?null:i.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(21,21,e.maxPointsAdjustedErrors$)),t.xp6(5),t.hij(" ",t.lcZ(26,23,"tests.form.math.grade")," "),t.xp6(7),t.hij(" ",t.lcZ(33,25,"tests.form.math.points")," "),t.xp6(7),t.Oqu(t.lcZ(40,27,"tests.form.math.max-points"))}}function Qe(n,a){1&n&&(t.TgZ(0,"div",40)(1,"span",41),t._uU(2,"Loading..."),t.qZA()())}const Ye=function(n){return["/events",n,"tests"]};function De(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSubmit())}),t.TgZ(1,"div",3)(2,"div",4)(3,"label",5),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"input",6),t.ALo(7,"async"),t.ALo(8,"translate"),t.YNc(9,qe,3,4,"div",7),t.ALo(10,"async"),t.qZA(),t.TgZ(11,"div",8)(12,"label",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",10)(16,"span",11)(17,"i",12),t._uU(18,"calendar_today"),t.qZA()(),t.TgZ(19,"input",13,14),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(20);return t.KtG(i.toggle())}),t.ALo(21,"async"),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Ne,3,4,"div",7),t.ALo(24,"async"),t.qZA()()(),t.TgZ(25,"div",15)(26,"label",16),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",4)(30,"div",17)(31,"label",18),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"div",19),t._UZ(35,"input",20),t.ALo(36,"async"),t.YNc(37,Je,3,4,"div",7),t.ALo(38,"async"),t.qZA()()()(),t.TgZ(39,"div")(40,"label",16),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",21),t._UZ(44,"input",22),t.TgZ(45,"label",23),t._uU(46),t.ALo(47,"translate"),t.qZA()(),t.TgZ(48,"div",21),t._UZ(49,"input",24),t.TgZ(50,"label",25),t._uU(51),t.ALo(52,"translate"),t.qZA()(),t.YNc(53,Re,45,29,"ng-container",26),t.qZA(),t.TgZ(54,"div",27)(55,"button",28),t.ALo(56,"async"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"button",29),t._uU(60),t.ALo(61,"translate"),t.YNc(62,Qe,3,0,"div",30),t.qZA()()()}if(2&n){const e=t.oxw().erzLet,s=t.oxw();let i,r,l;t.Q6J("formGroup",e.formGroup),t.xp6(4),t.Oqu(t.lcZ(5,29,"tests.form.designation")),t.xp6(2),t.ekj("is-invalid",(null==(i=t.lcZ(7,31,s.designationErrors$))?null:i.length)>0),t.Q6J("placeholder",t.lcZ(8,33,"tests.form.designation-placeholder")),t.xp6(3),t.Q6J("ngForOf",t.lcZ(10,35,s.designationErrors$)),t.xp6(4),t.Oqu(t.lcZ(14,37,"tests.form.date")),t.xp6(3),t.Q6J("id",s.componentId),t.xp6(3),t.ekj("is-invalid",(null==(r=t.lcZ(21,39,s.dateErrors$))?null:r.length)>0),t.Q6J("placeholder",t.lcZ(22,41,"shared.date-select.default-placeholder")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(24,43,s.dateErrors$)),t.xp6(4),t.Oqu(t.lcZ(28,45,"tests.form.weight")),t.xp6(5),t.Oqu(t.lcZ(33,47,"tests.form.factor")),t.xp6(3),t.ekj("is-invalid",(null==(l=t.lcZ(36,49,s.weightErrors$))?null:l.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(38,51,s.weightErrors$)),t.xp6(4),t.Oqu(t.lcZ(42,53,"tests.form.grading-type")),t.xp6(3),t.Q6J("value",!1),t.xp6(2),t.Oqu(t.lcZ(47,55,"tests.form.grades")),t.xp6(3),t.Q6J("value",!0),t.xp6(2),t.Oqu(t.lcZ(52,57,"tests.form.points")),t.xp6(2),t.Q6J("ngIf",e.formGroup.get("isPointGrading").value),t.xp6(2),t.Q6J("disabled",s.saving)("routerLink",t.VKq(65,Ye,t.lcZ(56,59,s.courseId$))),t.xp6(2),t.hij(" ",t.lcZ(58,61,"tests.form.cancel")," "),t.xp6(2),t.Q6J("disabled",s.saving),t.xp6(1),t.hij(" ",t.lcZ(61,63,"tests.form.save")," "),t.xp6(2),t.Q6J("ngIf",s.saving)}}function He(n,a){if(1&n&&(t.ynx(0),t.YNc(1,De,63,67,"form",1),t.BQk()),2&n){const e=a.erzLet;t.xp6(1),t.Q6J("ngIf",e.formGroup)}}const Ke=function(n){return{formGroup:n}};let ut=(()=>{class n{constructor(e,s,i){this.fb=e,this.translate=s,this.testStateService=i,this.test=null,this.saving=!1,this.save=new t.vpe,this.componentId=(0,Fe.Z)("erz-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new x.X(!1),this.destroy$=new $.x,this.designationErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"designation"),this.dateErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),(0,S.ZX)((0,I.of)(this.formGroup),"isPointGrading").pipe((0,k.R)(this.destroy$)).subscribe(this.togglePointFieldsDisability.bind(this))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup.valid&&this.save.emit(this.formGroup.value)}createFormGroup(){return this.fb.group({designation:["",p.kI.required],date:[null,p.kI.required],weight:[1,p.kI.compose([p.kI.required,ke(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},p.kI.required],maxPointsAdjusted:[{value:null,disabled:!0},null]})}setInitialValues(e){this.formGroup.patchValue({designation:e.Designation,date:e.Date,weight:e.Weight,isPointGrading:e.IsPointGrading,maxPoints:e.MaxPoints,maxPointsAdjusted:e.MaxPointsAdjusted}),e.Results&&e.Results.length>0&&(this.formGroup.get("isPointGrading")?.disable(),this.formGroup.get("maxPoints")?.disable(),this.formGroup.get("maxPointsAdjusted")?.disable()),this.togglePointFieldsDisability()}togglePointFieldsDisability(){const e=this.formGroup.get("maxPoints"),s=this.formGroup.get("maxPointsAdjusted");this.formGroup.get("isPointGrading")?.value?(e?.enable(),s?.enable()):(e?.reset({value:this.test?.MaxPoints,disabled:!0}),s?.reset({value:this.test?.MaxPointsAdjusted,disabled:!0}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(p.QS),t.Y36(g.sK),t.Y36(P))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},features:[t._Bn([{provide:y.DO,useClass:y.s5},{provide:y.NG,useClass:Ue.n}])],decls:1,vars:3,consts:[[4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row","g-3","mb-3"],[1,"col-md-6"],["for","designation",1,"form-label"],["id","designation","name","designation","type","text","formControlName","designation","required","",1,"form-control",3,"placeholder"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"col-md-6","mb-3"],["for","date",1,"form-label"],[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["id","date","name","date","type","text","ngbDatepicker","","formControlName","date","required","",1,"form-control",3,"placeholder","click"],["dp","ngbDatepicker"],[1,"row","mb-3"],[1,"form-label"],[1,"row"],["for","factor",1,"form-label","col-3","col-sm-2"],[1,"col-9","col-sm-10"],["id","factor","name","factor","type","number","formControlName","weight","step","0.05","min","0","required","",1,"form-control"],[1,"form-check"],["type","radio","formControlName","isPointGrading","id","type-grades",1,"form-check-input",3,"value"],["for","type-grades",1,"form-check-label"],["type","radio","formControlName","isPointGrading","id","type-points",1,"form-check-input",3,"value"],["for","type-points",1,"form-check-label"],[4,"ngIf"],[1,"d-flex","justify-content-end","mt-4"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","routerLink"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"invalid-feedback"],[1,"row","ms-4","mb-3","g-3"],[1,"col-sm-6","col-md-4"],["for","max-points",1,"ms-2","col-4","col-form-label"],[1,"col-6"],["type","number","name","maxPoints","id","max-points","formControlName","maxPoints","step","0.01","min","0","max","999","required","",1,"form-control"],["for","max-points-adjusted",1,"ms-2","col-4","col-form-label"],["type","number","name","maxPointsAdjusted","id","max-points-adjusted","formControlName","maxPointsAdjusted","step","0.01","min","0","max","999",1,"form-control"],[1,"ms-4","ps-3","py-3"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&t.YNc(0,He,2,1,"ng-container",0),2&s&&t.Q6J("erzLet",t.VKq(1,Ke,i.formGroup))},dependencies:[u.sg,u.O5,p._Y,p.Fj,p.wV,p._,p.JJ,p.JL,p.Q7,p.qQ,p.Fd,p.sg,p.u,_.rH,y.J4,M.e,u.Ov,g.X$],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]})}return n})();const Be=function(n){return{test:n}};function Xe(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",4)(2,"h1"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"button",5),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().erzLet,r=t.oxw();return t.KtG(r.openDeleteModal(i.test))}),t.TgZ(6,"i",6),t._uU(7,"delete"),t.qZA()()(),t.TgZ(8,"erz-tests-edit-form",7),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.save(i))}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw().erzLet;t.xp6(3),t.hij(" ",t.xi3(4,3,"tests.edit-title",t.VKq(6,Be,e.test.Designation))," "),t.xp6(5),t.Q6J("test",e.test)("saving",e.saving)}}function Ve(n,a){1&n&&t._UZ(0,"erz-spinner")}function We(n,a){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,Xe,9,8,"ng-container",2),t.ALo(2,"async"),t.YNc(3,Ve,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&n){const e=t.MAs(4),s=t.oxw();t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,s.state.loading$))("ngIfElse",e)}}const tn=function(n,a,e){return{courseId:n,test:a,saving:e}};let en=(()=>{class n{constructor(e,s,i,r,l,d,m){this.state=e,this.courseService=s,this.route=i,this.toastService=r,this.translate=l,this.router=d,this.modalService=m,this.saving$=new x.X(!1),this.testId$=this.route.paramMap.pipe((0,c.U)(h=>Number(h.get("testId"))),(0,L.x)()),this.test$=(0,C.a)([this.state.tests$,this.testId$]).pipe((0,c.U)(([h,E])=>h.find(q=>q.Id===E)))}openDeleteModal(e){const s=this.modalService.open(we);s.componentInstance.test=e,s.result.then(i=>{i&&this.courseService.delete(e.CourseId,e.Id).subscribe(this.onDeleteSuccess.bind(this))},()=>{})}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;(0,C.a)([this.state.courseId$,this.testId$]).pipe((0,G.q)(1),(0,T.w)(([h,E])=>this.courseService.update(h,E,s,i,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}onDeleteSuccess(e){this.toastService.success(this.translate.instant("tests.form.delete-success")),this.state.deleteTest(e),this.navigateBack()}navigateBack(){this.state.courseId$.pipe((0,G.q)(1)).subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(U.s),t.Y36(_.gz),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited erz-container-padding-y",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y"],[4,"ngIf","ngIfElse"],["loading",""],[1,"d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","btn-icon",3,"click"],[1,"material-icons"],[3,"test","saving","save"]],template:function(s,i){1&s&&(t.YNc(0,We,5,4,"div",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async")),2&s&&t.Q6J("erzLet",t.kEZ(7,tn,t.lcZ(1,1,i.state.courseId$),t.lcZ(2,3,i.test$),t.lcZ(3,5,i.saving$)))},dependencies:[u.O5,M.e,Q.O,ut,u.Ov,g.X$]})}return n})();function nn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-tests-edit-form",2),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.save(i))}),t.qZA()()}if(2&n){const e=a.erzLet;t.xp6(1),t.Q6J("saving",e.saving)}}const sn=function(n,a){return{courseId:n,saving:a}};let an=(()=>{class n{constructor(e,s,i,r,l){this.route=e,this.courseService=s,this.toastService=i,this.translate=r,this.router=l,this.saving$=new x.X(!1),this.courseId$=this.route.paramMap.pipe((0,c.U)(d=>Number(d.get("id"))),(0,L.x)())}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;this.courseId$.pipe((0,T.w)(h=>this.courseService.add(h,i,s,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}navigateBack(){this.courseId$.subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(_.gz),t.Y36(U.s),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-add"]],decls:6,vars:11,consts:[["class","erz-container erz-container-limited erz-container-padding-y",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y"],[3,"saving","save"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,nn,2,1,"div",0),t.ALo(4,"async"),t.ALo(5,"async")),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"tests.add-title")),t.xp6(2),t.Q6J("erzLet",t.WLB(8,sn,t.lcZ(4,4,i.courseId$),t.lcZ(5,6,i.saving$))))},dependencies:[M.e,ut,u.Ov,g.X$]})}return n})();var rn=o(1162),on=o(7163);function dn(n,a){1&n&&(t.TgZ(0,"div",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"events.rating")," "))}function ln(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"date"),t._UZ(3,"wbr"),t._uU(4),t.ALo(5,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("",t.xi3(2,2,e.dateFrom,"dd.MM.yyyy"),"\u2013"),t.xp6(3),t.Oqu(t.xi3(5,5,e.dateTo,"dd.MM.yyyy"))}}const cn=function(n){return[n,"tests"]};function un(n,a){if(1&n&&(t.TgZ(0,"a",19)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("routerLink",t.VKq(2,cn,e.id)),t.xp6(4),t.Oqu(e.evaluationText)}}function pn(n,a){if(1&n&&(t.TgZ(0,"a",22)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("href",e.evaluationLink,t.LSH),t.xp6(4),t.hij("",e.evaluationText," ")}}function gn(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,un,5,4,"a",17),t.YNc(2,pn,5,2,"a",18),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",!e.evaluationLink),t.xp6(1),t.Q6J("ngIf",e.evaluationLink)}}function _n(n,a){if(1&n&&(t.TgZ(0,"div",13)(1,"div",7)(2,"a",14),t._uU(3),t.qZA()(),t.TgZ(4,"div",8),t.YNc(5,ln,6,8,"span",15),t.qZA(),t.TgZ(6,"div",9),t._uU(7),t.TgZ(8,"span",16),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.YNc(11,gn,3,2,"div",10),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(4);t.xp6(2),t.Q6J("href",e.detailLink,t.LSH),t.xp6(1),t.Oqu(e.Designation),t.xp6(2),t.Q6J("ngIf",e.dateFrom&&e.dateTo),t.xp6(2),t.hij(" ",e.studentCount," "),t.xp6(2),t.Oqu(t.lcZ(10,6,1===e.studentCount?"events.registration":"events.registrations")),t.xp6(2),t.Q6J("ngIf",s.withRatings&&e.evaluationText)}}function mn(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",6)(2,"div",7),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",8),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",9),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,dn,3,3,"div",10),t.qZA(),t.YNc(12,_n,12,8,"div",11),t.BQk()),2&n){const e=t.oxw(2).erzLet,s=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"events.designation")),t.xp6(3),t.Oqu(t.lcZ(7,7,"events.date")),t.xp6(3),t.hij(" ",t.lcZ(10,9,"events.registrations")," "),t.xp6(2),t.Q6J("ngIf",s.withRatings),t.xp6(1),t.Q6J("ngForOf",e.events)}}function hn(n,a){1&n&&(t.TgZ(0,"p",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"events.no-events")))}function fn(n,a){if(1&n&&(t.ynx(0),t.YNc(1,mn,13,11,"ng-container",3),t.YNc(2,hn,3,3,"ng-template",null,5,t.W1O),t.BQk()),2&n){const e=t.MAs(3),s=t.oxw().erzLet;t.xp6(1),t.Q6J("ngIf",(null==s.events?null:s.events.length)>0)("ngIfElse",e)}}function vn(n,a){1&n&&t._UZ(0,"erz-spinner")}function xn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-resettable-input",2),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.state.search$.next(i))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.YNc(5,fn,4,2,"ng-container",3),t.ALo(6,"async"),t.YNc(7,vn,1,0,"ng-template",null,4,t.W1O),t.qZA()}if(2&n){const e=a.erzLet,s=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("value",t.lcZ(2,6,i.state.search$))("placeholder",t.lcZ(3,8,"events.search-by"))("label",t.lcZ(4,10,"events.search"))("disabled",!e.events),t.xp6(4),t.Q6J("ngIf",!1===t.lcZ(6,12,i.state.loading$))("ngIfElse",s)}}const Tn=function(n){return{events:n}};let pt=(()=>{class n{constructor(e,s){this.state=e,this.storage=s,this.withRatings=!0,this.state.roles$.next(this.storage.getPayload()?.roles)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(j),t.Y36(X.V))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-list"]],inputs:{withRatings:"withRatings"},decls:2,vars:5,consts:[["class","erz-container erz-container-padding-y erz-container-padding-x-responsive",4,"erzLet"],[1,"erz-container","erz-container-padding-y","erz-container-padding-x-responsive"],[1,"d-flex","search",3,"value","placeholder","label","disabled","valueChange"],[4,"ngIf","ngIfElse"],["loading",""],["noEvents",""],[1,"event-header"],[1,"designation"],[1,"date"],[1,"registrations"],["class","rating",4,"ngIf"],["class","event-entry",4,"ngFor","ngForOf"],[1,"rating"],[1,"event-entry"],[3,"href"],[4,"ngIf"],[1,"registrations-label"],["class","d-flex",3,"routerLink",4,"ngIf"],["class","d-flex",3,"href",4,"ngIf"],[1,"d-flex",3,"routerLink"],[1,"material-icons"],[1,"ps-1"],[1,"d-flex",3,"href"],[1,"mt-3"]],template:function(s,i){1&s&&(t.YNc(0,xn,9,14,"div",0),t.ALo(1,"async")),2&s&&t.Q6J("erzLet",t.VKq(3,Tn,t.lcZ(1,1,i.state.getEvents(i.withRatings))))},dependencies:[u.sg,u.O5,_.rH,M.e,Q.O,on.w,u.Ov,u.uU,g.X$],styles:['.search[_ngcontent-%COMP%]{max-width:500px}.event-header[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:2px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.event-entry[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:1px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.designation[_ngcontent-%COMP%]{grid-area:designation;padding-right:1rem}.date[_ngcontent-%COMP%]{grid-area:date;padding-right:1rem}.registrations[_ngcontent-%COMP%]{grid-area:registrations;padding-right:1rem}.rating[_ngcontent-%COMP%]{grid-area:rating}.rating[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.registrations-label[_ngcontent-%COMP%]{display:none}@media (max-width: 575.98px){.event-header[_ngcontent-%COMP%]{display:none}.registrations-label[_ngcontent-%COMP%]{display:inline}.designation[_ngcontent-%COMP%], .date[_ngcontent-%COMP%], .registrations[_ngcontent-%COMP%]{padding-right:0}.event-entry[_ngcontent-%COMP%]{grid-template-areas:"designation" "date" "registrations" "rating";grid-template-columns:1fr}}']})}return n})();const Cn=[{path:"",component:Ct,children:[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-tests"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.title")),t.xp6(2),t.Q6J("withRatings",!0))},dependencies:[pt,g.X$]})}return n})()},{path:"current",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-current"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.current.title")),t.xp6(2),t.Q6J("withRatings",!1))},dependencies:[pt,g.X$]})}return n})()},{path:":id",component:R,children:[{path:"tests",component:Ee}]},{path:":id/tests/:testId/edit",component:R,children:[{path:"",component:en}]},{path:":id/tests/add",component:R,children:[{path:"",component:an}]},{path:":id/tests",children:[rn.H]}]}];let bn=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({imports:[_.Bz.forChild(Cn),_.Bz]})}return n})();var Zn=o(8393);let An=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({providers:[Zn.o],imports:[N.m,bn]})}return n})()},1608:(gt,w,o)=>{o.d(w,{K:()=>T});var N=o(8658),_=o(7398),J=o(5619),x=o(3997),O=o(7081),C=o(8180),c=o(5879);let T=(()=>{class b{getSortingChar$(Z){return this.sorting$.pipe((0,_.U)(v=>v&&Z===v.key?v.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new J.X(null),this.sorting$=this.sortingSubject$.asObservable().pipe((0,x.x)(N.Z),(0,O.d)(1))}setSorting(Z){this.sortingSubject$.next(Z)}toggleSorting(Z){this.sorting$.pipe((0,C.q)(1)).subscribe(v=>{this.sortingSubject$.next({key:Z,ascending:!v||v.key!==Z||!v.ascending})})}static#t=this.\u0275fac=function(v){return new(v||b)};static#e=this.\u0275prov=c.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[218],{6218:(gt,w,o)=>{o.r(w),o.d(w,{EventsModule:()=>An});var N=o(6486),_=o(1523),J=o(5301),x=o(5619),O=o(7081),C=o(2572),c=o(7398),T=o(4664),b=o(4141),F=o(1389),Z=o(6031),v=o(2547);function K(n){const{HasEvaluationStarted:a,EvaluationUntil:e,HasTestGrading:s}=n.EvaluationStatusRef;if(!0===a&&(14030===n.StatusId||10350===n.StatusId))return{value:f.Rating};if(!0===a&&!1===s){if(e)return{value:f.RatingUntil};if(10300===n.StatusId)return{value:f.IntermediateRating}}return!1===a&&!0===s&&10260!==n.StatusId&&10250!==n.StatusId?{value:f.Tests}:!0===a&&!0===s?e?{value:f.Tests,label:f.RatingUntil}:{value:f.Tests,label:f.IntermediateRating}:null}function vt(n){return!0===n.EvaluationStatusRef.HasEvaluationStarted}var t=o(5879),U=o(1074),Tt=o(9018),B=o(3005),X=o(8173),g=o(9515),V=o(654),f=function(n){return n.Rating="rating",n.RatingUntil="rating-until",n.IntermediateRating="intermediate-rating",n.Tests="add-tests",n}(f||{});let j=(()=>{class n{constructor(e,s,i,r,l,d,m){this.coursesRestService=e,this.studyClassRestService=s,this.loadingService=i,this.storage=r,this.translate=l,this.eventsRestService=d,this.settings=m,this.loading$=this.loadingService.loading$,this.search$=new x.X(""),this.roles$=new x.X(void 0),this.formativeAssessments$=this.studyClassRestService.getActiveFormativeAssessments(),this.studyClasses$=this.studyClassRestService.getActive(),this.events$=this.loadEvents().pipe((0,O.d)(1)),this.filteredEvents$=(0,C.a)([this.events$,this.search$]).pipe((0,c.U)((0,F.h)(v.P)))}getEvents(e=!1){return this.filteredEvents$.pipe((0,c.U)(s=>e?s.filter(i=>i.evaluationText):s))}loadEvents(){return this.roles$.pipe((0,T.w)(e=>this.loadingService.load(this.loadEventsForRoles(e))))}loadEventsForRoles(e){return(0,Z.n)(e,"ClassTeacherRole")?(0,C.a)([this.loadCoursesNotRated(e),this.formativeAssessments$,this.studyClasses$]).pipe((0,c.U)((0,F.h)(this.createAndSortEvents.bind(this)))):this.loadCoursesNotRated(e).pipe((0,c.U)(s=>this.createAndSortEvents(s)))}loadCoursesNotRated(e){return this.coursesRestService.getExpandedCourses(e).pipe((0,c.U)(s=>s.filter(i=>!function xt(n){return!0===n.EvaluationStatusRef.HasReviewOfEvaluationStarted&&!!n.FinalGrades?.length}(i))))}createAndSortEvents(e,s=[],i=[]){const r=i.filter(l=>!s.map(d=>d.Id).includes(l.Id));return[...this.createFromCourses(e),...this.createFromAssessments(s),...this.createFromStudyClasses(r)].sort((l,d)=>l.Designation.localeCompare(d.Designation))}createFromStudyClasses(e){return e.map(s=>({id:s.Id,Designation:s.Number,detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.StudentCount,state:null}))}createFromAssessments(e){return this.createFromStudyClasses(e).map(i=>({...i,state:f.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(i.id,"evaluation")}))}createFromCourses(e){return e.map(s=>{const i=K(s);return{id:s.Id,Designation:this.eventsRestService.getDesignation(s),detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.AttendanceRef.StudentCount||0,dateFrom:s.DateFrom,dateTo:s.DateTo,state:i?.value||null,evaluationText:this.getEvaluationText(i,s.EvaluationStatusRef.EvaluationUntil),evaluationLink:this.getEvaluationLink(i?.value,s)}})}getEvaluationText(e,s){const i=e?.label||e?.value;return i?this.translate.instant(`events.state.${i}`)+(i===f.RatingUntil?` ${s?(0,J.Z)(s,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,s){return e&&e!==f.Tests?this.buildLink(s.Id,"evaluation"):null}buildLink(e,s){return(this.settings.eventlist[s]??"").replace(":id",String(e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(Tt.R),t.LFG(B.b),t.LFG(X.V),t.LFG(g.sK),t.LFG(V.O),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ct=(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events"]],features:[t._Bn([j])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var W=o(7328),tt=o(3019),bt=o(6699),I=o(2096),et=o(2181),G=o(8180),Zt=o(3942),A=o(7483);function At(n,a){return[...a.filter(e=>e.Id!==n?.Id),n].filter(e=>null!=e)}function yt({id:n,selectedGradeId:a},e){return e.map(s=>s.Id!==n?s:{...s,GradeId:a})}function It(n,a){switch(a.type){case"reset":return a.payload;case"updateResult":return n?{...n,Tests:(0,A.De)(a.payload.testResult,n.Tests||[]),Gradings:At(a.payload.grading,n.Gradings||[])}:null;case"toggle-test-state":return n?{...n,Tests:(0,A.P2)(a.payload,n.Tests||[])}:null;case"final-grade-overwritten":return n?{...n,Gradings:yt({id:a.payload.id,selectedGradeId:a.payload.selectedGradeId},n.Gradings||[])}:null;case"replace-grades":return n?{...n,Gradings:a.payload}:null;case"delete-test":return n?{...n,Tests:(0,A.yY)(a.payload,n.Tests||[])}:null;default:return n}}var Ot=o(2194),nt=o(3986);function st(n){return n.map(({finalGrade:a})=>a).filter(Gt)}function Gt(n){return null!==n}function $t(n,a){return a.map(e=>{if(void 0===e.Results||0===e.Results?.length)return{kind:"no-result",test:e};const s=e.Results?.find(i=>i.StudentId===n.Id);return void 0!==s?{kind:"grade",result:s,test:e}:{kind:"no-result",test:e}})}function Lt(n,a,e){const s=a.find(r=>r.StudentId===n.Id),i=e.find(r=>r.StudentId===n.Id);return s?{id:s.Id,average:Mt(s),finalGradeId:s.GradeId,freeHandGrade:i?Number(i.Grade):null,canGrade:s.CanGrade}:null}function Mt(n){return 0===n.AverageTestResult?null:n.AverageTestResult}function it(n,a){return n===a?0:n{class n extends Nt.v{constructor(e,s){super(e,s,qt.Ly,"Gradings")}updateGrade(e,s){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:s}).pipe((0,c.U)(()=>e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(Jt.eN),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var jt=o(1608);let P=(()=>{class n{constructor(e,s,i,r,l){this.coursesRestService=e,this.gradingScalesRestService=s,this.gradingsRestService=i,this.loadingService=r,this.sortService=l,this.action$=new W.t(1),this.loading$=this.loadingService.loading$,this._courseId$=new W.t(1),this.courseId$=this._courseId$.asObservable(),this.fetchedCourse$=this._courseId$.pipe((0,T.w)(d=>this.loadingService.load(this.coursesRestService.getExpandedCourse(d))),(0,O.d)(1)),this.course$=(0,tt.T)(this.action$,this.fetchedCourse$).pipe((0,c.U)(d=>"type"in d?d:{type:"reset",payload:d}),(0,bt.R)(It,null),(0,et.h)(Zt.Nf)),this.tests$=this.course$.pipe((0,c.U)(d=>d.Tests||[]),(0,c.U)(A.df)),this.filter$=new x.X("all-tests"),this.expandedHeader$=new x.X(!1),this.filteredTests$=(0,C.a)([this.tests$,this.filter$]).pipe((0,c.U)(([d,m])=>d.filter(h=>"all-tests"===m||h.IsOwner))),this.sorting$=this.sortService.sorting$,this.studentGrades$=(0,C.a)([this.course$,this.filteredTests$,this.sorting$]).pipe((0,c.U)((0,F.h)(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe((0,c.U)(vt)),this.gradingScaleIds$=this.course$.pipe((0,c.U)(d=>(0,Ot.Z)([...(d.Tests??[]).map(m=>m.GradingScaleId),d.GradingScaleId]))),this.gradingScales$=this.gradingScalesRestService.loadGradingScales(this.gradingScaleIds$),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe((0,c.U)(d=>d.map(m=>({id:m?.Id||this.UNDEFINED_GRADINGSCALE_ID,options:m?.Grades.map(q=>({Key:q.Id,Value:q.Designation}))||[]})).reduce((m,h)=>({...m,[h.id]:h.options}),{})),(0,O.d)(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe((0,c.U)(d=>function Ft(n){const a=n.map(e=>e.average).filter(e=>null!=e&&0!==e).map(Number);return(0,nt.Y)(a)}(st(d)))),this.meanOfFinalGradesForCourse$=(0,C.a)([this.gradingScalesOptions$,this.studentGrades$]).pipe((0,T.w)((0,F.h)(this.meanOfOverwrittenGradesForCourse.bind(this))))}setCourseId(e){this._courseId$.next(e)}gradingOptionsForTest$(e){return this.gradingOptions$(e.GradingScaleId)}gradingOptionsForCourse$(){return this.course$.pipe((0,T.w)(e=>this.gradingOptions$(e.GradingScaleId)))}toStudentGrades(e,s=[],i){return function Pt(n,a,e,s){return n?.map(i=>({student:i,finalGrade:Lt(i,e,s),grades:$t(i,a)}))}(e.ParticipatingStudents??[],s,e.Gradings??[],e.FinalGrades??[]).sort((({key:n,ascending:a})=>(e,s)=>{const i=a?1:-1;switch(n){case"FullName":return i*e.student.FullName.localeCompare(s.student.FullName);case"FinalGrade":return e.finalGrade?.finalGradeId&&s.finalGrade?.finalGradeId?i*it(e.finalGrade.finalGradeId,s.finalGrade.finalGradeId):-1*i;case"TestsMean":return e.finalGrade?.average&&s.finalGrade?.average?i*it(e.finalGrade.average,s.finalGrade.average):-1*i}return i*((n,a,e)=>{const s=a.grades.filter(at).find(r=>r.test.Id===n.Id),i=e.grades.filter(at).find(r=>r.test.Id===n.Id);return n.IsPointGrading&&s?.result.GradeId===i?.result.GradeId?(s?.result.Points??0)-(i?.result.Points??0):-1*((s?.result.GradeId??Number.POSITIVE_INFINITY)-(i?.result.GradeId??Number.POSITIVE_INFINITY))})(n,e,s)})(i))}setSorting(e){this.sortService.setSorting(e)}getSortingChar$(e){return this.sortService.getSortingChar$(e)}sortBy(e){this.sortService.toggleSorting(e)}toggleHeader(e){this.expandedHeader$.next(e)}saveGrade(e){this.course$.pipe((0,G.q)(1),(0,T.w)(s=>this.coursesRestService.updateTestResult(s.Id,e))).subscribe(s=>this.updateStudentGrades(s))}publish(e){this.coursesRestService.publishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}unpublish(e){this.coursesRestService.unpublishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}deleteTest(e){this.action$.next({type:"delete-test",payload:e})}overwriteFinalGrade({id:e,selectedGradeId:s}){this.gradingsRestService.updateGrade(e,s).subscribe(()=>{this.action$.next({type:"final-grade-overwritten",payload:{id:e,selectedGradeId:s}})})}setAveragesAsFinalGrades(e){this.coursesRestService.setAverageAsFinalGrade(e).subscribe(s=>this.action$.next({type:"replace-grades",payload:s.Gradings}))}updateStudentGrades(e){const s=e.body.Gradings.find(i=>i.EventId===e.courseId);void 0!==s&&this.action$.next({type:"updateResult",payload:{testResult:e.body.TestResults[0],grading:s}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return null===e?(0,I.of)(null):this.gradingScalesOptions$.pipe((0,c.U)(s=>s[e]),(0,O.d)(1))}meanOfOverwrittenGradesForCourse(e,s){return this.course$.pipe((0,c.U)(i=>{if(null===i.GradingScaleId||void 0===e[i.GradingScaleId])return null;const r=e[i.GradingScaleId];return function Ut(n,a){const e=n.map(i=>i.freeHandGrade).filter(i=>!!i),s=n.map(i=>i.finalGradeId).filter(i=>null!==i).map(i=>a.find(r=>r.Key===i)).filter(i=>void 0!==i).map(i=>i?.Value).filter(i=>void 0!==i).map(Number).filter(i=>!isNaN(i));return(0,nt.Y)([...s,...e])}(st(s),r)}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(kt.R),t.LFG(zt),t.LFG(B.b),t.LFG(jt.K))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac})}return n})();var $=o(8645),L=o(3997),k=o(9773);let R=(()=>{class n{constructor(e,s){this.state=e,this.route=s,this.courseId$=this.route.paramMap.pipe((0,c.U)(i=>Number(i.get("id"))),(0,L.x)()),this.destroy$=new $.x}ngOnInit(){this.courseId$.pipe((0,k.R)(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(_.gz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests"]],features:[t._Bn([P])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var u=o(6814),M=o(6567),Q=o(59),Y=o(4229),Rt=o(6016),Qt=o(7625);const Yt=function(n){return{count:n}};function Dt(n,a){if(1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,1===e.course.ParticipatingStudents.length?"courses.registration":"courses.registrations",t.VKq(4,Yt,e.course.ParticipatingStudents.length))," ")}}const Ht=function(){return["/events"]};let Kt=(()=>{class n{constructor(e,s){this.reportsService=e,this.eventsRestService=s}loadReportUrl(){return this.reportsService.getEventReportUrl(this.course.Id)}getDesignation(){return this.eventsRestService.getDesignation(this.course)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(Rt.F),t.Y36(V.O))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-header"]],inputs:{course:"course"},decls:12,vars:5,consts:[[3,"routerLink"],[1,"d-flex"],["routerLink","add",1,"edit","btn","btn-primary","btn-icon","ms-2"],[1,"material-icons"],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"d-flex","flex-column","header"],["class","additional-info",4,"ngIf"],[1,"additional-info"]],template:function(s,i){1&s&&(t.TgZ(0,"erz-backlink",0)(1,"div",1)(2,"a",2)(3,"i",3),t._uU(4,"add"),t.qZA()(),t.TgZ(5,"a",4)(6,"i",3),t._uU(7,"description"),t.qZA()()()(),t.TgZ(8,"div",5)(9,"h1"),t._uU(10),t.qZA(),t.YNc(11,Dt,3,6,"div",6),t.qZA()),2&s&&(t.Q6J("routerLink",t.DdM(4,Ht)),t.xp6(5),t.Q6J("href",i.loadReportUrl(),t.LSH),t.xp6(5),t.Oqu(i.getDesignation()),t.xp6(1),t.Q6J("ngIf",i.course.ParticipatingStudents))},dependencies:[u.O5,_.rH,Qt.I,g.X$],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem;border-bottom:1px solid #dee2e6}h1[_ngcontent-%COMP%]{margin-bottom:0}.additional-info[_ngcontent-%COMP%]{color:#adb5bd}"]})}return n})();var y=o(253);const Bt=function(n){return{designation:n}};let Xt=(()=>{class n{constructor(e){this.activeModal=e}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-publish-test"]],inputs:{test:"test"},decls:11,vars:12,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"click"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return i.activeModal.close(!0)}),t._uU(9),t.ALo(10,"translate"),t.qZA()()),2&s&&(t.xp6(2),t.hij(" ",t.xi3(3,3,i.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",t.VKq(10,Bt,i.test.Designation))," "),t.xp6(4),t.hij(" ",t.lcZ(7,6,"tests.publishing.cancel")," "),t.xp6(3),t.hij(" ",t.lcZ(10,8,"tests.publishing.confirm")," "))},dependencies:[g.X$],encapsulation:2})}return n})();var rt=o(3620),p=o(6223);const Vt=function(n){return{maxPoints:n}};function Wt(n,a){if(1&n&&(t.TgZ(0,"div",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors.invalidPoints",t.VKq(4,Vt,e.maxPoints))," ")}}function te(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"input",5,6),t.NdJ("ngModelChange",function(){t.CHM(e);const i=t.MAs(2),r=t.oxw();return t.KtG(r.onPointsChange(i.value))}),t.qZA(),t.YNc(3,Wt,3,6,"div",7),t.qZA()}if(2&n){const e=t.MAs(2),s=t.oxw();t.xp6(1),t.ekj("is-invalid",e.errors),t.s9C("max",s.maxPoints),t.s9C("tabindex",s.tabIndex),t.Q6J("disabled",s.grade.test.IsPublished)("ngModel","grade"===s.grade.kind?s.grade.result.Points:null),t.xp6(2),t.Q6J("ngIf",e.errors)}}let ee=(()=>{class n{constructor(){this.gradeChanged=new t.vpe,this.maxPoints=0,this.pointsSubject$=new $.x,this.gradeSubject$=new $.x,this.gradingScaleDisabledSubject$=new x.X(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.points$=this.pointsSubject$.pipe((0,rt.b)(1250),(0,et.h)(this.isValid.bind(this))),this.grade$=this.gradeSubject$.pipe((0,rt.b)(1250)),this.destroy$=new $.x}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=function wt(n){return(n?.test?.MaxPointsAdjusted||n?.test?.MaxPoints)??0}(this.grade),this.points$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e)),this.grade$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyForGradeChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e))}ngOnChanges(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale())}ngOnDestroy(){this.destroy$.next()}onPointsChange(e){this.pointsSubject$.next(e),this.gradingScaleDisabledSubject$.next(!(null===e||""===e))}onGradeChange(e){this.gradeSubject$.next(e)}isValid(e){return""===e||null===e||!isNaN(Number(e))&&!(Number(e)<0||Number(e)>this.maxPoints)}buildRequestBodyPointsChange(e){const s=null===e||""===e?null:Number(e);return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,Points:s}}buildRequestBodyForGradeChange(e){return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,GradeId:e}}disableGradingScale(){return!!this.grade.test.IsPublished||"no-result"!==this.grade.kind&&null!=this.grade.result.Points&&this.grade.test.IsPointGrading}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},outputs:{gradeChanged:"gradeChanged"},features:[t.TTD],decls:5,vars:8,consts:[[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],["class","point-input-container me-2 me-md-3",4,"ngIf"],["data-testid","grade-select",1,"grade-select",3,"options","allowEmpty","value","disabled","tabindex","valueChange"],[1,"point-input-container","me-2","me-md-3"],["type","number","step","0.01","min","0","data-testid","point-input",1,"form-control",3,"max","disabled","tabindex","ngModel","ngModelChange"],["points","ngModel"],["class","invalid-feedback","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,te,4,7,"div",2),t.TgZ(3,"erz-select",3),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.ALo(4,"async"),t.qZA()()()),2&s&&(t.xp6(2),t.Q6J("ngIf",i.grade.test.IsPointGrading),t.xp6(1),t.Q6J("options",i.gradeOptions)("allowEmpty",!0)("value","grade"===i.grade.kind?i.grade.result.GradeId:null)("disabled",t.lcZ(4,6,i.gradingScaleDisabled$))("tabindex",i.tabIndex))},dependencies:[u.O5,p.Fj,p.wV,p.JJ,p.qQ,p.Fd,p.On,Y.H,u.Ov,g.X$],styles:[".point-input-container[_ngcontent-%COMP%]{width:4em}[_nghost-%COMP%] select{min-width:13ch}@media (min-width: 576px){.point-input-container[_ngcontent-%COMP%]{width:5em}}"]})}return n})();var ne=o(9707);let se=(()=>{class n{constructor(e){this.translate=e}transform(e){return`${e.Weight} (${e.WeightPercent}%)${this.getPoints(e)}`}getPoints(e){return e.IsPointGrading?`, ${e.MaxPointsAdjusted??e.MaxPoints} ${this.translate.instant("tests.summary.points")}`:""}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(g.sK,16))};static#e=this.\u0275pipe=t.Yjl({name:"testSummaryShort",type:n,pure:!0})}return n})();function ie(n,a){1&n&&(t.TgZ(0,"i",12),t._uU(1,"edit"),t.qZA())}const ae=function(n){return[n,"edit"]};function re(n,a){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9)(2,"erz-preserve-line-height"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"a",10),t.YNc(6,ie,2,0,"i",11),t.qZA()(),t.TgZ(7,"erz-preserve-line-height"),t._uU(8),t.ALo(9,"testSummaryShort"),t.qZA(),t.TgZ(10,"erz-preserve-line-height"),t._uU(11),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.xi3(4,5,e.test.Date,"dd.MM.yyyy")),t.xp6(2),t.Q6J("routerLink",t.VKq(10,ae,e.test.Id)),t.xp6(1),t.Q6J("ngIf",e.test.IsOwner&&!1===e.test.IsPublished),t.xp6(2),t.hij(" ",t.lcZ(9,8,e.test)," "),t.xp6(3),t.Oqu(e.test.Owner)}}function oe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.unpublishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"i",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t._uU(9),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.edit")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.published")),t.xp6(3),t.Oqu(e.expanded?"expand_more":"expand_less")}}function de(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.publishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock_open"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"i",18),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t._uU(9),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.publish")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.not-published")),t.xp6(3),t.Oqu(e.expanded?"expand_more":"expand_less")}}let le=(()=>{class n{constructor(){this.toggle=new t.vpe,this.publish=new t.vpe,this.unpublish=new t.vpe}toggleHeader(){this.toggle.emit(!this.expanded)}publishTest(){this.publish.emit(this.test)}unpublishTest(){this.unpublish.emit(this.test)}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-table-header"]],inputs:{test:"test",expanded:"expanded"},outputs:{toggle:"toggle",publish:"publish",unpublish:"unpublish"},decls:11,vars:6,consts:[[1,"d-flex","flex-column","h-100","justify-content-between"],["role","button",1,"test-designation","d-flex","flex-row","my-3","align-items-end","justify-content-between",3,"click"],[3,"ngClass"],[1,"material-icons","align-self-start"],[1,"d-flex","flex-column"],["class","d-flex flex-column mb-3",4,"ngIf"],["class","d-flex align-items-center justify-content-between test-status",4,"ngIf","ngIfElse"],["notPublished",""],[1,"d-flex","flex-column","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"btn","btn-link","p-0","edit",3,"routerLink"],["class","material-icons",4,"ngIf"],[1,"material-icons"],[1,"d-flex","align-items-center","justify-content-between","test-status"],[1,"d-flex","btn","btn-link","ps-0","edit",3,"title","click"],[1,"material-icons","me-1"],["role","button",1,"material-icons","expand-mobile",3,"click"],[1,"d-flex","btn","btn-link","ps-0",3,"title","click"],[1,"material-icons","expand-mobile",3,"click"]],template:function(s,i){if(1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleHeader()}),t.TgZ(2,"div",2),t._uU(3),t.qZA(),t.TgZ(4,"i",3),t._uU(5),t.qZA()(),t.TgZ(6,"div",4),t.YNc(7,re,12,12,"div",5),t.YNc(8,oe,10,7,"div",6),t.YNc(9,de,10,7,"ng-template",null,7,t.W1O),t.qZA()()),2&s){const r=t.MAs(10);t.xp6(2),t.Q6J("ngClass",i.expanded?"expanded":"collapsed"),t.xp6(1),t.hij(" ",i.test.Designation," "),t.xp6(2),t.Oqu(i.expanded?"expand_more":"expand_less"),t.xp6(2),t.Q6J("ngIf",i.expanded),t.xp6(1),t.Q6J("ngIf",i.test.IsPublished)("ngIfElse",r)}},dependencies:[u.mk,u.O5,_.rH,ne.r,u.uU,g.X$,se],styles:["[_nghost-%COMP%]{font-weight:300}.collapsed[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.test-designation[_ngcontent-%COMP%]{display:none!important}.test-status[_ngcontent-%COMP%]{order:-1;padding-bottom:1rem}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#000}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.edit[_ngcontent-%COMP%]{color:#00000080;text-decoration:none}@media (min-width: 750px){.test-designation[_ngcontent-%COMP%]{display:inherit!important}.test-status[_ngcontent-%COMP%]{order:initial}.expand-mobile[_ngcontent-%COMP%]{display:none!important}}"]})}return n})();var D=o(6651);function ce(n,a){if(1&n&&(t.TgZ(0,"span",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.calculatePointsAverage(e.test))}}let ue=(()=>{class n{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,3,A.dP)}safeAverage(e,s,i){try{return(0,D.ey)(i(e),this.locale,s)}catch{return D.GR}}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(t.soG))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-average-grades"]],inputs:{test:"test"},decls:4,vars:2,consts:[[1,"d-flex","flex-row","w-100"],["class","mr-2 mr-md-3 average-points","data-testid","average-points",4,"ngIf"],["data-testid","average-grade"],["data-testid","average-points",1,"mr-2","mr-md-3","average-points"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,ce,2,1,"span",1),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&s&&(t.xp6(1),t.Q6J("ngIf",i.test.IsPointGrading),t.xp6(2),t.Oqu(i.calculateGradeAverage(i.test)))},dependencies:[u.O5],styles:[".average-points[_ngcontent-%COMP%]{min-width:4em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:5em}}"]})}return n})(),pe=(()=>{class n{constructor(){this.disabled=!1,this.gradeIdSelected=new t.vpe}onGradeChange(e){void 0!==this.gradeId?.valueOf()&&this.gradeIdSelected.emit({id:this.gradeId?.valueOf(),selectedGradeId:e})}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled"},outputs:{gradeIdSelected:"gradeIdSelected"},decls:1,vars:4,consts:[["data-testid","grade-select",3,"options","allowEmpty","value","disabled","valueChange"]],template:function(s,i){1&s&&(t.TgZ(0,"erz-select",0),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.qZA()),2&s&&t.Q6J("options",i.options)("allowEmpty",!0)("value",i.valueId)("disabled",i.disabled)},dependencies:[Y.H],styles:["[_nghost-%COMP%] select{min-width:13ch}"]})}return n})();function ge(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",25)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function _e(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",27)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function me(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"span",30),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,r=t.oxw(2);return t.KtG(r.state.sortBy(i))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij("",t.lcZ(3,1,"tests.points")," "))}function he(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",28)(1,"div",11),t.YNc(2,me,4,3,"div",29),t.TgZ(3,"div",12)(4,"span",30),t.NdJ("click",function(){const r=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.state.sortBy(r))}),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"div",13),t._uU(8),t.ALo(9,"async"),t.qZA()()()}if(2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(2),t.Q6J("ngIf",e.IsPointGrading),t.xp6(3),t.Oqu(t.lcZ(6,4,"tests.grade")),t.xp6(3),t.hij(" ",t.lcZ(9,6,s.state.getSortingChar$(e))," ")}}function fe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"erz-grade-select",39),t.NdJ("gradeIdSelected",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.state.overwriteFinalGrade(i))}),t.ALo(1,"async"),t.ALo(2,"async"),t.qZA()}if(2&n){const e=t.oxw().$implicit,s=t.oxw(2);t.Q6J("options",t.lcZ(1,4,s.state.gradingOptionsForCourse$()))("valueId",e.finalGrade.finalGradeId)("gradeId",e.finalGrade.id)("disabled",!1===t.lcZ(2,6,s.isEditFinalGradesAllowed(e)))}}function ve(n,a){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.finalGrade.freeHandGrade," ")}}function xe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",40)(1,"erz-grade",41),t.NdJ("gradeChanged",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.saveGrade(i))}),t.ALo(2,"async"),t.qZA()()}if(2&n){const e=a.$implicit,s=a.index,i=t.oxw(),r=i.$implicit,l=i.index,d=t.oxw(2);t.Q6J("ngClass",void 0!==d.selectedTest&&e.test.Id===(null==d.selectedTest?null:d.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("grade",e)("gradeOptions",t.lcZ(2,5,d.state.gradingOptionsForTest$(e.test)))("student",r.student)("tabIndex",1e3*(1+s)+l)}}const Te=function(n){return["student",n,"grades"]},H=function(n){return{selected:n}};function Ce(n,a){if(1&n&&(t.TgZ(0,"tr")(1,"td",32)(2,"a",33)(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span",20),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"decimalOrDash"),t.qZA()()(),t.TgZ(9,"td",34),t.YNc(10,fe,3,8,"erz-grade-select",35),t.YNc(11,ve,2,1,"div",36),t.qZA(),t.TgZ(12,"td",37),t._uU(13),t.ALo(14,"decimalOrDash"),t.qZA(),t.YNc(15,xe,3,7,"td",38),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.VKq(18,Te,e.student.Id)),t.xp6(2),t.Oqu(e.student.FullName),t.xp6(2),t.AsE(" ",t.lcZ(7,10,"tests.mean"),": ",t.xi3(8,12,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(3),t.Q6J("ngClass",t.VKq(20,H,void 0===s.selectedTest)),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&!e.finalGrade.freeHandGrade),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&e.finalGrade.freeHandGrade),t.xp6(2),t.hij(" ",t.xi3(14,15,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(2),t.Q6J("ngForOf",e.grades)("ngForTrackBy",s.trackGradeOf(e.student))}}function be(n,a){if(1&n&&(t.TgZ(0,"td",40),t._UZ(1,"erz-average-grades",42),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)||e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)}}function Ze(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setAverageAsFinalGrade())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"tests.set-final-grade")," "))}const dt=function(n,a){return{"btn-primary":n,"btn-outline-secondary":a}};function Ae(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr",4)(5,"th",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("all-tests"))}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",7),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("my-tests"))}),t._uU(10),t.ALo(11,"translate"),t.qZA()(),t.YNc(12,ge,2,3,"th",8),t.YNc(13,_e,2,3,"th",9),t.qZA(),t.TgZ(14,"tr")(15,"th",10),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FullName"))}),t.TgZ(16,"div",11)(17,"div",12),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"div",13),t._uU(21),t.ALo(22,"async"),t.qZA()()(),t.TgZ(23,"th",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FinalGrade"))}),t.TgZ(24,"div",11)(25,"div",12),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"div",13),t._uU(29),t.ALo(30,"async"),t.qZA()()(),t.TgZ(31,"th",15),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("TestsMean"))}),t.TgZ(32,"div",11)(33,"div",12),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",13),t._uU(37),t.ALo(38,"async"),t.qZA()()(),t.YNc(39,he,10,8,"th",16),t.qZA()(),t.TgZ(40,"tbody"),t.YNc(41,Ce,16,22,"tr",17),t.TgZ(42,"tr")(43,"td",18)(44,"div",19)(45,"div"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"div",20),t._uU(49),t.ALo(50,"translate"),t.ALo(51,"decimalOrDash"),t.ALo(52,"async"),t.qZA()()(),t.TgZ(53,"td",21),t._uU(54),t.ALo(55,"decimalOrDash"),t.ALo(56,"async"),t.qZA(),t.TgZ(57,"td",22),t._uU(58),t.ALo(59,"decimalOrDash"),t.ALo(60,"async"),t.qZA(),t.YNc(61,be,2,2,"td",23),t.qZA()()(),t.YNc(62,Ze,3,3,"button",24),t.ALo(63,"async"),t.qZA(),t.BQk()}if(2&n){const e=a.erzLet,s=t.oxw();t.xp6(6),t.Q6J("ngClass",t.WLB(61,dt,"all-tests"===e.filter,"all-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(8,24,"tests.all-tests")," "),t.xp6(2),t.Q6J("ngClass",t.WLB(64,dt,"my-tests"===e.filter,"my-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(11,26,"tests.owned-tests")," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngForOf",e.tests),t.xp6(5),t.hij(" ",t.lcZ(19,28,"tests.student.name")," "),t.xp6(3),t.hij(" ",t.lcZ(22,30,s.state.getSortingChar$("FullName"))," "),t.xp6(2),t.Q6J("ngClass",t.VKq(67,H,void 0===s.selectedTest)),t.xp6(3),t.hij(" ",t.lcZ(27,32,"tests.grade")," "),t.xp6(3),t.hij(" ",t.lcZ(30,34,s.state.getSortingChar$("FinalGrade"))," "),t.xp6(5),t.hij(" ",t.lcZ(35,36,"tests.mean")," "),t.xp6(3),t.hij(" ",t.lcZ(38,38,s.state.getSortingChar$("TestsMean"))," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(2),t.Q6J("ngForOf",e.studentGrades)("ngForTrackBy",s.trackStudentGrade),t.xp6(5),t.Oqu(t.lcZ(47,40,"tests.average")),t.xp6(3),t.AsE(" ",t.lcZ(50,42,"tests.mean"),": ",t.xi3(51,44,t.lcZ(52,47,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(4),t.Q6J("ngClass",t.VKq(69,H,void 0===s.selectedTest)),t.xp6(1),t.hij(" ",t.xi3(55,49,t.lcZ(56,52,s.state.meanOfFinalGradesForCourse$),"1-3")," "),t.xp6(4),t.hij(" ",t.xi3(59,54,t.lcZ(60,57,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(3),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngIf",t.lcZ(63,59,s.state.canSetFinalGrade$))}}const ye=function(n,a,e,s){return{tests:n,studentGrades:a,filter:e,expanded:s}};let Ie=(()=>{class n{constructor(e,s){this.state=e,this.modalService=s}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}changeFilter(e){this.state.filter$.next(e)}saveGrade(e){this.state.saveGrade(e)}setAverageAsFinalGrade(){this.state.course$.pipe((0,G.q)(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe((0,c.U)(s=>!(!K(s)?.value||!e.finalGrade?.canGrade)))}publish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.publish(e))}unpublish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.unpublish(e))}trackStudentGrade(e){return e}trackGradeOf(e){return function(s,i){return`${e.Id}_${i.test.Id}`}}calculatePointsAverage(e){return this.safeAverage(e,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,A.dP)}safeAverage(e,s){try{return s(e).toString()}catch{return"\u2013"}}openModal(e){const s=this.modalService.open(Xt);return s.componentInstance.test=e,s}onCloseModal(e,s){e.result.then(i=>{i&&s()},()=>{})}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},features:[t._Bn([j])],decls:5,vars:14,consts:[[4,"erzLet"],[1,"table-responsive-wrapper"],[1,"table","table-hover","h-100"],[1,"h-100"],[1,"h-100","header-collapsible"],["colspan","3",1,"desktop","pt-3","sticky"],["type","button",1,"btn","desktop",3,"ngClass","click"],["type","button",1,"btn","ms-2","desktop",3,"ngClass","click"],["container","body","class","grade h-100 test-info-desktop",3,"ngClass",4,"ngFor","ngForOf"],["container","body","class","grade h-100 header-mobile test-info-mobile","colspan","3",3,"ngClass",4,"ngFor","ngForOf"],[1,"primary-column-width","sticky",3,"click"],[1,"d-flex"],[1,"column-title"],[1,"sort-direction","ms-1"],[1,"secondary-column-width","sticky","sticky-col-2","desktop",3,"ngClass","click"],[1,"secondary-column-width","border-end","sticky","sticky-col-3","desktop",3,"click"],["container","body","class","grade h-100",3,"ngClass",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"sticky"],[1,"d-flex","flex-column"],[1,"mobile","mean"],[1,"desktop","sticky","sticky","sticky-col-2",3,"ngClass"],[1,"desktop","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf"],["data-testId","apply-average-button","class","btn btn-primary m-3","type","button",3,"click",4,"ngIf"],["container","body",1,"grade","h-100","test-info-desktop",3,"ngClass"],[3,"test","expanded","toggle","publish","unpublish"],["container","body","colspan","3",1,"grade","h-100","header-mobile","test-info-mobile",3,"ngClass"],["container","body",1,"grade","h-100",3,"ngClass"],["class","column-title me-3 point-input-container",4,"ngIf"],[3,"click"],[1,"column-title","me-3","point-input-container"],[1,"primary-column-width","sticky","name"],[3,"routerLink"],[1,"grade","sticky","sticky-col-2",3,"ngClass"],[3,"options","valueId","gradeId","disabled","gradeIdSelected",4,"ngIf"],[4,"ngIf"],[1,"grade","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"options","valueId","gradeId","disabled","gradeIdSelected"],[1,"grade",3,"ngClass"],[3,"grade","gradeOptions","student","tabIndex","gradeChanged"],[3,"test"],["data-testId","apply-average-button","type","button",1,"btn","btn-primary","m-3",3,"click"]],template:function(s,i){1&s&&(t.YNc(0,Ae,64,71,"ng-container",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async")),2&s&&t.Q6J("erzLet",t.l5B(9,ye,t.lcZ(1,1,i.state.filteredTests$),t.lcZ(2,3,i.state.studentGrades$),t.lcZ(3,5,i.state.filter$),t.lcZ(4,7,i.state.expandedHeader$)))},dependencies:[u.mk,u.sg,u.O5,_.rH,M.e,ee,le,ue,pe,u.Ov,g.X$,D.fY],styles:[".filter-hover[_ngcontent-%COMP%]:hover{background-color:#dedede}table[_ngcontent-%COMP%] th.grade.selected[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade.selected[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:none!important}.desktop.selected[_ngcontent-%COMP%]{display:table-cell!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;vertical-align:top}.header-collapsible[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding:0 1rem}.mobile[_ngcontent-%COMP%]{display:block!important}.mean[_ngcontent-%COMP%]{color:#4e4e4ef2;font-size:.875rem;line-height:1}td.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:none!important}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1rem}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.average[_ngcontent-%COMP%]{max-width:18ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:0}.point-input-container[_ngcontent-%COMP%]{width:5em}@media (min-width: 576px){.table-responsive-wrapper[_ngcontent-%COMP%]{display:block;overflow-x:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-mobile[_ngcontent-%COMP%]{display:none!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%]{max-width:auto;overflow:visible}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;padding-top:.25rem;padding-bottom:.25rem;border-top:initial;min-width:100px;max-width:100px}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%]{min-width:300px;max-width:300px}.mobile[_ngcontent-%COMP%]{display:none!important}.primary-column-width[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:300px;max-width:300px}.secondary-column-width[_ngcontent-%COMP%]{min-width:100px;max-width:100px}table[_ngcontent-%COMP%] .sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}table[_ngcontent-%COMP%] .sticky.sticky-col-2[_ngcontent-%COMP%]{left:300px}table[_ngcontent-%COMP%] .sticky.sticky-col-3[_ngcontent-%COMP%]{left:452px}}"]})}return n})();function Oe(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"erz-select",7),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.testSelected(i))}),t.qZA(),t._UZ(2,"erz-test-edit-grades",8),t.BQk()}if(2&n){const e=t.oxw(2).erzLet;t.xp6(1),t.Q6J("options",e.testOptions)("value",e.selectedTestId)("allowEmpty",!1),t.xp6(1),t.Q6J("selectedTest",e.selectedTest)}}function Ge(n,a){if(1&n&&(t.TgZ(0,"a",9),t.ALo(1,"async"),t.TgZ(2,"i",10),t._uU(3,"arrow_right_alt"),t.qZA(),t.TgZ(4,"span",11),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&n){const e=t.oxw(3);t.s9C("href",t.lcZ(1,2,e.buildLinkToRatingOverview()),t.LSH),t.xp6(5),t.Oqu(t.lcZ(6,4,"tests.link-to-rating-overview"))}}function Pe(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"erz-tests-header",5),t.YNc(2,Oe,3,4,"ng-container",4),t.YNc(3,Ge,7,6,"a",6),t.ALo(4,"async"),t.BQk()),2&n){const e=t.oxw().erzLet,s=t.oxw(),i=t.MAs(8);t.xp6(1),t.Q6J("course",e.course),t.xp6(1),t.Q6J("ngIf",e.tests.length>0)("ngIfElse",i),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,4,s.state.canSetFinalGrade$))}}function $e(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Pe,5,6,"ng-container",4),t.ALo(2,"async"),t.BQk()),2&n){const e=t.oxw(),s=t.MAs(10);t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,e.state.loading$))("ngIfElse",s)}}function Le(n,a){1&n&&(t.TgZ(0,"p",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"tests.no-tests")))}function Me(n,a){1&n&&t._UZ(0,"erz-spinner")}const Se=function(n,a,e,s,i){return{course:n,tests:a,testOptions:e,selectedTestId:s,selectedTest:i}};let Ee=(()=>{class n{constructor(e,s,i){this.settings=e,this.state=s,this.translate=i,this.selectTest$=new $.x,this.testOptions$=this.state.tests$.pipe((0,c.U)(r=>[{Key:-1,Value:this.translate.instant("tests.grade")},...r.map(l=>({Key:l.Id,Value:l.Designation}))]),(0,L.x)()),this.selectedTestId$=(0,tt.T)(this.selectTest$,this.state.tests$.pipe((0,G.q)(1),(0,c.U)(r=>r[0]?.Id))).pipe((0,L.x)()),this.selectedTest$=this.selectedTestId$.pipe((0,T.w)(r=>this.state.tests$.pipe((0,c.U)(l=>l.find(d=>d.Id===r)))),(0,L.x)())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe((0,G.q)(1),(0,c.U)(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(b.L6),t.Y36(P),t.Y36(g.sK))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-list"]],decls:11,vars:17,consts:[[1,"erz-container"],[4,"erzLet"],["noTests",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"course"],["class","d-flex justify-content-end pe-3 border-top pt-3","data-testId","link-to-rating-overview",3,"href",4,"ngIf"],[1,"tests-dropdown",3,"options","value","allowEmpty","valueChange"],[3,"selectedTest"],["data-testId","link-to-rating-overview",1,"d-flex","justify-content-end","pe-3","border-top","pt-3",3,"href"],[1,"material-icons","fw-bold"],[1,"ps-1"],[1,"mt-3","px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,$e,3,4,"ng-container",1),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.YNc(7,Le,3,3,"ng-template",null,2,t.W1O),t.YNc(9,Me,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&s&&(t.xp6(1),t.Q6J("erzLet",t.qbA(11,Se,t.lcZ(2,1,i.state.course$),t.lcZ(3,3,i.state.tests$),t.lcZ(4,5,i.testOptions$),t.lcZ(5,7,i.selectedTestId$),t.lcZ(6,9,i.selectedTest$))))},dependencies:[u.O5,M.e,Q.O,Y.H,Kt,Ie,u.Ov,g.X$],styles:[".tests-dropdown[_ngcontent-%COMP%]{display:block;padding:1rem 0}@media (min-width: 576px){.tests-dropdown[_ngcontent-%COMP%]{display:none}}a.rating-overview[_ngcontent-%COMP%]{text-decoration:none}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}"]})}return n})();var lt=o(4716);let we=(()=>{class n{constructor(e){this.activeModal=e}get canDeleteTest(){return 0===(this.test?.Results?.filter(s=>null!==s.GradeId||null!==s.GradeValue||null!==s.Points)||[]).length}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-delete"]],inputs:{test:"test"},decls:13,vars:10,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"hidden","click"],[1,"px-2"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"],[1,"px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.TgZ(9,"button",5),t.NdJ("click",function(){return i.activeModal.close(i.canDeleteTest?i.test:null)}),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&s&&(t.xp6(2),t.hij(" ",t.lcZ(3,4,i.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),t.xp6(3),t.Q6J("hidden",!i.canDeleteTest),t.xp6(2),t.hij(" ",t.lcZ(8,6,"tests.dialog.no")," "),t.xp6(4),t.hij(" ",t.lcZ(12,8,i.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[g.X$]})}return n})();var ct=o(6869),Fe=o(902),Ue=o(3296),S=o(1257);function ke(n){return a=>{const e=Number(a.value);return e<=n?{greaterThan:{value:e,greaterThanValue:n}}:null}}function qe(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Ne(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function ze(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Re(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",32)(2,"div",33)(3,"div",17)(4,"label",34),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",35),t._UZ(8,"input",36),t.ALo(9,"async"),t.YNc(10,ze,3,4,"div",7),t.ALo(11,"async"),t.qZA()()(),t.TgZ(12,"div",33)(13,"div",17)(14,"label",37),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"div",35),t._UZ(18,"input",38),t.ALo(19,"async"),t.YNc(20,je,3,4,"div",7),t.ALo(21,"async"),t.qZA()()()(),t.TgZ(22,"div",39),t.pZz(),t.TgZ(23,"math")(24,"mi"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"mo"),t._uU(28,"="),t.qZA(),t.TgZ(29,"mfrac")(30,"mrow")(31,"mi"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mo"),t._uU(35,"\xd7"),t.qZA(),t.TgZ(36,"mn"),t._uU(37,"5"),t.qZA()(),t.TgZ(38,"mi"),t._uU(39),t.ALo(40,"translate"),t.qZA()(),t.TgZ(41,"mo"),t._uU(42,"+"),t.qZA(),t.TgZ(43,"mn"),t._uU(44,"1"),t.qZA()()(),t.BQk()),2&n){const e=t.oxw(3);let s,i;t.xp6(5),t.Oqu(t.lcZ(6,11,"tests.form.max-points")),t.xp6(3),t.ekj("is-invalid",(null==(s=t.lcZ(9,13,e.maxPointsErrors$))?null:s.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(11,15,e.maxPointsErrors$)),t.xp6(5),t.Oqu(t.lcZ(16,17,"tests.form.max-points-adjusted")),t.xp6(3),t.ekj("is-invalid",(null==(i=t.lcZ(19,19,e.maxPointsAdjustedErrors$))?null:i.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(21,21,e.maxPointsAdjustedErrors$)),t.xp6(5),t.hij(" ",t.lcZ(26,23,"tests.form.math.grade")," "),t.xp6(7),t.hij(" ",t.lcZ(33,25,"tests.form.math.points")," "),t.xp6(7),t.Oqu(t.lcZ(40,27,"tests.form.math.max-points"))}}function Qe(n,a){1&n&&(t.TgZ(0,"div",40)(1,"span",41),t._uU(2,"Loading..."),t.qZA()())}const Ye=function(n){return["/events",n,"tests"]};function De(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSubmit())}),t.TgZ(1,"div",3)(2,"div",4)(3,"label",5),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"input",6),t.ALo(7,"async"),t.ALo(8,"translate"),t.YNc(9,qe,3,4,"div",7),t.ALo(10,"async"),t.qZA(),t.TgZ(11,"div",8)(12,"label",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",10)(16,"span",11)(17,"i",12),t._uU(18,"calendar_today"),t.qZA()(),t.TgZ(19,"input",13,14),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(20);return t.KtG(i.toggle())}),t.ALo(21,"async"),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Ne,3,4,"div",7),t.ALo(24,"async"),t.qZA()()(),t.TgZ(25,"div",15)(26,"label",16),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",4)(30,"div",17)(31,"label",18),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"div",19),t._UZ(35,"input",20),t.ALo(36,"async"),t.YNc(37,Je,3,4,"div",7),t.ALo(38,"async"),t.qZA()()()(),t.TgZ(39,"div")(40,"label",16),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",21),t._UZ(44,"input",22),t.TgZ(45,"label",23),t._uU(46),t.ALo(47,"translate"),t.qZA()(),t.TgZ(48,"div",21),t._UZ(49,"input",24),t.TgZ(50,"label",25),t._uU(51),t.ALo(52,"translate"),t.qZA()(),t.YNc(53,Re,45,29,"ng-container",26),t.qZA(),t.TgZ(54,"div",27)(55,"button",28),t.ALo(56,"async"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"button",29),t._uU(60),t.ALo(61,"translate"),t.YNc(62,Qe,3,0,"div",30),t.qZA()()()}if(2&n){const e=t.oxw().erzLet,s=t.oxw();let i,r,l;t.Q6J("formGroup",e.formGroup),t.xp6(4),t.Oqu(t.lcZ(5,29,"tests.form.designation")),t.xp6(2),t.ekj("is-invalid",(null==(i=t.lcZ(7,31,s.designationErrors$))?null:i.length)>0),t.Q6J("placeholder",t.lcZ(8,33,"tests.form.designation-placeholder")),t.xp6(3),t.Q6J("ngForOf",t.lcZ(10,35,s.designationErrors$)),t.xp6(4),t.Oqu(t.lcZ(14,37,"tests.form.date")),t.xp6(3),t.Q6J("id",s.componentId),t.xp6(3),t.ekj("is-invalid",(null==(r=t.lcZ(21,39,s.dateErrors$))?null:r.length)>0),t.Q6J("placeholder",t.lcZ(22,41,"shared.date-select.default-placeholder")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(24,43,s.dateErrors$)),t.xp6(4),t.Oqu(t.lcZ(28,45,"tests.form.weight")),t.xp6(5),t.Oqu(t.lcZ(33,47,"tests.form.factor")),t.xp6(3),t.ekj("is-invalid",(null==(l=t.lcZ(36,49,s.weightErrors$))?null:l.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(38,51,s.weightErrors$)),t.xp6(4),t.Oqu(t.lcZ(42,53,"tests.form.grading-type")),t.xp6(3),t.Q6J("value",!1),t.xp6(2),t.Oqu(t.lcZ(47,55,"tests.form.grades")),t.xp6(3),t.Q6J("value",!0),t.xp6(2),t.Oqu(t.lcZ(52,57,"tests.form.points")),t.xp6(2),t.Q6J("ngIf",e.formGroup.get("isPointGrading").value),t.xp6(2),t.Q6J("disabled",s.saving)("routerLink",t.VKq(65,Ye,t.lcZ(56,59,s.courseId$))),t.xp6(2),t.hij(" ",t.lcZ(58,61,"tests.form.cancel")," "),t.xp6(2),t.Q6J("disabled",s.saving),t.xp6(1),t.hij(" ",t.lcZ(61,63,"tests.form.save")," "),t.xp6(2),t.Q6J("ngIf",s.saving)}}function He(n,a){if(1&n&&(t.ynx(0),t.YNc(1,De,63,67,"form",1),t.BQk()),2&n){const e=a.erzLet;t.xp6(1),t.Q6J("ngIf",e.formGroup)}}const Ke=function(n){return{formGroup:n}};let ut=(()=>{class n{constructor(e,s,i){this.fb=e,this.translate=s,this.testStateService=i,this.test=null,this.saving=!1,this.save=new t.vpe,this.componentId=(0,Fe.Z)("erz-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new x.X(!1),this.destroy$=new $.x,this.designationErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"designation"),this.dateErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),(0,S.ZX)((0,I.of)(this.formGroup),"isPointGrading").pipe((0,k.R)(this.destroy$)).subscribe(this.togglePointFieldsDisability.bind(this))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup.valid&&this.save.emit(this.formGroup.value)}createFormGroup(){return this.fb.group({designation:["",p.kI.required],date:[null,p.kI.required],weight:[1,p.kI.compose([p.kI.required,ke(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},p.kI.required],maxPointsAdjusted:[{value:null,disabled:!0},null]})}setInitialValues(e){this.formGroup.patchValue({designation:e.Designation,date:e.Date,weight:e.Weight,isPointGrading:e.IsPointGrading,maxPoints:e.MaxPoints,maxPointsAdjusted:e.MaxPointsAdjusted}),e.Results&&e.Results.length>0&&(this.formGroup.get("isPointGrading")?.disable(),this.formGroup.get("maxPoints")?.disable(),this.formGroup.get("maxPointsAdjusted")?.disable()),this.togglePointFieldsDisability()}togglePointFieldsDisability(){const e=this.formGroup.get("maxPoints"),s=this.formGroup.get("maxPointsAdjusted");this.formGroup.get("isPointGrading")?.value?(e?.enable(),s?.enable()):(e?.reset({value:this.test?.MaxPoints,disabled:!0}),s?.reset({value:this.test?.MaxPointsAdjusted,disabled:!0}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(p.QS),t.Y36(g.sK),t.Y36(P))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},features:[t._Bn([{provide:y.DO,useClass:y.s5},{provide:y.NG,useClass:Ue.n}])],decls:1,vars:3,consts:[[4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row","g-3","mb-3"],[1,"col-md-6"],["for","designation",1,"form-label"],["id","designation","name","designation","type","text","formControlName","designation","required","",1,"form-control",3,"placeholder"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"col-md-6","mb-3"],["for","date",1,"form-label"],[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["id","date","name","date","type","text","ngbDatepicker","","formControlName","date","required","",1,"form-control",3,"placeholder","click"],["dp","ngbDatepicker"],[1,"row","mb-3"],[1,"form-label"],[1,"row"],["for","factor",1,"form-label","col-3","col-sm-2"],[1,"col-9","col-sm-10"],["id","factor","name","factor","type","number","formControlName","weight","step","0.05","min","0","required","",1,"form-control"],[1,"form-check"],["type","radio","formControlName","isPointGrading","id","type-grades",1,"form-check-input",3,"value"],["for","type-grades",1,"form-check-label"],["type","radio","formControlName","isPointGrading","id","type-points",1,"form-check-input",3,"value"],["for","type-points",1,"form-check-label"],[4,"ngIf"],[1,"d-flex","justify-content-end","mt-4"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","routerLink"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"invalid-feedback"],[1,"row","ms-4","mb-3","g-3"],[1,"col-sm-6","col-md-4"],["for","max-points",1,"ms-2","col-4","col-form-label"],[1,"col-6"],["type","number","name","maxPoints","id","max-points","formControlName","maxPoints","step","0.01","min","0","max","999","required","",1,"form-control"],["for","max-points-adjusted",1,"ms-2","col-4","col-form-label"],["type","number","name","maxPointsAdjusted","id","max-points-adjusted","formControlName","maxPointsAdjusted","step","0.01","min","0","max","999",1,"form-control"],[1,"ms-4","ps-3","py-3"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&t.YNc(0,He,2,1,"ng-container",0),2&s&&t.Q6J("erzLet",t.VKq(1,Ke,i.formGroup))},dependencies:[u.sg,u.O5,p._Y,p.Fj,p.wV,p._,p.JJ,p.JL,p.Q7,p.qQ,p.Fd,p.sg,p.u,_.rH,y.J4,M.e,u.Ov,g.X$],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]})}return n})();const Be=function(n){return{test:n}};function Xe(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",4)(2,"h1"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"button",5),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().erzLet,r=t.oxw();return t.KtG(r.openDeleteModal(i.test))}),t.TgZ(6,"i",6),t._uU(7,"delete"),t.qZA()()(),t.TgZ(8,"erz-tests-edit-form",7),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.save(i))}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw().erzLet;t.xp6(3),t.hij(" ",t.xi3(4,3,"tests.edit-title",t.VKq(6,Be,e.test.Designation))," "),t.xp6(5),t.Q6J("test",e.test)("saving",e.saving)}}function Ve(n,a){1&n&&t._UZ(0,"erz-spinner")}function We(n,a){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,Xe,9,8,"ng-container",2),t.ALo(2,"async"),t.YNc(3,Ve,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&n){const e=t.MAs(4),s=t.oxw();t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,s.state.loading$))("ngIfElse",e)}}const tn=function(n,a,e){return{courseId:n,test:a,saving:e}};let en=(()=>{class n{constructor(e,s,i,r,l,d,m){this.state=e,this.courseService=s,this.route=i,this.toastService=r,this.translate=l,this.router=d,this.modalService=m,this.saving$=new x.X(!1),this.testId$=this.route.paramMap.pipe((0,c.U)(h=>Number(h.get("testId"))),(0,L.x)()),this.test$=(0,C.a)([this.state.tests$,this.testId$]).pipe((0,c.U)(([h,E])=>h.find(q=>q.Id===E)))}openDeleteModal(e){const s=this.modalService.open(we);s.componentInstance.test=e,s.result.then(i=>{i&&this.courseService.delete(e.CourseId,e.Id).subscribe(this.onDeleteSuccess.bind(this))},()=>{})}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;(0,C.a)([this.state.courseId$,this.testId$]).pipe((0,G.q)(1),(0,T.w)(([h,E])=>this.courseService.update(h,E,s,i,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}onDeleteSuccess(e){this.toastService.success(this.translate.instant("tests.form.delete-success")),this.state.deleteTest(e),this.navigateBack()}navigateBack(){this.state.courseId$.pipe((0,G.q)(1)).subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(U.s),t.Y36(_.gz),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[4,"ngIf","ngIfElse"],["loading",""],[1,"d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","btn-icon",3,"click"],[1,"material-icons"],[3,"test","saving","save"]],template:function(s,i){1&s&&(t.YNc(0,We,5,4,"div",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async")),2&s&&t.Q6J("erzLet",t.kEZ(7,tn,t.lcZ(1,1,i.state.courseId$),t.lcZ(2,3,i.test$),t.lcZ(3,5,i.saving$)))},dependencies:[u.O5,M.e,Q.O,ut,u.Ov,g.X$]})}return n})();function nn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-tests-edit-form",2),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.save(i))}),t.qZA()()}if(2&n){const e=a.erzLet;t.xp6(1),t.Q6J("saving",e.saving)}}const sn=function(n,a){return{courseId:n,saving:a}};let an=(()=>{class n{constructor(e,s,i,r,l){this.route=e,this.courseService=s,this.toastService=i,this.translate=r,this.router=l,this.saving$=new x.X(!1),this.courseId$=this.route.paramMap.pipe((0,c.U)(d=>Number(d.get("id"))),(0,L.x)())}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;this.courseId$.pipe((0,T.w)(h=>this.courseService.add(h,i,s,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}navigateBack(){this.courseId$.subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(_.gz),t.Y36(U.s),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-add"]],decls:6,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[3,"saving","save"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,nn,2,1,"div",0),t.ALo(4,"async"),t.ALo(5,"async")),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"tests.add-title")),t.xp6(2),t.Q6J("erzLet",t.WLB(8,sn,t.lcZ(4,4,i.courseId$),t.lcZ(5,6,i.saving$))))},dependencies:[M.e,ut,u.Ov,g.X$]})}return n})();var rn=o(1162),on=o(7163);function dn(n,a){1&n&&(t.TgZ(0,"div",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"events.rating")," "))}function ln(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"date"),t._UZ(3,"wbr"),t._uU(4),t.ALo(5,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("",t.xi3(2,2,e.dateFrom,"dd.MM.yyyy"),"\u2013"),t.xp6(3),t.Oqu(t.xi3(5,5,e.dateTo,"dd.MM.yyyy"))}}const cn=function(n){return[n,"tests"]};function un(n,a){if(1&n&&(t.TgZ(0,"a",19)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("routerLink",t.VKq(2,cn,e.id)),t.xp6(4),t.Oqu(e.evaluationText)}}function pn(n,a){if(1&n&&(t.TgZ(0,"a",22)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("href",e.evaluationLink,t.LSH),t.xp6(4),t.hij("",e.evaluationText," ")}}function gn(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,un,5,4,"a",17),t.YNc(2,pn,5,2,"a",18),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",!e.evaluationLink),t.xp6(1),t.Q6J("ngIf",e.evaluationLink)}}function _n(n,a){if(1&n&&(t.TgZ(0,"div",13)(1,"div",7)(2,"a",14),t._uU(3),t.qZA()(),t.TgZ(4,"div",8),t.YNc(5,ln,6,8,"span",15),t.qZA(),t.TgZ(6,"div",9),t._uU(7),t.TgZ(8,"span",16),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.YNc(11,gn,3,2,"div",10),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(4);t.xp6(2),t.Q6J("href",e.detailLink,t.LSH),t.xp6(1),t.Oqu(e.Designation),t.xp6(2),t.Q6J("ngIf",e.dateFrom&&e.dateTo),t.xp6(2),t.hij(" ",e.studentCount," "),t.xp6(2),t.Oqu(t.lcZ(10,6,1===e.studentCount?"events.registration":"events.registrations")),t.xp6(2),t.Q6J("ngIf",s.withRatings&&e.evaluationText)}}function mn(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",6)(2,"div",7),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",8),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",9),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,dn,3,3,"div",10),t.qZA(),t.YNc(12,_n,12,8,"div",11),t.BQk()),2&n){const e=t.oxw(2).erzLet,s=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"events.designation")),t.xp6(3),t.Oqu(t.lcZ(7,7,"events.date")),t.xp6(3),t.hij(" ",t.lcZ(10,9,"events.registrations")," "),t.xp6(2),t.Q6J("ngIf",s.withRatings),t.xp6(1),t.Q6J("ngForOf",e.events)}}function hn(n,a){1&n&&(t.TgZ(0,"p",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"events.no-events")))}function fn(n,a){if(1&n&&(t.ynx(0),t.YNc(1,mn,13,11,"ng-container",3),t.YNc(2,hn,3,3,"ng-template",null,5,t.W1O),t.BQk()),2&n){const e=t.MAs(3),s=t.oxw().erzLet;t.xp6(1),t.Q6J("ngIf",(null==s.events?null:s.events.length)>0)("ngIfElse",e)}}function vn(n,a){1&n&&t._UZ(0,"erz-spinner")}function xn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-resettable-input",2),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.state.search$.next(i))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.YNc(5,fn,4,2,"ng-container",3),t.ALo(6,"async"),t.YNc(7,vn,1,0,"ng-template",null,4,t.W1O),t.qZA()}if(2&n){const e=a.erzLet,s=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("value",t.lcZ(2,6,i.state.search$))("placeholder",t.lcZ(3,8,"events.search-by"))("label",t.lcZ(4,10,"events.search"))("disabled",!e.events),t.xp6(4),t.Q6J("ngIf",!1===t.lcZ(6,12,i.state.loading$))("ngIfElse",s)}}const Tn=function(n){return{events:n}};let pt=(()=>{class n{constructor(e,s){this.state=e,this.storage=s,this.withRatings=!0,this.state.roles$.next(this.storage.getPayload()?.roles)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(j),t.Y36(X.V))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-list"]],inputs:{withRatings:"withRatings"},decls:2,vars:5,consts:[["class","erz-container",4,"erzLet"],[1,"erz-container"],[1,"d-flex","search",3,"value","placeholder","label","disabled","valueChange"],[4,"ngIf","ngIfElse"],["loading",""],["noEvents",""],[1,"event-header"],[1,"designation"],[1,"date"],[1,"registrations"],["class","rating",4,"ngIf"],["class","event-entry",4,"ngFor","ngForOf"],[1,"rating"],[1,"event-entry"],[3,"href"],[4,"ngIf"],[1,"registrations-label"],["class","d-flex",3,"routerLink",4,"ngIf"],["class","d-flex",3,"href",4,"ngIf"],[1,"d-flex",3,"routerLink"],[1,"material-icons"],[1,"ps-1"],[1,"d-flex",3,"href"],[1,"mt-3"]],template:function(s,i){1&s&&(t.YNc(0,xn,9,14,"div",0),t.ALo(1,"async")),2&s&&t.Q6J("erzLet",t.VKq(3,Tn,t.lcZ(1,1,i.state.getEvents(i.withRatings))))},dependencies:[u.sg,u.O5,_.rH,M.e,Q.O,on.w,u.Ov,u.uU,g.X$],styles:['.search[_ngcontent-%COMP%]{max-width:500px}.event-header[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:2px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.event-entry[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:1px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.designation[_ngcontent-%COMP%]{grid-area:designation;padding-right:1rem}.date[_ngcontent-%COMP%]{grid-area:date;padding-right:1rem}.registrations[_ngcontent-%COMP%]{grid-area:registrations;padding-right:1rem}.rating[_ngcontent-%COMP%]{grid-area:rating}.rating[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.registrations-label[_ngcontent-%COMP%]{display:none}@media (max-width: 575.98px){.event-header[_ngcontent-%COMP%]{display:none}.registrations-label[_ngcontent-%COMP%]{display:inline}.designation[_ngcontent-%COMP%], .date[_ngcontent-%COMP%], .registrations[_ngcontent-%COMP%]{padding-right:0}.event-entry[_ngcontent-%COMP%]{grid-template-areas:"designation" "date" "registrations" "rating";grid-template-columns:1fr}}']})}return n})();const Cn=[{path:"",component:Ct,children:[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-tests"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.title")),t.xp6(2),t.Q6J("withRatings",!0))},dependencies:[pt,g.X$]})}return n})()},{path:"current",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-current"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.current.title")),t.xp6(2),t.Q6J("withRatings",!1))},dependencies:[pt,g.X$]})}return n})()},{path:":id",component:R,children:[{path:"tests",component:Ee}]},{path:":id/tests/:testId/edit",component:R,children:[{path:"",component:en}]},{path:":id/tests/add",component:R,children:[{path:"",component:an}]},{path:":id/tests",children:[rn.H]}]}];let bn=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({imports:[_.Bz.forChild(Cn),_.Bz]})}return n})();var Zn=o(8393);let An=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({providers:[Zn.o],imports:[N.m,bn]})}return n})()},1608:(gt,w,o)=>{o.d(w,{K:()=>T});var N=o(8658),_=o(7398),J=o(5619),x=o(3997),O=o(7081),C=o(8180),c=o(5879);let T=(()=>{class b{getSortingChar$(Z){return this.sorting$.pipe((0,_.U)(v=>v&&Z===v.key?v.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new J.X(null),this.sorting$=this.sortingSubject$.asObservable().pipe((0,x.x)(N.Z),(0,O.d)(1))}setSorting(Z){this.sortingSubject$.next(Z)}toggleSorting(Z){this.sorting$.pipe((0,C.q)(1)).subscribe(v=>{this.sortingSubject$.next({key:Z,ascending:!v||v.key!==Z||!v.ascending})})}static#t=this.\u0275fac=function(v){return new(v||b)};static#e=this.\u0275prov=c.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/232.js b/public/apps/webapp-schulverwaltung/232.js index 9142e721..d4c03cb8 100644 --- a/public/apps/webapp-schulverwaltung/232.js +++ b/public/apps/webapp-schulverwaltung/232.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[232],{2150:(V,h,s)=>{s.r(h),s.d(h,{MyGradesModule:()=>j});var g=s(6814),p=s(1523),y=s(7328),$=s(7081),d=s(7398),v=s(2572),m=s(4664),C=s(9315),G=s(4141),c=s(3942),t=s(5879),I=s(8173),z=s(3005),M=s(1074),L=s(3219),F=s(6016),Z=s(1760);let u=(()=>{class e{constructor(r,i,o,E,D,H,P){this.storageService=r,this.loadingService=i,this.coursesRestService=o,this.subscriptionRestService=E,this.reportsService=D,this.gradingScalesRestService=H,this.settings=P,this.studentId$=new y.t(1),this.loading$=this.loadingService.loading$,this.studentCourses$=this.loadCourses().pipe((0,$.d)(1)),this.studentCoursesSorted$=this.studentCourses$.pipe((0,d.U)(n=>n.slice().sort((a,b)=>a.Designation.localeCompare(b.Designation)))),this.studentCourseIds$=this.studentCourses$.pipe((0,d.U)(n=>n.flatMap(a=>a.Id))),this.idSubscriptions$=(0,v.a)([this.studentId$,this.studentCourseIds$]).pipe((0,m.w)(([n,a])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(n,a))),this.ids$=this.idSubscriptions$.pipe((0,d.U)(n=>n.map(a=>a.Id))),this.testReportUrl$=this.ids$.pipe((0,d.U)(n=>this.reportsService.getSubscriptionReportUrl(this.settings.testsBySubscriptionReportIdStudent,n))),this.tests$=this.studentCourses$.pipe((0,d.U)(n=>n.flatMap(a=>a.Tests).filter(c.Nf))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,d.U)(n=>[...n.map(a=>a.GradingScaleId)].filter(c.Nf).filter(c.Tw))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,d.U)(n=>n.flatMap(a=>a.GradingScaleId).filter(c.Nf).filter(c.Tw))),this.gradingScaleIds$=(0,v.a)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,d.U)(([n,a])=>n.concat(a).filter(c.Tw))),this.gradingScales$=this.gradingScaleIds$.pipe((0,m.w)(n=>(0,C.D)(n.map(a=>this.gradingScalesRestService.getGradingScale(a)))));const f=this.storageService.getPayload()?.id_person;f&&this.studentId$.next(Number(f))}loadCourses(){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForStudent())}static#t=this.\u0275fac=function(i){return new(i||e)(t.LFG(I.V),t.LFG(z.b),t.LFG(M.s),t.LFG(L.o),t.LFG(F.F),t.LFG(Z.R),t.LFG(G.L6))};static#e=this.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac})}return e})(),U=(()=>{class e{constructor(){}static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275cmp=t.Xpm({type:e,selectors:[["erz-my-grades"]],features:[t._Bn([u])],decls:1,vars:0,template:function(i,o){1&i&&t._UZ(0,"router-outlet")},dependencies:[p.lC]})}return e})();var T=s(8405),A=s(6567),R=s(59),x=s(5841),S=s(9515);let B=(()=>{class e{constructor(r){this.myGradesService=r}static#t=this.\u0275fac=function(i){return new(i||e)(t.Y36(u))};static#e=this.\u0275cmp=t.Xpm({type:e,selectors:[["erz-my-grades-header"]],decls:9,vars:6,consts:[[1,"d-flex","justify-content-between","header"],["target","_blank",1,"report","btn","btn-primary","btn-icon",3,"href"],[1,"material-icons"]],template:function(i,o){1&i&&(t.TgZ(0,"div",0)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div")(5,"a",1),t.ALo(6,"async"),t.TgZ(7,"i",2),t._uU(8,"description"),t.qZA()()()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"my-grades.header")),t.xp6(3),t.Q6J("href",t.lcZ(6,4,o.myGradesService.testReportUrl$),t.LSH))},dependencies:[g.Ov,S.X$],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}.report[_ngcontent-%COMP%]{margin-left:1rem}"]})}return e})();function w(e,l){if(1&e&&t._UZ(0,"erz-dossier-grades-view",4),2&e){const r=t.oxw().erzLet;t.Q6J("courses",r.courses)("studentId",r.studentId)("gradingScales",r.gradingScales)("isEditable",!1)}}function J(e,l){1&e&&(t.ynx(0),t._UZ(1,"erz-spinner"),t.BQk())}function O(e,l){if(1&e&&(t.TgZ(0,"div",1)(1,"h1"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"erz-my-grades-header"),t.YNc(5,w,1,4,"erz-dossier-grades-view",2),t.YNc(6,J,2,0,"ng-container",3),t.qZA()),2&e){const r=l.erzLet;t.xp6(2),t.Oqu(t.lcZ(3,3,"my-grades.title")),t.xp6(3),t.Q6J("ngIf",!r.loading),t.xp6(1),t.Q6J("ngIf",r.loading)}}const N=function(e,l,r,i){return{loading:e,studentId:l,courses:r,gradingScales:i}},Q=[{path:"",component:U,children:[{path:"",component:(()=>{class e{constructor(r){this.myGradesService=r}static#t=this.\u0275fac=function(i){return new(i||e)(t.Y36(u))};static#e=this.\u0275cmp=t.Xpm({type:e,selectors:[["erz-my-grades-show"]],features:[t._Bn([T.S])],decls:5,vars:14,consts:[["class","erz-container erz-container-limited erz-container-padding-y erz-container-padding-x-responsive",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y","erz-container-padding-x-responsive"],[3,"courses","studentId","gradingScales","isEditable",4,"ngIf"],[4,"ngIf"],[3,"courses","studentId","gradingScales","isEditable"]],template:function(i,o){1&i&&(t.YNc(0,O,7,5,"div",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async")),2&i&&t.Q6J("erzLet",t.l5B(9,N,t.lcZ(1,1,o.myGradesService.loading$),t.lcZ(2,3,o.myGradesService.studentId$),t.lcZ(3,5,o.myGradesService.studentCoursesSorted$),t.lcZ(4,7,o.myGradesService.gradingScales$)))},dependencies:[g.O5,A.e,R.O,x.d,B,g.Ov,S.X$]})}return e})()}]}];let Y=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.oAB({type:e});static#s=this.\u0275inj=t.cJS({imports:[p.Bz.forChild(Q),p.Bz]})}return e})();var X=s(6486);let j=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.oAB({type:e});static#s=this.\u0275inj=t.cJS({imports:[g.ez,Y,X.m]})}return e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[232],{2150:(V,h,s)=>{s.r(h),s.d(h,{MyGradesModule:()=>j});var u=s(6814),g=s(1523),y=s(7328),$=s(7081),d=s(7398),v=s(2572),m=s(4664),C=s(9315),G=s(4141),c=s(3942),t=s(5879),I=s(8173),M=s(3005),L=s(1074),z=s(3219),F=s(6016),Z=s(1760);let p=(()=>{class e{constructor(r,i,o,E,D,H,P){this.storageService=r,this.loadingService=i,this.coursesRestService=o,this.subscriptionRestService=E,this.reportsService=D,this.gradingScalesRestService=H,this.settings=P,this.studentId$=new y.t(1),this.loading$=this.loadingService.loading$,this.studentCourses$=this.loadCourses().pipe((0,$.d)(1)),this.studentCoursesSorted$=this.studentCourses$.pipe((0,d.U)(n=>n.slice().sort((a,b)=>a.Designation.localeCompare(b.Designation)))),this.studentCourseIds$=this.studentCourses$.pipe((0,d.U)(n=>n.flatMap(a=>a.Id))),this.idSubscriptions$=(0,v.a)([this.studentId$,this.studentCourseIds$]).pipe((0,m.w)(([n,a])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(n,a))),this.ids$=this.idSubscriptions$.pipe((0,d.U)(n=>n.map(a=>a.Id))),this.testReportUrl$=this.ids$.pipe((0,d.U)(n=>this.reportsService.getSubscriptionReportUrl(this.settings.testsBySubscriptionReportIdStudent,n))),this.tests$=this.studentCourses$.pipe((0,d.U)(n=>n.flatMap(a=>a.Tests).filter(c.Nf))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,d.U)(n=>[...n.map(a=>a.GradingScaleId)].filter(c.Nf).filter(c.Tw))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,d.U)(n=>n.flatMap(a=>a.GradingScaleId).filter(c.Nf).filter(c.Tw))),this.gradingScaleIds$=(0,v.a)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,d.U)(([n,a])=>n.concat(a).filter(c.Tw))),this.gradingScales$=this.gradingScaleIds$.pipe((0,m.w)(n=>(0,C.D)(n.map(a=>this.gradingScalesRestService.getGradingScale(a)))));const f=this.storageService.getPayload()?.id_person;f&&this.studentId$.next(Number(f))}loadCourses(){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForStudent())}static#t=this.\u0275fac=function(i){return new(i||e)(t.LFG(I.V),t.LFG(M.b),t.LFG(L.s),t.LFG(z.o),t.LFG(F.F),t.LFG(Z.R),t.LFG(G.L6))};static#e=this.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac})}return e})(),U=(()=>{class e{constructor(){}static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275cmp=t.Xpm({type:e,selectors:[["erz-my-grades"]],features:[t._Bn([p])],decls:1,vars:0,template:function(i,o){1&i&&t._UZ(0,"router-outlet")},dependencies:[g.lC]})}return e})();var T=s(8405),A=s(6567),R=s(59),x=s(5841),S=s(9515);let B=(()=>{class e{constructor(r){this.myGradesService=r}static#t=this.\u0275fac=function(i){return new(i||e)(t.Y36(p))};static#e=this.\u0275cmp=t.Xpm({type:e,selectors:[["erz-my-grades-header"]],decls:9,vars:6,consts:[[1,"d-flex","justify-content-between","header"],["target","_blank",1,"report","btn","btn-primary","btn-icon",3,"href"],[1,"material-icons"]],template:function(i,o){1&i&&(t.TgZ(0,"div",0)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div")(5,"a",1),t.ALo(6,"async"),t.TgZ(7,"i",2),t._uU(8,"description"),t.qZA()()()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"my-grades.header")),t.xp6(3),t.Q6J("href",t.lcZ(6,4,o.myGradesService.testReportUrl$),t.LSH))},dependencies:[u.Ov,S.X$],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}.report[_ngcontent-%COMP%]{margin-left:1rem}"]})}return e})();function w(e,l){if(1&e&&t._UZ(0,"erz-dossier-grades-view",4),2&e){const r=t.oxw().erzLet;t.Q6J("courses",r.courses)("studentId",r.studentId)("gradingScales",r.gradingScales)("isEditable",!1)}}function J(e,l){1&e&&(t.ynx(0),t._UZ(1,"erz-spinner"),t.BQk())}function O(e,l){if(1&e&&(t.TgZ(0,"div",1)(1,"h1"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"erz-my-grades-header"),t.YNc(5,w,1,4,"erz-dossier-grades-view",2),t.YNc(6,J,2,0,"ng-container",3),t.qZA()),2&e){const r=l.erzLet;t.xp6(2),t.Oqu(t.lcZ(3,3,"my-grades.title")),t.xp6(3),t.Q6J("ngIf",!r.loading),t.xp6(1),t.Q6J("ngIf",r.loading)}}const N=function(e,l,r,i){return{loading:e,studentId:l,courses:r,gradingScales:i}},Q=[{path:"",component:U,children:[{path:"",component:(()=>{class e{constructor(r){this.myGradesService=r}static#t=this.\u0275fac=function(i){return new(i||e)(t.Y36(p))};static#e=this.\u0275cmp=t.Xpm({type:e,selectors:[["erz-my-grades-show"]],features:[t._Bn([T.S])],decls:5,vars:14,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[3,"courses","studentId","gradingScales","isEditable",4,"ngIf"],[4,"ngIf"],[3,"courses","studentId","gradingScales","isEditable"]],template:function(i,o){1&i&&(t.YNc(0,O,7,5,"div",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async")),2&i&&t.Q6J("erzLet",t.l5B(9,N,t.lcZ(1,1,o.myGradesService.loading$),t.lcZ(2,3,o.myGradesService.studentId$),t.lcZ(3,5,o.myGradesService.studentCoursesSorted$),t.lcZ(4,7,o.myGradesService.gradingScales$)))},dependencies:[u.O5,A.e,R.O,x.d,B,u.Ov,S.X$]})}return e})()}]}];let Y=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.oAB({type:e});static#s=this.\u0275inj=t.cJS({imports:[g.Bz.forChild(Q),g.Bz]})}return e})();var X=s(6486);let j=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.oAB({type:e});static#s=this.\u0275inj=t.cJS({imports:[u.ez,Y,X.m]})}return e})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/269.js b/public/apps/webapp-schulverwaltung/269.js index a7019dc7..83b69ab5 100644 --- a/public/apps/webapp-schulverwaltung/269.js +++ b/public/apps/webapp-schulverwaltung/269.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[269],{7269:(F,m,n)=>{n.r(m),n.d(m,{MySettingsModule:()=>q});var y=n(6486),p=n(1523),t=n(5879),h=n(2096),A=n(3019),M=n(5619),b=n(8645),d=n(7398),S=n(7081),v=n(4664),N=n(3997),x=n(2460),$=n(836),T=n(9773),Z=n(4716),z=n(7938),l=n(6223),L=n(6869),C=n(9515),O=n(2194),G=n(4141),U=n(6031),J=n(8173);let R=(()=>{class s{constructor(i,e){this.settings=i,this.storage=e,this.currentRoles=null}getNotificationTypes(){return this.getNotificationTypeKeys().map(i=>{if(!(i in this.settings.notificationTypes))throw new Error(`Key '${i}' is missing in 'notificationTypes' setting`);return{key:i,text:this.settings.notificationTypes[i]}})}getNotificationTypeKeys(){return(0,O.Z)(this.settings.notificationTypesAssignments.reduce((i,{roles:e,types:o})=>this.hasAnyRole(e)?[...i,...o]:i,[]))}hasAnyRole(i){return null===this.currentRoles&&(this.currentRoles=(0,U.F)(this.storage.getPayload()?.roles)),this.currentRoles.some(e=>i.includes(e))}static#t=this.\u0275fac=function(e){return new(e||s)(t.LFG(G.L6),t.LFG(J.V))};static#i=this.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var g=n(6814),I=n(6567),Y=n(59),Q=n(1703);function j(s,a){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&s){const i=a.$implicit;t.xp6(1),t.hij(" ",i," ")}}function B(s,a){if(1&s&&(t.TgZ(0,"div",4),t.YNc(1,j,2,1,"div",5),t.qZA()),2&s){const i=t.oxw();t.xp6(1),t.Q6J("ngForOf",i.descriptionLines)}}let w=(()=>{class s{constructor(i){this.cd=i,this.id="",this.label="",this.description=null,this.disabled=!1,this.onChange=e=>{},this.onTouched=()=>{},this._value=!1}get value(){return this._value}set value(i){this._value=i,this.onChange(i)}get descriptionLines(){return this.description?this.description.split("\n"):[]}writeValue(i){this._value=i}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i,this.cd.markForCheck()}static#t=this.\u0275fac=function(e){return new(e||s)(t.Y36(t.sBO))};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings-notifications-toggle"]],inputs:{id:"id",label:"label",description:"description",disabled:"disabled"},features:[t._Bn([{provide:l.JU,useExisting:(0,t.Gpc)(()=>s),multi:!0}])],decls:5,vars:6,consts:[[1,"d-flex","align-items-center"],[1,"flex-fill"],[3,"id","value","disabled","valueChange"],["class","form-text",4,"ngIf"],[1,"form-text"],[4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2),t.qZA(),t.TgZ(3,"erz-switch",2),t.NdJ("valueChange",function(u){return o.value=u}),t.qZA()(),t.YNc(4,B,2,1,"div",3)),2&e&&(t.xp6(1),t.uIk("for",o.id),t.xp6(1),t.hij(" ",o.label," "),t.xp6(1),t.Q6J("id",o.id)("value",o.value)("disabled",o.disabled),t.xp6(1),t.Q6J("ngIf",o.description))},dependencies:[g.sg,g.O5,Q.q],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return s})();function E(s,a){1&s&&(t.TgZ(0,"div",6),t._UZ(1,"erz-spinner",7),t.qZA())}function D(s,a){if(1&s&&(t._UZ(0,"erz-my-settings-notifications-toggle",10),t.ALo(1,"async"),t.ALo(2,"async")),2&s){const i=a.$implicit;t.ekj("mt-4",a.index>0),t.Q6J("id","notification-channels-"+i.key)("label",t.lcZ(1,6,i.label))("description",t.lcZ(2,8,i.description))("formControlName",i.key)}}function P(s,a){if(1&s&&(t.TgZ(0,"form",8),t.YNc(1,D,3,10,"erz-my-settings-notifications-toggle",9),t.qZA()),2&s){const i=t.oxw().erzLet,e=t.oxw();t.Q6J("formGroup",i.channelsFormGroup),t.xp6(1),t.Q6J("ngForOf",e.channelsSettings)}}function X(s,a){if(1&s&&(t._UZ(0,"erz-my-settings-notifications-toggle",10),t.ALo(1,"async"),t.ALo(2,"async")),2&s){const i=a.$implicit;t.ekj("mt-4",a.index>0),t.Q6J("id","notification-types-"+i.key)("label",t.lcZ(1,6,i.label))("description",t.lcZ(2,8,i.description))("formControlName",i.key)}}function V(s,a){if(1&s&&(t.TgZ(0,"form",8),t.YNc(1,X,3,10,"erz-my-settings-notifications-toggle",9),t.qZA()),2&s){const i=t.oxw().erzLet,e=t.oxw();t.Q6J("formGroup",i.typesFormGroup),t.xp6(1),t.Q6J("ngForOf",e.typesSettings)}}function K(s,a){if(1&s&&(t.TgZ(0,"div",1)(1,"h2",2)(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,E,2,0,"div",3),t.ALo(6,"async"),t.qZA(),t.YNc(7,P,2,2,"form",4),t.TgZ(8,"p",5),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"hr"),t.YNc(12,V,2,2,"form",4),t.qZA()),2&s){const i=a.erzLet,e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"my-settings.notifications.title")),t.xp6(2),t.Q6J("ngIf",t.lcZ(6,7,e.saving$)),t.xp6(2),t.Q6J("ngIf",i.channelsFormGroup),t.xp6(2),t.hij(" ",t.lcZ(10,9,"my-settings.notifications.privacy-hint")," "),t.xp6(3),t.Q6J("ngIf",i.typesFormGroup)}}const W=function(s,a){return{channelsFormGroup:s,typesFormGroup:a}};let H=(()=>{class s{constructor(i,e,o,c,u){this.userSettings=i,this.formBuilder=e,this.toastService=o,this.translate=c,this.notificationTypes=u,this.channelsSettings=[{key:"gui",label:this.translate.get("my-settings.notifications.gui")},{key:"mail",label:this.translate.get("my-settings.notifications.mail")},{key:"phoneMobile",label:this.translate.get("my-settings.notifications.phoneMobile")}],this.typesSettings=this.notificationTypes.getNotificationTypes().map(r=>{const{label:f,description:tt}="fr-CH"===this.translate.currentLang?r.text.fr:r.text.de;return{key:r.key,label:(0,h.of)(f),description:(0,h.of)(tt)}}),this.channelsValue$=this.userSettings.getNotificationChannels(),this.typesValue$=this.userSettings.getNotificationTypesInactive().pipe((0,d.U)(this.typesArrayToRecord.bind(this))),this.channelsFormGroup$=this.channelsValue$.pipe((0,d.U)(r=>this.createFormGroup(this.channelsSettings,r)),(0,S.d)(1)),this.allChannelsInactive$=(0,A.T)(this.channelsValue$,this.channelsFormGroup$.pipe((0,v.w)(r=>r.valueChanges))).pipe((0,d.U)(r=>Object.values(r).every(f=>!f)),(0,N.x)()),this.typesFormGroup$=this.typesValue$.pipe((0,x.M)(this.allChannelsInactive$),(0,d.U)(([r,f])=>this.createFormGroup(this.typesSettings,r,!0,f)),(0,S.d)(1)),this.saving$=new M.X(!1),this.destroy$=new b.x}ngOnInit(){this.userSettings.refetch(),this.allChannelsInactive$.pipe((0,$.T)(1),(0,x.M)(this.typesFormGroup$),(0,T.R)(this.destroy$)).subscribe(([i,e])=>{Object.values(e.controls).forEach(o=>i?o.disable():o.enable())}),this.channelsFormGroup$.pipe((0,T.R)(this.destroy$),(0,v.w)(i=>i.valueChanges)).subscribe(this.saveChannels.bind(this)),this.typesFormGroup$.pipe((0,T.R)(this.destroy$),(0,v.w)(i=>i.valueChanges)).subscribe(this.saveTypes.bind(this))}ngOnDestroy(){this.destroy$.next()}createFormGroup(i,e,o=!1,c=!1){return this.formBuilder.group(i.reduce((u,{key:r})=>({...u,[r]:[{value:e[r]??o,disabled:c}]}),{}))}saveChannels(i){this.saving$.next(!0),this.userSettings.saveNotificationChannels(i).pipe((0,Z.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}saveTypes(i){this.saving$.next(!0),this.userSettings.saveNotificationTypesInactive(this.typesRecordToArray(i)).pipe((0,Z.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-settings.notifications.save-success"))}typesArrayToRecord(i){return this.typesSettings.reduce((o,{key:c})=>({...o,[c]:!i.includes(c)}),{})}typesRecordToArray(i){return Object.keys(i).reduce((o,c)=>i[c]?o:[...o,c],[])}static#t=this.\u0275fac=function(e){return new(e||s)(t.Y36(z.s),t.Y36(l.QS),t.Y36(L.k),t.Y36(C.sK),t.Y36(R))};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings-notifications"]],decls:3,vars:8,consts:[["class","pb-4",4,"erzLet"],[1,"pb-4"],[1,"m-0","pb-3","d-flex","align-items-stretch"],["class","position-relative",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"mt-4","form-text"],[1,"position-relative"],[1,"position-absolute","inline","small","d-inline-block","ms-2"],[3,"formGroup"],[3,"id","label","description","formControlName","mt-4",4,"ngFor","ngForOf"],[3,"id","label","description","formControlName"]],template:function(e,o){1&e&&(t.YNc(0,K,13,11,"div",0),t.ALo(1,"async"),t.ALo(2,"async")),2&e&&t.Q6J("erzLet",t.WLB(5,W,t.lcZ(1,1,o.channelsFormGroup$),t.lcZ(2,3,o.typesFormGroup$)))},dependencies:[g.sg,g.O5,l._Y,l.JJ,l.JL,l.sg,l.u,I.e,Y.O,w,g.Ov,C.X$],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important}"],changeDetection:0})}return s})();const k=[{path:"",component:(()=>{class s{constructor(){}static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},dependencies:[p.lC],changeDetection:0})}return s})(),children:[{path:"",component:(()=>{class s{static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings-show"]],decls:5,vars:3,consts:[[1,"erz-container","erz-container-limited","erz-container-padding-y"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h1"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"erz-my-settings-notifications"),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"my-settings.title")))},dependencies:[H,C.X$]})}return s})()}]}];let _=(()=>{class s{static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275mod=t.oAB({type:s});static#s=this.\u0275inj=t.cJS({imports:[p.Bz.forChild(k),p.Bz]})}return s})(),q=(()=>{class s{static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275mod=t.oAB({type:s});static#s=this.\u0275inj=t.cJS({imports:[y.m,_]})}return s})()},2194:(F,m,n)=>{n.d(m,{Z:()=>t});var y=n(9473);const t=function p(h){return h&&h.length?(0,y.Z)(h):[]}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[269],{7269:(F,m,n)=>{n.r(m),n.d(m,{MySettingsModule:()=>q});var y=n(6486),p=n(1523),t=n(5879),h=n(2096),A=n(3019),M=n(5619),b=n(8645),d=n(7398),S=n(7081),v=n(4664),N=n(3997),x=n(2460),$=n(836),T=n(9773),Z=n(4716),L=n(7938),l=n(6223),z=n(6869),C=n(9515),O=n(2194),G=n(4141),U=n(6031),J=n(8173);let R=(()=>{class s{constructor(i,e){this.settings=i,this.storage=e,this.currentRoles=null}getNotificationTypes(){return this.getNotificationTypeKeys().map(i=>{if(!(i in this.settings.notificationTypes))throw new Error(`Key '${i}' is missing in 'notificationTypes' setting`);return{key:i,text:this.settings.notificationTypes[i]}})}getNotificationTypeKeys(){return(0,O.Z)(this.settings.notificationTypesAssignments.reduce((i,{roles:e,types:o})=>this.hasAnyRole(e)?[...i,...o]:i,[]))}hasAnyRole(i){return null===this.currentRoles&&(this.currentRoles=(0,U.F)(this.storage.getPayload()?.roles)),this.currentRoles.some(e=>i.includes(e))}static#t=this.\u0275fac=function(e){return new(e||s)(t.LFG(G.L6),t.LFG(J.V))};static#i=this.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var g=n(6814),I=n(6567),Y=n(59),Q=n(1703);function j(s,a){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&s){const i=a.$implicit;t.xp6(1),t.hij(" ",i," ")}}function B(s,a){if(1&s&&(t.TgZ(0,"div",4),t.YNc(1,j,2,1,"div",5),t.qZA()),2&s){const i=t.oxw();t.xp6(1),t.Q6J("ngForOf",i.descriptionLines)}}let w=(()=>{class s{constructor(i){this.cd=i,this.id="",this.label="",this.description=null,this.disabled=!1,this.onChange=e=>{},this.onTouched=()=>{},this._value=!1}get value(){return this._value}set value(i){this._value=i,this.onChange(i)}get descriptionLines(){return this.description?this.description.split("\n"):[]}writeValue(i){this._value=i}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i,this.cd.markForCheck()}static#t=this.\u0275fac=function(e){return new(e||s)(t.Y36(t.sBO))};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings-notifications-toggle"]],inputs:{id:"id",label:"label",description:"description",disabled:"disabled"},features:[t._Bn([{provide:l.JU,useExisting:(0,t.Gpc)(()=>s),multi:!0}])],decls:5,vars:6,consts:[[1,"d-flex","align-items-center"],[1,"flex-fill"],[3,"id","value","disabled","valueChange"],["class","form-text",4,"ngIf"],[1,"form-text"],[4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"label",1),t._uU(2),t.qZA(),t.TgZ(3,"erz-switch",2),t.NdJ("valueChange",function(u){return o.value=u}),t.qZA()(),t.YNc(4,B,2,1,"div",3)),2&e&&(t.xp6(1),t.uIk("for",o.id),t.xp6(1),t.hij(" ",o.label," "),t.xp6(1),t.Q6J("id",o.id)("value",o.value)("disabled",o.disabled),t.xp6(1),t.Q6J("ngIf",o.description))},dependencies:[g.sg,g.O5,Q.q],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return s})();function E(s,a){1&s&&(t.TgZ(0,"div",6),t._UZ(1,"erz-spinner",7),t.qZA())}function D(s,a){if(1&s&&(t._UZ(0,"erz-my-settings-notifications-toggle",10),t.ALo(1,"async"),t.ALo(2,"async")),2&s){const i=a.$implicit;t.ekj("mt-4",a.index>0),t.Q6J("id","notification-channels-"+i.key)("label",t.lcZ(1,6,i.label))("description",t.lcZ(2,8,i.description))("formControlName",i.key)}}function P(s,a){if(1&s&&(t.TgZ(0,"form",8),t.YNc(1,D,3,10,"erz-my-settings-notifications-toggle",9),t.qZA()),2&s){const i=t.oxw().erzLet,e=t.oxw();t.Q6J("formGroup",i.channelsFormGroup),t.xp6(1),t.Q6J("ngForOf",e.channelsSettings)}}function X(s,a){if(1&s&&(t._UZ(0,"erz-my-settings-notifications-toggle",10),t.ALo(1,"async"),t.ALo(2,"async")),2&s){const i=a.$implicit;t.ekj("mt-4",a.index>0),t.Q6J("id","notification-types-"+i.key)("label",t.lcZ(1,6,i.label))("description",t.lcZ(2,8,i.description))("formControlName",i.key)}}function V(s,a){if(1&s&&(t.TgZ(0,"form",8),t.YNc(1,X,3,10,"erz-my-settings-notifications-toggle",9),t.qZA()),2&s){const i=t.oxw().erzLet,e=t.oxw();t.Q6J("formGroup",i.typesFormGroup),t.xp6(1),t.Q6J("ngForOf",e.typesSettings)}}function K(s,a){if(1&s&&(t.TgZ(0,"div",1)(1,"h2",2)(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,E,2,0,"div",3),t.ALo(6,"async"),t.qZA(),t.YNc(7,P,2,2,"form",4),t.TgZ(8,"p",5),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"hr"),t.YNc(12,V,2,2,"form",4),t.qZA()),2&s){const i=a.erzLet,e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"my-settings.notifications.title")),t.xp6(2),t.Q6J("ngIf",t.lcZ(6,7,e.saving$)),t.xp6(2),t.Q6J("ngIf",i.channelsFormGroup),t.xp6(2),t.hij(" ",t.lcZ(10,9,"my-settings.notifications.privacy-hint")," "),t.xp6(3),t.Q6J("ngIf",i.typesFormGroup)}}const W=function(s,a){return{channelsFormGroup:s,typesFormGroup:a}};let H=(()=>{class s{constructor(i,e,o,c,u){this.userSettings=i,this.formBuilder=e,this.toastService=o,this.translate=c,this.notificationTypes=u,this.channelsSettings=[{key:"gui",label:this.translate.get("my-settings.notifications.gui")},{key:"mail",label:this.translate.get("my-settings.notifications.mail")},{key:"phoneMobile",label:this.translate.get("my-settings.notifications.phoneMobile")}],this.typesSettings=this.notificationTypes.getNotificationTypes().map(r=>{const{label:f,description:tt}="fr-CH"===this.translate.currentLang?r.text.fr:r.text.de;return{key:r.key,label:(0,h.of)(f),description:(0,h.of)(tt)}}),this.channelsValue$=this.userSettings.getNotificationChannels(),this.typesValue$=this.userSettings.getNotificationTypesInactive().pipe((0,d.U)(this.typesArrayToRecord.bind(this))),this.channelsFormGroup$=this.channelsValue$.pipe((0,d.U)(r=>this.createFormGroup(this.channelsSettings,r)),(0,S.d)(1)),this.allChannelsInactive$=(0,A.T)(this.channelsValue$,this.channelsFormGroup$.pipe((0,v.w)(r=>r.valueChanges))).pipe((0,d.U)(r=>Object.values(r).every(f=>!f)),(0,N.x)()),this.typesFormGroup$=this.typesValue$.pipe((0,x.M)(this.allChannelsInactive$),(0,d.U)(([r,f])=>this.createFormGroup(this.typesSettings,r,!0,f)),(0,S.d)(1)),this.saving$=new M.X(!1),this.destroy$=new b.x}ngOnInit(){this.userSettings.refetch(),this.allChannelsInactive$.pipe((0,$.T)(1),(0,x.M)(this.typesFormGroup$),(0,T.R)(this.destroy$)).subscribe(([i,e])=>{Object.values(e.controls).forEach(o=>i?o.disable():o.enable())}),this.channelsFormGroup$.pipe((0,T.R)(this.destroy$),(0,v.w)(i=>i.valueChanges)).subscribe(this.saveChannels.bind(this)),this.typesFormGroup$.pipe((0,T.R)(this.destroy$),(0,v.w)(i=>i.valueChanges)).subscribe(this.saveTypes.bind(this))}ngOnDestroy(){this.destroy$.next()}createFormGroup(i,e,o=!1,c=!1){return this.formBuilder.group(i.reduce((u,{key:r})=>({...u,[r]:[{value:e[r]??o,disabled:c}]}),{}))}saveChannels(i){this.saving$.next(!0),this.userSettings.saveNotificationChannels(i).pipe((0,Z.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}saveTypes(i){this.saving$.next(!0),this.userSettings.saveNotificationTypesInactive(this.typesRecordToArray(i)).pipe((0,Z.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-settings.notifications.save-success"))}typesArrayToRecord(i){return this.typesSettings.reduce((o,{key:c})=>({...o,[c]:!i.includes(c)}),{})}typesRecordToArray(i){return Object.keys(i).reduce((o,c)=>i[c]?o:[...o,c],[])}static#t=this.\u0275fac=function(e){return new(e||s)(t.Y36(L.s),t.Y36(l.QS),t.Y36(z.k),t.Y36(C.sK),t.Y36(R))};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings-notifications"]],decls:3,vars:8,consts:[["class","pb-4",4,"erzLet"],[1,"pb-4"],[1,"m-0","pb-3","d-flex","align-items-stretch"],["class","position-relative",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"mt-4","form-text"],[1,"position-relative"],[1,"position-absolute","inline","small","d-inline-block","ms-2"],[3,"formGroup"],[3,"id","label","description","formControlName","mt-4",4,"ngFor","ngForOf"],[3,"id","label","description","formControlName"]],template:function(e,o){1&e&&(t.YNc(0,K,13,11,"div",0),t.ALo(1,"async"),t.ALo(2,"async")),2&e&&t.Q6J("erzLet",t.WLB(5,W,t.lcZ(1,1,o.channelsFormGroup$),t.lcZ(2,3,o.typesFormGroup$)))},dependencies:[g.sg,g.O5,l._Y,l.JJ,l.JL,l.sg,l.u,I.e,Y.O,w,g.Ov,C.X$],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important}"],changeDetection:0})}return s})();const k=[{path:"",component:(()=>{class s{constructor(){}static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},dependencies:[p.lC],changeDetection:0})}return s})(),children:[{path:"",component:(()=>{class s{static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275cmp=t.Xpm({type:s,selectors:[["erz-my-settings-show"]],decls:5,vars:3,consts:[[1,"erz-container","erz-container-limited"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h1"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"erz-my-settings-notifications"),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"my-settings.title")))},dependencies:[H,C.X$]})}return s})()}]}];let _=(()=>{class s{static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275mod=t.oAB({type:s});static#s=this.\u0275inj=t.cJS({imports:[p.Bz.forChild(k),p.Bz]})}return s})(),q=(()=>{class s{static#t=this.\u0275fac=function(e){return new(e||s)};static#i=this.\u0275mod=t.oAB({type:s});static#s=this.\u0275inj=t.cJS({imports:[y.m,_]})}return s})()},2194:(F,m,n)=>{n.d(m,{Z:()=>t});var y=n(9473);const t=function p(h){return h&&h.length?(0,y.Z)(h):[]}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/373.js b/public/apps/webapp-schulverwaltung/373.js index 045294b8..33d81c23 100644 --- a/public/apps/webapp-schulverwaltung/373.js +++ b/public/apps/webapp-schulverwaltung/373.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[373],{3373:(Ze,R,r)=>{r.r(R),r.d(R,{PresenceControlModule:()=>mn});var I=r(6486),L=r(1523),K=r(1162),O=r(5619),_=r(2572),A=r(9315),l=r(7398),P=r(8180),v=r(4664),$=r(1389),w=r(1342),D=r(6561),e=r(5879);let N=(()=>{class s extends D.z{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=e.n5z(s)))(o||s)}}();static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();function W(s,c){return[...s].sort(function V(s){return(c,t)=>{switch(s.primarySortKey){case"name":{const n=c.name.localeCompare(t.name);return s.ascending?-1*n:n}case"group":{const n=(c.detail.Value||"").localeCompare(t.detail.Value||"");return s.ascending?-1*n:n}}}}(c))}function X(s,c){return s.map(t=>function b(s,c){return{id:s.IdPerson,name:c.find(t=>t.StudentRef.Id===s.IdPerson)?.StudentFullName||"",group:s.Value,detail:s}}(t,c))}function g(s,c){return s.find(t=>t.VssId===c.subscriptionDetailGroupId)}var d=r(253),m=r(9515),f=r(6814),x=r(6223);function we(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","group-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","group-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}var J=function(s){return s.Select="select",s.Assign="assign",s}(J||{});let Ue=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.groupOptions=[]}ngOnInit(){this.title=`presence-control.groups.${this.dialogMode}.title`;const t=this.createEmtpyOption();this.groupOptions=this.createGroupOptions(this.subscriptionDetailsDefinitions),this.groupOptions.unshift(t),this.selected=this.groupOptions.find(n=>n.id===this.group)||t}createEmtpyOption(){return{id:null,label:this.translate.instant(this.dialogMode===J.Select?"presence-control.groups.all":"presence-control.groups.none")}}createGroupOptions(t){return t.DropdownItems?t.DropdownItems.map(n=>({id:n.Key,label:`${this.translate.instant("presence-control.groups.group")} ${n.Value}`})):[]}getSelectedGroup(){return this.selected}onSelectionChange(t){this.selected=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group-dialog"]],inputs:{dialogMode:"dialogMode",subscriptionDetailsDefinitions:"subscriptionDetailsDefinitions",group:"group"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","groups",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,we,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedGroup())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,o.title)," "),e.xp6(3),e.Q6J("ngForOf",o.groupOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.groups.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.groups.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$]})}return s})();var De=r(9189),Ee=r(5301),ee=r(8658),te=r(2194),M=r(8645),B=r(3019),E=r(2096),Fe=r(4825),ne=r(3997),y=r(7081),ge=r(836),S=r(9773),se=r(2181),U=r(4141),Ge=r(6191),he=r(4067),oe=r(8484);function Ne(s){return{Id:s?s.Id:null,HRef:null}}var me=r(6747);function ie(s){return c=>c.reduce((t,n)=>t+(n.presenceCategory===s?1:0),0)}var Y=r(3786),re=r(7105),ce=r(7938),fe=r(7575),_e=r(8366),Be=r(275),Ce=r(8952),ve=r(9862);let Ye=(()=>{class s extends _e.v{constructor(t,n){super(t,n,Ce.C,"LessonTeachers")}loadOtherTeachersLessonAbsences(t,n,o){let i=`${this.baseUrl}/except/${t}/LessonAbsences?expand=LessonRef`;return n&&n.length>0&&(i=i.concat("&filter.StudentRef=;"+n.join(";"))),this.http.get(i,{params:o}).pipe((0,v.w)((0,Be.Y0)(Ce.C)))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var ae=r(905),le=r(7328),de=r(7921),Pe=r(6055),ze=r(654),je=r(3219),He=r(6514);let ye=(()=>{class s extends _e.v{constructor(t,n){super(t,n,He.t,"SubscriptionDetails")}getListForEvent(t){return this.getList({params:{IdEvent:String(t)}})}update(t,n){return this.http.put(`${this.baseUrl}/${n.Id}`,{IdPerson:n.IdPerson,EventId:n.EventId,Value:t}).pipe((0,l.U)(()=>{}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var z=r(3005);const be="presence-control-group";let j=(()=>{class s{constructor(t,n,o,i,a,p){this.userSettings=t,this.eventService=n,this.subscriptionService=o,this.subscriptionDetailsService=i,this.loadingService=a,this.settings=p,this.selectGroup$=new M.x,this.selectedLesson$=new le.t,this.lessonPresences$=new le.t,this.reloadSubscriptionDetails$=new M.x,this.defaultGroup=null,this.savedGroup$=this.selectedLesson$.pipe((0,v.w)(u=>this.userSettings.getPresenceControlGroupView().pipe((0,l.U)(C=>this.findGroupByLesson(C,u))))),this.group$=(0,B.T)(this.selectGroup$,this.savedGroup$).pipe((0,de.O)(this.defaultGroup),(0,y.d)(1)),this.loading$=this.loadingService.loading(be),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe((0,l.U)(u=>u?.getEventIds()||[]),(0,v.w)(u=>(0,A.D)(u.map(C=>this.eventService.getSubscriptionDetailsDefinitions(C)))),(0,y.d)(1)),this.groupsAvailability$=this.subscriptionDetailsDefinitions$.pipe((0,l.U)(u=>u.every(C=>g(C,this.settings))),(0,y.d)(1)),this.subscriptionDetails$=(0,_.a)([this.selectedLesson$,this.groupsAvailability$,this.reloadSubscriptionDetails$.pipe((0,l.U)(()=>!1),(0,de.O)(!0))]).pipe((0,v.w)(([u,C,T])=>u&&C?this.loadSubscriptionDetailsForLesson(u,T):(0,E.of)([])),(0,l.U)(u=>function Ie(s,c){return s.filter(t=>t.VssId===c.subscriptionDetailGroupId)}(u,this.settings)),(0,y.d)(1)),this.subscriptionDetailPersonIds$=(0,_.a)([this.group$,this.subscriptionDetails$]).pipe((0,l.U)(([u,C])=>C.filter(T=>T.Value===u).map(T=>T.IdPerson)),(0,de.O)([]))}selectGroup(t){this.selectGroup$.next(t)}setSelectedLesson(t){this.selectedLesson$.next(t)}setLessonPresences(t){this.lessonPresences$.next(t)}getSubscriptionDetailsDefinitions(){return this.subscriptionDetailsDefinitions$.pipe((0,l.U)(Pe.Z),(0,l.U)(t=>g(t,this.settings)))}getSubscriptionDetailsForStudents(){return(0,_.a)([this.subscriptionDetails$,this.lessonPresences$]).pipe((0,l.U)((0,$.h)(X)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(t,n=!0){return this.loadingService.load((0,A.D)((0,te.Z)(t.getEventIds()).map(o=>this.subscriptionDetailsService.getListForEvent(o))),n?void 0:be).pipe((0,l.U)(Pe.Z))}findGroupByLesson(t,n){return t.find(i=>i.eventId===n?.getEventIds()[0])?.group||this.defaultGroup}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(ze.O),e.LFG(je.o),e.LFG(ye),e.LFG(z.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Qe=r(5001),Ke=r(8173);const qe=Object.values(Y.PW);let Z=(()=>{class s{constructor(t,n,o,i,a,p,u,C,T,G){this.userSettings=t,this.lessonPresencesService=n,this.lessonTeacherService=o,this.presenceTypesService=i,this.groupService=a,this.dropDownItemsService=p,this.loadingService=u,this.storageService=C,this.settings=T,this.location=G,this.selectedDateSubject$=new O.X(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe((0,l.U)(De.Z),(0,ne.x)(ee.Z)),this.viewModeSubject$=new M.x,this.viewMode$=(0,B.T)(this.viewModeSubject$,this.userSettings.getPresenceControlViewMode().pipe((0,P.q)(1))),this.lessons$=this.selectedDate$.pipe((0,v.w)(h=>this.loadLessonsByDate(h)),(0,y.d)(1)),this.selectLessonId$=new M.x,this.selectLesson$=this.selectLessonId$.pipe((0,v.w)(h=>this.getLessonById(h))),this.selectedLesson$=(0,_.a)([(0,re.eG)(this.selectLesson$.pipe((0,ne.x)((h,k)=>(0,ee.Z)(h,k))),(0,re.re)(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe((0,l.U)(([h,k])=>k.find(fn=>fn.id===h.id)?h:null),(0,y.d)(1)),this.updateLessonPresences$=new M.x,this.lessonPresences$=(0,B.T)(this.selectedLesson$.pipe((0,v.w)(h=>h?this.loadLessonPresencesByLesson(h):(0,E.of)([]))),this.updateLessonPresences$).pipe((0,y.d)(1)),this.presenceTypes$=this.loadPresenceTypes().pipe((0,y.d)(1)),this.studentIdsWithUnconfirmedAbsences$=(0,re.eG)(this.selectedDate$,this.selectedLesson$.pipe((0,ge.T)(1))).pipe((0,v.w)(()=>this.loadStudentIdsWithUnconfirmedAbsences()),(0,y.d)(1)),this.loading$=this.loadingService.loading$,this.absenceConfirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,y.d)(1)),this.studentIds$=this.lessonPresences$.pipe((0,l.U)(h=>(0,te.Z)(h.map(k=>k.StudentRef.Id))),(0,y.d)(1)),this.otherTeachersAbsences$=this.studentIds$.pipe((0,ne.x)(ee.Z),(0,v.w)(h=>h.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),h):(0,E.of)([])),(0,y.d)(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=(0,_.a)([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe((0,l.U)((0,$.h)(me.bL))),this.presenceControlEntriesByGroup$=(0,_.a)([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe((0,l.U)((0,$.h)(Ge.C)),(0,y.d)(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(s=>s.reduce((c,t)=>c+(t.precedingAbsences&&t.precedingAbsences.length>0?1:0),0))),this.queryParamsString$=(0,_.a)([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe((0,l.U)((0,$.h)(this.buildQueryParams.bind(this))),(0,l.U)(w.tW)),this.destroy$=new M.x,this.queryParamsString$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.location.replaceState("/presence-control",h),this.confirmBackLinkParams={returnparams:h}}),this.viewMode$.pipe((0,ge.T)(1),(0,v.w)(h=>this.userSettings.savePresenceControlViewMode(h)),(0,S.R)(this.destroy$)).subscribe(),this.selectedLesson$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.groupService.setSelectedLesson(h)}),this.lessonPresences$.pipe((0,S.R)(this.destroy$)).subscribe(h=>this.groupService.setLessonPresences(h))}ngOnDestroy(){this.destroy$.next()}setDate(t){this.selectedDateSubject$.next(t)}setLessonId(t){this.selectLessonId$.next(t)}setViewMode(t){this.viewModeSubject$.next(t)}updateLessonPresencesTypes(t){(0,_.a)([this.lessonPresences$.pipe((0,P.q)(1)),this.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>function ke(s,c,t,n){return s.map(o=>{const i=c.find(a=>function Re(s,c){return s.LessonRef.Id===c.LessonRef.Id&&s.StudentRef.Id===c.StudentRef.Id}(a.presence,o));if(i){let a;return a=!i.newPresenceTypeId&&o.Comment?t.find(p=>p.IsComment)||null:t.find(p=>p.Id===i.newPresenceTypeId)||null,{...o,TypeRef:Ne(a),Date:null,Type:a?a.Designation:null,ConfirmationStateId:(0,oe.LO)(a,n)}}return o})}(n,t,o,this.settings))).subscribe(n=>this.updateLessonPresences$.next(n))}getNextPresenceType(t){return this.presenceTypes$.pipe((0,P.q)(1),(0,l.U)(n=>t.getNextPresenceType(n)))}hasUnconfirmedAbsences(t){return this.studentIdsWithUnconfirmedAbsences$.pipe((0,l.U)(n=>n.includes(t.lessonPresence.StudentRef.Id)))}loadLessonPresencesByLesson(t){return this.loadingService.load(this.lessonPresencesService.getListByLessons(t.lessons))}loadLessonsByDate(t){return this.loadingService.load(this.lessonPresencesService.getLessonsByDate(t)).pipe((0,l.U)(he.sm))}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.presenceTypes$)}loadStudentIdsWithUnconfirmedAbsences(){return(0,Fe.H)(0,this.settings.unconfirmedAbsencesRefreshTime||-1).pipe((0,v.w)(()=>this.lessonPresencesService.getListOfUnconfirmed()),(0,l.U)(t=>(0,te.Z)(t.map(n=>n.StudentRef.Id))))}buildQueryParams(t,n,o){const i={date:(0,Ee.Z)(t,"yyyy-MM-dd"),viewMode:o};return n&&(i.lesson=String(n.id)),i}getLessonById(t){const n=String(t);return this.lessons$.pipe((0,l.U)(o=>n&&o.find(i=>i.id===n)||(0,he.S9)(o)),(0,se.h)(Boolean))}getMyself(){const t=this.storageService.getPayload();return Number(t?.holder_id||t?.id_person)}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(fe.q),e.LFG(Ye),e.LFG(ae.c),e.LFG(j),e.LFG(Qe.R),e.LFG(z.b),e.LFG(Ke.V),e.LFG(U.L6),e.LFG(f.Ye))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var pe=r(6869),H=r(6567),ue=r(59),We=r(7625);function Ve(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.toggleSort(i))}),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",14),e._uU(4),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw().erzLet,o=e.oxw();e.Q6J("className",t),e.xp6(1),e.hij(" ",e.lcZ(2,3,"presence-control.groups.list.header."+t)," "),e.xp6(3),e.Oqu(o.getSortDirectionCharacter(n.sortCriteria,t))}}function Xe(s,c){1&s&&e._UZ(0,"erz-spinner",23)}function et(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",16)(2,"div",17)(3,"input",18,19),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw(3);return e.KtG(a.selectionService.toggle(i))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",20),e._uU(7),e.qZA(),e.TgZ(8,"div",21)(9,"span"),e._uU(10),e.qZA(),e.YNc(11,Xe,1,0,"erz-spinner",22),e.ALo(12,"async"),e.qZA()(),e.BQk()}if(2&s){const t=c.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("checked",e.lcZ(5,4,n.selectionService.isSelected$(t))),e.xp6(4),e.hij(" ",t.name," "),e.xp6(3),e.Oqu(t.group?t.group:""),e.xp6(1),e.Q6J("ngIf",e.lcZ(12,6,n.groupService.loading$))}}function tt(s,c){if(1&s&&(e.ynx(0),e.YNc(1,et,13,8,"ng-container",15),e.BQk()),2&s){const t=e.oxw().erzLet;e.xp6(1),e.Q6J("ngForOf",t.sortedEntries)}}function nt(s,c){1&s&&e._UZ(0,"erz-spinner")}const st=function(){return["/presence-control"]},ot=function(){return["name","group"]};function it(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div"),e._UZ(1,"erz-backlink",1),e.ALo(2,"async"),e.TgZ(3,"h1"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",2)(7,"div",3)(8,"span",4),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",5),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.selectGroup())}),e._uU(12),e.ALo(13,"translate"),e.ALo(14,"translate"),e.qZA()(),e.TgZ(15,"a",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.assignGroup())}),e.TgZ(16,"i",7),e._uU(17,"edit"),e.qZA()()(),e.TgZ(18,"div",8)(19,"div",9),e.YNc(20,Ve,5,5,"div",10),e.qZA(),e.YNc(21,tt,2,1,"ng-container",11),e.ALo(22,"async"),e.YNc(23,nt,1,0,"ng-template",null,12,e.W1O),e.qZA()()}if(2&s){const t=c.erzLet,n=e.MAs(24),o=e.oxw();e.xp6(1),e.Q6J("routerLink",e.DdM(22,st))("queryParams",e.lcZ(2,10,o.backlinkQueryParams$)),e.xp6(3),e.Oqu(e.lcZ(5,12,"presence-control.groups.title")),e.xp6(5),e.Oqu(e.lcZ(10,14,"presence-control.groups.show")),e.xp6(3),e.hij(" ",t.group?e.lcZ(13,16,"presence-control.groups.group")+" "+t.group:e.lcZ(14,18,"presence-control.groups.all")," "),e.xp6(3),e.ekj("disabled",0===t.selection.length),e.xp6(5),e.Q6J("ngForOf",e.DdM(23,ot)),e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(22,20,o.state.loading$))("ngIfElse",n)}}const rt=function(s,c,t,n){return{sortCriteria:s,sortedEntries:c,selection:t,group:n}};let ct=(()=>{class s{constructor(t,n,o,i,a,p,u,C,T){this.route=t,this.state=n,this.selectionService=o,this.groupService=i,this.userSettings=a,this.subscriptionDetailService=p,this.toastService=u,this.translate=C,this.modalService=T,this.backlinkQueryParams$=this.route.queryParams.pipe((0,l.U)(({returnparams:G})=>G),(0,l.U)(w.dD)),this.eventIds$=this.state.selectedLesson$.pipe((0,l.U)(G=>G?.getEventIds()||[])),this.sortCriteriaSubject$=new O.X({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,_.a)([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe((0,l.U)((0,$.h)(W))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(t=>this.selected=t)}selectGroup(){this.openGroupModal(J.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(J.Assign,this.assignCallback.bind(this))}openGroupModal(t,n){(0,_.a)([this.groupService.getSubscriptionDetailsDefinitions(),this.groupService.group$]).pipe((0,P.q)(1)).subscribe(([o,i])=>{const a=this.modalService.open(Ue);a.componentInstance.dialogMode=t,a.componentInstance.subscriptionDetailsDefinitions=o,a.componentInstance.group=i,a.result.then(p=>{n(p)},()=>{})})}selectCallback(t){(0,_.a)([this.eventIds$,this.userSettings.getPresenceControlGroupView()]).pipe((0,P.q)(1),(0,v.w)(([n,o])=>this.userSettings.savePresenceControlGroupView(function q(s,c,t){const n=c.map(i=>({eventId:i,group:s})),o=t.map(i=>n.find(a=>a.eventId===i.eventId)||i);return[...new Set([...o,...n])].filter(i=>null!==i.group)}(t.id,n,o))),(0,l.U)(()=>t.id)).subscribe(n=>this.groupService.selectGroup(n))}assignCallback(t){(0,A.D)(this.selected.map(n=>this.subscriptionDetailService.update(t.id,n.detail))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.groupService.reloadSubscriptionDetails(),this.selectionService.clear(),this.toastService.success(this.translate.instant("presence-control.groups.notifications.save-success"))}getSortDirectionCharacter(t,n){return t.primarySortKey!==n?"":t.ascending?"\u2193":"\u2191"}toggleSort(t){this.sortCriteriaSubject$.pipe((0,P.q)(1)).subscribe(n=>{this.sortCriteriaSubject$.next(n.primarySortKey===t?{primarySortKey:t,ascending:!n.ascending}:{primarySortKey:t,ascending:"name"===t})})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(L.gz),e.Y36(Z),e.Y36(N),e.Y36(j),e.Y36(ce.s),e.Y36(ye),e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group"]],features:[e._Bn([N])],decls:5,vars:14,consts:[[4,"erzLet"],[1,"mb-3",3,"routerLink","queryParams"],[1,"group-header","mb-2","d-flex","justify-content-between"],[1,"d-flex","align-items-baseline"],[1,"ps-3"],["type","button",1,"show","btn","btn-link",3,"click"],["aria-label","edit",1,"btn","btn-primary","btn-icon","me-2",3,"click"],[1,"material-icons"],[1,"group-list"],[1,"group-list-header"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["loading",""],[3,"className","click"],[1,"sort-direction"],[4,"ngFor","ngForOf"],[1,"group-list-entry"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["checkbox",""],[1,"name","pe-2"],[1,"group","d-flex","justify-content-between"],["class","inline small",4,"ngIf"],[1,"inline","small"]],template:function(n,o){1&n&&(e.YNc(0,it,25,24,"div",0),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async")),2&n&&e.Q6J("erzLet",e.l5B(9,rt,e.lcZ(1,1,o.sortCriteria$),e.lcZ(2,3,o.sortedEntries$),e.lcZ(3,5,o.selectionService.selection$),e.lcZ(4,7,o.groupService.group$)))},dependencies:[f.sg,f.O5,L.rH,H.e,ue.O,We.I,f.Ov,m.X$],styles:['[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000;font-weight:300;text-decoration:underline;padding-left:.5rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.group-list-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"name group";grid-template-columns:3fr 2fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6}.group-list-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name group";grid-template-columns:min-content 3fr 2fr}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.name[_ngcontent-%COMP%]{grid-area:name;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.group[_ngcontent-%COMP%]{grid-area:group}@media (max-width: 750px){.group-list[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.group-list-header[_ngcontent-%COMP%]{grid-template-columns:3fr 1fr}.group-list-entry[_ngcontent-%COMP%]{grid-template-columns:min-content 3fr 1fr}}'],changeDetection:0})}return s})();var at=r(2547),xe=r(581),lt=r(2816);function pt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",3)(1,"input",4),e.NdJ("change",function(){const i=e.CHM(t).$implicit;return e.KtG(i.selected=!i.selected)}),e.qZA(),e.TgZ(2,"label",5)(3,"i"),e._uU(4),e.qZA(),e.TgZ(5,"div",6),e._uU(6),e.ALo(7,"date"),e.ALo(8,"date"),e.qZA()()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","lesson-presence-",n,""),e.Q6J("checked",t.selected),e.xp6(1),e.ekj("fw-bold",o.isCurrentLesson(t)),e.MGl("for","lesson-presence-",n,""),e.xp6(1),e.Gre("",t.entry.presenceCategory," material-icons pe-2"),e.xp6(1),e.Oqu(t.entry.presenceCategoryIcon),e.xp6(2),e.lnq(" ",e.xi3(7,12,t.entry.lessonPresence.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(8,15,t.entry.lessonPresence.LessonDateTimeTo,"HH:mm")," ",t.entry.lessonPresence.EventDesignation," ")}}function ut(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",7)(1,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.activeModal.close())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",9),e.NdJ("click",function(){const i=e.CHM(t).erzLet,a=e.oxw();return e.KtG(a.activeModal.close(i))}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&s){const t=c.erzLet;e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.cancel")," "),e.xp6(2),e.Q6J("disabled",0===t.length),e.xp6(1),e.hij(" ",e.lcZ(6,5,"presence-control.block-lesson.save")," ")}}let gt=(()=>{class s{constructor(t){this.activeModal=t,this.blockLessonOptions=[]}ngOnInit(){this.blockLessonOptions=this.buildLessonPresenceOptions()}getSelectedEntries(){return this.blockLessonOptions.filter(({selected:t})=>t).map(({entry:t})=>t)}isCurrentLesson(t){return function dt(s,c){(0,lt.Z)(2,arguments);var t=(0,xe.Z)(s),n=(0,xe.Z)(c);return t.getTime()===n.getTime()}(t.entry.lessonPresence.LessonDateTimeFrom,this.entry.lessonPresence.LessonDateTimeFrom)}buildLessonPresenceOptions(){return this.blockPresenceControlEntries.map(t=>({entry:t,selected:this.entry.confirmationState===t.confirmationState}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-block-lesson-component"]],inputs:{entry:"entry",blockPresenceControlEntries:"blockPresenceControlEntries"},decls:7,vars:5,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],["class","modal-footer",4,"erzLet"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","checked","change"],[1,"form-check-label","d-flex",3,"for"],[1,"d-block","text-truncate"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,pt,9,18,"div",1),e.qZA()(),e.YNc(6,ut,7,7,"div",2)),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.text")," "),e.xp6(3),e.Q6J("ngForOf",o.blockLessonOptions),e.xp6(1),e.Q6J("erzLet",o.getSelectedEntries()))},dependencies:[f.sg,x._Y,x.JL,x.F,H.e,f.uU,m.X$],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.absent[_ngcontent-%COMP%]{color:#d01018}.present[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_ngcontent-%COMP%]{color:#ffa814}"]})}return s})();var ht=r(2220);function mt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","incident-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","incident-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}let ft=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.incidentOptions=[]}ngOnInit(){const t=this.createIncidentOption();this.incidentOptions=this.incidentTypes.map(n=>this.createIncidentOption(n)),this.incidentOptions.unshift(t),this.selected=this.incidentOptions.find(n=>n.id===this.incident?.Id)||t}createIncidentOption(t){return{id:t?t.Id:null,label:t?t.Designation:this.translate.instant("presence-control.incident.no-incident")}}onSelectionChange(t){this.selected=t}getSelectedIncident(){return this.incidentTypes.find(t=>t.Id===this.selected?.id)||null}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-incident"]],inputs:{incident:"incident",incidentTypes:"incidentTypes"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","incident",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,mt,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedIncident())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,"presence-control.incident.text")," "),e.xp6(3),e.Q6J("ngForOf",o.incidentOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.incident.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.incident.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$],styles:["form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #dee2e6;padding-bottom:1rem;margin-bottom:1rem}"]})}return s})();function Me(s){return`blockLesson${s.lessonPresence.Id}`}let Le=(()=>{class s{constructor(t,n,o,i){this.state=t,this.lessonPresencesService=n,this.loadingService=o,this.settings=i}getBlockLessonPresenceControlEntries(t){return(0,_.a)([this.state.lessons$.pipe((0,P.q)(1)),this.loadChangeableLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1)),this.state.absenceConfirmationStates$.pipe((0,P.q)(1)),this.state.otherTeachersAbsences$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o,i,a,p])=>this.filterBlockLessonPresences(t,o).map(u=>(0,me.uP)(n.find(C=>C.id===u.LessonRef.Id.toString()),u,i,a,p))))}filterBlockLessonPresences(t,n){return[...n].sort((o,i)=>o.LessonDateTimeFrom>i.LessonDateTimeFrom?1:-1).reduce((o,i)=>this.isWithinBlockTime(i,o[o.length-1])?(o.push(i),o):o.find(p=>p.Id===t.lessonPresence.Id)?o:[i],[])}isWithinBlockTime(t,n){return!n||t.LessonDateTimeFrom.getTime()-n.LessonDateTimeTo.getTime()<=18e5}loadChangeableLessonPresences(t){return(0,_.a)([this.loadLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>n.filter(i=>(0,oe.NF)(i,o.find(a=>a.Id===i.TypeRef.Id)||null,this.settings))))}loadLessonPresences(t){return this.loadingService.load(this.lessonPresencesService.getListByDateStudentClass(t.lessonPresence.LessonDateTimeFrom,t.lessonPresence.StudentRef.Id,t.lessonPresence.StudyClassRef.Id??void 0).pipe((0,l.U)(n=>n.filter(o=>o.TeacherInformation===t.lessonPresence.TeacherInformation))),Me(t))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(Z),e.LFG(fe.q),e.LFG(z.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Ct=r(6699),vt=r(3020),Te=r(3620),Pt=r(6328),yt=r(6306),Oe=r(2769),$e=r(6100),Q=r(3942),bt=r(6023),F=function(s){return s.AddUpdateAction="ADD",s.RemoveUpdateAction="REMOVE",s}(F||{});let Ae=(()=>{class s{constructor(t,n,o,i,a){this.toastService=t,this.translate=n,this.restService=o,this.presenceTypesService=i,this.settings=a,this.destroy$=new M.x,this.action$=new M.x,this.pendingUpdates$=this.action$.pipe((0,Ct.R)(this.reduceUpdates.bind(this),[]),(0,vt.B)()),this.revertUpdates$=new M.x,this.performUpdates$=this.pendingUpdates$.pipe((0,Te.b)(100),(0,se.h)((0,Q.ff)($e.yD)),(0,Pt.b)(this.performUpdates.bind(this))),this.stateUpdates$=(0,B.T)(this.pendingUpdates$,this.revertUpdates$).pipe((0,Te.b)(20),(0,se.h)((0,Q.ff)($e.yD))),this.performUpdates$.pipe((0,S.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next()}updatePresenceType(t,n=null){this.dispatchAddUpdate(t.lessonPresence,n)}performUpdates(t){const n=this.groupUpdates(t);return(0,_.a)(Object.keys(n).reduce((o,i)=>{const a=n[i];return Object.keys(a).forEach(p=>{o.push(this.performUpdateForGroup(a[p]))}),o},[])).pipe((0,l.U)(()=>n))}performUpdateForGroup(t){return t.forEach(n=>this.dispatchRemoveUpdate(n.presence)),this.performLessonPresencesUpdatesByIds(t[0].presence.LessonRef.Id,t.map(n=>n.presence.StudentRef.Id),t[0].newPresenceTypeId).pipe((0,yt.K)(n=>this.revertUpdatesAfterError(t,n)))}performLessonPresencesUpdatesByIds(t,n,o=null){return o?(o?this.presenceTypesService.getPresenceType(o):(0,E.of)(null)).pipe((0,v.w)(a=>this.restService.editLessonPresences([t],n,a?.Id,(0,oe.LO)(a,this.settings)||void 0,(0,Oe.I)({disableErrorHandling:!0})))):this.restService.removeLessonPresences([t],n,(0,Oe.I)({disableErrorHandling:!0}))}revertUpdatesAfterError(t,n){return console.error("Bulk-update of lesson presences failed"),console.error(n),this.toastService.error(this.translate.instant("shared.lesson-presences-update.error")),this.revertUpdates$.next(t.map(o=>({...o,newPresenceTypeId:o.presence.TypeRef.Id}))),(0,E.of)(void 0)}groupUpdates(t){return t.reduce((n,o)=>{const i=String(o.newPresenceTypeId&&o.newPresenceTypeId);return n[i]||(n[i]={}),Array.isArray(n[i][o.presence.LessonRef.Id])||(n[i][o.presence.LessonRef.Id]=[]),n[i][o.presence.LessonRef.Id].push(o),n},{})}reduceUpdates(t,n){switch(n.type){case F.AddUpdateAction:{const{presence:o,newPresenceTypeId:i}=n.payload,a=t.findIndex(Se(o));return-1===a?[...t,{presence:o,newPresenceTypeId:i}]:[...t.slice(0,a),{presence:t[a].presence,newPresenceTypeId:i},...t.slice(a+1)]}case F.RemoveUpdateAction:return t.filter((0,Q.ff)(Se(n.payload)));default:return t}}dispatchAddUpdate(t,n){this.action$.next({type:F.AddUpdateAction,payload:{presence:t,newPresenceTypeId:n}})}dispatchRemoveUpdate(t){this.action$.next({type:F.RemoveUpdateAction,payload:t})}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(pe.k),e.LFG(m.sK),e.LFG(bt.O),e.LFG(ae.c),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Se(s){return c=>c.presence.LessonRef.Id===s.LessonRef.Id&&c.presence.StudentRef.Id===s.StudentRef.Id}var Lt=r(412),Tt=r(3296),Ot=r(7163);function $t(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",22),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.lessonDropdown.toggle())}),e._uU(1),e.ALo(2,"date"),e.TgZ(3,"span",23),e._uU(4),e.ALo(5,"date"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,2,t.selectedLesson.LessonDateTimeFrom,"HH:mm"),"\u2013"),e.xp6(3),e.Oqu(e.xi3(5,5,t.selectedLesson.LessonDateTimeTo,"HH:mm"))}}function At(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",29),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.selectLessonChange.emit(i))}),e.TgZ(1,"div",30)(2,"div"),e._uU(3),e.ALo(4,"date"),e.ALo(5,"date"),e.qZA(),e.TgZ(6,"div",26),e._uU(7),e.qZA(),e.TgZ(8,"div",26),e._uU(9),e.qZA()()()}if(2&s){const t=c.$implicit,n=e.oxw(2);e.ekj("active",t.id===n.selectedLesson.id),e.xp6(3),e.AsE(" ",e.xi3(4,6,t.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(5,9,t.LessonDateTimeTo,"HH:mm")," "),e.xp6(4),e.Oqu(t.eventDesignations),e.xp6(2),e.Oqu(t.studyClassNumbers)}}function St(s,c){if(1&s&&(e.TgZ(0,"div",24)(1,"div",25)(2,"div",26),e._uU(3),e.qZA(),e.TgZ(4,"div",26),e._uU(5),e.qZA()(),e.TgZ(6,"div",27),e.YNc(7,At,10,12,"div",28),e.qZA()()),2&s){const t=e.oxw();e.xp6(3),e.Oqu(t.selectedLesson.eventDesignations),e.xp6(2),e.Oqu(t.selectedLesson.studyClassNumbers),e.xp6(2),e.Q6J("ngForOf",t.lessons)}}function Zt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.lessonDropdown?null:o.lessonDropdown.toggle())}),e.TgZ(1,"i",3),e._uU(2),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(2),e.hij(" ",null!=t.lessonDropdown&&t.lessonDropdown.isOpen()?"keyboard_arrow_up":"keyboard_arrow_down"," ")}}const It=function(s,c){return{"btn-link":s,"btn-danger":c}},wt=function(s){return["groups",s]},Ut=function(s){return{returnparams:s}};function Dt(s,c){if(1&s&&(e.TgZ(0,"a",32),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.TgZ(4,"i",33),e._uU(5,"groups"),e.qZA()()),2&s){const t=e.oxw();e.Q6J("ngClass",e.WLB(9,It,!1===e.lcZ(1,3,t.isGroupSelected$),e.lcZ(2,5,t.isGroupSelected$)))("routerLink",e.VKq(12,wt,t.selectedLesson.id))("queryParams",e.VKq(14,Ut,e.lcZ(3,7,t.state.queryParamsString$)))}}function Et(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.viewModeChange.emit(i.viewMode))}),e.TgZ(1,"i",33),e._uU(2),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw();e.ekj("btn-outline-secondary",t.viewMode===n.viewMode)("btn-link",t.viewMode!==n.viewMode)("active",t.viewMode===n.viewMode),e.Q6J("disabled",!n.selectedLesson),e.xp6(2),e.Oqu(t.icon)}}const Ft=d.jt.prototype._positionMenu;d.jt.prototype._positionMenu=function(...c){const t=Ft.apply(this,c);if("lesson-dropdown"===this._anchor.nativeElement.id){const n=this._bodyContainer||this._menu.nativeElement,o=n.style.transform?.match(/translate\(([0-9-.]+)px, ([0-9-.]+)px\)/);o&&parseFloat(o[1])<0&&(n.style.transform=`translate(0px, ${o[2]}px)`)}return t};let Gt=(()=>{class s{constructor(t,n,o){this.state=t,this.groupService=n,this.presentCount=null,this.absentCount=null,this.unapprovedCount=null,this.absentPrecedingCount=null,this.search="",this.selectLessonChange=new e.vpe,this.selectDateChange=new e.vpe,this.searchChange=new e.vpe,this.viewModeChange=new e.vpe,this.viewModeOptions=[{viewMode:Y.PW.List,icon:"list"},{viewMode:Y.PW.Grid,icon:"view_module"}],this.isGroupSelected$=this.groupService.group$.pipe((0,l.U)(Q.Nf)),o.popperOptions=i=>({...i,modifiers:i.modifiers?.map(a=>("offset"===a.name&&(a.options={offset:({placement:p,reference:u,popper:C})=>"bottom-start"===p?[(window.innerWidth-C.width)/2-u.x,0]:[]}),a))})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(j),e.Y36(d.Be))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-header"]],viewQuery:function(n,o){if(1&n&&e.Gf(d.jt,5),2&n){let i;e.iGM(i=e.CRH())&&(o.lessonDropdown=i.first)}},inputs:{selectedLesson:"selectedLesson",lessons:"lessons",presentCount:"presentCount",absentCount:"absentCount",unapprovedCount:"unapprovedCount",absentPrecedingCount:"absentPrecedingCount",viewMode:"viewMode",selectDate:"selectDate",search:"search"},outputs:{selectLessonChange:"selectLessonChange",selectDateChange:"selectDateChange",searchChange:"searchChange",viewModeChange:"viewModeChange"},features:[e._Bn([d.Be,{provide:d.DO,useClass:d.s5},{provide:d.NG,useClass:Tt.n}])],decls:40,vars:20,consts:[[1,"navigation"],[1,"lesson-date"],["type","button",1,"btn","btn-link",3,"click"],[1,"material-icons"],["positionTarget",".lesson-date-input","ngbDatepicker","","placement","bottom-start",1,"lesson-date-input",3,"ngModel","ngModelChange"],["d","ngbDatepicker"],["class","lesson-time",3,"click",4,"ngIf"],["ngbDropdown","","class","lesson-description","container","body","display","dynamic","placement","bottom",4,"ngIf"],["type","button","class","dropdown-caret btn btn-link",3,"click",4,"ngIf"],[1,"states"],[1,"state","present"],[1,"count"],[1,"state","absent"],[1,"state","unapproved"],[1,"state","previously-absent"],[1,"material-icons-outlined"],[1,"search-and-views"],[1,"search",3,"value","disabled","placeholder","label","valueChange"],[1,"group-and-views","d-flex","align-items-center"],["type","button","class","group btn me-xs-0 me-sm-4",3,"ngClass","routerLink","queryParams",4,"ngIf"],[1,"views"],["type","button","class","view btn btn-primary btn-icon",3,"disabled","btn-outline-secondary","btn-link","active","click",4,"ngFor","ngForOf"],[1,"lesson-time",3,"click"],[1,"lesson-time-to"],["ngbDropdown","","container","body","display","dynamic","placement","bottom",1,"lesson-description"],["id","lesson-dropdown","ngbDropdownToggle",""],[1,"text-truncate"],["ngbDropdownMenu","","aria-labelledby","lesson-dropdown"],["ngbDropdownItem","",3,"active","click",4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"],[1,"lesson-entry"],["type","button",1,"dropdown-caret","btn","btn-link",3,"click"],["type","button",1,"group","btn","me-xs-0","me-sm-4",3,"ngClass","routerLink","queryParams"],[1,"material-icons","align-middle"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"disabled","click"]],template:function(n,o){if(1&n){const i=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(6);return e.KtG(p.toggle())}),e.TgZ(3,"i",3),e._uU(4,"calendar_today"),e.qZA()(),e.TgZ(5,"input",4,5),e.NdJ("ngModelChange",function(p){return o.selectDateChange.emit(p)}),e.qZA()(),e.YNc(7,$t,6,8,"div",6),e.YNc(8,St,8,3,"div",7),e.YNc(9,Zt,3,1,"button",8),e.qZA(),e.TgZ(10,"div",9)(11,"div",10)(12,"i",3),e._uU(13,"check_circle"),e.qZA(),e.TgZ(14,"span",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",12)(17,"i",3),e._uU(18,"cancel"),e.qZA(),e.TgZ(19,"span",11),e._uU(20),e.qZA()(),e.TgZ(21,"div",13)(22,"i",3),e._uU(23,"help"),e.qZA(),e.TgZ(24,"span",11),e._uU(25),e.qZA()(),e.TgZ(26,"div",14)(27,"i",15),e._uU(28,"info"),e.qZA(),e.TgZ(29,"span",11),e._uU(30),e.qZA()()(),e.TgZ(31,"div",16)(32,"erz-resettable-input",17),e.NdJ("valueChange",function(p){return o.searchChange.emit(p)}),e.ALo(33,"translate"),e.ALo(34,"translate"),e.qZA(),e.TgZ(35,"div",18),e.YNc(36,Dt,6,16,"a",19),e.ALo(37,"async"),e.TgZ(38,"div",20),e.YNc(39,Et,3,8,"button",21),e.qZA()()()}2&n&&(e.xp6(5),e.Q6J("ngModel",o.selectDate),e.xp6(2),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.lessons.length>0),e.xp6(6),e.Oqu(null!==o.presentCount?o.presentCount:"?"),e.xp6(5),e.Oqu(null!==o.absentCount?o.absentCount:"?"),e.xp6(5),e.Oqu(null!==o.unapprovedCount?o.unapprovedCount:"?"),e.xp6(5),e.Oqu(null!==o.absentPrecedingCount?o.absentPrecedingCount:"?"),e.xp6(2),e.Q6J("value",o.search)("disabled",!o.selectedLesson)("placeholder",e.lcZ(33,14,"presence-control.header.search-by-name"))("label",e.lcZ(34,16,"presence-control.header.search")),e.xp6(4),e.Q6J("ngIf",e.lcZ(37,18,o.selectedLesson&&o.state.groupsAvailability$)),e.xp6(3),e.Q6J("ngForOf",o.viewModeOptions))},dependencies:[f.mk,f.sg,f.O5,x.Fj,x.JJ,x.On,L.rH,d.J4,d.jt,d.iD,d.Vi,d.TH,Ot.w,f.Ov,f.uU,m.X$],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.75rem 0}.navigation[_ngcontent-%COMP%]{display:grid;grid-template-areas:". date time dropdown-caret" ". description description dropdown-caret";grid-template-columns:1fr auto auto 1fr;align-items:center}.lesson-date[_ngcontent-%COMP%]{grid-area:date;justify-self:end;display:flex;align-items:center;justify-content:flex-end}.lesson-date[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 .5ch 0 0}.lesson-date[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#000;position:relative}.lesson-date-input[_ngcontent-%COMP%]{font-weight:600;background:transparent;border:none;width:11ch}.lesson-time[_ngcontent-%COMP%]{grid-area:time;cursor:pointer}.lesson-description[_ngcontent-%COMP%]{grid-area:description;overflow:hidden;text-align:center;cursor:pointer}.dropdown-toggle[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none}.dropdown-caret[_ngcontent-%COMP%]{grid-area:dropdown-caret;line-height:100%;text-align:left;color:#000}.dropdown-menu[_ngcontent-%COMP%]{width:50ch;padding:0;box-shadow:2px 2px 3px -1px #0003}@media (max-width: 800px){.dropdown-menu[_ngcontent-%COMP%]{width:100vw}}.dropdown-item[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6}.states[_ngcontent-%COMP%]{margin:.75rem 0;display:flex;justify-content:center}.state[_ngcontent-%COMP%]{margin-right:7%;display:flex}.state[_ngcontent-%COMP%]:last-child{margin-right:0}@media (min-width: 1000px){.state[_ngcontent-%COMP%]{margin-right:4rem}}.state.present[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#3d8608}.state.absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#d01018}.state.unapproved[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ffa814}.state.previously-absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#00000080}.state[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{margin-left:.3em;margin-top:1px}.search-and-views[_ngcontent-%COMP%]{padding-top:.75rem;display:flex;justify-content:space-between;border-top:1px solid #dee2e6}.search[_ngcontent-%COMP%]{flex:auto;max-width:300px;margin-right:1rem}.views[_ngcontent-%COMP%]{display:flex}.view[_ngcontent-%COMP%]{color:#4e4e4ef2;background-color:#fff}.view.active[_ngcontent-%COMP%]{color:#fff;background-color:#4e4e4ef2;border:none}.group[_ngcontent-%COMP%], .view[_ngcontent-%COMP%]{text-decoration:none;padding-left:0;padding-right:0;aspect-ratio:1/1;width:calc(.75rem + 2 * var(--bs-border-width) + 1.625rem);border-radius:50%}.group.btn-link[_ngcontent-%COMP%]{color:#000}@media (max-width: 380px){[_nghost-%COMP%]{padding-left:.5rem;padding-right:.5rem}#search-addon[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}}@media (max-width: 365px){.lesson-time[_ngcontent-%COMP%]{line-height:1}.lesson-time-to[_ngcontent-%COMP%]{display:block}.dropdown-caret[_ngcontent-%COMP%]{padding-left:0}}']})}return s})();var kt=r(500);function Rt(s,c){if(1&s&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.ALo(4,"addSpace"),e.qZA()),2&s){const t=c.$implicit;e.xp6(1),e.xDo(" ",e.xi3(2,5,t.LessonRef.From,"HH:mm"),"\u2013",e.xi3(3,8,t.LessonRef.To,"HH:mm")," ",t.LessonRef.EventDesignation,"",e.xi3(4,11,":",":")," ",t.Type," ")}}let Nt=(()=>{class s{constructor(t){this.activeModal=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-preceding-absence"]],inputs:{precedingAbsences:"precedingAbsences"},decls:9,vars:7,consts:[[1,"modal-body"],[4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Rt,5,14,"div",1),e.qZA(),e.TgZ(5,"div",2)(6,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(7),e.ALo(8,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.preceding-absence.text")," "),e.xp6(2),e.Q6J("ngForOf",o.precedingAbsences),e.xp6(3),e.hij(" ",e.lcZ(8,5,"presence-control.preceding-absence.cancel")," "))},dependencies:[f.sg,f.uU,m.X$,kt.u]})}return s})();var Jt=r(2628);const Bt=function(s){return["/presence-control/student",s,"absences"]};function Yt(s,c){if(1&s&&(e._UZ(0,"erz-avatar",8),e.ALo(1,"async")),2&s){const t=e.oxw();e.Q6J("studentId",e.lcZ(1,3,t.studentId$))("link",e.VKq(5,Bt,t.entry.lessonPresence.StudentRef.Id.toString()))("linkParams",t.profileReturnParams)}}function zt(s,c){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&s){const t=e.oxw(2);e.xp6(1),e.Oqu(null==t.entry.presenceType?null:t.entry.presenceType.Designation)}}function jt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.YNc(1,zt,2,1,"span",10),e.qZA()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=t.entry.presenceType&&t.entry.presenceType.IsIncident))}}function Ht(s,c){1&s&&e._UZ(0,"erz-spinner",15)}function Qt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.TgZ(1,"div",12)(2,"i",13),e._uU(3),e.qZA(),e.YNc(4,Ht,1,0,"erz-spinner",14),e.qZA()()}if(2&s){const t=c.erzLet,n=e.oxw();e.Q6J("disabled",t),e.xp6(2),e.ekj("invisible",t),e.xp6(1),e.Oqu(n.entry.presenceCategoryIcon),e.xp6(1),e.Q6J("ngIf",t)}}function Kt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.showPrecedingAbsences(o.entry))}),e.TgZ(1,"i",17),e._uU(2,"info"),e.qZA()()}}function qt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"a",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updateIncident(o.entry))}),e.TgZ(1,"i",13),e._uU(2,"edit"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(4),e.Oqu(e.lcZ(5,1,(null==t.entry.presenceType?null:t.entry.presenceType.IsIncident)&&(null==t.entry.presenceType?null:t.entry.presenceType.Designation)||"presence-control.entry.incident"))}}const Wt=function(s){return["student",s,"absences"]};let Vt=(()=>{class s{get classNames(){return[this.entry.presenceCategory,this.viewMode].join(" ")}constructor(t,n,o,i){this.toastService=t,this.translate=n,this.modalService=o,this.loadingService=i,this.hasUnconfirmedAbsences=!1,this.togglePresenceType=new e.vpe,this.changeIncident=new e.vpe,this.entry$=new le.t(1),this.studentId$=this.entry$.pipe((0,l.U)(({lessonPresence:a})=>a.StudentRef.Id)),this.loading$=this.entry$.pipe((0,v.w)(a=>this.loadingService.loading(Me(a))))}ngOnChanges(t){t.entry&&this.entry$.next(t.entry.currentValue)}get isListViewMode(){return this.viewMode===Y.PW.List}updatePresenceType(t){t.canChangePresenceType?this.togglePresenceType.emit(t):this.toastService.warning(this.translate.instant("presence-control.entry.update-warning"))}updateIncident(t){t.canChangeIncident&&this.changeIncident.emit(t)}showPrecedingAbsences(t){this.modalService.open(Nt).componentInstance.precedingAbsences=t.precedingAbsences}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF),e.Y36(z.b))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-entry"]],hostVars:2,hostBindings:function(n,o){2&n&&e.Tol(o.classNames)},inputs:{entry:"entry",hasUnconfirmedAbsences:"hasUnconfirmedAbsences",viewMode:"viewMode",profileReturnParams:"profileReturnParams"},outputs:{togglePresenceType:"togglePresenceType",changeIncident:"changeIncident"},features:[e.TTD],decls:12,vars:15,consts:[["class","avatar large",3,"studentId","link","linkParams",4,"ngIf"],["type","button","class","presence-category designation btn btn-link",3,"click",4,"ngIf"],["type","button","class","presence-category status btn btn-link",3,"disabled","click",4,"erzLet"],["type","button","class","previously-absent btn btn-link",3,"click",4,"ngIf"],[1,"student-name",3,"routerLink","queryParams"],[1,"text-truncate"],[1,"unconfirmed-absences"],["class","incident btn btn-link",3,"click",4,"ngIf"],[1,"avatar","large",3,"studentId","link","linkParams"],["type","button",1,"presence-category","designation","btn","btn-link",3,"click"],[4,"ngIf"],["type","button",1,"presence-category","status","btn","btn-link",3,"disabled","click"],[1,"position-relative"],[1,"material-icons"],["class","inline small",4,"ngIf"],[1,"inline","small"],["type","button",1,"previously-absent","btn","btn-link",3,"click"],[1,"material-icons-outlined"],[1,"incident","btn","btn-link",3,"click"]],template:function(n,o){1&n&&(e.YNc(0,Yt,2,7,"erz-avatar",0),e.YNc(1,jt,2,1,"button",1),e.YNc(2,Qt,5,5,"button",2),e.ALo(3,"async"),e.YNc(4,Kt,3,0,"button",3),e.TgZ(5,"a",4)(6,"span",5),e._uU(7),e.qZA(),e.TgZ(8,"span",6),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,qt,6,3,"a",7)),2&n&&(e.Q6J("ngIf",!o.isListViewMode),e.xp6(1),e.Q6J("ngIf",o.entry.showDesignation),e.xp6(1),e.Q6J("erzLet",e.lcZ(3,9,o.loading$)),e.xp6(2),e.Q6J("ngIf",(null==o.entry.precedingAbsences?null:o.entry.precedingAbsences.length)>0),e.xp6(1),e.Q6J("routerLink",e.VKq(13,Wt,o.entry.lessonPresence.StudentRef.Id))("queryParams",o.profileReturnParams),e.xp6(2),e.Oqu(o.entry.lessonPresence.StudentFullName),e.xp6(2),e.hij(" ",o.hasUnconfirmedAbsences?e.lcZ(10,11,"presence-control.entry.unconfirmed-absences"):""," "),e.xp6(2),e.Q6J("ngIf",o.entry.canChangeIncident))},dependencies:[f.O5,L.rH,H.e,ue.O,Jt.A,f.Ov,m.X$],styles:['[_nghost-%COMP%]{padding:2rem 1rem;background-color:#fff;display:grid;grid-template-areas:"avatar status designation previously-absent" "avatar student-name student-name student-name" "avatar incident incident incident";grid-template-columns:min-content min-content 3fr min-content}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{align-self:center}.presence-category[_ngcontent-%COMP%]{text-decoration:none}.presence-category[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{top:.1875rem}.absent[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#d01018}.present[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#ffa814}.presence-category[_ngcontent-%COMP%] erz-spinner[_ngcontent-%COMP%]{color:#000;position:absolute;top:4px;left:5px}.designation[_ngcontent-%COMP%], .student-name[_ngcontent-%COMP%], a.incident[_ngcontent-%COMP%], .incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avatar[_ngcontent-%COMP%]{grid-area:avatar;margin-right:1.5rem}.status[_ngcontent-%COMP%]{grid-area:status}.status[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:2rem}.designation[_ngcontent-%COMP%]{grid-area:designation;text-align:left;line-height:2.375rem}.previously-absent[_ngcontent-%COMP%]{grid-area:previously-absent;text-decoration:none;color:#00000080;justify-self:end}.student-name[_ngcontent-%COMP%]{grid-area:student-name;display:flex;flex-direction:column;text-decoration:none}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.unconfirmed-absences[_ngcontent-%COMP%]{color:#d01018;font-size:.875rem;line-height:1}.incident[_ngcontent-%COMP%]{color:#00000080;padding-right:1.5rem;grid-area:incident;display:flex;text-decoration:none}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.incident[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.3em}.grid[_nghost-%COMP%] .status[_ngcontent-%COMP%], .grid[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{align-self:start;margin-left:-1.5rem;margin-top:-.375rem}.grid[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{align-self:end;margin-left:-1.5rem;margin-bottom:-.375rem}.grid[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-right:0;align-self:start}.grid[_nghost-%COMP%] .unconfirmed-absences[_ngcontent-%COMP%]{height:.875rem}.list[_nghost-%COMP%]{grid-template-areas:"student-name status designation incident previously-absent";grid-template-columns:3fr min-content 3fr 2fr 3em;padding:.5rem .5rem .5rem 1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{justify-self:start}@media (max-width: 750px){.list[_nghost-%COMP%]{grid-template-areas:"student-name student-name student-name previously-absent" "status incidentordesignation incidentordesignation incidentordesignation";grid-template-columns:min-content 1fr 1fr min-content;row-gap:1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%], .list[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{grid-area:incidentordesignation}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{justify-self:end}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-top:0;align-self:start}}']})}return s})();const Xt=function(s){return{returnparams:s}};function en(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"erz-presence-control-entry",7),e.NdJ("togglePresenceType",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.togglePresenceType(o))})("changeIncident",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.changeIncident(o))}),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.qZA()}if(2&s){const t=c.$implicit,n=e.oxw(5);e.Q6J("entry",t)("hasUnconfirmedAbsences",e.lcZ(1,4,n.state.hasUnconfirmedAbsences(t)))("viewMode",e.lcZ(2,6,n.state.viewMode$))("profileReturnParams",e.VKq(10,Xt,e.lcZ(3,8,n.state.queryParamsString$)))}}function tn(s,c){if(1&s&&(e.ynx(0),e.TgZ(1,"div"),e.ALo(2,"async"),e.YNc(3,en,4,12,"erz-presence-control-entry",6),e.qZA(),e.BQk()),2&s){const t=e.oxw(3).erzLet,n=e.oxw();e.xp6(1),e.Gre("default-entries entries view-mode-",e.lcZ(2,4,n.state.viewMode$),""),e.xp6(2),e.Q6J("ngForOf",t.entries)}}function nn(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"presence-control.no-lesson-presences")," "))}function sn(s,c){if(1&s&&(e.ynx(0),e.YNc(1,tn,4,6,"ng-container",1),e.YNc(2,nn,3,3,"ng-template",null,5,e.W1O),e.BQk()),2&s){const t=e.MAs(3),n=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",(null==n.entries?null:n.entries.length)>0)("ngIfElse",t)}}function on(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"presence-control.no-lessons")))}function rn(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"erz-presence-control-header",3),e.NdJ("searchChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.search$.next(o))})("viewModeChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setViewMode(o))})("selectDateChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setDate(o))})("selectLessonChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setLessonId(o.id))}),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async"),e.ALo(7,"async"),e.ALo(8,"async"),e.qZA(),e.YNc(9,sn,4,2,"ng-container",1),e.YNc(10,on,3,3,"ng-template",null,4,e.W1O),e.BQk()}if(2&s){const t=e.MAs(11),n=e.oxw().erzLet,o=e.oxw();e.xp6(1),e.Q6J("selectedLesson",n.lesson)("lessons",n.lessons)("presentCount",e.lcZ(2,11,o.state.presentCount$))("absentCount",e.lcZ(3,13,o.state.absentCount$))("unapprovedCount",e.lcZ(4,15,o.state.unapprovedCount$))("absentPrecedingCount",e.lcZ(5,17,o.state.absentPrecedingCount$))("viewMode",e.lcZ(6,19,o.state.viewMode$))("selectDate",e.lcZ(7,21,o.state.selectedDate$))("search",e.lcZ(8,23,o.search$)),e.xp6(8),e.Q6J("ngIf",n.lesson)("ngIfElse",t)}}function cn(s,c){1&s&&e._UZ(0,"erz-spinner")}function an(s,c){if(1&s&&(e.ynx(0),e.YNc(1,rn,12,25,"ng-container",1),e.ALo(2,"async"),e.YNc(3,cn,1,0,"ng-template",null,2,e.W1O),e.BQk()),2&s){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,n.state.loading$))("ngIfElse",t)}}const ln=function(s,c,t){return{lesson:s,lessons:c,entries:t}};let dn=(()=>{class s{constructor(t,n,o,i,a,p,u){this.state=t,this.blockLessons=n,this.lessonPresencesUpdateService=o,this.presenceTypesService=i,this.modalService=a,this.scrollPosition=p,this.route=u,this.search$=new O.X(""),this.entries$=(0,_.a)([this.state.presenceControlEntriesByGroup$,this.search$]).pipe((0,l.U)((0,$.h)(at.P)),(0,y.d)(1)),this.destroy$=new M.x}ngOnInit(){this.route.queryParams.pipe((0,S.R)(this.destroy$)).subscribe(this.restoreStateFromParams.bind(this))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}doTogglePresenceType(t){t.forEach(n=>this.state.getNextPresenceType(n).subscribe(o=>this.lessonPresencesUpdateService.updatePresenceType(n,o?o.Id:null)))}togglePresenceType(t){this.blockLessons.getBlockLessonPresenceControlEntries(t).pipe((0,P.q)(1)).subscribe(n=>{if(1===n.length)this.doTogglePresenceType([n[0]]);else{const o=this.modalService.open(gt);o.componentInstance.entry=t,o.componentInstance.blockPresenceControlEntries=n,o.result.then(i=>{i&&this.doTogglePresenceType(i)},()=>{})}})}updateIncident(t,n){this.lessonPresencesUpdateService.updatePresenceType(t,n)}changeIncident(t){this.presenceTypesService.incidentTypes$.subscribe(n=>{const o=this.modalService.open(ft);o.componentInstance.incident=n.find(i=>i.Id===t.presenceType?.Id)||null,o.componentInstance.incidentTypes=n,o.result.then(i=>{this.updateIncident(t,i?.Id||null)},()=>{})})}restoreStateFromParams(t){t.date&&this.state.setDate((0,ht.nx)(t.date));const n=String(t.lesson);n&&this.state.setLessonId(n),t.viewMode&&qe.includes(t.viewMode)&&this.state.setViewMode(t.viewMode)}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Le),e.Y36(Ae),e.Y36(ae.c),e.Y36(d.FF),e.Y36(Lt.X),e.Y36(L.gz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-list"]],decls:7,vars:14,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[3,"selectedLesson","lessons","presentCount","absentCount","unapprovedCount","absentPrecedingCount","viewMode","selectDate","search","searchChange","viewModeChange","selectDateChange","selectLessonChange"],["noLessons",""],["noLessonPresences",""],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident",4,"ngFor","ngForOf"],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident"],[1,"mt-3"]],template:function(n,o){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,an,5,4,"ng-container",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"presence-control.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,ln,e.lcZ(4,4,o.state.selectedLesson$),e.lcZ(5,6,o.state.lessons$),e.lcZ(6,8,o.entries$))))},dependencies:[f.sg,f.O5,H.e,ue.O,Gt,Vt,f.Ov,m.X$],styles:["erz-presence-control-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6}.entries.view-mode-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}@media (min-width: 400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%;border-right:1px solid #dee2e6}}@media (min-width: 800px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:50%;border-right:1px solid #dee2e6}}@media (min-width: 1200px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:33.3333333333%;border-right:1px solid #dee2e6}}@media (min-width: 1600px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:25%;border-right:1px solid #dee2e6}}@media (min-width: 2000px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:20%;border-right:1px solid #dee2e6}}@media (min-width: 2400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:16.6666666667%;border-right:1px solid #dee2e6}}[_nghost-%COMP%]{display:block;overflow:hidden;width:100%}.entries.view-mode-grid[_ngcontent-%COMP%]{width:calc(100% + 1px)}"],changeDetection:0})}return s})();var pn=r(6163);const un=[{path:"",component:(()=>{class s{constructor(t,n){this.state=t,this.lessonPresencesUpdateService=n,this.destroy$=new M.x}ngOnInit(){this.lessonPresencesUpdateService.stateUpdates$.pipe((0,S.R)(this.destroy$)).subscribe(t=>this.state.updateLessonPresencesTypes(t))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Ae))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control"]],features:[e._Bn([Z,Le,j,{provide:pn.m,useExisting:Z}])],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"router-outlet")},dependencies:[L.lC],changeDetection:0})}return s})(),children:[{path:"",component:dn,data:{restoreScrollPositionFrom:["/presence-control/student/:id/addresses","/presence-control/student/:id/absences","/presence-control/student/:id/grades"]}},K.H,{path:"groups/:id",component:ct}]}];let gn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({imports:[L.Bz.forChild(un),L.Bz]})}return s})();var hn=r(8393);let mn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({providers:[hn.o],imports:[I.m,gn]})}return s})()},412:(Ze,R,r)=>{r.d(R,{X:()=>N});var I=r(1523),L=r(8645),K=r(2096),O=r(2181),_=r(7398),A=r(8180),l=r(1631),P=r(4664),v=r(2689),$=r(7081),w=r(9773),q=r(836),D=r(5879),e=r(6814);let N=(()=>{class b{constructor(g,d){this.router=g,this.viewportScroller=d,this.scrollPositions={},this.previousRoute=null,this.currentRoute=null,this.currentScrollPosition=[0,0],this.destroy$=new L.x,this.scrollPosition$=this.router.events.pipe((0,O.h)(V),(0,_.U)(this.getScrollPosition.bind(this))),this.activationEnd$=this.router.events.pipe((0,O.h)(W)),this.navigationEnd$=this.router.events.pipe((0,O.h)(X)),this.route$=this.activationEnd$.pipe((0,A.q)(1)).pipe((0,l.z)(m=>[(0,K.of)(m),this.navigationEnd$.pipe((0,P.w)(()=>this.activationEnd$.pipe((0,A.q)(1))))]),(0,v.B)(),(0,_.U)(m=>m.snapshot),(0,$.d)(1)),this.scrollPosition$.pipe((0,w.R)(this.destroy$)).subscribe(m=>this.currentScrollPosition=m),this.route$.pipe((0,w.R)(this.destroy$)).subscribe(m=>{this.previousRoute=this.currentRoute,this.currentRoute=m})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const d=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[d]||[0,0])}const g=this.currentRoute;this.route$.pipe((0,q.T)(1),(0,A.q)(1),(0,w.R)(this.destroy$),(0,O.h)(d=>this.shouldStoreFor(g,d))).subscribe(()=>{const d=this.getPath(g);this.scrollPositions[d]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(g){this.viewportScroller.scrollToPosition(g)}getPath(g){return g?"/"+g.pathFromRoot.map(d=>d.routeConfig&&d.routeConfig.path).filter(d=>d).join("/"):"/"}requiresStoring(g){return!!(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)&&g.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(g,d){return(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)?g.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(d))}static#e=this.\u0275fac=function(d){return new(d||b)(D.LFG(I.F0),D.LFG(e.EM))};static#t=this.\u0275prov=D.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();function W(b){return b instanceof I.jw}function V(b){return b instanceof I.OD}function X(b){return b instanceof I.m2}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[373],{3373:(Ze,R,r)=>{r.r(R),r.d(R,{PresenceControlModule:()=>mn});var I=r(6486),L=r(1523),K=r(1162),O=r(5619),_=r(2572),A=r(9315),l=r(7398),P=r(8180),v=r(4664),$=r(1389),w=r(1342),D=r(6561),e=r(5879);let N=(()=>{class s extends D.z{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=e.n5z(s)))(o||s)}}();static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();function W(s,c){return[...s].sort(function V(s){return(c,t)=>{switch(s.primarySortKey){case"name":{const n=c.name.localeCompare(t.name);return s.ascending?-1*n:n}case"group":{const n=(c.detail.Value||"").localeCompare(t.detail.Value||"");return s.ascending?-1*n:n}}}}(c))}function X(s,c){return s.map(t=>function b(s,c){return{id:s.IdPerson,name:c.find(t=>t.StudentRef.Id===s.IdPerson)?.StudentFullName||"",group:s.Value,detail:s}}(t,c))}function g(s,c){return s.find(t=>t.VssId===c.subscriptionDetailGroupId)}var d=r(253),m=r(9515),f=r(6814),x=r(6223);function we(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","group-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","group-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}var J=function(s){return s.Select="select",s.Assign="assign",s}(J||{});let Ue=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.groupOptions=[]}ngOnInit(){this.title=`presence-control.groups.${this.dialogMode}.title`;const t=this.createEmtpyOption();this.groupOptions=this.createGroupOptions(this.subscriptionDetailsDefinitions),this.groupOptions.unshift(t),this.selected=this.groupOptions.find(n=>n.id===this.group)||t}createEmtpyOption(){return{id:null,label:this.translate.instant(this.dialogMode===J.Select?"presence-control.groups.all":"presence-control.groups.none")}}createGroupOptions(t){return t.DropdownItems?t.DropdownItems.map(n=>({id:n.Key,label:`${this.translate.instant("presence-control.groups.group")} ${n.Value}`})):[]}getSelectedGroup(){return this.selected}onSelectionChange(t){this.selected=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group-dialog"]],inputs:{dialogMode:"dialogMode",subscriptionDetailsDefinitions:"subscriptionDetailsDefinitions",group:"group"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","groups",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,we,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedGroup())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,o.title)," "),e.xp6(3),e.Q6J("ngForOf",o.groupOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.groups.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.groups.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$]})}return s})();var De=r(9189),Ee=r(5301),ee=r(8658),te=r(2194),M=r(8645),B=r(3019),E=r(2096),Fe=r(4825),ne=r(3997),y=r(7081),ge=r(836),S=r(9773),se=r(2181),U=r(4141),Ge=r(6191),he=r(4067),oe=r(8484);function Ne(s){return{Id:s?s.Id:null,HRef:null}}var me=r(6747);function ie(s){return c=>c.reduce((t,n)=>t+(n.presenceCategory===s?1:0),0)}var Y=r(3786),re=r(7105),ce=r(7938),fe=r(7575),_e=r(8366),Be=r(275),Ce=r(8952),ve=r(9862);let Ye=(()=>{class s extends _e.v{constructor(t,n){super(t,n,Ce.C,"LessonTeachers")}loadOtherTeachersLessonAbsences(t,n,o){let i=`${this.baseUrl}/except/${t}/LessonAbsences?expand=LessonRef`;return n&&n.length>0&&(i=i.concat("&filter.StudentRef=;"+n.join(";"))),this.http.get(i,{params:o}).pipe((0,v.w)((0,Be.Y0)(Ce.C)))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var ae=r(905),le=r(7328),de=r(7921),Pe=r(6055),ze=r(654),je=r(3219),He=r(6514);let ye=(()=>{class s extends _e.v{constructor(t,n){super(t,n,He.t,"SubscriptionDetails")}getListForEvent(t){return this.getList({params:{IdEvent:String(t)}})}update(t,n){return this.http.put(`${this.baseUrl}/${n.Id}`,{IdPerson:n.IdPerson,EventId:n.EventId,Value:t}).pipe((0,l.U)(()=>{}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var z=r(3005);const be="presence-control-group";let j=(()=>{class s{constructor(t,n,o,i,a,p){this.userSettings=t,this.eventService=n,this.subscriptionService=o,this.subscriptionDetailsService=i,this.loadingService=a,this.settings=p,this.selectGroup$=new M.x,this.selectedLesson$=new le.t,this.lessonPresences$=new le.t,this.reloadSubscriptionDetails$=new M.x,this.defaultGroup=null,this.savedGroup$=this.selectedLesson$.pipe((0,v.w)(u=>this.userSettings.getPresenceControlGroupView().pipe((0,l.U)(C=>this.findGroupByLesson(C,u))))),this.group$=(0,B.T)(this.selectGroup$,this.savedGroup$).pipe((0,de.O)(this.defaultGroup),(0,y.d)(1)),this.loading$=this.loadingService.loading(be),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe((0,l.U)(u=>u?.getEventIds()||[]),(0,v.w)(u=>(0,A.D)(u.map(C=>this.eventService.getSubscriptionDetailsDefinitions(C)))),(0,y.d)(1)),this.groupsAvailability$=this.subscriptionDetailsDefinitions$.pipe((0,l.U)(u=>u.every(C=>g(C,this.settings))),(0,y.d)(1)),this.subscriptionDetails$=(0,_.a)([this.selectedLesson$,this.groupsAvailability$,this.reloadSubscriptionDetails$.pipe((0,l.U)(()=>!1),(0,de.O)(!0))]).pipe((0,v.w)(([u,C,T])=>u&&C?this.loadSubscriptionDetailsForLesson(u,T):(0,E.of)([])),(0,l.U)(u=>function Ie(s,c){return s.filter(t=>t.VssId===c.subscriptionDetailGroupId)}(u,this.settings)),(0,y.d)(1)),this.subscriptionDetailPersonIds$=(0,_.a)([this.group$,this.subscriptionDetails$]).pipe((0,l.U)(([u,C])=>C.filter(T=>T.Value===u).map(T=>T.IdPerson)),(0,de.O)([]))}selectGroup(t){this.selectGroup$.next(t)}setSelectedLesson(t){this.selectedLesson$.next(t)}setLessonPresences(t){this.lessonPresences$.next(t)}getSubscriptionDetailsDefinitions(){return this.subscriptionDetailsDefinitions$.pipe((0,l.U)(Pe.Z),(0,l.U)(t=>g(t,this.settings)))}getSubscriptionDetailsForStudents(){return(0,_.a)([this.subscriptionDetails$,this.lessonPresences$]).pipe((0,l.U)((0,$.h)(X)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(t,n=!0){return this.loadingService.load((0,A.D)((0,te.Z)(t.getEventIds()).map(o=>this.subscriptionDetailsService.getListForEvent(o))),n?void 0:be).pipe((0,l.U)(Pe.Z))}findGroupByLesson(t,n){return t.find(i=>i.eventId===n?.getEventIds()[0])?.group||this.defaultGroup}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(ze.O),e.LFG(je.o),e.LFG(ye),e.LFG(z.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Qe=r(5001),Ke=r(8173);const qe=Object.values(Y.PW);let Z=(()=>{class s{constructor(t,n,o,i,a,p,u,C,T,G){this.userSettings=t,this.lessonPresencesService=n,this.lessonTeacherService=o,this.presenceTypesService=i,this.groupService=a,this.dropDownItemsService=p,this.loadingService=u,this.storageService=C,this.settings=T,this.location=G,this.selectedDateSubject$=new O.X(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe((0,l.U)(De.Z),(0,ne.x)(ee.Z)),this.viewModeSubject$=new M.x,this.viewMode$=(0,B.T)(this.viewModeSubject$,this.userSettings.getPresenceControlViewMode().pipe((0,P.q)(1))),this.lessons$=this.selectedDate$.pipe((0,v.w)(h=>this.loadLessonsByDate(h)),(0,y.d)(1)),this.selectLessonId$=new M.x,this.selectLesson$=this.selectLessonId$.pipe((0,v.w)(h=>this.getLessonById(h))),this.selectedLesson$=(0,_.a)([(0,re.eG)(this.selectLesson$.pipe((0,ne.x)((h,k)=>(0,ee.Z)(h,k))),(0,re.re)(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe((0,l.U)(([h,k])=>k.find(fn=>fn.id===h.id)?h:null),(0,y.d)(1)),this.updateLessonPresences$=new M.x,this.lessonPresences$=(0,B.T)(this.selectedLesson$.pipe((0,v.w)(h=>h?this.loadLessonPresencesByLesson(h):(0,E.of)([]))),this.updateLessonPresences$).pipe((0,y.d)(1)),this.presenceTypes$=this.loadPresenceTypes().pipe((0,y.d)(1)),this.studentIdsWithUnconfirmedAbsences$=(0,re.eG)(this.selectedDate$,this.selectedLesson$.pipe((0,ge.T)(1))).pipe((0,v.w)(()=>this.loadStudentIdsWithUnconfirmedAbsences()),(0,y.d)(1)),this.loading$=this.loadingService.loading$,this.absenceConfirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,y.d)(1)),this.studentIds$=this.lessonPresences$.pipe((0,l.U)(h=>(0,te.Z)(h.map(k=>k.StudentRef.Id))),(0,y.d)(1)),this.otherTeachersAbsences$=this.studentIds$.pipe((0,ne.x)(ee.Z),(0,v.w)(h=>h.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),h):(0,E.of)([])),(0,y.d)(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=(0,_.a)([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe((0,l.U)((0,$.h)(me.bL))),this.presenceControlEntriesByGroup$=(0,_.a)([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe((0,l.U)((0,$.h)(Ge.C)),(0,y.d)(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(s=>s.reduce((c,t)=>c+(t.precedingAbsences&&t.precedingAbsences.length>0?1:0),0))),this.queryParamsString$=(0,_.a)([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe((0,l.U)((0,$.h)(this.buildQueryParams.bind(this))),(0,l.U)(w.tW)),this.destroy$=new M.x,this.queryParamsString$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.location.replaceState("/presence-control",h),this.confirmBackLinkParams={returnparams:h}}),this.viewMode$.pipe((0,ge.T)(1),(0,v.w)(h=>this.userSettings.savePresenceControlViewMode(h)),(0,S.R)(this.destroy$)).subscribe(),this.selectedLesson$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.groupService.setSelectedLesson(h)}),this.lessonPresences$.pipe((0,S.R)(this.destroy$)).subscribe(h=>this.groupService.setLessonPresences(h))}ngOnDestroy(){this.destroy$.next()}setDate(t){this.selectedDateSubject$.next(t)}setLessonId(t){this.selectLessonId$.next(t)}setViewMode(t){this.viewModeSubject$.next(t)}updateLessonPresencesTypes(t){(0,_.a)([this.lessonPresences$.pipe((0,P.q)(1)),this.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>function ke(s,c,t,n){return s.map(o=>{const i=c.find(a=>function Re(s,c){return s.LessonRef.Id===c.LessonRef.Id&&s.StudentRef.Id===c.StudentRef.Id}(a.presence,o));if(i){let a;return a=!i.newPresenceTypeId&&o.Comment?t.find(p=>p.IsComment)||null:t.find(p=>p.Id===i.newPresenceTypeId)||null,{...o,TypeRef:Ne(a),Date:null,Type:a?a.Designation:null,ConfirmationStateId:(0,oe.LO)(a,n)}}return o})}(n,t,o,this.settings))).subscribe(n=>this.updateLessonPresences$.next(n))}getNextPresenceType(t){return this.presenceTypes$.pipe((0,P.q)(1),(0,l.U)(n=>t.getNextPresenceType(n)))}hasUnconfirmedAbsences(t){return this.studentIdsWithUnconfirmedAbsences$.pipe((0,l.U)(n=>n.includes(t.lessonPresence.StudentRef.Id)))}loadLessonPresencesByLesson(t){return this.loadingService.load(this.lessonPresencesService.getListByLessons(t.lessons))}loadLessonsByDate(t){return this.loadingService.load(this.lessonPresencesService.getLessonsByDate(t)).pipe((0,l.U)(he.sm))}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.presenceTypes$)}loadStudentIdsWithUnconfirmedAbsences(){return(0,Fe.H)(0,this.settings.unconfirmedAbsencesRefreshTime||-1).pipe((0,v.w)(()=>this.lessonPresencesService.getListOfUnconfirmed()),(0,l.U)(t=>(0,te.Z)(t.map(n=>n.StudentRef.Id))))}buildQueryParams(t,n,o){const i={date:(0,Ee.Z)(t,"yyyy-MM-dd"),viewMode:o};return n&&(i.lesson=String(n.id)),i}getLessonById(t){const n=String(t);return this.lessons$.pipe((0,l.U)(o=>n&&o.find(i=>i.id===n)||(0,he.S9)(o)),(0,se.h)(Boolean))}getMyself(){const t=this.storageService.getPayload();return Number(t?.holder_id||t?.id_person)}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(fe.q),e.LFG(Ye),e.LFG(ae.c),e.LFG(j),e.LFG(Qe.R),e.LFG(z.b),e.LFG(Ke.V),e.LFG(U.L6),e.LFG(f.Ye))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var pe=r(6869),H=r(6567),ue=r(59),We=r(7625);function Ve(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.toggleSort(i))}),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",14),e._uU(4),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw().erzLet,o=e.oxw();e.Q6J("className",t),e.xp6(1),e.hij(" ",e.lcZ(2,3,"presence-control.groups.list.header."+t)," "),e.xp6(3),e.Oqu(o.getSortDirectionCharacter(n.sortCriteria,t))}}function Xe(s,c){1&s&&e._UZ(0,"erz-spinner",23)}function et(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",16)(2,"div",17)(3,"input",18,19),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw(3);return e.KtG(a.selectionService.toggle(i))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",20),e._uU(7),e.qZA(),e.TgZ(8,"div",21)(9,"span"),e._uU(10),e.qZA(),e.YNc(11,Xe,1,0,"erz-spinner",22),e.ALo(12,"async"),e.qZA()(),e.BQk()}if(2&s){const t=c.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("checked",e.lcZ(5,4,n.selectionService.isSelected$(t))),e.xp6(4),e.hij(" ",t.name," "),e.xp6(3),e.Oqu(t.group?t.group:""),e.xp6(1),e.Q6J("ngIf",e.lcZ(12,6,n.groupService.loading$))}}function tt(s,c){if(1&s&&(e.ynx(0),e.YNc(1,et,13,8,"ng-container",15),e.BQk()),2&s){const t=e.oxw().erzLet;e.xp6(1),e.Q6J("ngForOf",t.sortedEntries)}}function nt(s,c){1&s&&e._UZ(0,"erz-spinner")}const st=function(){return["/presence-control"]},ot=function(){return["name","group"]};function it(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div"),e._UZ(1,"erz-backlink",1),e.ALo(2,"async"),e.TgZ(3,"h1"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",2)(7,"div",3)(8,"span",4),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",5),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.selectGroup())}),e._uU(12),e.ALo(13,"translate"),e.ALo(14,"translate"),e.qZA()(),e.TgZ(15,"a",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.assignGroup())}),e.TgZ(16,"i",7),e._uU(17,"edit"),e.qZA()()(),e.TgZ(18,"div",8)(19,"div",9),e.YNc(20,Ve,5,5,"div",10),e.qZA(),e.YNc(21,tt,2,1,"ng-container",11),e.ALo(22,"async"),e.YNc(23,nt,1,0,"ng-template",null,12,e.W1O),e.qZA()()}if(2&s){const t=c.erzLet,n=e.MAs(24),o=e.oxw();e.xp6(1),e.Q6J("routerLink",e.DdM(22,st))("queryParams",e.lcZ(2,10,o.backlinkQueryParams$)),e.xp6(3),e.Oqu(e.lcZ(5,12,"presence-control.groups.title")),e.xp6(5),e.Oqu(e.lcZ(10,14,"presence-control.groups.show")),e.xp6(3),e.hij(" ",t.group?e.lcZ(13,16,"presence-control.groups.group")+" "+t.group:e.lcZ(14,18,"presence-control.groups.all")," "),e.xp6(3),e.ekj("disabled",0===t.selection.length),e.xp6(5),e.Q6J("ngForOf",e.DdM(23,ot)),e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(22,20,o.state.loading$))("ngIfElse",n)}}const rt=function(s,c,t,n){return{sortCriteria:s,sortedEntries:c,selection:t,group:n}};let ct=(()=>{class s{constructor(t,n,o,i,a,p,u,C,T){this.route=t,this.state=n,this.selectionService=o,this.groupService=i,this.userSettings=a,this.subscriptionDetailService=p,this.toastService=u,this.translate=C,this.modalService=T,this.backlinkQueryParams$=this.route.queryParams.pipe((0,l.U)(({returnparams:G})=>G),(0,l.U)(w.dD)),this.eventIds$=this.state.selectedLesson$.pipe((0,l.U)(G=>G?.getEventIds()||[])),this.sortCriteriaSubject$=new O.X({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,_.a)([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe((0,l.U)((0,$.h)(W))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(t=>this.selected=t)}selectGroup(){this.openGroupModal(J.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(J.Assign,this.assignCallback.bind(this))}openGroupModal(t,n){(0,_.a)([this.groupService.getSubscriptionDetailsDefinitions(),this.groupService.group$]).pipe((0,P.q)(1)).subscribe(([o,i])=>{const a=this.modalService.open(Ue);a.componentInstance.dialogMode=t,a.componentInstance.subscriptionDetailsDefinitions=o,a.componentInstance.group=i,a.result.then(p=>{n(p)},()=>{})})}selectCallback(t){(0,_.a)([this.eventIds$,this.userSettings.getPresenceControlGroupView()]).pipe((0,P.q)(1),(0,v.w)(([n,o])=>this.userSettings.savePresenceControlGroupView(function q(s,c,t){const n=c.map(i=>({eventId:i,group:s})),o=t.map(i=>n.find(a=>a.eventId===i.eventId)||i);return[...new Set([...o,...n])].filter(i=>null!==i.group)}(t.id,n,o))),(0,l.U)(()=>t.id)).subscribe(n=>this.groupService.selectGroup(n))}assignCallback(t){(0,A.D)(this.selected.map(n=>this.subscriptionDetailService.update(t.id,n.detail))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.groupService.reloadSubscriptionDetails(),this.selectionService.clear(),this.toastService.success(this.translate.instant("presence-control.groups.notifications.save-success"))}getSortDirectionCharacter(t,n){return t.primarySortKey!==n?"":t.ascending?"\u2193":"\u2191"}toggleSort(t){this.sortCriteriaSubject$.pipe((0,P.q)(1)).subscribe(n=>{this.sortCriteriaSubject$.next(n.primarySortKey===t?{primarySortKey:t,ascending:!n.ascending}:{primarySortKey:t,ascending:"name"===t})})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(L.gz),e.Y36(Z),e.Y36(N),e.Y36(j),e.Y36(ce.s),e.Y36(ye),e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group"]],features:[e._Bn([N])],decls:5,vars:14,consts:[[4,"erzLet"],[3,"routerLink","queryParams"],[1,"group-header","mb-2","d-flex","justify-content-between"],[1,"d-flex","align-items-baseline"],[1,"ps-3"],["type","button",1,"show","btn","btn-link",3,"click"],["aria-label","edit",1,"btn","btn-primary","btn-icon","me-2",3,"click"],[1,"material-icons"],[1,"group-list"],[1,"group-list-header"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["loading",""],[3,"className","click"],[1,"sort-direction"],[4,"ngFor","ngForOf"],[1,"group-list-entry"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["checkbox",""],[1,"name","pe-2"],[1,"group","d-flex","justify-content-between"],["class","inline small",4,"ngIf"],[1,"inline","small"]],template:function(n,o){1&n&&(e.YNc(0,it,25,24,"div",0),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async")),2&n&&e.Q6J("erzLet",e.l5B(9,rt,e.lcZ(1,1,o.sortCriteria$),e.lcZ(2,3,o.sortedEntries$),e.lcZ(3,5,o.selectionService.selection$),e.lcZ(4,7,o.groupService.group$)))},dependencies:[f.sg,f.O5,L.rH,H.e,ue.O,We.I,f.Ov,m.X$],styles:['[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000;font-weight:300;text-decoration:underline;padding-left:.5rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.group-list-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"name group";grid-template-columns:3fr 2fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6}.group-list-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name group";grid-template-columns:min-content 3fr 2fr}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.name[_ngcontent-%COMP%]{grid-area:name;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.group[_ngcontent-%COMP%]{grid-area:group}@media (max-width: 750px){.group-list[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.group-list-header[_ngcontent-%COMP%]{grid-template-columns:3fr 1fr}.group-list-entry[_ngcontent-%COMP%]{grid-template-columns:min-content 3fr 1fr}}'],changeDetection:0})}return s})();var at=r(2547),xe=r(581),lt=r(2816);function pt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",3)(1,"input",4),e.NdJ("change",function(){const i=e.CHM(t).$implicit;return e.KtG(i.selected=!i.selected)}),e.qZA(),e.TgZ(2,"label",5)(3,"i"),e._uU(4),e.qZA(),e.TgZ(5,"div",6),e._uU(6),e.ALo(7,"date"),e.ALo(8,"date"),e.qZA()()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","lesson-presence-",n,""),e.Q6J("checked",t.selected),e.xp6(1),e.ekj("fw-bold",o.isCurrentLesson(t)),e.MGl("for","lesson-presence-",n,""),e.xp6(1),e.Gre("",t.entry.presenceCategory," material-icons pe-2"),e.xp6(1),e.Oqu(t.entry.presenceCategoryIcon),e.xp6(2),e.lnq(" ",e.xi3(7,12,t.entry.lessonPresence.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(8,15,t.entry.lessonPresence.LessonDateTimeTo,"HH:mm")," ",t.entry.lessonPresence.EventDesignation," ")}}function ut(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",7)(1,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.activeModal.close())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",9),e.NdJ("click",function(){const i=e.CHM(t).erzLet,a=e.oxw();return e.KtG(a.activeModal.close(i))}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&s){const t=c.erzLet;e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.cancel")," "),e.xp6(2),e.Q6J("disabled",0===t.length),e.xp6(1),e.hij(" ",e.lcZ(6,5,"presence-control.block-lesson.save")," ")}}let gt=(()=>{class s{constructor(t){this.activeModal=t,this.blockLessonOptions=[]}ngOnInit(){this.blockLessonOptions=this.buildLessonPresenceOptions()}getSelectedEntries(){return this.blockLessonOptions.filter(({selected:t})=>t).map(({entry:t})=>t)}isCurrentLesson(t){return function dt(s,c){(0,lt.Z)(2,arguments);var t=(0,xe.Z)(s),n=(0,xe.Z)(c);return t.getTime()===n.getTime()}(t.entry.lessonPresence.LessonDateTimeFrom,this.entry.lessonPresence.LessonDateTimeFrom)}buildLessonPresenceOptions(){return this.blockPresenceControlEntries.map(t=>({entry:t,selected:this.entry.confirmationState===t.confirmationState}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-block-lesson-component"]],inputs:{entry:"entry",blockPresenceControlEntries:"blockPresenceControlEntries"},decls:7,vars:5,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],["class","modal-footer",4,"erzLet"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","checked","change"],[1,"form-check-label","d-flex",3,"for"],[1,"d-block","text-truncate"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,pt,9,18,"div",1),e.qZA()(),e.YNc(6,ut,7,7,"div",2)),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.text")," "),e.xp6(3),e.Q6J("ngForOf",o.blockLessonOptions),e.xp6(1),e.Q6J("erzLet",o.getSelectedEntries()))},dependencies:[f.sg,x._Y,x.JL,x.F,H.e,f.uU,m.X$],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.absent[_ngcontent-%COMP%]{color:#d01018}.present[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_ngcontent-%COMP%]{color:#ffa814}"]})}return s})();var ht=r(2220);function mt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","incident-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","incident-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}let ft=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.incidentOptions=[]}ngOnInit(){const t=this.createIncidentOption();this.incidentOptions=this.incidentTypes.map(n=>this.createIncidentOption(n)),this.incidentOptions.unshift(t),this.selected=this.incidentOptions.find(n=>n.id===this.incident?.Id)||t}createIncidentOption(t){return{id:t?t.Id:null,label:t?t.Designation:this.translate.instant("presence-control.incident.no-incident")}}onSelectionChange(t){this.selected=t}getSelectedIncident(){return this.incidentTypes.find(t=>t.Id===this.selected?.id)||null}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-incident"]],inputs:{incident:"incident",incidentTypes:"incidentTypes"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","incident",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,mt,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedIncident())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,"presence-control.incident.text")," "),e.xp6(3),e.Q6J("ngForOf",o.incidentOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.incident.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.incident.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$],styles:["form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #dee2e6;padding-bottom:1rem;margin-bottom:1rem}"]})}return s})();function Me(s){return`blockLesson${s.lessonPresence.Id}`}let Le=(()=>{class s{constructor(t,n,o,i){this.state=t,this.lessonPresencesService=n,this.loadingService=o,this.settings=i}getBlockLessonPresenceControlEntries(t){return(0,_.a)([this.state.lessons$.pipe((0,P.q)(1)),this.loadChangeableLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1)),this.state.absenceConfirmationStates$.pipe((0,P.q)(1)),this.state.otherTeachersAbsences$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o,i,a,p])=>this.filterBlockLessonPresences(t,o).map(u=>(0,me.uP)(n.find(C=>C.id===u.LessonRef.Id.toString()),u,i,a,p))))}filterBlockLessonPresences(t,n){return[...n].sort((o,i)=>o.LessonDateTimeFrom>i.LessonDateTimeFrom?1:-1).reduce((o,i)=>this.isWithinBlockTime(i,o[o.length-1])?(o.push(i),o):o.find(p=>p.Id===t.lessonPresence.Id)?o:[i],[])}isWithinBlockTime(t,n){return!n||t.LessonDateTimeFrom.getTime()-n.LessonDateTimeTo.getTime()<=18e5}loadChangeableLessonPresences(t){return(0,_.a)([this.loadLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>n.filter(i=>(0,oe.NF)(i,o.find(a=>a.Id===i.TypeRef.Id)||null,this.settings))))}loadLessonPresences(t){return this.loadingService.load(this.lessonPresencesService.getListByDateStudentClass(t.lessonPresence.LessonDateTimeFrom,t.lessonPresence.StudentRef.Id,t.lessonPresence.StudyClassRef.Id??void 0).pipe((0,l.U)(n=>n.filter(o=>o.TeacherInformation===t.lessonPresence.TeacherInformation))),Me(t))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(Z),e.LFG(fe.q),e.LFG(z.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Ct=r(6699),vt=r(3020),Te=r(3620),Pt=r(6328),yt=r(6306),Oe=r(2769),$e=r(6100),Q=r(3942),bt=r(6023),F=function(s){return s.AddUpdateAction="ADD",s.RemoveUpdateAction="REMOVE",s}(F||{});let Ae=(()=>{class s{constructor(t,n,o,i,a){this.toastService=t,this.translate=n,this.restService=o,this.presenceTypesService=i,this.settings=a,this.destroy$=new M.x,this.action$=new M.x,this.pendingUpdates$=this.action$.pipe((0,Ct.R)(this.reduceUpdates.bind(this),[]),(0,vt.B)()),this.revertUpdates$=new M.x,this.performUpdates$=this.pendingUpdates$.pipe((0,Te.b)(100),(0,se.h)((0,Q.ff)($e.yD)),(0,Pt.b)(this.performUpdates.bind(this))),this.stateUpdates$=(0,B.T)(this.pendingUpdates$,this.revertUpdates$).pipe((0,Te.b)(20),(0,se.h)((0,Q.ff)($e.yD))),this.performUpdates$.pipe((0,S.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next()}updatePresenceType(t,n=null){this.dispatchAddUpdate(t.lessonPresence,n)}performUpdates(t){const n=this.groupUpdates(t);return(0,_.a)(Object.keys(n).reduce((o,i)=>{const a=n[i];return Object.keys(a).forEach(p=>{o.push(this.performUpdateForGroup(a[p]))}),o},[])).pipe((0,l.U)(()=>n))}performUpdateForGroup(t){return t.forEach(n=>this.dispatchRemoveUpdate(n.presence)),this.performLessonPresencesUpdatesByIds(t[0].presence.LessonRef.Id,t.map(n=>n.presence.StudentRef.Id),t[0].newPresenceTypeId).pipe((0,yt.K)(n=>this.revertUpdatesAfterError(t,n)))}performLessonPresencesUpdatesByIds(t,n,o=null){return o?(o?this.presenceTypesService.getPresenceType(o):(0,E.of)(null)).pipe((0,v.w)(a=>this.restService.editLessonPresences([t],n,a?.Id,(0,oe.LO)(a,this.settings)||void 0,(0,Oe.I)({disableErrorHandling:!0})))):this.restService.removeLessonPresences([t],n,(0,Oe.I)({disableErrorHandling:!0}))}revertUpdatesAfterError(t,n){return console.error("Bulk-update of lesson presences failed"),console.error(n),this.toastService.error(this.translate.instant("shared.lesson-presences-update.error")),this.revertUpdates$.next(t.map(o=>({...o,newPresenceTypeId:o.presence.TypeRef.Id}))),(0,E.of)(void 0)}groupUpdates(t){return t.reduce((n,o)=>{const i=String(o.newPresenceTypeId&&o.newPresenceTypeId);return n[i]||(n[i]={}),Array.isArray(n[i][o.presence.LessonRef.Id])||(n[i][o.presence.LessonRef.Id]=[]),n[i][o.presence.LessonRef.Id].push(o),n},{})}reduceUpdates(t,n){switch(n.type){case F.AddUpdateAction:{const{presence:o,newPresenceTypeId:i}=n.payload,a=t.findIndex(Se(o));return-1===a?[...t,{presence:o,newPresenceTypeId:i}]:[...t.slice(0,a),{presence:t[a].presence,newPresenceTypeId:i},...t.slice(a+1)]}case F.RemoveUpdateAction:return t.filter((0,Q.ff)(Se(n.payload)));default:return t}}dispatchAddUpdate(t,n){this.action$.next({type:F.AddUpdateAction,payload:{presence:t,newPresenceTypeId:n}})}dispatchRemoveUpdate(t){this.action$.next({type:F.RemoveUpdateAction,payload:t})}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(pe.k),e.LFG(m.sK),e.LFG(bt.O),e.LFG(ae.c),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Se(s){return c=>c.presence.LessonRef.Id===s.LessonRef.Id&&c.presence.StudentRef.Id===s.StudentRef.Id}var Lt=r(412),Tt=r(3296),Ot=r(7163);function $t(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",22),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.lessonDropdown.toggle())}),e._uU(1),e.ALo(2,"date"),e.TgZ(3,"span",23),e._uU(4),e.ALo(5,"date"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,2,t.selectedLesson.LessonDateTimeFrom,"HH:mm"),"\u2013"),e.xp6(3),e.Oqu(e.xi3(5,5,t.selectedLesson.LessonDateTimeTo,"HH:mm"))}}function At(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",29),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.selectLessonChange.emit(i))}),e.TgZ(1,"div",30)(2,"div"),e._uU(3),e.ALo(4,"date"),e.ALo(5,"date"),e.qZA(),e.TgZ(6,"div",26),e._uU(7),e.qZA(),e.TgZ(8,"div",26),e._uU(9),e.qZA()()()}if(2&s){const t=c.$implicit,n=e.oxw(2);e.ekj("active",t.id===n.selectedLesson.id),e.xp6(3),e.AsE(" ",e.xi3(4,6,t.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(5,9,t.LessonDateTimeTo,"HH:mm")," "),e.xp6(4),e.Oqu(t.eventDesignations),e.xp6(2),e.Oqu(t.studyClassNumbers)}}function St(s,c){if(1&s&&(e.TgZ(0,"div",24)(1,"div",25)(2,"div",26),e._uU(3),e.qZA(),e.TgZ(4,"div",26),e._uU(5),e.qZA()(),e.TgZ(6,"div",27),e.YNc(7,At,10,12,"div",28),e.qZA()()),2&s){const t=e.oxw();e.xp6(3),e.Oqu(t.selectedLesson.eventDesignations),e.xp6(2),e.Oqu(t.selectedLesson.studyClassNumbers),e.xp6(2),e.Q6J("ngForOf",t.lessons)}}function Zt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.lessonDropdown?null:o.lessonDropdown.toggle())}),e.TgZ(1,"i",3),e._uU(2),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(2),e.hij(" ",null!=t.lessonDropdown&&t.lessonDropdown.isOpen()?"keyboard_arrow_up":"keyboard_arrow_down"," ")}}const It=function(s,c){return{"btn-link":s,"btn-danger":c}},wt=function(s){return["groups",s]},Ut=function(s){return{returnparams:s}};function Dt(s,c){if(1&s&&(e.TgZ(0,"a",32),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.TgZ(4,"i",33),e._uU(5,"groups"),e.qZA()()),2&s){const t=e.oxw();e.Q6J("ngClass",e.WLB(9,It,!1===e.lcZ(1,3,t.isGroupSelected$),e.lcZ(2,5,t.isGroupSelected$)))("routerLink",e.VKq(12,wt,t.selectedLesson.id))("queryParams",e.VKq(14,Ut,e.lcZ(3,7,t.state.queryParamsString$)))}}function Et(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.viewModeChange.emit(i.viewMode))}),e.TgZ(1,"i",33),e._uU(2),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw();e.ekj("btn-outline-secondary",t.viewMode===n.viewMode)("btn-link",t.viewMode!==n.viewMode)("active",t.viewMode===n.viewMode),e.Q6J("disabled",!n.selectedLesson),e.xp6(2),e.Oqu(t.icon)}}const Ft=d.jt.prototype._positionMenu;d.jt.prototype._positionMenu=function(...c){const t=Ft.apply(this,c);if("lesson-dropdown"===this._anchor.nativeElement.id){const n=this._bodyContainer||this._menu.nativeElement,o=n.style.transform?.match(/translate\(([0-9-.]+)px, ([0-9-.]+)px\)/);o&&parseFloat(o[1])<0&&(n.style.transform=`translate(0px, ${o[2]}px)`)}return t};let Gt=(()=>{class s{constructor(t,n,o){this.state=t,this.groupService=n,this.presentCount=null,this.absentCount=null,this.unapprovedCount=null,this.absentPrecedingCount=null,this.search="",this.selectLessonChange=new e.vpe,this.selectDateChange=new e.vpe,this.searchChange=new e.vpe,this.viewModeChange=new e.vpe,this.viewModeOptions=[{viewMode:Y.PW.List,icon:"list"},{viewMode:Y.PW.Grid,icon:"view_module"}],this.isGroupSelected$=this.groupService.group$.pipe((0,l.U)(Q.Nf)),o.popperOptions=i=>({...i,modifiers:i.modifiers?.map(a=>("offset"===a.name&&(a.options={offset:({placement:p,reference:u,popper:C})=>"bottom-start"===p?[(window.innerWidth-C.width)/2-u.x,0]:[]}),a))})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(j),e.Y36(d.Be))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-header"]],viewQuery:function(n,o){if(1&n&&e.Gf(d.jt,5),2&n){let i;e.iGM(i=e.CRH())&&(o.lessonDropdown=i.first)}},inputs:{selectedLesson:"selectedLesson",lessons:"lessons",presentCount:"presentCount",absentCount:"absentCount",unapprovedCount:"unapprovedCount",absentPrecedingCount:"absentPrecedingCount",viewMode:"viewMode",selectDate:"selectDate",search:"search"},outputs:{selectLessonChange:"selectLessonChange",selectDateChange:"selectDateChange",searchChange:"searchChange",viewModeChange:"viewModeChange"},features:[e._Bn([d.Be,{provide:d.DO,useClass:d.s5},{provide:d.NG,useClass:Tt.n}])],decls:40,vars:20,consts:[[1,"navigation"],[1,"lesson-date"],["type","button",1,"btn","btn-link",3,"click"],[1,"material-icons"],["positionTarget",".lesson-date-input","ngbDatepicker","","placement","bottom-start",1,"lesson-date-input",3,"ngModel","ngModelChange"],["d","ngbDatepicker"],["class","lesson-time",3,"click",4,"ngIf"],["ngbDropdown","","class","lesson-description","container","body","display","dynamic","placement","bottom",4,"ngIf"],["type","button","class","dropdown-caret btn btn-link",3,"click",4,"ngIf"],[1,"states"],[1,"state","present"],[1,"count"],[1,"state","absent"],[1,"state","unapproved"],[1,"state","previously-absent"],[1,"material-icons-outlined"],[1,"search-and-views"],[1,"search",3,"value","disabled","placeholder","label","valueChange"],[1,"group-and-views","d-flex","align-items-center"],["type","button","class","group btn me-xs-0 me-sm-4",3,"ngClass","routerLink","queryParams",4,"ngIf"],[1,"views"],["type","button","class","view btn btn-primary btn-icon",3,"disabled","btn-outline-secondary","btn-link","active","click",4,"ngFor","ngForOf"],[1,"lesson-time",3,"click"],[1,"lesson-time-to"],["ngbDropdown","","container","body","display","dynamic","placement","bottom",1,"lesson-description"],["id","lesson-dropdown","ngbDropdownToggle",""],[1,"text-truncate"],["ngbDropdownMenu","","aria-labelledby","lesson-dropdown"],["ngbDropdownItem","",3,"active","click",4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"],[1,"lesson-entry"],["type","button",1,"dropdown-caret","btn","btn-link",3,"click"],["type","button",1,"group","btn","me-xs-0","me-sm-4",3,"ngClass","routerLink","queryParams"],[1,"material-icons","align-middle"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"disabled","click"]],template:function(n,o){if(1&n){const i=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(6);return e.KtG(p.toggle())}),e.TgZ(3,"i",3),e._uU(4,"calendar_today"),e.qZA()(),e.TgZ(5,"input",4,5),e.NdJ("ngModelChange",function(p){return o.selectDateChange.emit(p)}),e.qZA()(),e.YNc(7,$t,6,8,"div",6),e.YNc(8,St,8,3,"div",7),e.YNc(9,Zt,3,1,"button",8),e.qZA(),e.TgZ(10,"div",9)(11,"div",10)(12,"i",3),e._uU(13,"check_circle"),e.qZA(),e.TgZ(14,"span",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",12)(17,"i",3),e._uU(18,"cancel"),e.qZA(),e.TgZ(19,"span",11),e._uU(20),e.qZA()(),e.TgZ(21,"div",13)(22,"i",3),e._uU(23,"help"),e.qZA(),e.TgZ(24,"span",11),e._uU(25),e.qZA()(),e.TgZ(26,"div",14)(27,"i",15),e._uU(28,"info"),e.qZA(),e.TgZ(29,"span",11),e._uU(30),e.qZA()()(),e.TgZ(31,"div",16)(32,"erz-resettable-input",17),e.NdJ("valueChange",function(p){return o.searchChange.emit(p)}),e.ALo(33,"translate"),e.ALo(34,"translate"),e.qZA(),e.TgZ(35,"div",18),e.YNc(36,Dt,6,16,"a",19),e.ALo(37,"async"),e.TgZ(38,"div",20),e.YNc(39,Et,3,8,"button",21),e.qZA()()()}2&n&&(e.xp6(5),e.Q6J("ngModel",o.selectDate),e.xp6(2),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.lessons.length>0),e.xp6(6),e.Oqu(null!==o.presentCount?o.presentCount:"?"),e.xp6(5),e.Oqu(null!==o.absentCount?o.absentCount:"?"),e.xp6(5),e.Oqu(null!==o.unapprovedCount?o.unapprovedCount:"?"),e.xp6(5),e.Oqu(null!==o.absentPrecedingCount?o.absentPrecedingCount:"?"),e.xp6(2),e.Q6J("value",o.search)("disabled",!o.selectedLesson)("placeholder",e.lcZ(33,14,"presence-control.header.search-by-name"))("label",e.lcZ(34,16,"presence-control.header.search")),e.xp6(4),e.Q6J("ngIf",e.lcZ(37,18,o.selectedLesson&&o.state.groupsAvailability$)),e.xp6(3),e.Q6J("ngForOf",o.viewModeOptions))},dependencies:[f.mk,f.sg,f.O5,x.Fj,x.JJ,x.On,L.rH,d.J4,d.jt,d.iD,d.Vi,d.TH,Ot.w,f.Ov,f.uU,m.X$],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.75rem 0}.navigation[_ngcontent-%COMP%]{display:grid;grid-template-areas:". date time dropdown-caret" ". description description dropdown-caret";grid-template-columns:1fr auto auto 1fr;align-items:center}.lesson-date[_ngcontent-%COMP%]{grid-area:date;justify-self:end;display:flex;align-items:center;justify-content:flex-end}.lesson-date[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 .5ch 0 0}.lesson-date[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#000;position:relative}.lesson-date-input[_ngcontent-%COMP%]{font-weight:600;background:transparent;border:none;width:11ch}.lesson-time[_ngcontent-%COMP%]{grid-area:time;cursor:pointer}.lesson-description[_ngcontent-%COMP%]{grid-area:description;overflow:hidden;text-align:center;cursor:pointer}.dropdown-toggle[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none}.dropdown-caret[_ngcontent-%COMP%]{grid-area:dropdown-caret;line-height:100%;text-align:left;color:#000}.dropdown-menu[_ngcontent-%COMP%]{width:50ch;padding:0;box-shadow:2px 2px 3px -1px #0003}@media (max-width: 800px){.dropdown-menu[_ngcontent-%COMP%]{width:100vw}}.dropdown-item[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6}.states[_ngcontent-%COMP%]{margin:.75rem 0;display:flex;justify-content:center}.state[_ngcontent-%COMP%]{margin-right:7%;display:flex}.state[_ngcontent-%COMP%]:last-child{margin-right:0}@media (min-width: 1000px){.state[_ngcontent-%COMP%]{margin-right:4rem}}.state.present[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#3d8608}.state.absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#d01018}.state.unapproved[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ffa814}.state.previously-absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#00000080}.state[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{margin-left:.3em;margin-top:1px}.search-and-views[_ngcontent-%COMP%]{padding-top:.75rem;display:flex;justify-content:space-between;border-top:1px solid #dee2e6}.search[_ngcontent-%COMP%]{flex:auto;max-width:300px;margin-right:1rem}.views[_ngcontent-%COMP%]{display:flex}.view[_ngcontent-%COMP%]{color:#4e4e4ef2;background-color:#fff}.view.active[_ngcontent-%COMP%]{color:#fff;background-color:#4e4e4ef2;border:none}.group[_ngcontent-%COMP%], .view[_ngcontent-%COMP%]{text-decoration:none;padding-left:0;padding-right:0;aspect-ratio:1/1;width:calc(.75rem + 2 * var(--bs-border-width) + 1.625rem);border-radius:50%}.group.btn-link[_ngcontent-%COMP%]{color:#000}@media (max-width: 380px){[_nghost-%COMP%]{padding-left:.5rem;padding-right:.5rem}#search-addon[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}}@media (max-width: 365px){.lesson-time[_ngcontent-%COMP%]{line-height:1}.lesson-time-to[_ngcontent-%COMP%]{display:block}.dropdown-caret[_ngcontent-%COMP%]{padding-left:0}}']})}return s})();var kt=r(500);function Rt(s,c){if(1&s&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.ALo(4,"addSpace"),e.qZA()),2&s){const t=c.$implicit;e.xp6(1),e.xDo(" ",e.xi3(2,5,t.LessonRef.From,"HH:mm"),"\u2013",e.xi3(3,8,t.LessonRef.To,"HH:mm")," ",t.LessonRef.EventDesignation,"",e.xi3(4,11,":",":")," ",t.Type," ")}}let Nt=(()=>{class s{constructor(t){this.activeModal=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-preceding-absence"]],inputs:{precedingAbsences:"precedingAbsences"},decls:9,vars:7,consts:[[1,"modal-body"],[4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Rt,5,14,"div",1),e.qZA(),e.TgZ(5,"div",2)(6,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(7),e.ALo(8,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.preceding-absence.text")," "),e.xp6(2),e.Q6J("ngForOf",o.precedingAbsences),e.xp6(3),e.hij(" ",e.lcZ(8,5,"presence-control.preceding-absence.cancel")," "))},dependencies:[f.sg,f.uU,m.X$,kt.u]})}return s})();var Jt=r(2628);const Bt=function(s){return["/presence-control/student",s,"absences"]};function Yt(s,c){if(1&s&&(e._UZ(0,"erz-avatar",8),e.ALo(1,"async")),2&s){const t=e.oxw();e.Q6J("studentId",e.lcZ(1,3,t.studentId$))("link",e.VKq(5,Bt,t.entry.lessonPresence.StudentRef.Id.toString()))("linkParams",t.profileReturnParams)}}function zt(s,c){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&s){const t=e.oxw(2);e.xp6(1),e.Oqu(null==t.entry.presenceType?null:t.entry.presenceType.Designation)}}function jt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.YNc(1,zt,2,1,"span",10),e.qZA()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=t.entry.presenceType&&t.entry.presenceType.IsIncident))}}function Ht(s,c){1&s&&e._UZ(0,"erz-spinner",15)}function Qt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.TgZ(1,"div",12)(2,"i",13),e._uU(3),e.qZA(),e.YNc(4,Ht,1,0,"erz-spinner",14),e.qZA()()}if(2&s){const t=c.erzLet,n=e.oxw();e.Q6J("disabled",t),e.xp6(2),e.ekj("invisible",t),e.xp6(1),e.Oqu(n.entry.presenceCategoryIcon),e.xp6(1),e.Q6J("ngIf",t)}}function Kt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.showPrecedingAbsences(o.entry))}),e.TgZ(1,"i",17),e._uU(2,"info"),e.qZA()()}}function qt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"a",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updateIncident(o.entry))}),e.TgZ(1,"i",13),e._uU(2,"edit"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(4),e.Oqu(e.lcZ(5,1,(null==t.entry.presenceType?null:t.entry.presenceType.IsIncident)&&(null==t.entry.presenceType?null:t.entry.presenceType.Designation)||"presence-control.entry.incident"))}}const Wt=function(s){return["student",s,"absences"]};let Vt=(()=>{class s{get classNames(){return[this.entry.presenceCategory,this.viewMode].join(" ")}constructor(t,n,o,i){this.toastService=t,this.translate=n,this.modalService=o,this.loadingService=i,this.hasUnconfirmedAbsences=!1,this.togglePresenceType=new e.vpe,this.changeIncident=new e.vpe,this.entry$=new le.t(1),this.studentId$=this.entry$.pipe((0,l.U)(({lessonPresence:a})=>a.StudentRef.Id)),this.loading$=this.entry$.pipe((0,v.w)(a=>this.loadingService.loading(Me(a))))}ngOnChanges(t){t.entry&&this.entry$.next(t.entry.currentValue)}get isListViewMode(){return this.viewMode===Y.PW.List}updatePresenceType(t){t.canChangePresenceType?this.togglePresenceType.emit(t):this.toastService.warning(this.translate.instant("presence-control.entry.update-warning"))}updateIncident(t){t.canChangeIncident&&this.changeIncident.emit(t)}showPrecedingAbsences(t){this.modalService.open(Nt).componentInstance.precedingAbsences=t.precedingAbsences}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF),e.Y36(z.b))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-entry"]],hostVars:2,hostBindings:function(n,o){2&n&&e.Tol(o.classNames)},inputs:{entry:"entry",hasUnconfirmedAbsences:"hasUnconfirmedAbsences",viewMode:"viewMode",profileReturnParams:"profileReturnParams"},outputs:{togglePresenceType:"togglePresenceType",changeIncident:"changeIncident"},features:[e.TTD],decls:12,vars:15,consts:[["class","avatar large",3,"studentId","link","linkParams",4,"ngIf"],["type","button","class","presence-category designation btn btn-link",3,"click",4,"ngIf"],["type","button","class","presence-category status btn btn-link",3,"disabled","click",4,"erzLet"],["type","button","class","previously-absent btn btn-link",3,"click",4,"ngIf"],[1,"student-name",3,"routerLink","queryParams"],[1,"text-truncate"],[1,"unconfirmed-absences"],["class","incident btn btn-link",3,"click",4,"ngIf"],[1,"avatar","large",3,"studentId","link","linkParams"],["type","button",1,"presence-category","designation","btn","btn-link",3,"click"],[4,"ngIf"],["type","button",1,"presence-category","status","btn","btn-link",3,"disabled","click"],[1,"position-relative"],[1,"material-icons"],["class","inline small",4,"ngIf"],[1,"inline","small"],["type","button",1,"previously-absent","btn","btn-link",3,"click"],[1,"material-icons-outlined"],[1,"incident","btn","btn-link",3,"click"]],template:function(n,o){1&n&&(e.YNc(0,Yt,2,7,"erz-avatar",0),e.YNc(1,jt,2,1,"button",1),e.YNc(2,Qt,5,5,"button",2),e.ALo(3,"async"),e.YNc(4,Kt,3,0,"button",3),e.TgZ(5,"a",4)(6,"span",5),e._uU(7),e.qZA(),e.TgZ(8,"span",6),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,qt,6,3,"a",7)),2&n&&(e.Q6J("ngIf",!o.isListViewMode),e.xp6(1),e.Q6J("ngIf",o.entry.showDesignation),e.xp6(1),e.Q6J("erzLet",e.lcZ(3,9,o.loading$)),e.xp6(2),e.Q6J("ngIf",(null==o.entry.precedingAbsences?null:o.entry.precedingAbsences.length)>0),e.xp6(1),e.Q6J("routerLink",e.VKq(13,Wt,o.entry.lessonPresence.StudentRef.Id))("queryParams",o.profileReturnParams),e.xp6(2),e.Oqu(o.entry.lessonPresence.StudentFullName),e.xp6(2),e.hij(" ",o.hasUnconfirmedAbsences?e.lcZ(10,11,"presence-control.entry.unconfirmed-absences"):""," "),e.xp6(2),e.Q6J("ngIf",o.entry.canChangeIncident))},dependencies:[f.O5,L.rH,H.e,ue.O,Jt.A,f.Ov,m.X$],styles:['[_nghost-%COMP%]{padding:2rem 1rem;background-color:#fff;display:grid;grid-template-areas:"avatar status designation previously-absent" "avatar student-name student-name student-name" "avatar incident incident incident";grid-template-columns:min-content min-content 3fr min-content}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{align-self:center}.presence-category[_ngcontent-%COMP%]{text-decoration:none}.presence-category[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{top:.1875rem}.absent[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#d01018}.present[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#ffa814}.presence-category[_ngcontent-%COMP%] erz-spinner[_ngcontent-%COMP%]{color:#000;position:absolute;top:4px;left:5px}.designation[_ngcontent-%COMP%], .student-name[_ngcontent-%COMP%], a.incident[_ngcontent-%COMP%], .incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avatar[_ngcontent-%COMP%]{grid-area:avatar;margin-right:1.5rem}.status[_ngcontent-%COMP%]{grid-area:status}.status[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:2rem}.designation[_ngcontent-%COMP%]{grid-area:designation;text-align:left;line-height:2.375rem}.previously-absent[_ngcontent-%COMP%]{grid-area:previously-absent;text-decoration:none;color:#00000080;justify-self:end}.student-name[_ngcontent-%COMP%]{grid-area:student-name;display:flex;flex-direction:column;text-decoration:none}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.unconfirmed-absences[_ngcontent-%COMP%]{color:#d01018;font-size:.875rem;line-height:1}.incident[_ngcontent-%COMP%]{color:#00000080;padding-right:1.5rem;grid-area:incident;display:flex;text-decoration:none}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.incident[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.3em}.grid[_nghost-%COMP%] .status[_ngcontent-%COMP%], .grid[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{align-self:start;margin-left:-1.5rem;margin-top:-.375rem}.grid[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{align-self:end;margin-left:-1.5rem;margin-bottom:-.375rem}.grid[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-right:0;align-self:start}.grid[_nghost-%COMP%] .unconfirmed-absences[_ngcontent-%COMP%]{height:.875rem}.list[_nghost-%COMP%]{grid-template-areas:"student-name status designation incident previously-absent";grid-template-columns:3fr min-content 3fr 2fr 3em;padding:.5rem .5rem .5rem 1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{justify-self:start}@media (max-width: 750px){.list[_nghost-%COMP%]{grid-template-areas:"student-name student-name student-name previously-absent" "status incidentordesignation incidentordesignation incidentordesignation";grid-template-columns:min-content 1fr 1fr min-content;row-gap:1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%], .list[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{grid-area:incidentordesignation}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{justify-self:end}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-top:0;align-self:start}}']})}return s})();const Xt=function(s){return{returnparams:s}};function en(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"erz-presence-control-entry",7),e.NdJ("togglePresenceType",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.togglePresenceType(o))})("changeIncident",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.changeIncident(o))}),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.qZA()}if(2&s){const t=c.$implicit,n=e.oxw(5);e.Q6J("entry",t)("hasUnconfirmedAbsences",e.lcZ(1,4,n.state.hasUnconfirmedAbsences(t)))("viewMode",e.lcZ(2,6,n.state.viewMode$))("profileReturnParams",e.VKq(10,Xt,e.lcZ(3,8,n.state.queryParamsString$)))}}function tn(s,c){if(1&s&&(e.ynx(0),e.TgZ(1,"div"),e.ALo(2,"async"),e.YNc(3,en,4,12,"erz-presence-control-entry",6),e.qZA(),e.BQk()),2&s){const t=e.oxw(3).erzLet,n=e.oxw();e.xp6(1),e.Gre("default-entries entries view-mode-",e.lcZ(2,4,n.state.viewMode$),""),e.xp6(2),e.Q6J("ngForOf",t.entries)}}function nn(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"presence-control.no-lesson-presences")," "))}function sn(s,c){if(1&s&&(e.ynx(0),e.YNc(1,tn,4,6,"ng-container",1),e.YNc(2,nn,3,3,"ng-template",null,5,e.W1O),e.BQk()),2&s){const t=e.MAs(3),n=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",(null==n.entries?null:n.entries.length)>0)("ngIfElse",t)}}function on(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"presence-control.no-lessons")))}function rn(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"erz-presence-control-header",3),e.NdJ("searchChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.search$.next(o))})("viewModeChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setViewMode(o))})("selectDateChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setDate(o))})("selectLessonChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setLessonId(o.id))}),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async"),e.ALo(7,"async"),e.ALo(8,"async"),e.qZA(),e.YNc(9,sn,4,2,"ng-container",1),e.YNc(10,on,3,3,"ng-template",null,4,e.W1O),e.BQk()}if(2&s){const t=e.MAs(11),n=e.oxw().erzLet,o=e.oxw();e.xp6(1),e.Q6J("selectedLesson",n.lesson)("lessons",n.lessons)("presentCount",e.lcZ(2,11,o.state.presentCount$))("absentCount",e.lcZ(3,13,o.state.absentCount$))("unapprovedCount",e.lcZ(4,15,o.state.unapprovedCount$))("absentPrecedingCount",e.lcZ(5,17,o.state.absentPrecedingCount$))("viewMode",e.lcZ(6,19,o.state.viewMode$))("selectDate",e.lcZ(7,21,o.state.selectedDate$))("search",e.lcZ(8,23,o.search$)),e.xp6(8),e.Q6J("ngIf",n.lesson)("ngIfElse",t)}}function cn(s,c){1&s&&e._UZ(0,"erz-spinner")}function an(s,c){if(1&s&&(e.ynx(0),e.YNc(1,rn,12,25,"ng-container",1),e.ALo(2,"async"),e.YNc(3,cn,1,0,"ng-template",null,2,e.W1O),e.BQk()),2&s){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,n.state.loading$))("ngIfElse",t)}}const ln=function(s,c,t){return{lesson:s,lessons:c,entries:t}};let dn=(()=>{class s{constructor(t,n,o,i,a,p,u){this.state=t,this.blockLessons=n,this.lessonPresencesUpdateService=o,this.presenceTypesService=i,this.modalService=a,this.scrollPosition=p,this.route=u,this.search$=new O.X(""),this.entries$=(0,_.a)([this.state.presenceControlEntriesByGroup$,this.search$]).pipe((0,l.U)((0,$.h)(at.P)),(0,y.d)(1)),this.destroy$=new M.x}ngOnInit(){this.route.queryParams.pipe((0,S.R)(this.destroy$)).subscribe(this.restoreStateFromParams.bind(this))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}doTogglePresenceType(t){t.forEach(n=>this.state.getNextPresenceType(n).subscribe(o=>this.lessonPresencesUpdateService.updatePresenceType(n,o?o.Id:null)))}togglePresenceType(t){this.blockLessons.getBlockLessonPresenceControlEntries(t).pipe((0,P.q)(1)).subscribe(n=>{if(1===n.length)this.doTogglePresenceType([n[0]]);else{const o=this.modalService.open(gt);o.componentInstance.entry=t,o.componentInstance.blockPresenceControlEntries=n,o.result.then(i=>{i&&this.doTogglePresenceType(i)},()=>{})}})}updateIncident(t,n){this.lessonPresencesUpdateService.updatePresenceType(t,n)}changeIncident(t){this.presenceTypesService.incidentTypes$.subscribe(n=>{const o=this.modalService.open(ft);o.componentInstance.incident=n.find(i=>i.Id===t.presenceType?.Id)||null,o.componentInstance.incidentTypes=n,o.result.then(i=>{this.updateIncident(t,i?.Id||null)},()=>{})})}restoreStateFromParams(t){t.date&&this.state.setDate((0,ht.nx)(t.date));const n=String(t.lesson);n&&this.state.setLessonId(n),t.viewMode&&qe.includes(t.viewMode)&&this.state.setViewMode(t.viewMode)}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Le),e.Y36(Ae),e.Y36(ae.c),e.Y36(d.FF),e.Y36(Lt.X),e.Y36(L.gz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-list"]],decls:7,vars:14,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[3,"selectedLesson","lessons","presentCount","absentCount","unapprovedCount","absentPrecedingCount","viewMode","selectDate","search","searchChange","viewModeChange","selectDateChange","selectLessonChange"],["noLessons",""],["noLessonPresences",""],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident",4,"ngFor","ngForOf"],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident"],[1,"mt-3"]],template:function(n,o){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,an,5,4,"ng-container",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"presence-control.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,ln,e.lcZ(4,4,o.state.selectedLesson$),e.lcZ(5,6,o.state.lessons$),e.lcZ(6,8,o.entries$))))},dependencies:[f.sg,f.O5,H.e,ue.O,Gt,Vt,f.Ov,m.X$],styles:["erz-presence-control-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6}.entries.view-mode-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}@media (min-width: 400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%;border-right:1px solid #dee2e6}}@media (min-width: 800px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:50%;border-right:1px solid #dee2e6}}@media (min-width: 1200px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:33.3333333333%;border-right:1px solid #dee2e6}}@media (min-width: 1600px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:25%;border-right:1px solid #dee2e6}}@media (min-width: 2000px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:20%;border-right:1px solid #dee2e6}}@media (min-width: 2400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:16.6666666667%;border-right:1px solid #dee2e6}}[_nghost-%COMP%]{display:block;overflow:hidden;width:100%}.entries.view-mode-grid[_ngcontent-%COMP%]{width:calc(100% + 1px)}"],changeDetection:0})}return s})();var pn=r(6163);const un=[{path:"",component:(()=>{class s{constructor(t,n){this.state=t,this.lessonPresencesUpdateService=n,this.destroy$=new M.x}ngOnInit(){this.lessonPresencesUpdateService.stateUpdates$.pipe((0,S.R)(this.destroy$)).subscribe(t=>this.state.updateLessonPresencesTypes(t))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Ae))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control"]],features:[e._Bn([Z,Le,j,{provide:pn.m,useExisting:Z}])],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"router-outlet")},dependencies:[L.lC],changeDetection:0})}return s})(),children:[{path:"",component:dn,data:{restoreScrollPositionFrom:["/presence-control/student/:id/addresses","/presence-control/student/:id/absences","/presence-control/student/:id/grades"]}},K.H,{path:"groups/:id",component:ct}]}];let gn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({imports:[L.Bz.forChild(un),L.Bz]})}return s})();var hn=r(8393);let mn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({providers:[hn.o],imports:[I.m,gn]})}return s})()},412:(Ze,R,r)=>{r.d(R,{X:()=>N});var I=r(1523),L=r(8645),K=r(2096),O=r(2181),_=r(7398),A=r(8180),l=r(1631),P=r(4664),v=r(2689),$=r(7081),w=r(9773),q=r(836),D=r(5879),e=r(6814);let N=(()=>{class b{constructor(g,d){this.router=g,this.viewportScroller=d,this.scrollPositions={},this.previousRoute=null,this.currentRoute=null,this.currentScrollPosition=[0,0],this.destroy$=new L.x,this.scrollPosition$=this.router.events.pipe((0,O.h)(V),(0,_.U)(this.getScrollPosition.bind(this))),this.activationEnd$=this.router.events.pipe((0,O.h)(W)),this.navigationEnd$=this.router.events.pipe((0,O.h)(X)),this.route$=this.activationEnd$.pipe((0,A.q)(1)).pipe((0,l.z)(m=>[(0,K.of)(m),this.navigationEnd$.pipe((0,P.w)(()=>this.activationEnd$.pipe((0,A.q)(1))))]),(0,v.B)(),(0,_.U)(m=>m.snapshot),(0,$.d)(1)),this.scrollPosition$.pipe((0,w.R)(this.destroy$)).subscribe(m=>this.currentScrollPosition=m),this.route$.pipe((0,w.R)(this.destroy$)).subscribe(m=>{this.previousRoute=this.currentRoute,this.currentRoute=m})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const d=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[d]||[0,0])}const g=this.currentRoute;this.route$.pipe((0,q.T)(1),(0,A.q)(1),(0,w.R)(this.destroy$),(0,O.h)(d=>this.shouldStoreFor(g,d))).subscribe(()=>{const d=this.getPath(g);this.scrollPositions[d]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(g){this.viewportScroller.scrollToPosition(g)}getPath(g){return g?"/"+g.pathFromRoot.map(d=>d.routeConfig&&d.routeConfig.path).filter(d=>d).join("/"):"/"}requiresStoring(g){return!!(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)&&g.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(g,d){return(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)?g.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(d))}static#e=this.\u0275fac=function(d){return new(d||b)(D.LFG(I.F0),D.LFG(e.EM))};static#t=this.\u0275prov=D.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();function W(b){return b instanceof I.jw}function V(b){return b instanceof I.OD}function X(b){return b instanceof I.m2}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/403.js b/public/apps/webapp-schulverwaltung/403.js index d30487a8..25f5d26c 100644 --- a/public/apps/webapp-schulverwaltung/403.js +++ b/public/apps/webapp-schulverwaltung/403.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[403],{9403:(ht,$,a)=>{a.r($),a.d($,{EditAbsencesModule:()=>ct});var j=a(6486),f=a(1523),F=a(2572),b=a(7081),d=a(7398),y=a(9773),B=a(1140),M=a(1389),H=a(2388),U=a(4477),x=a(4141),K=a(6191),e=a(5879),h=a(6814),V=a(3005),X=a(1608),w=a(7575),J=a(905),P=a(5001);let v=(()=>{class n extends U.f{constructor(t,s,i,r,c,m,l){super(t,s,i,r,"/edit-absences"),this.lessonPresencesService=c,this.presenceTypesService=m,this.dropDownItemsService=l,this.presenceTypes$=this.loadPresenceTypes().pipe((0,b.d)(1)),this.absenceConfirmationStates$=this.loadAbsenceConfirmationStates().pipe((0,d.U)(B.I),(0,b.d)(1)),this.presenceControlEntries$=(0,F.a)([this.entries$,this.presenceTypes$,this.absenceConfirmationStates$]).pipe((0,d.U)((0,M.h)(K.v)),(0,b.d)(1)),this.selected=[],this.queryParamsString$.pipe((0,y.R)(this.destroy$)).subscribe(S=>this.confirmBackLinkParams={returnparams:S})}resetSelection(){this.selected=[]}getInitialFilter(){return{student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null}}isValidFilter(t){return!!(t.student||t.educationalEvent||t.studyClass||t.teacher||t.dateFrom||t.dateTo||t.presenceTypes||t.confirmationStates||t.incidentTypes)}loadEntries(t,s,i){return this.loadingService.load(this.lessonPresencesService.getFilteredList(t,i,{sort:"StudentFullName.asc,LessonDateTimeFrom.asc"}),U.O)}buildParamsFromFilter(t){return(0,H.i)(t)}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.activePresenceTypes$)}loadAbsenceConfirmationStates(){return this.loadingService.load(this.dropDownItemsService.getAbsenceConfirmationStates())}static#e=this.\u0275fac=function(s){return new(s||n)(e.LFG(h.Ye),e.LFG(V.b),e.LFG(X.K),e.LFG(x.L6),e.LFG(w.q),e.LFG(J.c),e.LFG(P.R))};static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac})}return n})();var W=a(6163);let ee=(()=>{class n{constructor(t){this.state=t}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(v))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences"]],features:[e._Bn([v,{provide:W.m,useExisting:v}])],decls:1,vars:0,template:function(s,i){1&s&&e._UZ(0,"router-outlet")},dependencies:[f.lC],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})();var N=a(8645),g=a(8180),te=a(2181),ne=a(6561);let q=(()=>{class n extends ne.z{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=e.n5z(n)))(i||n)}}();static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac})}return n})();var O=a(2220),C=a(3942),se=a(412),ie=a(6283),z=a(6567),ae=a(59),L=a(253),re=a(9189),E=a(8484),oe=a(3296),_=a(7749),ce=a(3779),le=a(9245),de=a(9018),A=a(754);const ue=A.dt({HRef:A.Z_,Id:A.pk,TeacherId:A.pk,FullName:A.Z_});var pe=a(7346),he=a(2096),I=a(4664),me=a(275),ge=a(9862);let fe=(()=>{class n extends pe.r{constructor(t,s){super(t,s,ue,"TeacherResources","FullName","FullName")}getTypeaheadItemByKey(t){return this.http.get(`${this.baseUrl}/`,{params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${t}*`}}).pipe((0,I.w)((0,me.Y0)(this.typeaheadCodec)),(0,I.w)(s=>(0,he.of)({Key:s[0].FullName,Value:`${s[0].FullName}`})))}static#e=this.\u0275fac=function(s){return new(s||n)(e.LFG(ge.eN),e.LFG(x.L6))};static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Z=a(9515),_e=a(2015),ve=a(1133),be=a(6001);let ye=(()=>{class n{constructor(t,s,i,r,c,m){this.studentsService=t,this.educationalEventsService=s,this.studyClassService=i,this.teacherResourcesService=r,this.state=c,this.translate=m,this.filter={student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null},this.filterChange=new e.vpe,this.absenceConfirmationStatesGrouped$=this.state.absenceConfirmationStates$.pipe((0,d.U)(l=>(0,_.pt)(l,this.translate.instant("shared.multiselect.all-option")))),this.presenceTypesGrouped$=this.state.presenceTypes$.pipe((0,d.U)(l=>l.filter((0,C.ff)(E.C3)).filter((0,C.ff)(E.hm))),(0,d.U)(_.KV),(0,d.U)(_.nC),(0,d.U)(l=>(0,_.pt)(l,this.translate.instant("shared.multiselect.all-option")))),this.incidentTypesGrouped$=this.state.presenceTypes$.pipe((0,d.U)(l=>l.filter(E.hm)),(0,d.U)(_.KV),(0,d.U)(_.nC),(0,d.U)(l=>(0,_.pt)(l,this.translate.instant("shared.multiselect.all-option")))),this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit({...this.filter,dateFrom:Y(this.filter.dateFrom),dateTo:Y(this.filter.dateTo)})}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(ce.l),e.Y36(le.$),e.Y36(de.R),e.Y36(fe),e.Y36(v),e.Y36(Z.sK))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},features:[e._Bn([{provide:L.DO,useClass:L.s5},{provide:L.NG,useClass:oe.n}])],decls:54,vars:53,consts:[[1,"row","g-3","mb-5"],[1,"col-md-6","col-lg-3"],[1,"form-label"],[3,"typeaheadService","value","valueChange"],[3,"typeaheadService","value","additionalHttpParams","valueChange"],[3,"value","valueChange"],[1,"row","g-3","align-items-end"],[1,"col-sm-12","col-md"],[3,"options","values","valuesChange"],[1,"col-auto"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(s,i){1&s&&(e.TgZ(0,"div",0)(1,"div",1)(2,"label",2),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"erz-typeahead",3),e.NdJ("valueChange",function(c){return i.filter.student=c}),e.qZA()(),e.TgZ(6,"div",1)(7,"label",2),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"erz-typeahead",3),e.NdJ("valueChange",function(c){return i.filter.educationalEvent=c}),e.qZA()(),e.TgZ(11,"div",1)(12,"label",2),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"erz-typeahead",4),e.NdJ("valueChange",function(c){return i.filter.studyClass=c}),e.qZA()(),e.TgZ(16,"div",1)(17,"label",2),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.TgZ(20,"erz-typeahead",3),e.NdJ("valueChange",function(c){return i.filter.teacher=c}),e.qZA()(),e.TgZ(21,"div",1)(22,"label",2),e._uU(23),e.ALo(24,"translate"),e.qZA(),e.TgZ(25,"erz-date-select",5),e.NdJ("valueChange",function(c){return i.filter.dateFrom=c}),e.qZA()(),e.TgZ(26,"div",1)(27,"label",2),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"erz-date-select",5),e.NdJ("valueChange",function(c){return i.filter.dateTo=c}),e.qZA()()(),e.TgZ(31,"div",6)(32,"div",7)(33,"label",2),e._uU(34),e.ALo(35,"translate"),e.qZA(),e.TgZ(36,"erz-multiselect",8),e.NdJ("valuesChange",function(c){return i.filter.confirmationStates=c}),e.ALo(37,"async"),e.qZA()(),e.TgZ(38,"div",7)(39,"label",2),e._uU(40),e.ALo(41,"translate"),e.qZA(),e.TgZ(42,"erz-multiselect",8),e.NdJ("valuesChange",function(c){return i.filter.presenceTypes=c}),e.ALo(43,"async"),e.qZA()(),e.TgZ(44,"div",7)(45,"label",2),e._uU(46),e.ALo(47,"translate"),e.qZA(),e.TgZ(48,"erz-multiselect",8),e.NdJ("valuesChange",function(c){return i.filter.incidentTypes=c}),e.ALo(49,"async"),e.qZA()(),e.TgZ(50,"div",9)(51,"button",10),e.NdJ("click",function(){return i.show()}),e._uU(52),e.ALo(53,"translate"),e.qZA()()()),2&s&&(e.xp6(3),e.Oqu(e.lcZ(4,27,"edit-absences.header.student")),e.xp6(2),e.Q6J("typeaheadService",i.studentsService)("value",i.filter.student),e.xp6(3),e.Oqu(e.lcZ(9,29,"edit-absences.header.module-instance")),e.xp6(2),e.Q6J("typeaheadService",i.educationalEventsService)("value",i.filter.educationalEvent),e.xp6(3),e.Oqu(e.lcZ(14,31,"edit-absences.header.study-class")),e.xp6(2),e.Q6J("typeaheadService",i.studyClassService)("value",i.filter.studyClass)("additionalHttpParams",i.classesHttpFilter),e.xp6(3),e.Oqu(e.lcZ(19,33,"edit-absences.header.teacher")),e.xp6(2),e.Q6J("typeaheadService",i.teacherResourcesService)("value",i.filter.teacher),e.xp6(3),e.Oqu(e.lcZ(24,35,"edit-absences.header.date-from")),e.xp6(2),e.Q6J("value",i.filter.dateFrom),e.xp6(3),e.Oqu(e.lcZ(29,37,"edit-absences.header.date-to")),e.xp6(2),e.Q6J("value",i.filter.dateTo),e.xp6(4),e.Oqu(e.lcZ(35,39,"edit-absences.header.confirmation-state")),e.xp6(2),e.Q6J("options",e.lcZ(37,41,i.absenceConfirmationStatesGrouped$))("values",i.filter.confirmationStates),e.xp6(4),e.Oqu(e.lcZ(41,43,"edit-absences.header.presence-type")),e.xp6(2),e.Q6J("options",e.lcZ(43,45,i.presenceTypesGrouped$))("values",i.filter.presenceTypes),e.xp6(4),e.Oqu(e.lcZ(47,47,"edit-absences.header.incident")),e.xp6(2),e.Q6J("options",e.lcZ(49,49,i.incidentTypesGrouped$))("values",i.filter.incidentTypes),e.xp6(4),e.hij(" ",e.lcZ(53,51,"edit-absences.header.show")," "))},dependencies:[_e.t,ve.T,be.z,h.Ov,Z.X$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:1rem 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0})}return n})();function Y(n){return n?(0,re.Z)(n):null}const Q=function(n){return{count:n}},G=function(n){return{returnparams:n}};function Ae(n,o){if(1&n&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"async"),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"a",14),e.ALo(7,"async"),e.TgZ(8,"i",15),e._uU(9,"edit"),e.qZA()()()),2&n){const t=e.oxw(4).erzLet,s=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,5,"edit-absences.list.total",e.VKq(15,Q,e.lcZ(4,8,s.state.total$)||0)),", ",e.xi3(5,10,"edit-absences.list.selected",e.VKq(17,Q,t.selection.length))," "),e.xp6(4),e.ekj("disabled",0===t.selection.length),e.Q6J("queryParams",e.VKq(19,G,e.lcZ(7,13,s.state.queryParamsString$)))}}const Ze=function(n){return["student",n,"absences"]};function Te(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td",20),e.NdJ("click",function(i){e.CHM(t);const r=e.MAs(3),c=e.oxw(6);return e.KtG(c.onCheckboxCellClick(i,r))}),e.TgZ(2,"input",17,21),e.NdJ("change",function(){const r=e.CHM(t).$implicit,c=e.oxw(6);return e.KtG(c.selectionService.toggle(r.lessonPresence))}),e.ALo(4,"async"),e.qZA()(),e.TgZ(5,"td",18),e.ALo(6,"translate"),e.TgZ(7,"span",22)(8,"i",15),e._uU(9),e.qZA()()(),e.TgZ(10,"td"),e.ALo(11,"translate"),e.TgZ(12,"a",23),e.ALo(13,"async"),e._uU(14),e.qZA(),e._UZ(15,"br"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e.ALo(18,"translate"),e._uU(19),e.ALo(20,"date"),e.qZA(),e.TgZ(21,"td"),e.ALo(22,"translate"),e._uU(23),e.ALo(24,"date"),e.ALo(25,"date"),e.qZA(),e.TgZ(26,"td"),e.ALo(27,"translate"),e._uU(28),e.qZA(),e.TgZ(29,"td",24),e.ALo(30,"translate"),e._uU(31),e.qZA(),e.TgZ(32,"td"),e.ALo(33,"translate"),e._uU(34),e.qZA()()}if(2&n){const t=o.$implicit,s=e.oxw(6);e.xp6(2),e.Q6J("checked",e.lcZ(4,21,s.selectionService.isSelected$(t.lessonPresence))),e.xp6(3),e.uIk("data-label",e.lcZ(6,23,"edit-absences.list.header.presence")),e.xp6(2),e.Q6J("className",t.presenceCategory),e.xp6(2),e.Oqu(t.presenceCategoryIcon),e.xp6(1),e.uIk("data-label",e.lcZ(11,25,"edit-absences.list.header.mobil-student-module-instance-study-class")),e.xp6(2),e.Q6J("routerLink",e.VKq(48,Ze,t.lessonPresence.StudentRef.Id))("queryParams",e.VKq(50,G,e.lcZ(13,27,s.profileReturnParams$))),e.xp6(2),e.hij(" ",t.lessonPresence.StudentFullName," "),e.xp6(2),e.AsE(" ",t.lessonPresence.EventDesignation,", ",t.lessonPresence.StudyClassNumber," "),e.xp6(1),e.uIk("data-label",e.lcZ(18,29,"edit-absences.list.header.date")),e.xp6(2),e.hij(" ",e.xi3(20,31,t.lessonPresence.LessonDateTimeFrom,"mediumDate")," "),e.xp6(2),e.uIk("data-label",e.lcZ(22,34,"edit-absences.list.header.time")),e.xp6(2),e.AsE(" ",e.xi3(24,36,t.lessonPresence.LessonDateTimeFrom,"shortTime"),"\u2013",e.xi3(25,39,t.lessonPresence.LessonDateTimeTo,"shortTime")," "),e.xp6(3),e.uIk("data-label",e.lcZ(27,42,"edit-absences.list.header.confirmation-state")),e.xp6(2),e.hij(" ",null==t.confirmationState?null:t.confirmationState.Value," "),e.xp6(1),e.uIk("data-label",e.lcZ(30,44,"edit-absences.list.header.mobil-presence-type-incident")),e.xp6(2),e.hij(" ",null==t.presenceType?null:t.presenceType.Designation," "),e.xp6(1),e.uIk("data-label",e.lcZ(33,46,"edit-absences.list.header.teacher")),e.xp6(2),e.hij(" ",t.lessonPresence.TeacherInformation," ")}}function xe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"table",16)(1,"thead")(2,"tr")(3,"th")(4,"input",17),e.NdJ("change",function(i){e.CHM(t);const r=e.oxw(5);return e.KtG(r.toggleAll(i.currentTarget.checked))}),e.qZA()(),e.TgZ(5,"th",18),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"th"),e._uU(9),e.ALo(10,"translate"),e._UZ(11,"br"),e._uU(12),e.ALo(13,"translate"),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"th"),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.TgZ(18,"th"),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"th"),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"th"),e._uU(25),e.ALo(26,"translate"),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"th"),e._uU(29),e.ALo(30,"translate"),e.qZA()()(),e.TgZ(31,"tbody"),e.YNc(32,Te,35,52,"tr",19),e.qZA()()}if(2&n){const t=e.oxw(4).erzLet;e.xp6(4),e.Q6J("checked",t.selection.length===t.entries.length),e.xp6(2),e.hij(" ",e.lcZ(7,12,"edit-absences.list.header.presence")," "),e.xp6(3),e.hij(" ",e.lcZ(10,14,"edit-absences.list.header.student")," "),e.xp6(3),e.AsE(" ",e.lcZ(13,16,"edit-absences.list.header.module-instance"),", ",e.lcZ(14,18,"edit-absences.list.header.study-class")," "),e.xp6(4),e.hij(" ",e.lcZ(17,20,"edit-absences.list.header.date")," "),e.xp6(3),e.Oqu(e.lcZ(20,22,"edit-absences.list.header.time")),e.xp6(3),e.hij(" ",e.lcZ(23,24,"edit-absences.list.header.confirmation-state")," "),e.xp6(3),e.AsE(" ",e.lcZ(26,26,"edit-absences.list.header.presence-type")," / ",e.lcZ(27,28,"edit-absences.list.header.incident")," "),e.xp6(4),e.Oqu(e.lcZ(30,30,"edit-absences.list.header.teacher")),e.xp6(3),e.Q6J("ngForOf",t.entries)}}function Ce(n,o){1&n&&e._UZ(0,"erz-spinner",25)}function Le(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",26),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(5);return e.KtG(i.state.nextPage())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"global.pagination.load-more")," "))}function Ee(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("scrolled",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.onScroll())}),e.YNc(1,Ae,10,21,"div",8),e.YNc(2,xe,33,32,"table",9),e.YNc(3,Ce,1,0,"erz-spinner",10),e.YNc(4,Le,3,3,"button",11),e.qZA()}if(2&n){const t=e.oxw(3).erzLet;e.xp6(1),e.Q6J("ngIf",t.entries&&t.entries.length>0),e.xp6(1),e.Q6J("ngIf",t.entries&&t.entries.length>0),e.xp6(1),e.Q6J("ngIf",t.loadingPage),e.xp6(1),e.Q6J("ngIf",t.hasMore&&!t.loadingPage)}}function Ie(n,o){1&n&&(e.TgZ(0,"p",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"edit-absences.no-entries")))}function Se(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Ee,5,4,"div",5),e.YNc(2,Ie,3,3,"ng-template",null,6,e.W1O),e.BQk()),2&n){const t=e.MAs(3),s=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",s.entries&&s.entries.length>0||s.loadingPage)("ngIfElse",t)}}function $e(n,o){1&n&&e._UZ(0,"erz-spinner")}function Fe(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Se,4,2,"ng-container",2),e.ALo(2,"async"),e.YNc(3,$e,1,0,"ng-template",null,4,e.W1O),e.BQk()),2&n){const t=e.MAs(4),s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,s.state.loading$))("ngIfElse",t)}}function Ue(n,o){1&n&&(e.TgZ(0,"p",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"edit-absences.no-filter")))}function Je(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"erz-edit-absences-header",1),e.NdJ("filterChange",function(i){e.CHM(t);const r=e.oxw();return e.KtG(r.state.setFilter(i))}),e.ALo(2,"async"),e.qZA(),e.YNc(3,Fe,5,4,"ng-container",2),e.ALo(4,"async"),e.YNc(5,Ue,3,3,"ng-template",null,3,e.W1O),e.BQk()}if(2&n){const t=e.MAs(6),s=e.oxw();e.xp6(1),e.Q6J("filter",e.lcZ(2,3,s.filterFromParams$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,5,s.state.isFilterValid$))("ngIfElse",t)}}const Pe=function(n,o,t,s){return{selection:n,entries:o,hasMore:t,loadingPage:s}};let Ne=(()=>{class n{constructor(t,s,i,r){this.state=t,this.selectionService=s,this.scrollPosition=i,this.route=r,this.filterFromParams$=this.route.queryParams.pipe((0,d.U)(qe)),this.profileReturnParams$=this.state.queryParamsString$,this.destroy$=new N.x}ngOnInit(){this.filterFromParams$.pipe((0,g.q)(1)).subscribe(t=>this.state.setFilter(t)),this.state.validFilter$.pipe((0,y.R)(this.destroy$)).subscribe(()=>this.selectionService.clear()),this.selectionService.selection$.pipe((0,y.R)(this.destroy$)).subscribe(t=>this.state.selected=t),this.route.queryParams.pipe((0,g.q)(1),(0,d.U)(({reload:t})=>t),(0,te.h)(C.fQ)).subscribe(()=>this.state.resetEntries())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(t){this.state.entries$.pipe((0,g.q)(1)).subscribe(s=>this.selectionService.clear(t?s:null))}onCheckboxCellClick(t,s){t.target!==s&&s.click()}onScroll(){this.state.nextPage()}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(v),e.Y36(q),e.Y36(se.X),e.Y36(f.gz))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences-list"]],features:[e._Bn([q])],decls:8,vars:17,consts:[[4,"erzLet"],[3,"filter","filterChange"],[4,"ngIf","ngIfElse"],["noFilter",""],["loading",""],["class","py-3","infiniteScroll","",3,"scrolled",4,"ngIf","ngIfElse"],["noEntries",""],["infiniteScroll","",1,"py-3",3,"scrolled"],["class","d-flex align-items-center justify-content-between",4,"ngIf"],["class","table table-striped",4,"ngIf"],["class","inline",4,"ngIf"],["type","button","class","btn btn-outline-secondary btn-sm d-block mx-auto",3,"click",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between"],[1,"total"],["routerLink","/edit-absences/edit",1,"edit","btn","btn-primary","btn-icon","mt-1","mb-2",3,"queryParams"],[1,"material-icons"],[1,"table","table-striped"],["type","checkbox",3,"checked","change"],[1,"presence-category"],[4,"ngFor","ngForOf"],[1,"edit-absences-checkbox",3,"click"],["checkbox",""],[3,"className"],[1,"student",3,"routerLink","queryParams"],[1,"designation-incident"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"],[1,"mt-3"]],template:function(s,i){1&s&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,Je,7,7,"ng-container",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async"),e.ALo(7,"async")),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"edit-absences.title")),e.xp6(2),e.Q6J("erzLet",e.l5B(12,Pe,e.lcZ(4,4,i.selectionService.selection$),e.lcZ(5,6,i.state.presenceControlEntries$),e.lcZ(6,8,i.state.hasMore$),e.lcZ(7,10,i.state.loadingPage$))))},dependencies:[h.sg,h.O5,f.rH,ie.Ry,z.e,ae.O,ye,h.Ov,h.uU,Z.X$],styles:[".presence-category[_ngcontent-%COMP%]{text-align:center}.presence-category[_ngcontent-%COMP%] .absent[_ngcontent-%COMP%]{color:#d01018}.presence-category[_ngcontent-%COMP%] .present[_ngcontent-%COMP%]{color:#3d8608}.presence-category[_ngcontent-%COMP%] .unapproved[_ngcontent-%COMP%]{color:#ffa814}.designation-incident[_ngcontent-%COMP%]{max-width:50ch}@media screen and (max-width: 820px){.edit-absences-checkbox[_ngcontent-%COMP%]{text-align:left}.presence-category[_ngcontent-%COMP%]{text-align:right}.designation-incident[_ngcontent-%COMP%]{max-width:initial}}"],changeDetection:0})}return n})();function qe(n){return{student:n.student?Number(n.student):null,educationalEvent:n.educationalEvent?Number(n.educationalEvent):null,studyClass:n.studyClass?Number(n.studyClass):null,teacher:n.teacher??null,dateFrom:n.dateFrom?(0,O.nx)(n.dateFrom):null,dateTo:n.dateTo?(0,O.nx)(n.dateTo):null,presenceTypes:n.presenceTypes?n.presenceTypes.split(",").map(Number):null,confirmationStates:n.confirmationStates?n.confirmationStates.split(",").map(Number):null,incidentTypes:n.incidentTypes?n.incidentTypes.split(",").map(Number):null}}var p=a(6223),D=a(5619),Oe=a(4716),ze=a(2194),k=a(49),Ye=a(6023),u=function(n){return n.Absent="absent",n.Dispensation="dispensation",n.HalfDay="half-day",n.Incident="incident",n.Present="present",n}(u||{});let Qe=(()=>{class n{constructor(t,s){this.updateService=t,this.settings=s}update(t,s,i,r,c,m){let l=[];switch(i){case u.Present:l=this.createResetBulkRequests(t);break;case u.Absent:l=this.createAbsentEditBulkRequests(t,s,r,c);break;case u.Dispensation:l=this.createEditBulkRequests(t,null,this.settings.dispensationPresenceTypeId);break;case u.HalfDay:l=this.createEditBulkRequests(t,null,this.settings.halfDayPresenceTypeId);break;case u.Incident:l=this.createEditBulkRequests(t,null,m)}return(0,F.a)(l).pipe((0,d.U)(()=>{}))}createAbsentEditBulkRequests(t,s,i,r){return i===this.settings.excusedAbsenceStateId?this.createEditBulkRequests(t,i,r):i===this.settings.unexcusedAbsenceStateId?this.createEditBulkRequests(t,i,this.settings.absencePresenceTypeId):[...this.createEditBulkRequests(t.filter(R(s,this.settings)),i,this.settings.absencePresenceTypeId),...this.createEditBulkRequests(t.filter((0,C.ff)(R(s,this.settings))),i,null)]}createResetBulkRequests(t){return(0,k.fG)(t).map(({lessonIds:s,personIds:i})=>this.updateService.removeLessonPresences(s,i))}createEditBulkRequests(t,s,i){return(0,k.fG)(t).map(({lessonIds:r,personIds:c})=>this.updateService.editLessonPresences(r,c,i||void 0,s||void 0))}static#e=this.\u0275fac=function(s){return new(s||n)(e.LFG(Ye.O),e.LFG(x.L6))};static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function R(n,o){return t=>{const s=n.find(i=>i.Id===t.TypeRef.Id);return!s||s.Id===o.dispensationPresenceTypeId||s.Id===o.halfDayPresenceTypeId||s.IsIncident}}var T=a(1257),Ge=a(1342),De=a(6869);function ke(n,o){if(1&n&&(e.TgZ(0,"div",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Re(n,o){if(1&n&&(e.TgZ(0,"option",23),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.Q6J("ngValue",t.Id),e.xp6(1),e.hij(" ",t.Designation," ")}}function je(n,o){if(1&n&&(e.TgZ(0,"select",22),e.ALo(1,"async"),e.TgZ(2,"option",23),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,Re,2,2,"option",24),e.ALo(6,"async"),e.qZA()),2&n){const t=e.oxw(6);e.ekj("is-invalid",e.lcZ(1,5,t.absenceTypeIdErrors$).length>0),e.xp6(2),e.Q6J("ngValue",null),e.xp6(1),e.hij(" ",e.lcZ(4,7,"edit-absences.edit.absence-type-placeholder")," "),e.xp6(2),e.Q6J("ngForOf",e.lcZ(6,9,t.absenceTypes$))}}function Be(n,o){if(1&n&&(e.TgZ(0,"div",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Me(n,o){if(1&n&&(e.TgZ(0,"div",18),e._UZ(1,"input",19),e.TgZ(2,"label",14),e._uU(3),e.qZA(),e.YNc(4,je,7,11,"select",20),e.YNc(5,Be,3,4,"div",21),e.ALo(6,"async"),e.qZA()),2&n){const t=o.$implicit,s=e.oxw(5);e.xp6(1),e.Q6J("id","state-"+t.Key)("value",t.Key),e.xp6(1),e.s9C("for","state-"+t.Key),e.xp6(1),e.hij(" ",t.Value," "),e.xp6(1),e.Q6J("ngIf",s.isExcused(t)),e.xp6(1),e.Q6J("ngForOf",e.lcZ(6,6,s.absenceTypeIdErrors$))}}function He(n,o){if(1&n&&(e.TgZ(0,"div",16),e.YNc(1,Me,7,8,"div",17),e.qZA()),2&n){const t=e.oxw(3).erzLet;e.xp6(1),e.Q6J("ngForOf",t.confirmationStates)}}function Ke(n,o){if(1&n&&(e.TgZ(0,"option",23),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.Q6J("ngValue",t.Id),e.xp6(1),e.hij(" ",t.Designation," ")}}function Ve(n,o){if(1&n&&(e.TgZ(0,"div",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Xe(n,o){if(1&n&&(e.TgZ(0,"div",16)(1,"select",26),e.ALo(2,"async"),e.TgZ(3,"option",23),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,Ke,2,2,"option",24),e.ALo(7,"async"),e.qZA(),e.YNc(8,Ve,3,4,"div",21),e.ALo(9,"async"),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.ekj("is-invalid",e.lcZ(2,6,t.incidentIdErrors$).length>0),e.xp6(2),e.Q6J("ngValue",null),e.xp6(1),e.hij(" ",e.lcZ(5,8,"edit-absences.edit.incident-placeholder")," "),e.xp6(2),e.Q6J("ngForOf",e.lcZ(7,10,t.incidents$)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(9,12,t.incidentIdErrors$))}}function we(n,o){if(1&n&&(e.TgZ(0,"div",12),e._UZ(1,"input",13),e.TgZ(2,"label",14),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,He,2,1,"div",15),e.YNc(6,Xe,10,14,"div",15),e.qZA()),2&n){const t=o.$implicit,s=e.oxw(3);e.xp6(1),e.Q6J("id","category-"+t)("value",t),e.xp6(1),e.s9C("for","category-"+t),e.xp6(1),e.hij(" ",e.lcZ(4,6,"edit-absences.edit.categories."+t)," "),e.xp6(2),e.Q6J("ngIf",s.isAbsent(t)),e.xp6(1),e.Q6J("ngIf",s.isIncident(t))}}function We(n,o){1&n&&(e.TgZ(0,"div",27)(1,"span",28),e._uU(2,"Loading..."),e.qZA()())}function et(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.onSubmit())}),e.YNc(1,ke,3,4,"div",4),e.ALo(2,"async"),e.TgZ(3,"div",5),e.YNc(4,we,7,8,"div",6),e.qZA(),e.TgZ(5,"div",7)(6,"button",8),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.cancel())}),e.ALo(7,"async"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",9),e.ALo(11,"async"),e._uU(12),e.ALo(13,"translate"),e.YNc(14,We,3,0,"div",10),e.ALo(15,"async"),e.qZA()()()}if(2&n){const t=e.oxw().erzLet,s=e.oxw();e.Q6J("formGroup",t.formGroup),e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,8,s.formErrors$)),e.xp6(3),e.Q6J("ngForOf",t.categories),e.xp6(2),e.Q6J("disabled",e.lcZ(7,10,s.saving$)),e.xp6(2),e.hij(" ",e.lcZ(9,12,"edit-absences.edit.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(11,14,s.saving$)),e.xp6(2),e.hij(" ",e.lcZ(13,16,"edit-absences.edit.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(15,18,s.saving$))}}function tt(n,o){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,et,16,20,"form",2),e.qZA()),2&n){const t=o.erzLet;e.xp6(1),e.Q6J("ngIf",t.formGroup&&t.confirmationStates)}}const nt=function(n,o,t){return{confirmationStates:n,categories:o,formGroup:t}},at=[{path:"",component:ee,children:[{path:"",component:Ne,data:{restoreScrollPositionFrom:["/edit-absences/edit","/edit-absences/student/:id/addresses","/edit-absences/student/:id/absences","/edit-absences/student/:id/grades"]}},{path:"edit",component:(()=>{class n{constructor(t,s,i,r,c,m,l,S,lt,dt){this.fb=t,this.router=s,this.route=i,this.toastService=r,this.translate=c,this.state=m,this.dropDownItemsService=l,this.presenceTypesService=S,this.updateService=lt,this.settings=dt,this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.incidents$=this.presenceTypesService.incidentTypes$,this.formGroup$=this.createFormGroup(),this.saving$=new D.X(!1),this.submitted$=new D.X(!1),this.formErrors$=(0,T.Z6)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,T.Z6)(this.formGroup$,this.submitted$,"absenceTypeId"),this.incidentIdErrors$=(0,T.Z6)(this.formGroup$,this.submitted$,"incidentId"),this.availableCategories=[u.Absent,u.Dispensation,u.HalfDay,u.Incident,u.Present],this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,d.U)(this.sortAbsenceConfirmationStates.bind(this)),(0,b.d)(1)),this.activeCategories$=this.presenceTypesService.halfDayActive$.pipe((0,d.U)(ut=>ut?this.availableCategories:this.availableCategories.filter(pt=>pt!==u.HalfDay))),this.destroy$=new N.x}ngOnInit(){0===this.state.selected.length&&this.navigateBack(),(0,T.ZX)(this.formGroup$,"category").pipe((0,y.R)(this.destroy$)).subscribe(this.updateConfirmationValueDisabled.bind(this)),(0,T.ZX)(this.formGroup$,"confirmationValue").pipe((0,y.R)(this.destroy$)).subscribe(this.updateAbsenceTypeIdDisabled.bind(this))}ngOnDestroy(){this.destroy$.next()}isAbsent(t){return t===u.Absent}isExcused(t){return t.Key===this.settings.excusedAbsenceStateId}isIncident(t){return t===u.Incident}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,g.q)(1)).subscribe(t=>{t.valid&&this.save(t)})}cancel(){this.navigateBack()}createFormGroup(){return this.getInitialAbsenceTypeId().pipe((0,d.U)(t=>this.fb.group({category:[u.Absent,p.kI.required],confirmationValue:[this.settings.excusedAbsenceStateId,p.kI.required],absenceTypeId:[t,p.kI.required],incidentId:[{value:null,disabled:!0},p.kI.required]})),(0,b.d)(1))}getInitialAbsenceTypeId(){return this.absenceTypes$.pipe((0,g.q)(1),(0,d.U)(t=>{const s=t.map(r=>r.Id),i=(0,ze.Z)(this.state.selected.map(r=>r.TypeRef.Id));return 1===i.length&&null!=i[0]&&s.includes(i[0])?i[0]:null}))}updateConfirmationValueDisabled(){this.formGroup$.pipe((0,g.q)(1)).subscribe(t=>{const s=t.get("category"),i=t.get("confirmationValue"),r=t.get("absenceTypeId"),c=t.get("incidentId");s&&i&&r&&c&&(s.value===u.Absent?(i.enable(),this.updateAbsenceTypeIdDisabled()):(i.disable(),r.disable()),s.value===u.Incident?c.enable():c.disable())})}updateAbsenceTypeIdDisabled(){this.formGroup$.pipe((0,g.q)(1)).subscribe(t=>{const s=t.get("confirmationValue"),i=t.get("absenceTypeId");s&&i&&(s.value===this.settings.excusedAbsenceStateId?i.enable():i.disable())})}save(t){this.saving$.next(!0);const{category:s,confirmationValue:i,absenceTypeId:r,incidentId:c}=t.value;this.presenceTypesService.presenceTypes$.pipe((0,I.w)(m=>this.updateService.update(this.state.selected,m,s,i,r,c)),(0,Oe.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.state.resetSelection(),this.toastService.success(this.translate.instant("edit-absences.edit.save-success")),this.navigateBack(!0)}navigateBack(t){this.route.queryParams.pipe((0,g.q)(1)).subscribe(s=>{this.router.navigate(["/edit-absences"],{queryParams:{...(0,Ge.dD)(s.returnparams),reload:t}})})}sortAbsenceConfirmationStates(t){return t.slice().sort((s,i)=>s.Key===this.settings.excusedAbsenceStateId?-1:i.Key===this.settings.excusedAbsenceStateId?1:s.Value.localeCompare(i.Value))}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(p.QS),e.Y36(f.F0),e.Y36(f.gz),e.Y36(De.k),e.Y36(Z.sK),e.Y36(v),e.Y36(P.R),e.Y36(J.c),e.Y36(Qe),e.Y36(x.L6))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences-edit"]],decls:7,vars:14,consts:[["class","erz-container erz-container-limited erz-container-padding-y",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],["class","form-check mt-2 mb-3",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],[1,"form-check","mt-2","mb-3"],["type","radio","formControlName","category",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","ms-5",4,"ngIf"],[1,"ms-5"],["class","form-check mt-2 mb-2",4,"ngFor","ngForOf"],[1,"form-check","mt-2","mb-2"],["type","radio","formControlName","confirmationValue",1,"form-check-input",3,"id","value"],["class","form-select mt-1","formControlName","absenceTypeId",3,"is-invalid",4,"ngIf"],["class","invalid-feedback",4,"ngFor","ngForOf"],["formControlName","absenceTypeId",1,"form-select","mt-1"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["formControlName","incidentId",1,"form-select","mt-1"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,tt,2,1,"div",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"edit-absences.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,nt,e.lcZ(4,4,i.confirmationStates$),e.lcZ(5,6,i.activeCategories$),e.lcZ(6,8,i.formGroup$))))},dependencies:[h.sg,h.O5,p._Y,p.YN,p.Kr,p.Fj,p.EJ,p._,p.JJ,p.JL,p.sg,p.u,z.e,h.Ov,Z.X$],changeDetection:0})}return n})()},a(1162).H]}];let rt=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.oAB({type:n});static#n=this.\u0275inj=e.cJS({imports:[f.Bz.forChild(at),f.Bz]})}return n})();var ot=a(8393);let ct=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.oAB({type:n});static#n=this.\u0275inj=e.cJS({providers:[ot.o],imports:[j.m,rt]})}return n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[403],{9403:(ht,$,a)=>{a.r($),a.d($,{EditAbsencesModule:()=>ct});var j=a(6486),f=a(1523),F=a(2572),b=a(7081),d=a(7398),y=a(9773),B=a(1140),M=a(1389),H=a(2388),U=a(4477),x=a(4141),K=a(6191),e=a(5879),h=a(6814),V=a(3005),X=a(1608),w=a(7575),J=a(905),P=a(5001);let v=(()=>{class n extends U.f{constructor(t,s,i,r,c,m,l){super(t,s,i,r,"/edit-absences"),this.lessonPresencesService=c,this.presenceTypesService=m,this.dropDownItemsService=l,this.presenceTypes$=this.loadPresenceTypes().pipe((0,b.d)(1)),this.absenceConfirmationStates$=this.loadAbsenceConfirmationStates().pipe((0,d.U)(B.I),(0,b.d)(1)),this.presenceControlEntries$=(0,F.a)([this.entries$,this.presenceTypes$,this.absenceConfirmationStates$]).pipe((0,d.U)((0,M.h)(K.v)),(0,b.d)(1)),this.selected=[],this.queryParamsString$.pipe((0,y.R)(this.destroy$)).subscribe(S=>this.confirmBackLinkParams={returnparams:S})}resetSelection(){this.selected=[]}getInitialFilter(){return{student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null}}isValidFilter(t){return!!(t.student||t.educationalEvent||t.studyClass||t.teacher||t.dateFrom||t.dateTo||t.presenceTypes||t.confirmationStates||t.incidentTypes)}loadEntries(t,s,i){return this.loadingService.load(this.lessonPresencesService.getFilteredList(t,i,{sort:"StudentFullName.asc,LessonDateTimeFrom.asc"}),U.O)}buildParamsFromFilter(t){return(0,H.i)(t)}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.activePresenceTypes$)}loadAbsenceConfirmationStates(){return this.loadingService.load(this.dropDownItemsService.getAbsenceConfirmationStates())}static#e=this.\u0275fac=function(s){return new(s||n)(e.LFG(h.Ye),e.LFG(V.b),e.LFG(X.K),e.LFG(x.L6),e.LFG(w.q),e.LFG(J.c),e.LFG(P.R))};static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac})}return n})();var W=a(6163);let ee=(()=>{class n{constructor(t){this.state=t}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(v))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences"]],features:[e._Bn([v,{provide:W.m,useExisting:v}])],decls:1,vars:0,template:function(s,i){1&s&&e._UZ(0,"router-outlet")},dependencies:[f.lC],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})();var N=a(8645),g=a(8180),te=a(2181),ne=a(6561);let q=(()=>{class n extends ne.z{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=e.n5z(n)))(i||n)}}();static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac})}return n})();var O=a(2220),C=a(3942),se=a(412),ie=a(6283),z=a(6567),ae=a(59),L=a(253),re=a(9189),E=a(8484),oe=a(3296),_=a(7749),ce=a(3779),le=a(9245),de=a(9018),A=a(754);const ue=A.dt({HRef:A.Z_,Id:A.pk,TeacherId:A.pk,FullName:A.Z_});var pe=a(7346),he=a(2096),I=a(4664),me=a(275),ge=a(9862);let fe=(()=>{class n extends pe.r{constructor(t,s){super(t,s,ue,"TeacherResources","FullName","FullName")}getTypeaheadItemByKey(t){return this.http.get(`${this.baseUrl}/`,{params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${t}*`}}).pipe((0,I.w)((0,me.Y0)(this.typeaheadCodec)),(0,I.w)(s=>(0,he.of)({Key:s[0].FullName,Value:`${s[0].FullName}`})))}static#e=this.\u0275fac=function(s){return new(s||n)(e.LFG(ge.eN),e.LFG(x.L6))};static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Z=a(9515),_e=a(2015),ve=a(1133),be=a(6001);let ye=(()=>{class n{constructor(t,s,i,r,c,m){this.studentsService=t,this.educationalEventsService=s,this.studyClassService=i,this.teacherResourcesService=r,this.state=c,this.translate=m,this.filter={student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null},this.filterChange=new e.vpe,this.absenceConfirmationStatesGrouped$=this.state.absenceConfirmationStates$.pipe((0,d.U)(l=>(0,_.pt)(l,this.translate.instant("shared.multiselect.all-option")))),this.presenceTypesGrouped$=this.state.presenceTypes$.pipe((0,d.U)(l=>l.filter((0,C.ff)(E.C3)).filter((0,C.ff)(E.hm))),(0,d.U)(_.KV),(0,d.U)(_.nC),(0,d.U)(l=>(0,_.pt)(l,this.translate.instant("shared.multiselect.all-option")))),this.incidentTypesGrouped$=this.state.presenceTypes$.pipe((0,d.U)(l=>l.filter(E.hm)),(0,d.U)(_.KV),(0,d.U)(_.nC),(0,d.U)(l=>(0,_.pt)(l,this.translate.instant("shared.multiselect.all-option")))),this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit({...this.filter,dateFrom:Y(this.filter.dateFrom),dateTo:Y(this.filter.dateTo)})}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(ce.l),e.Y36(le.$),e.Y36(de.R),e.Y36(fe),e.Y36(v),e.Y36(Z.sK))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},features:[e._Bn([{provide:L.DO,useClass:L.s5},{provide:L.NG,useClass:oe.n}])],decls:54,vars:53,consts:[[1,"row","g-3","mb-5"],[1,"col-md-6","col-lg-3"],[1,"form-label"],[3,"typeaheadService","value","valueChange"],[3,"typeaheadService","value","additionalHttpParams","valueChange"],[3,"value","valueChange"],[1,"row","g-3","align-items-end"],[1,"col-sm-12","col-md"],[3,"options","values","valuesChange"],[1,"col-auto"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(s,i){1&s&&(e.TgZ(0,"div",0)(1,"div",1)(2,"label",2),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"erz-typeahead",3),e.NdJ("valueChange",function(c){return i.filter.student=c}),e.qZA()(),e.TgZ(6,"div",1)(7,"label",2),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"erz-typeahead",3),e.NdJ("valueChange",function(c){return i.filter.educationalEvent=c}),e.qZA()(),e.TgZ(11,"div",1)(12,"label",2),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"erz-typeahead",4),e.NdJ("valueChange",function(c){return i.filter.studyClass=c}),e.qZA()(),e.TgZ(16,"div",1)(17,"label",2),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.TgZ(20,"erz-typeahead",3),e.NdJ("valueChange",function(c){return i.filter.teacher=c}),e.qZA()(),e.TgZ(21,"div",1)(22,"label",2),e._uU(23),e.ALo(24,"translate"),e.qZA(),e.TgZ(25,"erz-date-select",5),e.NdJ("valueChange",function(c){return i.filter.dateFrom=c}),e.qZA()(),e.TgZ(26,"div",1)(27,"label",2),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"erz-date-select",5),e.NdJ("valueChange",function(c){return i.filter.dateTo=c}),e.qZA()()(),e.TgZ(31,"div",6)(32,"div",7)(33,"label",2),e._uU(34),e.ALo(35,"translate"),e.qZA(),e.TgZ(36,"erz-multiselect",8),e.NdJ("valuesChange",function(c){return i.filter.confirmationStates=c}),e.ALo(37,"async"),e.qZA()(),e.TgZ(38,"div",7)(39,"label",2),e._uU(40),e.ALo(41,"translate"),e.qZA(),e.TgZ(42,"erz-multiselect",8),e.NdJ("valuesChange",function(c){return i.filter.presenceTypes=c}),e.ALo(43,"async"),e.qZA()(),e.TgZ(44,"div",7)(45,"label",2),e._uU(46),e.ALo(47,"translate"),e.qZA(),e.TgZ(48,"erz-multiselect",8),e.NdJ("valuesChange",function(c){return i.filter.incidentTypes=c}),e.ALo(49,"async"),e.qZA()(),e.TgZ(50,"div",9)(51,"button",10),e.NdJ("click",function(){return i.show()}),e._uU(52),e.ALo(53,"translate"),e.qZA()()()),2&s&&(e.xp6(3),e.Oqu(e.lcZ(4,27,"edit-absences.header.student")),e.xp6(2),e.Q6J("typeaheadService",i.studentsService)("value",i.filter.student),e.xp6(3),e.Oqu(e.lcZ(9,29,"edit-absences.header.module-instance")),e.xp6(2),e.Q6J("typeaheadService",i.educationalEventsService)("value",i.filter.educationalEvent),e.xp6(3),e.Oqu(e.lcZ(14,31,"edit-absences.header.study-class")),e.xp6(2),e.Q6J("typeaheadService",i.studyClassService)("value",i.filter.studyClass)("additionalHttpParams",i.classesHttpFilter),e.xp6(3),e.Oqu(e.lcZ(19,33,"edit-absences.header.teacher")),e.xp6(2),e.Q6J("typeaheadService",i.teacherResourcesService)("value",i.filter.teacher),e.xp6(3),e.Oqu(e.lcZ(24,35,"edit-absences.header.date-from")),e.xp6(2),e.Q6J("value",i.filter.dateFrom),e.xp6(3),e.Oqu(e.lcZ(29,37,"edit-absences.header.date-to")),e.xp6(2),e.Q6J("value",i.filter.dateTo),e.xp6(4),e.Oqu(e.lcZ(35,39,"edit-absences.header.confirmation-state")),e.xp6(2),e.Q6J("options",e.lcZ(37,41,i.absenceConfirmationStatesGrouped$))("values",i.filter.confirmationStates),e.xp6(4),e.Oqu(e.lcZ(41,43,"edit-absences.header.presence-type")),e.xp6(2),e.Q6J("options",e.lcZ(43,45,i.presenceTypesGrouped$))("values",i.filter.presenceTypes),e.xp6(4),e.Oqu(e.lcZ(47,47,"edit-absences.header.incident")),e.xp6(2),e.Q6J("options",e.lcZ(49,49,i.incidentTypesGrouped$))("values",i.filter.incidentTypes),e.xp6(4),e.hij(" ",e.lcZ(53,51,"edit-absences.header.show")," "))},dependencies:[_e.t,ve.T,be.z,h.Ov,Z.X$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0})}return n})();function Y(n){return n?(0,re.Z)(n):null}const Q=function(n){return{count:n}},G=function(n){return{returnparams:n}};function Ae(n,o){if(1&n&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"async"),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"a",14),e.ALo(7,"async"),e.TgZ(8,"i",15),e._uU(9,"edit"),e.qZA()()()),2&n){const t=e.oxw(4).erzLet,s=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,5,"edit-absences.list.total",e.VKq(15,Q,e.lcZ(4,8,s.state.total$)||0)),", ",e.xi3(5,10,"edit-absences.list.selected",e.VKq(17,Q,t.selection.length))," "),e.xp6(4),e.ekj("disabled",0===t.selection.length),e.Q6J("queryParams",e.VKq(19,G,e.lcZ(7,13,s.state.queryParamsString$)))}}const Ze=function(n){return["student",n,"absences"]};function Te(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td",20),e.NdJ("click",function(i){e.CHM(t);const r=e.MAs(3),c=e.oxw(6);return e.KtG(c.onCheckboxCellClick(i,r))}),e.TgZ(2,"input",17,21),e.NdJ("change",function(){const r=e.CHM(t).$implicit,c=e.oxw(6);return e.KtG(c.selectionService.toggle(r.lessonPresence))}),e.ALo(4,"async"),e.qZA()(),e.TgZ(5,"td",18),e.ALo(6,"translate"),e.TgZ(7,"span",22)(8,"i",15),e._uU(9),e.qZA()()(),e.TgZ(10,"td"),e.ALo(11,"translate"),e.TgZ(12,"a",23),e.ALo(13,"async"),e._uU(14),e.qZA(),e._UZ(15,"br"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e.ALo(18,"translate"),e._uU(19),e.ALo(20,"date"),e.qZA(),e.TgZ(21,"td"),e.ALo(22,"translate"),e._uU(23),e.ALo(24,"date"),e.ALo(25,"date"),e.qZA(),e.TgZ(26,"td"),e.ALo(27,"translate"),e._uU(28),e.qZA(),e.TgZ(29,"td",24),e.ALo(30,"translate"),e._uU(31),e.qZA(),e.TgZ(32,"td"),e.ALo(33,"translate"),e._uU(34),e.qZA()()}if(2&n){const t=o.$implicit,s=e.oxw(6);e.xp6(2),e.Q6J("checked",e.lcZ(4,21,s.selectionService.isSelected$(t.lessonPresence))),e.xp6(3),e.uIk("data-label",e.lcZ(6,23,"edit-absences.list.header.presence")),e.xp6(2),e.Q6J("className",t.presenceCategory),e.xp6(2),e.Oqu(t.presenceCategoryIcon),e.xp6(1),e.uIk("data-label",e.lcZ(11,25,"edit-absences.list.header.mobil-student-module-instance-study-class")),e.xp6(2),e.Q6J("routerLink",e.VKq(48,Ze,t.lessonPresence.StudentRef.Id))("queryParams",e.VKq(50,G,e.lcZ(13,27,s.profileReturnParams$))),e.xp6(2),e.hij(" ",t.lessonPresence.StudentFullName," "),e.xp6(2),e.AsE(" ",t.lessonPresence.EventDesignation,", ",t.lessonPresence.StudyClassNumber," "),e.xp6(1),e.uIk("data-label",e.lcZ(18,29,"edit-absences.list.header.date")),e.xp6(2),e.hij(" ",e.xi3(20,31,t.lessonPresence.LessonDateTimeFrom,"mediumDate")," "),e.xp6(2),e.uIk("data-label",e.lcZ(22,34,"edit-absences.list.header.time")),e.xp6(2),e.AsE(" ",e.xi3(24,36,t.lessonPresence.LessonDateTimeFrom,"shortTime"),"\u2013",e.xi3(25,39,t.lessonPresence.LessonDateTimeTo,"shortTime")," "),e.xp6(3),e.uIk("data-label",e.lcZ(27,42,"edit-absences.list.header.confirmation-state")),e.xp6(2),e.hij(" ",null==t.confirmationState?null:t.confirmationState.Value," "),e.xp6(1),e.uIk("data-label",e.lcZ(30,44,"edit-absences.list.header.mobil-presence-type-incident")),e.xp6(2),e.hij(" ",null==t.presenceType?null:t.presenceType.Designation," "),e.xp6(1),e.uIk("data-label",e.lcZ(33,46,"edit-absences.list.header.teacher")),e.xp6(2),e.hij(" ",t.lessonPresence.TeacherInformation," ")}}function xe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"table",16)(1,"thead")(2,"tr")(3,"th")(4,"input",17),e.NdJ("change",function(i){e.CHM(t);const r=e.oxw(5);return e.KtG(r.toggleAll(i.currentTarget.checked))}),e.qZA()(),e.TgZ(5,"th",18),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"th"),e._uU(9),e.ALo(10,"translate"),e._UZ(11,"br"),e._uU(12),e.ALo(13,"translate"),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"th"),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.TgZ(18,"th"),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"th"),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"th"),e._uU(25),e.ALo(26,"translate"),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"th"),e._uU(29),e.ALo(30,"translate"),e.qZA()()(),e.TgZ(31,"tbody"),e.YNc(32,Te,35,52,"tr",19),e.qZA()()}if(2&n){const t=e.oxw(4).erzLet;e.xp6(4),e.Q6J("checked",t.selection.length===t.entries.length),e.xp6(2),e.hij(" ",e.lcZ(7,12,"edit-absences.list.header.presence")," "),e.xp6(3),e.hij(" ",e.lcZ(10,14,"edit-absences.list.header.student")," "),e.xp6(3),e.AsE(" ",e.lcZ(13,16,"edit-absences.list.header.module-instance"),", ",e.lcZ(14,18,"edit-absences.list.header.study-class")," "),e.xp6(4),e.hij(" ",e.lcZ(17,20,"edit-absences.list.header.date")," "),e.xp6(3),e.Oqu(e.lcZ(20,22,"edit-absences.list.header.time")),e.xp6(3),e.hij(" ",e.lcZ(23,24,"edit-absences.list.header.confirmation-state")," "),e.xp6(3),e.AsE(" ",e.lcZ(26,26,"edit-absences.list.header.presence-type")," / ",e.lcZ(27,28,"edit-absences.list.header.incident")," "),e.xp6(4),e.Oqu(e.lcZ(30,30,"edit-absences.list.header.teacher")),e.xp6(3),e.Q6J("ngForOf",t.entries)}}function Ce(n,o){1&n&&e._UZ(0,"erz-spinner",25)}function Le(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",26),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(5);return e.KtG(i.state.nextPage())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"global.pagination.load-more")," "))}function Ee(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("scrolled",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.onScroll())}),e.YNc(1,Ae,10,21,"div",8),e.YNc(2,xe,33,32,"table",9),e.YNc(3,Ce,1,0,"erz-spinner",10),e.YNc(4,Le,3,3,"button",11),e.qZA()}if(2&n){const t=e.oxw(3).erzLet;e.xp6(1),e.Q6J("ngIf",t.entries&&t.entries.length>0),e.xp6(1),e.Q6J("ngIf",t.entries&&t.entries.length>0),e.xp6(1),e.Q6J("ngIf",t.loadingPage),e.xp6(1),e.Q6J("ngIf",t.hasMore&&!t.loadingPage)}}function Ie(n,o){1&n&&(e.TgZ(0,"p",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"edit-absences.no-entries")))}function Se(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Ee,5,4,"div",5),e.YNc(2,Ie,3,3,"ng-template",null,6,e.W1O),e.BQk()),2&n){const t=e.MAs(3),s=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",s.entries&&s.entries.length>0||s.loadingPage)("ngIfElse",t)}}function $e(n,o){1&n&&e._UZ(0,"erz-spinner")}function Fe(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Se,4,2,"ng-container",2),e.ALo(2,"async"),e.YNc(3,$e,1,0,"ng-template",null,4,e.W1O),e.BQk()),2&n){const t=e.MAs(4),s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,s.state.loading$))("ngIfElse",t)}}function Ue(n,o){1&n&&(e.TgZ(0,"p",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"edit-absences.no-filter")))}function Je(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"erz-edit-absences-header",1),e.NdJ("filterChange",function(i){e.CHM(t);const r=e.oxw();return e.KtG(r.state.setFilter(i))}),e.ALo(2,"async"),e.qZA(),e.YNc(3,Fe,5,4,"ng-container",2),e.ALo(4,"async"),e.YNc(5,Ue,3,3,"ng-template",null,3,e.W1O),e.BQk()}if(2&n){const t=e.MAs(6),s=e.oxw();e.xp6(1),e.Q6J("filter",e.lcZ(2,3,s.filterFromParams$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,5,s.state.isFilterValid$))("ngIfElse",t)}}const Pe=function(n,o,t,s){return{selection:n,entries:o,hasMore:t,loadingPage:s}};let Ne=(()=>{class n{constructor(t,s,i,r){this.state=t,this.selectionService=s,this.scrollPosition=i,this.route=r,this.filterFromParams$=this.route.queryParams.pipe((0,d.U)(qe)),this.profileReturnParams$=this.state.queryParamsString$,this.destroy$=new N.x}ngOnInit(){this.filterFromParams$.pipe((0,g.q)(1)).subscribe(t=>this.state.setFilter(t)),this.state.validFilter$.pipe((0,y.R)(this.destroy$)).subscribe(()=>this.selectionService.clear()),this.selectionService.selection$.pipe((0,y.R)(this.destroy$)).subscribe(t=>this.state.selected=t),this.route.queryParams.pipe((0,g.q)(1),(0,d.U)(({reload:t})=>t),(0,te.h)(C.fQ)).subscribe(()=>this.state.resetEntries())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(t){this.state.entries$.pipe((0,g.q)(1)).subscribe(s=>this.selectionService.clear(t?s:null))}onCheckboxCellClick(t,s){t.target!==s&&s.click()}onScroll(){this.state.nextPage()}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(v),e.Y36(q),e.Y36(se.X),e.Y36(f.gz))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences-list"]],features:[e._Bn([q])],decls:8,vars:17,consts:[[4,"erzLet"],[3,"filter","filterChange"],[4,"ngIf","ngIfElse"],["noFilter",""],["loading",""],["class","py-3","infiniteScroll","",3,"scrolled",4,"ngIf","ngIfElse"],["noEntries",""],["infiniteScroll","",1,"py-3",3,"scrolled"],["class","d-flex align-items-center justify-content-between",4,"ngIf"],["class","table table-striped",4,"ngIf"],["class","inline",4,"ngIf"],["type","button","class","btn btn-outline-secondary btn-sm d-block mx-auto",3,"click",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between"],[1,"total"],["routerLink","/edit-absences/edit",1,"edit","btn","btn-primary","btn-icon","mt-1","mb-2",3,"queryParams"],[1,"material-icons"],[1,"table","table-striped"],["type","checkbox",3,"checked","change"],[1,"presence-category"],[4,"ngFor","ngForOf"],[1,"edit-absences-checkbox",3,"click"],["checkbox",""],[3,"className"],[1,"student",3,"routerLink","queryParams"],[1,"designation-incident"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"],[1,"mt-3"]],template:function(s,i){1&s&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,Je,7,7,"ng-container",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async"),e.ALo(7,"async")),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"edit-absences.title")),e.xp6(2),e.Q6J("erzLet",e.l5B(12,Pe,e.lcZ(4,4,i.selectionService.selection$),e.lcZ(5,6,i.state.presenceControlEntries$),e.lcZ(6,8,i.state.hasMore$),e.lcZ(7,10,i.state.loadingPage$))))},dependencies:[h.sg,h.O5,f.rH,ie.Ry,z.e,ae.O,ye,h.Ov,h.uU,Z.X$],styles:[".presence-category[_ngcontent-%COMP%]{text-align:center}.presence-category[_ngcontent-%COMP%] .absent[_ngcontent-%COMP%]{color:#d01018}.presence-category[_ngcontent-%COMP%] .present[_ngcontent-%COMP%]{color:#3d8608}.presence-category[_ngcontent-%COMP%] .unapproved[_ngcontent-%COMP%]{color:#ffa814}.designation-incident[_ngcontent-%COMP%]{max-width:50ch}@media screen and (max-width: 820px){.edit-absences-checkbox[_ngcontent-%COMP%]{text-align:left}.presence-category[_ngcontent-%COMP%]{text-align:right}.designation-incident[_ngcontent-%COMP%]{max-width:initial}}"],changeDetection:0})}return n})();function qe(n){return{student:n.student?Number(n.student):null,educationalEvent:n.educationalEvent?Number(n.educationalEvent):null,studyClass:n.studyClass?Number(n.studyClass):null,teacher:n.teacher??null,dateFrom:n.dateFrom?(0,O.nx)(n.dateFrom):null,dateTo:n.dateTo?(0,O.nx)(n.dateTo):null,presenceTypes:n.presenceTypes?n.presenceTypes.split(",").map(Number):null,confirmationStates:n.confirmationStates?n.confirmationStates.split(",").map(Number):null,incidentTypes:n.incidentTypes?n.incidentTypes.split(",").map(Number):null}}var p=a(6223),D=a(5619),Oe=a(4716),ze=a(2194),k=a(49),Ye=a(6023),u=function(n){return n.Absent="absent",n.Dispensation="dispensation",n.HalfDay="half-day",n.Incident="incident",n.Present="present",n}(u||{});let Qe=(()=>{class n{constructor(t,s){this.updateService=t,this.settings=s}update(t,s,i,r,c,m){let l=[];switch(i){case u.Present:l=this.createResetBulkRequests(t);break;case u.Absent:l=this.createAbsentEditBulkRequests(t,s,r,c);break;case u.Dispensation:l=this.createEditBulkRequests(t,null,this.settings.dispensationPresenceTypeId);break;case u.HalfDay:l=this.createEditBulkRequests(t,null,this.settings.halfDayPresenceTypeId);break;case u.Incident:l=this.createEditBulkRequests(t,null,m)}return(0,F.a)(l).pipe((0,d.U)(()=>{}))}createAbsentEditBulkRequests(t,s,i,r){return i===this.settings.excusedAbsenceStateId?this.createEditBulkRequests(t,i,r):i===this.settings.unexcusedAbsenceStateId?this.createEditBulkRequests(t,i,this.settings.absencePresenceTypeId):[...this.createEditBulkRequests(t.filter(R(s,this.settings)),i,this.settings.absencePresenceTypeId),...this.createEditBulkRequests(t.filter((0,C.ff)(R(s,this.settings))),i,null)]}createResetBulkRequests(t){return(0,k.fG)(t).map(({lessonIds:s,personIds:i})=>this.updateService.removeLessonPresences(s,i))}createEditBulkRequests(t,s,i){return(0,k.fG)(t).map(({lessonIds:r,personIds:c})=>this.updateService.editLessonPresences(r,c,i||void 0,s||void 0))}static#e=this.\u0275fac=function(s){return new(s||n)(e.LFG(Ye.O),e.LFG(x.L6))};static#t=this.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function R(n,o){return t=>{const s=n.find(i=>i.Id===t.TypeRef.Id);return!s||s.Id===o.dispensationPresenceTypeId||s.Id===o.halfDayPresenceTypeId||s.IsIncident}}var T=a(1257),Ge=a(1342),De=a(6869);function ke(n,o){if(1&n&&(e.TgZ(0,"div",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Re(n,o){if(1&n&&(e.TgZ(0,"option",23),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.Q6J("ngValue",t.Id),e.xp6(1),e.hij(" ",t.Designation," ")}}function je(n,o){if(1&n&&(e.TgZ(0,"select",22),e.ALo(1,"async"),e.TgZ(2,"option",23),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,Re,2,2,"option",24),e.ALo(6,"async"),e.qZA()),2&n){const t=e.oxw(6);e.ekj("is-invalid",e.lcZ(1,5,t.absenceTypeIdErrors$).length>0),e.xp6(2),e.Q6J("ngValue",null),e.xp6(1),e.hij(" ",e.lcZ(4,7,"edit-absences.edit.absence-type-placeholder")," "),e.xp6(2),e.Q6J("ngForOf",e.lcZ(6,9,t.absenceTypes$))}}function Be(n,o){if(1&n&&(e.TgZ(0,"div",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Me(n,o){if(1&n&&(e.TgZ(0,"div",18),e._UZ(1,"input",19),e.TgZ(2,"label",14),e._uU(3),e.qZA(),e.YNc(4,je,7,11,"select",20),e.YNc(5,Be,3,4,"div",21),e.ALo(6,"async"),e.qZA()),2&n){const t=o.$implicit,s=e.oxw(5);e.xp6(1),e.Q6J("id","state-"+t.Key)("value",t.Key),e.xp6(1),e.s9C("for","state-"+t.Key),e.xp6(1),e.hij(" ",t.Value," "),e.xp6(1),e.Q6J("ngIf",s.isExcused(t)),e.xp6(1),e.Q6J("ngForOf",e.lcZ(6,6,s.absenceTypeIdErrors$))}}function He(n,o){if(1&n&&(e.TgZ(0,"div",16),e.YNc(1,Me,7,8,"div",17),e.qZA()),2&n){const t=e.oxw(3).erzLet;e.xp6(1),e.Q6J("ngForOf",t.confirmationStates)}}function Ke(n,o){if(1&n&&(e.TgZ(0,"option",23),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.Q6J("ngValue",t.Id),e.xp6(1),e.hij(" ",t.Designation," ")}}function Ve(n,o){if(1&n&&(e.TgZ(0,"div",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Xe(n,o){if(1&n&&(e.TgZ(0,"div",16)(1,"select",26),e.ALo(2,"async"),e.TgZ(3,"option",23),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,Ke,2,2,"option",24),e.ALo(7,"async"),e.qZA(),e.YNc(8,Ve,3,4,"div",21),e.ALo(9,"async"),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.ekj("is-invalid",e.lcZ(2,6,t.incidentIdErrors$).length>0),e.xp6(2),e.Q6J("ngValue",null),e.xp6(1),e.hij(" ",e.lcZ(5,8,"edit-absences.edit.incident-placeholder")," "),e.xp6(2),e.Q6J("ngForOf",e.lcZ(7,10,t.incidents$)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(9,12,t.incidentIdErrors$))}}function we(n,o){if(1&n&&(e.TgZ(0,"div",12),e._UZ(1,"input",13),e.TgZ(2,"label",14),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.YNc(5,He,2,1,"div",15),e.YNc(6,Xe,10,14,"div",15),e.qZA()),2&n){const t=o.$implicit,s=e.oxw(3);e.xp6(1),e.Q6J("id","category-"+t)("value",t),e.xp6(1),e.s9C("for","category-"+t),e.xp6(1),e.hij(" ",e.lcZ(4,6,"edit-absences.edit.categories."+t)," "),e.xp6(2),e.Q6J("ngIf",s.isAbsent(t)),e.xp6(1),e.Q6J("ngIf",s.isIncident(t))}}function We(n,o){1&n&&(e.TgZ(0,"div",27)(1,"span",28),e._uU(2,"Loading..."),e.qZA()())}function et(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.onSubmit())}),e.YNc(1,ke,3,4,"div",4),e.ALo(2,"async"),e.TgZ(3,"div",5),e.YNc(4,we,7,8,"div",6),e.qZA(),e.TgZ(5,"div",7)(6,"button",8),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.cancel())}),e.ALo(7,"async"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",9),e.ALo(11,"async"),e._uU(12),e.ALo(13,"translate"),e.YNc(14,We,3,0,"div",10),e.ALo(15,"async"),e.qZA()()()}if(2&n){const t=e.oxw().erzLet,s=e.oxw();e.Q6J("formGroup",t.formGroup),e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,8,s.formErrors$)),e.xp6(3),e.Q6J("ngForOf",t.categories),e.xp6(2),e.Q6J("disabled",e.lcZ(7,10,s.saving$)),e.xp6(2),e.hij(" ",e.lcZ(9,12,"edit-absences.edit.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(11,14,s.saving$)),e.xp6(2),e.hij(" ",e.lcZ(13,16,"edit-absences.edit.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(15,18,s.saving$))}}function tt(n,o){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,et,16,20,"form",2),e.qZA()),2&n){const t=o.erzLet;e.xp6(1),e.Q6J("ngIf",t.formGroup&&t.confirmationStates)}}const nt=function(n,o,t){return{confirmationStates:n,categories:o,formGroup:t}},at=[{path:"",component:ee,children:[{path:"",component:Ne,data:{restoreScrollPositionFrom:["/edit-absences/edit","/edit-absences/student/:id/addresses","/edit-absences/student/:id/absences","/edit-absences/student/:id/grades"]}},{path:"edit",component:(()=>{class n{constructor(t,s,i,r,c,m,l,S,lt,dt){this.fb=t,this.router=s,this.route=i,this.toastService=r,this.translate=c,this.state=m,this.dropDownItemsService=l,this.presenceTypesService=S,this.updateService=lt,this.settings=dt,this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.incidents$=this.presenceTypesService.incidentTypes$,this.formGroup$=this.createFormGroup(),this.saving$=new D.X(!1),this.submitted$=new D.X(!1),this.formErrors$=(0,T.Z6)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,T.Z6)(this.formGroup$,this.submitted$,"absenceTypeId"),this.incidentIdErrors$=(0,T.Z6)(this.formGroup$,this.submitted$,"incidentId"),this.availableCategories=[u.Absent,u.Dispensation,u.HalfDay,u.Incident,u.Present],this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,d.U)(this.sortAbsenceConfirmationStates.bind(this)),(0,b.d)(1)),this.activeCategories$=this.presenceTypesService.halfDayActive$.pipe((0,d.U)(ut=>ut?this.availableCategories:this.availableCategories.filter(pt=>pt!==u.HalfDay))),this.destroy$=new N.x}ngOnInit(){0===this.state.selected.length&&this.navigateBack(),(0,T.ZX)(this.formGroup$,"category").pipe((0,y.R)(this.destroy$)).subscribe(this.updateConfirmationValueDisabled.bind(this)),(0,T.ZX)(this.formGroup$,"confirmationValue").pipe((0,y.R)(this.destroy$)).subscribe(this.updateAbsenceTypeIdDisabled.bind(this))}ngOnDestroy(){this.destroy$.next()}isAbsent(t){return t===u.Absent}isExcused(t){return t.Key===this.settings.excusedAbsenceStateId}isIncident(t){return t===u.Incident}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,g.q)(1)).subscribe(t=>{t.valid&&this.save(t)})}cancel(){this.navigateBack()}createFormGroup(){return this.getInitialAbsenceTypeId().pipe((0,d.U)(t=>this.fb.group({category:[u.Absent,p.kI.required],confirmationValue:[this.settings.excusedAbsenceStateId,p.kI.required],absenceTypeId:[t,p.kI.required],incidentId:[{value:null,disabled:!0},p.kI.required]})),(0,b.d)(1))}getInitialAbsenceTypeId(){return this.absenceTypes$.pipe((0,g.q)(1),(0,d.U)(t=>{const s=t.map(r=>r.Id),i=(0,ze.Z)(this.state.selected.map(r=>r.TypeRef.Id));return 1===i.length&&null!=i[0]&&s.includes(i[0])?i[0]:null}))}updateConfirmationValueDisabled(){this.formGroup$.pipe((0,g.q)(1)).subscribe(t=>{const s=t.get("category"),i=t.get("confirmationValue"),r=t.get("absenceTypeId"),c=t.get("incidentId");s&&i&&r&&c&&(s.value===u.Absent?(i.enable(),this.updateAbsenceTypeIdDisabled()):(i.disable(),r.disable()),s.value===u.Incident?c.enable():c.disable())})}updateAbsenceTypeIdDisabled(){this.formGroup$.pipe((0,g.q)(1)).subscribe(t=>{const s=t.get("confirmationValue"),i=t.get("absenceTypeId");s&&i&&(s.value===this.settings.excusedAbsenceStateId?i.enable():i.disable())})}save(t){this.saving$.next(!0);const{category:s,confirmationValue:i,absenceTypeId:r,incidentId:c}=t.value;this.presenceTypesService.presenceTypes$.pipe((0,I.w)(m=>this.updateService.update(this.state.selected,m,s,i,r,c)),(0,Oe.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.state.resetSelection(),this.toastService.success(this.translate.instant("edit-absences.edit.save-success")),this.navigateBack(!0)}navigateBack(t){this.route.queryParams.pipe((0,g.q)(1)).subscribe(s=>{this.router.navigate(["/edit-absences"],{queryParams:{...(0,Ge.dD)(s.returnparams),reload:t}})})}sortAbsenceConfirmationStates(t){return t.slice().sort((s,i)=>s.Key===this.settings.excusedAbsenceStateId?-1:i.Key===this.settings.excusedAbsenceStateId?1:s.Value.localeCompare(i.Value))}static#e=this.\u0275fac=function(s){return new(s||n)(e.Y36(p.QS),e.Y36(f.F0),e.Y36(f.gz),e.Y36(De.k),e.Y36(Z.sK),e.Y36(v),e.Y36(P.R),e.Y36(J.c),e.Y36(Qe),e.Y36(x.L6))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["erz-edit-absences-edit"]],decls:7,vars:14,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],["class","form-check mt-2 mb-3",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],[1,"form-check","mt-2","mb-3"],["type","radio","formControlName","category",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","ms-5",4,"ngIf"],[1,"ms-5"],["class","form-check mt-2 mb-2",4,"ngFor","ngForOf"],[1,"form-check","mt-2","mb-2"],["type","radio","formControlName","confirmationValue",1,"form-check-input",3,"id","value"],["class","form-select mt-1","formControlName","absenceTypeId",3,"is-invalid",4,"ngIf"],["class","invalid-feedback",4,"ngFor","ngForOf"],["formControlName","absenceTypeId",1,"form-select","mt-1"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["formControlName","incidentId",1,"form-select","mt-1"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,tt,2,1,"div",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"edit-absences.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,nt,e.lcZ(4,4,i.confirmationStates$),e.lcZ(5,6,i.activeCategories$),e.lcZ(6,8,i.formGroup$))))},dependencies:[h.sg,h.O5,p._Y,p.YN,p.Kr,p.Fj,p.EJ,p._,p.JJ,p.JL,p.sg,p.u,z.e,h.Ov,Z.X$],changeDetection:0})}return n})()},a(1162).H]}];let rt=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.oAB({type:n});static#n=this.\u0275inj=e.cJS({imports:[f.Bz.forChild(at),f.Bz]})}return n})();var ot=a(8393);let ct=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.oAB({type:n});static#n=this.\u0275inj=e.cJS({providers:[ot.o],imports:[j.m,rt]})}return n})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/480.js b/public/apps/webapp-schulverwaltung/480.js index 5d376982..7628929f 100644 --- a/public/apps/webapp-schulverwaltung/480.js +++ b/public/apps/webapp-schulverwaltung/480.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[480],{4480:(N,M,o)=>{o.r(M),o.d(M,{OpenAbsencesModule:()=>ue});var _=o(6486),m=o(1523),S=o(5619),f=o(8645),$=o(3019),v=o(2572),x=o(7081),d=o(7398),b=o(8180),O=o(1389),P=o(2547),L=o(49),A=o(7727),e=o(5879),T=o(7575),C=o(8393),U=o(3005),E=o(9515);let l=(()=>{class s{constructor(t,n,i,c){this.lessonPresencesService=t,this.selectionService=n,this.loadingService=i,this.translate=c,this.loading$=this.loadingService.loading$,this.search$=new S.X(""),this.updateUnconfirmedAbsences$=new f.x,this.unconfirmedAbsences$=(0,$.T)(this.loadUnconfirmedAbsences(),this.updateUnconfirmedAbsences$).pipe((0,x.d)(1)),this.entries$=this.unconfirmedAbsences$.pipe((0,d.U)(A.Ob),(0,x.d)(1)),this.sortCriteriaSubject$=new S.X({primarySortKey:"date",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,v.a)([this.entries$,this.sortCriteria$]).pipe((0,d.U)((0,O.h)(A.EA))),this.filteredEntries$=(0,v.a)([this.sortedEntries$,this.search$]).pipe((0,d.U)((0,O.h)(P.P)),(0,x.d)(1)),this.currentDetail=null}getUnconfirmedAbsences(t,n){return this.entries$.pipe((0,d.U)(i=>{const c=i.find(h=>h.dateString===t&&h.studentId===n);return c?c.absences:[]}))}getAllUnconfirmedAbsencesForStudent(t){return this.entries$.pipe((0,d.U)(n=>n.filter(i=>i.studentId===t).reduce((i,c)=>i.concat(c.absences),[])))}toggleSort(t){this.sortCriteriaSubject$.pipe((0,b.q)(1)).subscribe(n=>{this.sortCriteriaSubject$.next(n.primarySortKey===t?{primarySortKey:t,ascending:!n.ascending}:{primarySortKey:t,ascending:"name"===t})})}get confirmBackLink(){return this.currentDetail?["/open-absences/detail",this.currentDetail.personId,this.currentDetail.date]:["/open-absences"]}updateAfterConfirm(){(0,v.a)([this.unconfirmedAbsences$.pipe((0,b.q)(1)),this.selectionService.selectedIds$.pipe((0,b.q)(1))]).pipe((0,d.U)((0,O.h)(A.pE))).subscribe(t=>{this.selectionService.clear(),this.updateUnconfirmedAbsences$.next(t)})}buildMailToString(t,n){const i=t.Email,c=this.translate.instant("open-absences.detail.mail.subject"),h=n.map(F=>(0,L.kK)(F)).join("%0D%0A");let y=`${this.translate.instant("open-absences.detail.mail.body")}%0D%0A${h}`;return y.length>=1600&&(y=`${y.substring(0,1500)}%0D%0A${this.translate.instant("open-absences.detail.mail.bodyToLargeForEmailTo")}`),`${i}?subject=${c}&body=${y}`}loadUnconfirmedAbsences(){return this.loadingService.load(this.lessonPresencesService.getListOfUnconfirmed())}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(T.q),e.LFG(C.o),e.LFG(U.b),e.LFG(E.sK))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var B=o(6163);let r=(()=>{class s{constructor(){}static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-open-absences"]],features:[e._Bn([l,{provide:B.m,useExisting:l}])],decls:1,vars:0,template:function(n,i){1&n&&e._UZ(0,"router-outlet")},dependencies:[m.lC],changeDetection:0})}return s})();var a=o(412),p=o(6814),K=o(6567),k=o(59),z=o(7163),J=o(238);function Y(s,g){if(1&s){const t=e.EpF();e.TgZ(0,"div",16),e.NdJ("click",function(){const c=e.CHM(t).$implicit,h=e.oxw(4);return e.KtG(h.openAbsencesService.toggleSort(c))}),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",17),e._uU(4),e.qZA()()}if(2&s){const t=g.$implicit,n=e.oxw(3).erzLet,i=e.oxw();e.Q6J("className",t),e.xp6(1),e.hij(" ",e.lcZ(2,3,"open-absences.list.header."+t)," "),e.xp6(3),e.Oqu(i.getSortDirectionCharacter(n.sortCriteria,t))}}const W=function(s,g){return["detail",s,g]},Z=function(s){return{count:s}};function Q(s,g){if(1&s){const t=e.EpF();e.TgZ(0,"div")(1,"div",18)(2,"div",19),e.NdJ("click",function(i){e.CHM(t);const c=e.MAs(4),h=e.oxw(4);return e.KtG(h.onCheckboxCellClick(i,c))}),e.TgZ(3,"input",13,20),e.NdJ("change",function(){const c=e.CHM(t).$implicit,h=e.oxw(4);return e.KtG(h.selectionService.toggle(c))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",21)(7,"a",22),e._uU(8),e.qZA()(),e.TgZ(9,"div",23),e._uU(10),e.qZA(),e.TgZ(11,"div",24),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"div",25),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",26),e._uU(18),e.ALo(19,"erzDaysDifference"),e.qZA(),e.TgZ(20,"div",27),e._uU(21),e.ALo(22,"date"),e.qZA()()()}if(2&s){const t=g.$implicit,n=e.oxw(4);e.xp6(3),e.Q6J("checked",e.lcZ(5,9,n.selectionService.isSelected$(t))),e.xp6(4),e.Q6J("routerLink",e.WLB(22,W,t.studentId,t.dateString)),e.xp6(1),e.Oqu(t.studentFullName),e.xp6(2),e.hij(" ",t.studyClassNumber," "),e.xp6(2),e.hij(" ",e.xi3(13,11,n.getLessonsCountKey(t),e.VKq(25,Z,t.lessonsCount))," "),e.xp6(3),e.AsE(" ",t.studyClassNumber,", ",e.xi3(16,14,n.getLessonsCountKey(t),e.VKq(27,Z,t.lessonsCount))," "),e.xp6(3),e.hij(" ",e.lcZ(19,17,t.date)," "),e.xp6(3),e.Oqu(e.xi3(22,19,t.date,"dd.MM.yyyy"))}}const G=function(){return["name","date"]};function X(s,g){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",4)(2,"erz-resettable-input",5),e.NdJ("valueChange",function(i){e.CHM(t);const c=e.oxw(3);return e.KtG(c.openAbsencesService.search$.next(i))}),e.ALo(3,"async"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",6)(7,"div",7),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"a",8)(11,"i",9),e._uU(12,"edit"),e.qZA()()()(),e.TgZ(13,"div",10)(14,"div",11)(15,"div",12)(16,"input",13),e.NdJ("change",function(i){e.CHM(t);const c=e.oxw(3);return e.KtG(c.onToggleAll(i.currentTarget.checked))}),e.qZA()(),e.YNc(17,Y,5,5,"div",14),e.qZA(),e.YNc(18,Q,23,29,"div",15),e.qZA(),e.BQk()}if(2&s){const t=e.oxw(2).erzLet,n=e.oxw();e.xp6(2),e.Q6J("value",e.lcZ(3,9,n.openAbsencesService.search$))("placeholder",e.lcZ(4,11,"open-absences.search-by-name-or-class"))("label",e.lcZ(5,13,"open-absences.search")),e.xp6(6),e.hij(" ",e.xi3(9,15,"open-absences.selected",e.VKq(18,Z,t.selection.length))," "),e.xp6(2),e.ekj("disabled",0===t.selection.length),e.xp6(6),e.Q6J("checked",t.selection.length===t.entries.length),e.xp6(1),e.Q6J("ngForOf",e.DdM(20,G)),e.xp6(1),e.Q6J("ngForOf",t.entries)}}function w(s,g){1&s&&(e.TgZ(0,"p",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"open-absences.noEntries")))}function H(s,g){if(1&s&&(e.ynx(0),e.YNc(1,X,19,21,"ng-container",1),e.ALo(2,"async"),e.YNc(3,w,3,3,"ng-template",null,3,e.W1O),e.BQk()),2&s){const t=e.MAs(4),n=e.oxw().erzLet,i=e.oxw();let c;e.xp6(1),e.Q6J("ngIf",(null==(c=e.lcZ(2,2,i.openAbsencesService.sortedEntries$))?null:c.length)>0||(null==n.entries?null:n.entries.length)>0)("ngIfElse",t)}}function V(s,g){1&s&&e._UZ(0,"erz-spinner")}function q(s,g){if(1&s&&(e.TgZ(0,"div"),e.YNc(1,H,5,4,"ng-container",1),e.ALo(2,"async"),e.YNc(3,V,1,0,"ng-template",null,2,e.W1O),e.qZA()),2&s){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,n.openAbsencesService.loading$))("ngIfElse",t)}}const ee=function(s,g,t){return{selection:s,entries:g,sortCriteria:t}};let te=(()=>{class s{constructor(t,n,i){this.openAbsencesService=t,this.selectionService=n,this.scrollPosition=i,this.destroy$=new f.x}ngOnInit(){this.openAbsencesService.currentDetail=null,this.selectionService.clearNonOpenAbsencesEntries()}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}onToggleAll(t){this.openAbsencesService.filteredEntries$.pipe((0,b.q)(1)).subscribe(n=>{this.selectionService.clear(t?n:null)})}onCheckboxCellClick(t,n){t.target!==n&&n.click()}getSortDirectionCharacter(t,n){return t.primarySortKey!==n?"":t.ascending?"\u2193":"\u2191"}getLessonsCountKey(t){return"open-absences.list.content.lessonsCount."+(1===t.lessonsCount?"singular":"plural")}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(l),e.Y36(C.o),e.Y36(a.X))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-open-absences-list"]],decls:7,vars:14,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],["noEntries",""],[1,"pt-3"],[1,"d-flex","header-search",3,"value","placeholder","label","valueChange"],[1,"d-flex","align-items-center","justify-content-between","mt-1"],[1,"selection-count","ps-1"],["routerLink","/open-absences/confirm",1,"edit","btn","btn-primary","btn-edit","mt-1","mb-2"],[1,"material-icons"],[1,"content"],[1,"absence-header"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"className","click"],[1,"sort-direction"],[1,"absence-entry"],[1,"checkbox",3,"click"],["checkbox",""],[1,"name","pe-2"],[3,"routerLink"],[1,"study-class"],[1,"lessons-count"],[1,"study-class-lessons-count"],[1,"days-ago"],[1,"date"],[1,"mt-3"]],template:function(n,i){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,q,5,4,"div",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"open-absences.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,ee,e.lcZ(4,4,i.selectionService.selection$),e.lcZ(5,6,i.openAbsencesService.filteredEntries$),e.lcZ(6,8,i.openAbsencesService.sortCriteria$))))},dependencies:[p.sg,p.O5,m.rH,K.e,k.O,z.w,p.Ov,p.uU,E.X$,J.Q],styles:['.header-search[_ngcontent-%COMP%]{max-width:500px}.absence-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"checkbox name date";grid-template-columns:min-content 5fr 1fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6;align-items:center}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name study-class lessons-count days-ago date";grid-template-columns:min-content 2fr 1fr 1fr 1fr 1fr;align-items:center}.checkbox[_ngcontent-%COMP%]{align-self:start;grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.name[_ngcontent-%COMP%]{grid-area:name;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lessons-count[_ngcontent-%COMP%]{grid-area:lessons-count}.study-class[_ngcontent-%COMP%]{grid-area:study-class}.study-class-lessons-count[_ngcontent-%COMP%]{grid-area:study-class-lessons-count;display:none}.days-ago[_ngcontent-%COMP%]{color:#6c757d;grid-area:days-ago}.date[_ngcontent-%COMP%]{grid-area:date}@media (max-width: 750px){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.absence-header[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date";grid-template-columns:min-content 3fr 2fr}.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date" "checkbox study-class-lessons-count days-ago";grid-template-columns:min-content 3fr 2fr}.study-class-lessons-count[_ngcontent-%COMP%]{display:block}.study-class[_ngcontent-%COMP%], .lessons-count[_ngcontent-%COMP%]{display:none}.days-ago[_ngcontent-%COMP%], .study-class-lessons-count[_ngcontent-%COMP%]{font-size:.875rem;color:#adb5bd}}'],changeDetection:0})}return s})();var ne=o(6232),D=o(4664),R=o(9773),se=o(2181),oe=o(8706),j=o(3942),ie=o(905),re=o(5258),ce=o(3036),ae=o(7625);const le=function(){return["/open-absences"]},ge=[{path:"",component:r,children:[{path:"",component:te,data:{restoreScrollPositionFrom:["/open-absences/detail/:personId/:date","/open-absences/confirm"]}},{path:"detail/:personId/:date",component:(()=>{class s{constructor(t,n,i,c,h,y,F){this.router=t,this.route=n,this.openAbsencesService=i,this.presenceTypesService=c,this.personService=h,this.selectionService=y,this.scrollPosition=F,this.absences$=this.route.paramMap.pipe((0,D.w)(this.getAbsencesForParams.bind(this))),this.hasAbsences$=this.absences$.pipe((0,d.U)((0,j.$L)(1))),this.studentFullName$=this.absences$.pipe((0,d.U)(u=>u[0]&&u[0].StudentFullName||null)),this.allSelected$=(0,v.a)([this.absences$,this.selectionService.selection$]).pipe((0,d.U)(([u,I])=>u.length===I.length)),this.studentEmail$=this.absences$.pipe((0,d.U)(u=>u[0]&&u[0].StudentRef.Id||null),(0,D.w)(u=>u?this.personService.getByIdWithEmailInfos(u):ne.E)),this.allUnconfirmedAbsencesForStudent$=this.route.paramMap.pipe((0,D.w)(this.getAbsencesForStudentParam.bind(this))),this.mailTo$=(0,v.a)([this.studentEmail$,this.allUnconfirmedAbsencesForStudent$]).pipe((0,d.U)(([u,I])=>this.openAbsencesService.buildMailToString(u,I))),this.destroy$=new f.x}ngOnInit(){this.selectionService.clearNonLessonPresences(),this.route.paramMap.pipe((0,R.R)(this.destroy$)).subscribe(t=>this.openAbsencesService.currentDetail={date:String(t.get("date")),personId:Number(t.get("personId"))}),this.hasAbsences$.pipe((0,R.R)(this.destroy$),(0,se.h)((0,oe.ff)(j.fQ))).subscribe(()=>this.router.navigate(["/open-absences"]))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(t){t?this.absences$.pipe((0,b.q)(1)).subscribe(n=>this.selectionService.clear(n)):this.selectionService.clear()}onRowClick(t,n){t.target!==n&&n.click()}getPresenceTypeDesignation(t){return this.presenceTypesService.displayedTypes$.pipe((0,d.U)(n=>t.TypeRef.Id&&n.find(i=>i.Id===t.TypeRef.Id)?.Designation||null))}getAbsencesForParams(t){return this.openAbsencesService.getUnconfirmedAbsences(String(t.get("date")),Number(t.get("personId")))}getAbsencesForStudentParam(t){return this.openAbsencesService.getAllUnconfirmedAbsencesForStudent(Number(t.get("personId")))}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(m.F0),e.Y36(m.gz),e.Y36(l),e.Y36(ie.c),e.Y36(re.J),e.Y36(C.o),e.Y36(a.X))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-open-absences-detail"]],decls:6,vars:10,consts:[[1,"mb-3",3,"routerLink"],[3,"absences$","selectionService","confirmLink","displayEmail","mailTo$"]],template:function(n,i){1&n&&(e.TgZ(0,"div"),e._UZ(1,"erz-backlink",0),e.TgZ(2,"h1"),e._uU(3),e.ALo(4,"async"),e.qZA()(),e._UZ(5,"erz-student-dossier-absences",1)),2&n&&(e.xp6(1),e.Q6J("routerLink",e.DdM(9,le)),e.xp6(2),e.Oqu(e.lcZ(4,7,i.studentFullName$)),e.xp6(2),e.Q6J("absences$",i.absences$)("selectionService",i.selectionService)("confirmLink","/open-absences/confirm")("displayEmail",!0)("mailTo$",i.mailTo$))},dependencies:[m.rH,ce.u,ae.I,p.Ov],styles:['.content[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.back[_ngcontent-%COMP%]{color:#000;text-decoration:none}.back[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]:active span[_ngcontent-%COMP%]{text-decoration:underline}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.6rem .5rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return s})(),data:{restoreScrollPositionFrom:["/open-absences/confirm"]}},{path:"confirm",component:o(917).A}]}];let he=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({imports:[m.Bz.forChild(ge),m.Bz]})}return s})(),ue=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({providers:[C.o],imports:[_.m,he]})}return s})()},412:(N,M,o)=>{o.d(M,{X:()=>T});var _=o(1523),m=o(8645),S=o(2096),f=o(2181),$=o(7398),v=o(8180),x=o(1631),d=o(4664),b=o(2689),O=o(7081),P=o(9773),L=o(836),A=o(5879),e=o(6814);let T=(()=>{class l{constructor(r,a){this.router=r,this.viewportScroller=a,this.scrollPositions={},this.previousRoute=null,this.currentRoute=null,this.currentScrollPosition=[0,0],this.destroy$=new m.x,this.scrollPosition$=this.router.events.pipe((0,f.h)(U),(0,$.U)(this.getScrollPosition.bind(this))),this.activationEnd$=this.router.events.pipe((0,f.h)(C)),this.navigationEnd$=this.router.events.pipe((0,f.h)(E)),this.route$=this.activationEnd$.pipe((0,v.q)(1)).pipe((0,x.z)(p=>[(0,S.of)(p),this.navigationEnd$.pipe((0,d.w)(()=>this.activationEnd$.pipe((0,v.q)(1))))]),(0,b.B)(),(0,$.U)(p=>p.snapshot),(0,O.d)(1)),this.scrollPosition$.pipe((0,P.R)(this.destroy$)).subscribe(p=>this.currentScrollPosition=p),this.route$.pipe((0,P.R)(this.destroy$)).subscribe(p=>{this.previousRoute=this.currentRoute,this.currentRoute=p})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const a=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[a]||[0,0])}const r=this.currentRoute;this.route$.pipe((0,L.T)(1),(0,v.q)(1),(0,P.R)(this.destroy$),(0,f.h)(a=>this.shouldStoreFor(r,a))).subscribe(()=>{const a=this.getPath(r);this.scrollPositions[a]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(r){this.viewportScroller.scrollToPosition(r)}getPath(r){return r?"/"+r.pathFromRoot.map(a=>a.routeConfig&&a.routeConfig.path).filter(a=>a).join("/"):"/"}requiresStoring(r){return!!(r&&r.routeConfig&&r.routeConfig.data&&Array.isArray(r.routeConfig.data.restoreScrollPositionFrom)&&r.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(r,a){return(r&&r.routeConfig&&r.routeConfig.data&&Array.isArray(r.routeConfig.data.restoreScrollPositionFrom)?r.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(a))}static#e=this.\u0275fac=function(a){return new(a||l)(A.LFG(_.F0),A.LFG(e.EM))};static#t=this.\u0275prov=A.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function C(l){return l instanceof _.jw}function U(l){return l instanceof _.OD}function E(l){return l instanceof _.m2}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[480],{4480:(N,M,o)=>{o.r(M),o.d(M,{OpenAbsencesModule:()=>ue});var _=o(6486),m=o(1523),S=o(5619),f=o(8645),$=o(3019),v=o(2572),x=o(7081),d=o(7398),b=o(8180),O=o(1389),P=o(2547),L=o(49),A=o(7727),e=o(5879),T=o(7575),C=o(8393),U=o(3005),E=o(9515);let l=(()=>{class s{constructor(t,n,i,c){this.lessonPresencesService=t,this.selectionService=n,this.loadingService=i,this.translate=c,this.loading$=this.loadingService.loading$,this.search$=new S.X(""),this.updateUnconfirmedAbsences$=new f.x,this.unconfirmedAbsences$=(0,$.T)(this.loadUnconfirmedAbsences(),this.updateUnconfirmedAbsences$).pipe((0,x.d)(1)),this.entries$=this.unconfirmedAbsences$.pipe((0,d.U)(A.Ob),(0,x.d)(1)),this.sortCriteriaSubject$=new S.X({primarySortKey:"date",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,v.a)([this.entries$,this.sortCriteria$]).pipe((0,d.U)((0,O.h)(A.EA))),this.filteredEntries$=(0,v.a)([this.sortedEntries$,this.search$]).pipe((0,d.U)((0,O.h)(P.P)),(0,x.d)(1)),this.currentDetail=null}getUnconfirmedAbsences(t,n){return this.entries$.pipe((0,d.U)(i=>{const c=i.find(h=>h.dateString===t&&h.studentId===n);return c?c.absences:[]}))}getAllUnconfirmedAbsencesForStudent(t){return this.entries$.pipe((0,d.U)(n=>n.filter(i=>i.studentId===t).reduce((i,c)=>i.concat(c.absences),[])))}toggleSort(t){this.sortCriteriaSubject$.pipe((0,b.q)(1)).subscribe(n=>{this.sortCriteriaSubject$.next(n.primarySortKey===t?{primarySortKey:t,ascending:!n.ascending}:{primarySortKey:t,ascending:"name"===t})})}get confirmBackLink(){return this.currentDetail?["/open-absences/detail",this.currentDetail.personId,this.currentDetail.date]:["/open-absences"]}updateAfterConfirm(){(0,v.a)([this.unconfirmedAbsences$.pipe((0,b.q)(1)),this.selectionService.selectedIds$.pipe((0,b.q)(1))]).pipe((0,d.U)((0,O.h)(A.pE))).subscribe(t=>{this.selectionService.clear(),this.updateUnconfirmedAbsences$.next(t)})}buildMailToString(t,n){const i=t.Email,c=this.translate.instant("open-absences.detail.mail.subject"),h=n.map(F=>(0,L.kK)(F)).join("%0D%0A");let y=`${this.translate.instant("open-absences.detail.mail.body")}%0D%0A${h}`;return y.length>=1600&&(y=`${y.substring(0,1500)}%0D%0A${this.translate.instant("open-absences.detail.mail.bodyToLargeForEmailTo")}`),`${i}?subject=${c}&body=${y}`}loadUnconfirmedAbsences(){return this.loadingService.load(this.lessonPresencesService.getListOfUnconfirmed())}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(T.q),e.LFG(C.o),e.LFG(U.b),e.LFG(E.sK))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var B=o(6163);let r=(()=>{class s{constructor(){}static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-open-absences"]],features:[e._Bn([l,{provide:B.m,useExisting:l}])],decls:1,vars:0,template:function(n,i){1&n&&e._UZ(0,"router-outlet")},dependencies:[m.lC],changeDetection:0})}return s})();var a=o(412),p=o(6814),K=o(6567),k=o(59),z=o(7163),J=o(238);function Y(s,g){if(1&s){const t=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const c=e.CHM(t).$implicit,h=e.oxw(4);return e.KtG(h.openAbsencesService.toggleSort(c))}),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",16),e._uU(4),e.qZA()()}if(2&s){const t=g.$implicit,n=e.oxw(3).erzLet,i=e.oxw();e.Q6J("className",t),e.xp6(1),e.hij(" ",e.lcZ(2,3,"open-absences.list.header."+t)," "),e.xp6(3),e.Oqu(i.getSortDirectionCharacter(n.sortCriteria,t))}}const W=function(s,g){return["detail",s,g]},Z=function(s){return{count:s}};function Q(s,g){if(1&s){const t=e.EpF();e.TgZ(0,"div")(1,"div",17)(2,"div",18),e.NdJ("click",function(i){e.CHM(t);const c=e.MAs(4),h=e.oxw(4);return e.KtG(h.onCheckboxCellClick(i,c))}),e.TgZ(3,"input",12,19),e.NdJ("change",function(){const c=e.CHM(t).$implicit,h=e.oxw(4);return e.KtG(h.selectionService.toggle(c))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",20)(7,"a",21),e._uU(8),e.qZA()(),e.TgZ(9,"div",22),e._uU(10),e.qZA(),e.TgZ(11,"div",23),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"div",24),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",25),e._uU(18),e.ALo(19,"erzDaysDifference"),e.qZA(),e.TgZ(20,"div",26),e._uU(21),e.ALo(22,"date"),e.qZA()()()}if(2&s){const t=g.$implicit,n=e.oxw(4);e.xp6(3),e.Q6J("checked",e.lcZ(5,9,n.selectionService.isSelected$(t))),e.xp6(4),e.Q6J("routerLink",e.WLB(22,W,t.studentId,t.dateString)),e.xp6(1),e.Oqu(t.studentFullName),e.xp6(2),e.hij(" ",t.studyClassNumber," "),e.xp6(2),e.hij(" ",e.xi3(13,11,n.getLessonsCountKey(t),e.VKq(25,Z,t.lessonsCount))," "),e.xp6(3),e.AsE(" ",t.studyClassNumber,", ",e.xi3(16,14,n.getLessonsCountKey(t),e.VKq(27,Z,t.lessonsCount))," "),e.xp6(3),e.hij(" ",e.lcZ(19,17,t.date)," "),e.xp6(3),e.Oqu(e.xi3(22,19,t.date,"dd.MM.yyyy"))}}const G=function(){return["name","date"]};function X(s,g){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div")(2,"erz-resettable-input",4),e.NdJ("valueChange",function(i){e.CHM(t);const c=e.oxw(3);return e.KtG(c.openAbsencesService.search$.next(i))}),e.ALo(3,"async"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",5)(7,"div",6),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"a",7)(11,"i",8),e._uU(12,"edit"),e.qZA()()()(),e.TgZ(13,"div",9)(14,"div",10)(15,"div",11)(16,"input",12),e.NdJ("change",function(i){e.CHM(t);const c=e.oxw(3);return e.KtG(c.onToggleAll(i.currentTarget.checked))}),e.qZA()(),e.YNc(17,Y,5,5,"div",13),e.qZA(),e.YNc(18,Q,23,29,"div",14),e.qZA(),e.BQk()}if(2&s){const t=e.oxw(2).erzLet,n=e.oxw();e.xp6(2),e.Q6J("value",e.lcZ(3,9,n.openAbsencesService.search$))("placeholder",e.lcZ(4,11,"open-absences.search-by-name-or-class"))("label",e.lcZ(5,13,"open-absences.search")),e.xp6(6),e.hij(" ",e.xi3(9,15,"open-absences.selected",e.VKq(18,Z,t.selection.length))," "),e.xp6(2),e.ekj("disabled",0===t.selection.length),e.xp6(6),e.Q6J("checked",t.selection.length===t.entries.length),e.xp6(1),e.Q6J("ngForOf",e.DdM(20,G)),e.xp6(1),e.Q6J("ngForOf",t.entries)}}function w(s,g){1&s&&(e.TgZ(0,"p",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"open-absences.noEntries")))}function H(s,g){if(1&s&&(e.ynx(0),e.YNc(1,X,19,21,"ng-container",1),e.ALo(2,"async"),e.YNc(3,w,3,3,"ng-template",null,3,e.W1O),e.BQk()),2&s){const t=e.MAs(4),n=e.oxw().erzLet,i=e.oxw();let c;e.xp6(1),e.Q6J("ngIf",(null==(c=e.lcZ(2,2,i.openAbsencesService.sortedEntries$))?null:c.length)>0||(null==n.entries?null:n.entries.length)>0)("ngIfElse",t)}}function V(s,g){1&s&&e._UZ(0,"erz-spinner")}function q(s,g){if(1&s&&(e.TgZ(0,"div"),e.YNc(1,H,5,4,"ng-container",1),e.ALo(2,"async"),e.YNc(3,V,1,0,"ng-template",null,2,e.W1O),e.qZA()),2&s){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,n.openAbsencesService.loading$))("ngIfElse",t)}}const ee=function(s,g,t){return{selection:s,entries:g,sortCriteria:t}};let te=(()=>{class s{constructor(t,n,i){this.openAbsencesService=t,this.selectionService=n,this.scrollPosition=i,this.destroy$=new f.x}ngOnInit(){this.openAbsencesService.currentDetail=null,this.selectionService.clearNonOpenAbsencesEntries()}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}onToggleAll(t){this.openAbsencesService.filteredEntries$.pipe((0,b.q)(1)).subscribe(n=>{this.selectionService.clear(t?n:null)})}onCheckboxCellClick(t,n){t.target!==n&&n.click()}getSortDirectionCharacter(t,n){return t.primarySortKey!==n?"":t.ascending?"\u2193":"\u2191"}getLessonsCountKey(t){return"open-absences.list.content.lessonsCount."+(1===t.lessonsCount?"singular":"plural")}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(l),e.Y36(C.o),e.Y36(a.X))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-open-absences-list"]],decls:7,vars:14,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],["noEntries",""],[1,"d-flex","header-search",3,"value","placeholder","label","valueChange"],[1,"d-flex","align-items-center","justify-content-between","mt-1"],[1,"selection-count","ps-1"],["routerLink","/open-absences/confirm",1,"edit","btn","btn-primary","btn-edit","mt-1","mb-2"],[1,"material-icons"],[1,"content"],[1,"absence-header"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"className","click"],[1,"sort-direction"],[1,"absence-entry"],[1,"checkbox",3,"click"],["checkbox",""],[1,"name","pe-2"],[3,"routerLink"],[1,"study-class"],[1,"lessons-count"],[1,"study-class-lessons-count"],[1,"days-ago"],[1,"date"],[1,"mt-3"]],template:function(n,i){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,q,5,4,"div",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"open-absences.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,ee,e.lcZ(4,4,i.selectionService.selection$),e.lcZ(5,6,i.openAbsencesService.filteredEntries$),e.lcZ(6,8,i.openAbsencesService.sortCriteria$))))},dependencies:[p.sg,p.O5,m.rH,K.e,k.O,z.w,p.Ov,p.uU,E.X$,J.Q],styles:['.header-search[_ngcontent-%COMP%]{max-width:500px}.absence-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"checkbox name date";grid-template-columns:min-content 5fr 1fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6;align-items:center}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name study-class lessons-count days-ago date";grid-template-columns:min-content 2fr 1fr 1fr 1fr 1fr;align-items:center}.checkbox[_ngcontent-%COMP%]{align-self:start;grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.name[_ngcontent-%COMP%]{grid-area:name;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lessons-count[_ngcontent-%COMP%]{grid-area:lessons-count}.study-class[_ngcontent-%COMP%]{grid-area:study-class}.study-class-lessons-count[_ngcontent-%COMP%]{grid-area:study-class-lessons-count;display:none}.days-ago[_ngcontent-%COMP%]{color:#6c757d;grid-area:days-ago}.date[_ngcontent-%COMP%]{grid-area:date}@media (max-width: 750px){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.absence-header[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date";grid-template-columns:min-content 3fr 2fr}.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date" "checkbox study-class-lessons-count days-ago";grid-template-columns:min-content 3fr 2fr}.study-class-lessons-count[_ngcontent-%COMP%]{display:block}.study-class[_ngcontent-%COMP%], .lessons-count[_ngcontent-%COMP%]{display:none}.days-ago[_ngcontent-%COMP%], .study-class-lessons-count[_ngcontent-%COMP%]{font-size:.875rem;color:#adb5bd}}'],changeDetection:0})}return s})();var ne=o(6232),D=o(4664),R=o(9773),se=o(2181),oe=o(8706),j=o(3942),ie=o(905),re=o(5258),ce=o(3036),ae=o(7625);const le=function(){return["/open-absences"]},ge=[{path:"",component:r,children:[{path:"",component:te,data:{restoreScrollPositionFrom:["/open-absences/detail/:personId/:date","/open-absences/confirm"]}},{path:"detail/:personId/:date",component:(()=>{class s{constructor(t,n,i,c,h,y,F){this.router=t,this.route=n,this.openAbsencesService=i,this.presenceTypesService=c,this.personService=h,this.selectionService=y,this.scrollPosition=F,this.absences$=this.route.paramMap.pipe((0,D.w)(this.getAbsencesForParams.bind(this))),this.hasAbsences$=this.absences$.pipe((0,d.U)((0,j.$L)(1))),this.studentFullName$=this.absences$.pipe((0,d.U)(u=>u[0]&&u[0].StudentFullName||null)),this.allSelected$=(0,v.a)([this.absences$,this.selectionService.selection$]).pipe((0,d.U)(([u,I])=>u.length===I.length)),this.studentEmail$=this.absences$.pipe((0,d.U)(u=>u[0]&&u[0].StudentRef.Id||null),(0,D.w)(u=>u?this.personService.getByIdWithEmailInfos(u):ne.E)),this.allUnconfirmedAbsencesForStudent$=this.route.paramMap.pipe((0,D.w)(this.getAbsencesForStudentParam.bind(this))),this.mailTo$=(0,v.a)([this.studentEmail$,this.allUnconfirmedAbsencesForStudent$]).pipe((0,d.U)(([u,I])=>this.openAbsencesService.buildMailToString(u,I))),this.destroy$=new f.x}ngOnInit(){this.selectionService.clearNonLessonPresences(),this.route.paramMap.pipe((0,R.R)(this.destroy$)).subscribe(t=>this.openAbsencesService.currentDetail={date:String(t.get("date")),personId:Number(t.get("personId"))}),this.hasAbsences$.pipe((0,R.R)(this.destroy$),(0,se.h)((0,oe.ff)(j.fQ))).subscribe(()=>this.router.navigate(["/open-absences"]))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(t){t?this.absences$.pipe((0,b.q)(1)).subscribe(n=>this.selectionService.clear(n)):this.selectionService.clear()}onRowClick(t,n){t.target!==n&&n.click()}getPresenceTypeDesignation(t){return this.presenceTypesService.displayedTypes$.pipe((0,d.U)(n=>t.TypeRef.Id&&n.find(i=>i.Id===t.TypeRef.Id)?.Designation||null))}getAbsencesForParams(t){return this.openAbsencesService.getUnconfirmedAbsences(String(t.get("date")),Number(t.get("personId")))}getAbsencesForStudentParam(t){return this.openAbsencesService.getAllUnconfirmedAbsencesForStudent(Number(t.get("personId")))}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(m.F0),e.Y36(m.gz),e.Y36(l),e.Y36(ie.c),e.Y36(re.J),e.Y36(C.o),e.Y36(a.X))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-open-absences-detail"]],decls:6,vars:10,consts:[[3,"routerLink"],[3,"absences$","selectionService","confirmLink","displayEmail","mailTo$"]],template:function(n,i){1&n&&(e.TgZ(0,"div"),e._UZ(1,"erz-backlink",0),e.TgZ(2,"h1"),e._uU(3),e.ALo(4,"async"),e.qZA()(),e._UZ(5,"erz-student-dossier-absences",1)),2&n&&(e.xp6(1),e.Q6J("routerLink",e.DdM(9,le)),e.xp6(2),e.Oqu(e.lcZ(4,7,i.studentFullName$)),e.xp6(2),e.Q6J("absences$",i.absences$)("selectionService",i.selectionService)("confirmLink","/open-absences/confirm")("displayEmail",!0)("mailTo$",i.mailTo$))},dependencies:[m.rH,ce.u,ae.I,p.Ov],styles:['.content[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.back[_ngcontent-%COMP%]{color:#000;text-decoration:none}.back[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]:active span[_ngcontent-%COMP%]{text-decoration:underline}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.6rem .5rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return s})(),data:{restoreScrollPositionFrom:["/open-absences/confirm"]}},{path:"confirm",component:o(917).A}]}];let he=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({imports:[m.Bz.forChild(ge),m.Bz]})}return s})(),ue=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({providers:[C.o],imports:[_.m,he]})}return s})()},412:(N,M,o)=>{o.d(M,{X:()=>T});var _=o(1523),m=o(8645),S=o(2096),f=o(2181),$=o(7398),v=o(8180),x=o(1631),d=o(4664),b=o(2689),O=o(7081),P=o(9773),L=o(836),A=o(5879),e=o(6814);let T=(()=>{class l{constructor(r,a){this.router=r,this.viewportScroller=a,this.scrollPositions={},this.previousRoute=null,this.currentRoute=null,this.currentScrollPosition=[0,0],this.destroy$=new m.x,this.scrollPosition$=this.router.events.pipe((0,f.h)(U),(0,$.U)(this.getScrollPosition.bind(this))),this.activationEnd$=this.router.events.pipe((0,f.h)(C)),this.navigationEnd$=this.router.events.pipe((0,f.h)(E)),this.route$=this.activationEnd$.pipe((0,v.q)(1)).pipe((0,x.z)(p=>[(0,S.of)(p),this.navigationEnd$.pipe((0,d.w)(()=>this.activationEnd$.pipe((0,v.q)(1))))]),(0,b.B)(),(0,$.U)(p=>p.snapshot),(0,O.d)(1)),this.scrollPosition$.pipe((0,P.R)(this.destroy$)).subscribe(p=>this.currentScrollPosition=p),this.route$.pipe((0,P.R)(this.destroy$)).subscribe(p=>{this.previousRoute=this.currentRoute,this.currentRoute=p})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const a=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[a]||[0,0])}const r=this.currentRoute;this.route$.pipe((0,L.T)(1),(0,v.q)(1),(0,P.R)(this.destroy$),(0,f.h)(a=>this.shouldStoreFor(r,a))).subscribe(()=>{const a=this.getPath(r);this.scrollPositions[a]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(r){this.viewportScroller.scrollToPosition(r)}getPath(r){return r?"/"+r.pathFromRoot.map(a=>a.routeConfig&&a.routeConfig.path).filter(a=>a).join("/"):"/"}requiresStoring(r){return!!(r&&r.routeConfig&&r.routeConfig.data&&Array.isArray(r.routeConfig.data.restoreScrollPositionFrom)&&r.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(r,a){return(r&&r.routeConfig&&r.routeConfig.data&&Array.isArray(r.routeConfig.data.restoreScrollPositionFrom)?r.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(a))}static#e=this.\u0275fac=function(a){return new(a||l)(A.LFG(_.F0),A.LFG(e.EM))};static#t=this.\u0275prov=A.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function C(l){return l instanceof _.jw}function U(l){return l instanceof _.OD}function E(l){return l instanceof _.m2}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/862.js b/public/apps/webapp-schulverwaltung/862.js index 87adebdc..b0e777e1 100644 --- a/public/apps/webapp-schulverwaltung/862.js +++ b/public/apps/webapp-schulverwaltung/862.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[862],{862:(On,E,r)=>{r.r(E),r.d(E,{MyAbsencesModule:()=>zn});var se=r(6486),g=r(1523),G=r(7328),u=r(2572),A=r(4664),b=r(7081),x=r(2181),l=r(7398),y=r(8180),oe=r(7921),ie=r(3020),T=r(4141),q=r(49),v=r(3942),M=r(1389),e=r(5879),$=r(8173),B=r(3779);let z=(()=>{class t{constructor(n,s,o){this.settings=n,this.storageService=s,this.studentsService=o,this.studentId$=new G.t(1),this.lessonAbsences$=this.studentId$.pipe((0,A.w)(this.loadLessonAbsences.bind(this)),(0,b.d)(1)),this.lessonIncidents$=this.studentId$.pipe((0,A.w)(this.loadLessonIncidents.bind(this)),(0,b.d)(1)),this.lessonPresences$=this.getLessonPresences(),this.checkableAbsences$=this.getAbsences(this.settings.checkableAbsenceStateId),this.openAbsences$=this.getAbsences(this.settings.unconfirmedAbsenceStateId),this.excusedAbsences$=this.getAbsences(this.settings.excusedAbsenceStateId),this.unexcusedAbsences$=this.getAbsences(this.settings.unexcusedAbsenceStateId),this.incidents$=this.getAbsences(null),this.openLessonAbsences$=(0,u.a)([this.openAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.checkableLessonAbsences$=(0,u.a)([this.checkableAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.excusedLessonAbsences$=(0,u.a)([this.excusedAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.unexcusedLessonAbsences$=(0,u.a)([this.unexcusedAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.incidentsLessonAbsences$=(0,u.a)([this.incidents$.pipe((0,x.h)(v.Nf)),this.lessonIncidents$]).pipe((0,l.U)((0,M.h)(this.getLessonIncidents.bind(this))),(0,b.d)(1)),this.counts$=this.getCounts();const i=this.storageService.getPayload()?.id_person;i&&this.studentId$.next(Number(i))}reset(){this.studentId$.pipe((0,y.q)(1)).subscribe(n=>this.studentId$.next(n))}getLessonPresences(){return this.getCached((0,u.a)([this.studentId$,this.lessonAbsences$,this.lessonIncidents$]).pipe((0,A.w)(([n,s,o])=>this.loadTimetableEntries(n,s,o).pipe((0,l.U)(i=>this.buildLessonPresences(s,o,i)))),(0,l.U)(q.Qw)))}getAbsences(n){return this.getCached(this.lessonPresences$.pipe((0,l.U)(s=>s?.filter(o=>o.ConfirmationStateId===n)||null)))}getLessonAbsences(n,s){const o=n.map(i=>i.LessonRef.Id);return s.filter(i=>o.includes(i.LessonRef.Id))}getLessonIncidents(n,s){const o=n.map(i=>i.LessonRef.Id);return s.filter(i=>o.includes(i.LessonRef.Id))}getCounts(){return(0,u.a)([this.getCount(this.checkableAbsences$),this.getCount(this.openAbsences$),this.getCount(this.excusedAbsences$),this.getCount(this.unexcusedAbsences$),this.getCount(this.incidents$)]).pipe((0,l.U)(([n,s,o,i,a])=>({checkableAbsences:n,openAbsences:s,excusedAbsences:o,unexcusedAbsences:i,incidents:a,halfDays:null})))}getCached(n){return n.pipe((0,oe.O)(null),(0,ie.B)({connector:()=>new G.t(1)}))}getCount(n){return n.pipe((0,l.U)(s=>s?.length??null))}loadLessonAbsences(n){return this.studentsService.getLessonAbsences(n)}loadLessonIncidents(n){return this.studentsService.getLessonIncidents(n)}loadTimetableEntries(n,s,o){return this.studentsService.getTimetableEntries(n,{"filter.Id":`;${[...s,...o].map(i=>i.LessonRef.Id).join(";")}`})}buildLessonPresences(n,s,o){return[...n,...s].map(i=>this.buildLessonPresence(i,o)).filter(v.Nf)}buildLessonPresence(n,s){const o=s.find(i=>i.Id===n.LessonRef.Id);return o?{Id:"",LessonRef:{Id:n.LessonRef.Id,HRef:n.LessonRef.HRef?n.LessonRef.HRef:null},StudentRef:n.StudentRef,EventRef:{Id:0,HRef:null},TypeRef:n.TypeRef,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:"ConfirmationStateId"in n?n.ConfirmationStateId:null,EventDesignation:o.EventDesignation,HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:o.From,LessonDateTimeTo:o.To,Comment:null,Date:o.From,Type:n.Type,StudentFullName:n.StudentFullName,StudyClassNumber:"",TeacherInformation:o.EventManagerInformation}:null}static#e=this.\u0275fac=function(s){return new(s||t)(e.LFG(T.L6),e.LFG($.V),e.LFG(B.l))};static#n=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})(),ce=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences"]],features:[e._Bn([z])],decls:1,vars:0,template:function(s,o){1&s&&e._UZ(0,"router-outlet")},dependencies:[g.lC],changeDetection:0})}return t})();var O=r(8645),L=r(2096),K=r(6100),Y=r(2194),R=r(6055),re=r(6016),J=r(8393),m=r(6814),C=r(253),U=r(6567),ae=r(8898),le=r(3036),h=r(9515);const de=["link"],pe=function(){return["/my-absences/report"]};let me=(()=>{class t{onClick(){this.link.nativeElement.click()}constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report-link"]],viewQuery:function(s,o){if(1&s&&e.Gf(de,5),2&s){let i;e.iGM(i=e.CRH())&&(o.link=i.first)}},hostBindings:function(s,o){1&s&&e.NdJ("click",function(a){return o.onClick(a)})},decls:8,vars:5,consts:[[1,"m-0"],[1,"btn","btn-link","p-0",3,"routerLink"],["link",""],[1,"d-flex","align-items-center"],[1,"material-icons"]],template:function(s,o){1&s&&(e.TgZ(0,"h5",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"a",1,2)(5,"div",3)(6,"i",4),e._uU(7,"keyboard_arrow_right"),e.qZA()()()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"my-absences.report.title"),"\n"),e.xp6(2),e.Q6J("routerLink",e.DdM(4,pe)))},dependencies:[g.rH,h.X$],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;cursor:pointer}.btn[_ngcontent-%COMP%]{color:#000;text-decoration:none}"],changeDetection:0})}return t})();function ue(t,c){1&t&&e._UZ(0,"erz-my-absences-report-link")}function _e(t,c){}function ge(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.checkableAbsences,")")}}function fe(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("checkable-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,ge,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.checkable-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.checkableAbsences)}}function he(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",17),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.checkableAbsences$)}}function be(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.openAbsences,")")}}function ye(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("open-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,be,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.open-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.openAbsences)}}function ve(t,c){if(1&t&&(e._UZ(0,"erz-student-dossier-absences",18),e.ALo(1,"translate"),e.ALo(2,"async"),e.ALo(3,"async")),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.openAbsences$)("selectionService",n.absencesSelectionService)("defaultAbsenceSelectionMessage",e.lcZ(1,5,"my-absences.show.default-absence-selection-message"))("reportUrl",e.lcZ(2,7,n.openAbsencesReportUrl$))("reportAvailable",e.lcZ(3,9,n.openAbsencesReportAvailable$))}}function Ae(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.excusedAbsences,")")}}function xe(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("excused-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,Ae,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.excused-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.excusedAbsences)}}function Ce(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",17),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.excusedAbsences$)}}function Te(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.unexcusedAbsences,")")}}function Le(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("unexcused-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,Te,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.unexcused-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.unexcusedAbsences)}}function Ze(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",19),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function Se(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.incidents,")")}}function Ie(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("incidents"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,Se,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.incidents")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.incidents)}}function Me(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",17),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.incidents$)}}function $e(t,c){if(1&t&&(e.TgZ(0,"div",1)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",2)(5,"div"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",3)(9,"a",4),e.ALo(10,"async"),e.ALo(11,"async"),e.TgZ(12,"i",5),e._uU(13,"description"),e.qZA()()()(),e.TgZ(14,"ngb-accordion",null,6)(16,"ngb-panel",7),e.YNc(17,ue,1,0,"ng-template",8),e.YNc(18,_e,0,0,"ng-template",9),e.qZA(),e.TgZ(19,"ngb-panel",10),e.YNc(20,fe,4,5,"ng-template",8),e.YNc(21,he,1,1,"ng-template",9),e.qZA(),e.TgZ(22,"ngb-panel",11),e.YNc(23,ye,4,5,"ng-template",8),e.YNc(24,ve,4,11,"ng-template",9),e.qZA(),e.TgZ(25,"ngb-panel",12),e.YNc(26,xe,4,5,"ng-template",8),e.YNc(27,Ce,1,1,"ng-template",9),e.qZA(),e.TgZ(28,"ngb-panel",13),e.YNc(29,Le,4,5,"ng-template",8),e.YNc(30,Ze,1,2,"ng-template",9),e.qZA(),e.TgZ(31,"ngb-panel",14),e.YNc(32,Ie,4,5,"ng-template",8),e.YNc(33,Me,1,1,"ng-template",9),e.qZA()()()),2&t){const n=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,5,"my-absences.title")),e.xp6(4),e.Oqu(e.lcZ(7,7,"my-absences.description")),e.xp6(3),e.ekj("disabled",!1===e.lcZ(10,9,n.allAbsencesReportUrlAvailable$)),e.Q6J("href",e.lcZ(11,11,n.allAbsencesReportUrl$),e.LSH)}}const Re=function(t){return{absenceCounts:t}};let Ue=(()=>{class t{constructor(n,s,o){this.reportsService=n,this.myAbsencesService=s,this.absencesSelectionService=o,this.openAbsencesReportUrl$=this.loadOpenAbsencesReportUrl(),this.allAbsencesReportUrl$=this.loadAllAbsencesReportUrl(),this.openAbsencesReportAvailable$=this.reportsService.studentConfirmationAvailability$,this.allAbsencesReportUrlAvailable$=this.allAbsencesReportUrl$.pipe((0,l.U)(i=>!!i&&i.length>0)),this.destroy$=new O.x}ngOnInit(){this.myAbsencesService.openLessonAbsences$.pipe((0,y.q)(1),(0,x.h)((0,v.ff)(K.yD))).subscribe(n=>this.reportsService.setStudentConfirmationAvailabilityRecordIds(n.map(s=>`${s.LessonRef.Id}_${s.RegistrationId}`)))}ngOnDestroy(){this.destroy$.next()}loadOpenAbsencesReportUrl(){return(0,u.a)([this.absencesSelectionService.selectedWithoutPresenceType$,this.absencesSelectionService.selectedIds$]).pipe((0,A.w)(([n,s])=>0===n.length&&s.length>0?this.getOpenAbsencesReportRecordIds((0,Y.Z)((0,R.Z)(s.map(o=>o.lessonIds)))):(0,L.of)(null)),(0,l.U)(n=>n?this.reportsService.getStudentConfirmationUrl(n):null))}loadAllAbsencesReportUrl(){return(0,u.a)([this.myAbsencesService.openLessonAbsences$,this.myAbsencesService.checkableLessonAbsences$,this.myAbsencesService.excusedLessonAbsences$,this.myAbsencesService.unexcusedLessonAbsences$,this.myAbsencesService.incidentsLessonAbsences$]).pipe((0,l.U)(n=>this.buildUrl((0,R.Z)(n))),(0,b.d)(1))}buildUrl(n){return n.length>0?this.reportsService.getEvaluateAbsencesUrl(this.getAllReportRecordIds(n)):null}getAllReportRecordIds(n){return n.map(s=>`${s.LessonRef.Id}_${s.RegistrationId}`)}getOpenAbsencesReportRecordIds(n){return this.myAbsencesService.openLessonAbsences$.pipe((0,l.U)(s=>s.filter(o=>n.includes(o.LessonRef.Id)).map(o=>`${o.LessonRef.Id}_${o.RegistrationId}`)))}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(re.F),e.Y36(z),e.Y36(J.o))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-show"]],decls:2,vars:5,consts:[["class","erz-container erz-container-limited erz-container-padding-y erz-container-padding-x-responsive",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y","erz-container-padding-x-responsive"],[1,"d-flex","justify-content-between","border-bottom","header"],[1,"ps-3"],["target","_blank",1,"report","btn","btn-primary","btn-icon",3,"href"],[1,"material-icons"],["acc","ngbAccordion"],["id","report-absence"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","checkable-absences"],["id","open-absences"],["id","excused-absences"],["id","unexcused-absences"],["id","incidents"],[3,"opened","click"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService","defaultAbsenceSelectionMessage","reportUrl","reportAvailable"],[3,"absences$","displayPresenceType"]],template:function(s,o){1&s&&(e.YNc(0,$e,34,13,"div",0),e.ALo(1,"async")),2&s&&e.Q6J("erzLet",e.VKq(3,Re,e.lcZ(1,1,o.myAbsencesService.counts$)))},dependencies:[m.O5,C.gY,C.Gk,C.gW,C.k9,U.e,ae.H,le.u,me,m.Ov,h.X$],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return t})();var p=r(6223),X=r(5619),Fe=r(4716),ke=r(1257),N=r(6869),F=r(905),P=r(6023);let V=(()=>{class t{constructor(n,s,o,i,a,_,d,f){this.fb=n,this.router=s,this.toastService=o,this.translate=i,this.presenceTypesService=a,this.updateService=_,this.storageService=d,this.settings=f,this.formGroup=this.createFormGroup(),this.saving$=new X.X(!1),this.submitted$=new X.X(!1),this.absenceTypes$=(0,u.a)([this.getConfirmationTypes(),this.getHalfDayType()]).pipe((0,l.U)(([S,I])=>I?[...S,I]:S)),this.absenceTypeIdErrors$=(0,ke.Z6)((0,L.of)(this.formGroup),this.submitted$,"absenceTypeId"),this.destroy$=new O.x}ngOnInit(){this.selectedLessonIds$.pipe((0,y.q)(1),(0,x.h)(K.yD)).subscribe(()=>this.navigateBack())}ngOnDestroy(){this.destroy$.next()}onSubmit(){if(this.submitted$.next(!0),this.formGroup.valid){const{absenceTypeId:n}=this.formGroup.value;this.save(n)}}cancel(){this.navigateBack()}getSelectedCount(){return this.selectedLessonIds$.pipe((0,l.U)(n=>n.length))}getConfirmationTypes(){return this.presenceTypesService.confirmationTypes$.pipe((0,l.U)(n=>n.filter(s=>s.IsAbsence&&s.Id!==this.settings.halfDayPresenceTypeId)))}getHalfDayType(){return(0,L.of)(null)}createFormGroup(){return this.fb.group({absenceTypeId:[null,p.kI.required]})}save(n){this.saving$.next(!0),this.selectedLessonIds$.pipe((0,y.q)(1),(0,A.w)(s=>this.updateService.editLessonPresences(s,[Number(this.storageService.getPayload()?.id_person)],n)),(0,Fe.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-absences.confirm.save-success")),this.navigateBack()}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(p.QS),e.Y36(g.F0),e.Y36(N.k),e.Y36(h.sK),e.Y36(F.c),e.Y36(P.O),e.Y36($.V),e.Y36(T.Zr))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(s,o){},encapsulation:2})}return t})();var W=r(500);const ze=function(t){return{count:t}};function Oe(t,c){if(1&t&&(e.TgZ(0,"div",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.erzLet;e.xp6(1),e.hij(" ",e.xi3(2,1,1===n?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",e.VKq(4,ze,n))," ")}}function Ye(t,c){if(1&t&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Je(t,c){if(1&t&&(e.ynx(0),e.YNc(1,Ye,3,4,"div",16),e.ALo(2,"async"),e.BQk()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,n.absenceTypeIdErrors$))}}const Ne=function(t){return{"border-top pt-3":t}};function Pe(t,c){if(1&t&&(e.TgZ(0,"div",12),e._UZ(1,"input",13),e.ALo(2,"async"),e.TgZ(3,"label",14),e._uU(4),e.qZA(),e.YNc(5,Je,3,3,"ng-container",15),e.ALo(6,"async"),e.qZA()),2&t){const n=c.$implicit,s=c.index,o=e.oxw();let i;e.Q6J("ngClass",e.VKq(12,Ne,n.IsHalfDay)),e.xp6(1),e.ekj("is-invalid",e.lcZ(2,8,o.absenceTypeIdErrors$).length>0),e.Q6J("id","absence-type-"+s)("value",n.Id),e.xp6(2),e.Q6J("for","absence-type-"+s),e.xp6(1),e.hij(" ",n.Designation," "),e.xp6(1),e.Q6J("ngIf",(null==(i=e.lcZ(6,10,o.absenceTypes$))?null:i.length)-1===s)}}function we(t,c){1&t&&(e.TgZ(0,"div",18)(1,"span",19),e._uU(2,"Loading..."),e.qZA()())}let Qe=(()=>{class t extends V{constructor(n,s,o,i,a,_,d,f,S,I){super(n,s,o,i,a,_,d,f),this.myAbsencesService=S,this.selectionService=I,this.titleKey="my-absences.confirm.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe((0,l.U)(j=>(0,Y.Z)((0,R.Z)(j.map(H=>H.lessonIds))))),this.confirmationStateId=this.settings.unconfirmedAbsencesRefreshTime}onSaveSuccess(){this.selectionService.clear(),this.myAbsencesService.reset(),super.onSaveSuccess()}navigateBack(){this.router.navigate(["/my-absences"])}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(p.QS),e.Y36(g.F0),e.Y36(N.k),e.Y36(h.sK),e.Y36(F.c),e.Y36(P.O),e.Y36($.V),e.Y36(T.L6),e.Y36(z),e.Y36(J.o))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-confirm"]],features:[e.qOj],decls:28,vars:35,consts:[[1,"erz-container","erz-container-limited","erz-container-padding-y"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,o){1&s&&(e.TgZ(0,"div",0)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Oe,3,6,"div",1),e.ALo(5,"async"),e.TgZ(6,"form",2),e.NdJ("ngSubmit",function(){return o.onSubmit()}),e.TgZ(7,"div",3)(8,"label",4),e._uU(9),e.ALo(10,"translate"),e.ALo(11,"addSpace"),e.qZA(),e.YNc(12,Pe,7,14,"div",5),e.ALo(13,"async"),e.qZA(),e.TgZ(14,"div",6),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",7)(18,"button",8),e.NdJ("click",function(){return o.cancel()}),e.ALo(19,"async"),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"button",9),e.ALo(23,"async"),e._uU(24),e.ALo(25,"translate"),e.YNc(26,we,3,0,"div",10),e.ALo(27,"async"),e.qZA()()()()),2&s&&(e.xp6(2),e.Oqu(e.lcZ(3,12,o.titleKey)),e.xp6(2),e.Q6J("erzLet",e.lcZ(5,14,o.getSelectedCount())),e.xp6(2),e.Q6J("formGroup",o.formGroup),e.xp6(3),e.AsE("",e.lcZ(10,16,"my-absences.confirm.choose-presence-type"),"",e.xi3(11,18,":",":"),""),e.xp6(3),e.Q6J("ngForOf",e.lcZ(13,21,o.absenceTypes$)),e.xp6(3),e.hij(" ",e.lcZ(16,23,"my-absences.confirm.remark")," "),e.xp6(3),e.Q6J("disabled",e.lcZ(19,25,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(21,27,"my-absences.confirm.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(23,29,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(25,31,"my-absences.confirm.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(27,33,o.saving$)))},dependencies:[m.mk,m.sg,m.O5,p._Y,p.Fj,p._,p.JJ,p.JL,p.sg,p.u,U.e,m.Ov,h.X$,W.u],changeDetection:0})}return t})();var De=r(9862),k=r(5301),je=r(4307),He=r(8584),ee=r(4477),Ee=r(3005),Ge=r(1608);let w=(()=>{class t extends ee.f{constructor(n,s,o,i,a,_){super(n,s,_,o,"/my-absences/report"),this.studentsService=i,this.storageService=a,this.preventAbsencesAfterStart=!1;const d=this.storageService.getPayload()?.instance_id;this.preventAbsencesAfterStart=!!d&&this.settings.preventStudentAbsenceAfterLessonStart.includes(d)}getInitialFilter(){return{dateFrom:null,dateTo:null}}isValidFilter(n){return!(!n.dateFrom&&!n.dateTo)}loadEntries(n,s,o){const i=this.buildRequestParamsFromFilter(n).set("sort","From.asc");return this.loadingService.load(this.loadTimetableEntries(i).pipe((0,l.U)(a=>this.filterAbsencesAfterLessonStart(a)),(0,A.w)(a=>(0,u.a)([(0,L.of)(a),this.loadLessonAbsences(a),this.loadLessonDispensations(a)])),(0,l.U)(([a,_,d])=>this.buildLessonPresences(a,_,d)),(0,l.U)(a=>({offset:0,total:a.length,entries:a}))),ee.O)}filterAbsencesAfterLessonStart(n){return this.preventAbsencesAfterStart?n.filter(s=>s.From>=new Date):n}buildParamsFromFilter(n){const{dateFrom:s,dateTo:o}=n,i={};return s&&(i.dateFrom=(0,k.Z)(s,"yyyy-MM-dd")),o&&(i.dateTo=(0,k.Z)(o,"yyyy-MM-dd")),i}buildRequestParamsFromFilter(n){let s=new De.LE;return n.dateFrom&&(s=s.set("filter.From",`>${(0,k.Z)((0,je.Z)(n.dateFrom,1),"yyyy-MM-dd")}`)),n.dateTo&&(s=s.set("filter.To",`<${(0,k.Z)((0,He.Z)(n.dateTo,1),"yyyy-MM-dd")}`)),s}get studentId(){const n=this.storageService.getPayload()?.id_person;if(null==n)throw new Error("No student id available");return Number(n)}loadTimetableEntries(n){return this.studentsService.getTimetableEntries(this.studentId,n)}loadLessonAbsences(n){return n.length>0?this.studentsService.getLessonAbsences(this.studentId,{"filter.Id":`;${n.map(s=>s.Id).join(";")}`}):(0,L.of)([])}loadLessonDispensations(n){return n.length>0?this.studentsService.getLessonDispensations(this.studentId,{"filter.Id":`;${n.map(s=>s.Id).join(";")}`}):(0,L.of)([])}buildLessonPresences(n,s,o){return n.map(i=>this.buildLessonPresence(i,s,o))}buildLessonPresence(n,s,o){const i=s.find(d=>d.LessonRef.Id===n.Id),a=o.find(d=>d.LessonRef.Id===n.Id),_=this.buildLessonPresenceTypeRef(i,a);return{Id:"",LessonRef:{Id:n.Id,HRef:null},StudentRef:(i||a)?.StudentRef||{Id:this.studentId,HRef:null},EventRef:{Id:0,HRef:null},TypeRef:_,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:i?.ConfirmationStateId||a&&this.settings.excusedAbsenceStateId||null,EventDesignation:n.EventDesignation||"",HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:n.From||new Date,LessonDateTimeTo:n.To||new Date,Comment:null,Date:n.From||new Date,Type:(i||a)?.Type||null,StudentFullName:(i||a)?.StudentFullName||"",StudyClassNumber:"",TeacherInformation:n.EventManagerInformation}}buildLessonPresenceTypeRef(n,s){return n?{...n.TypeRef}:s?{...s.TypeRef}:{Id:null,HRef:null}}static#e=this.\u0275fac=function(s){return new(s||t)(e.LFG(m.Ye),e.LFG(Ee.b),e.LFG(T.L6),e.LFG(B.l),e.LFG($.V),e.LFG(Ge.K))};static#n=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})();var qe=r(6561);let Q=(()=>{class t extends qe.z{constructor(){super(...arguments),this.selectedIds$=this.selection$.pipe((0,l.U)(q.fG))}static#e=this.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(t)))(o||t)}}();static#n=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})(),Be=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report"]],features:[e._Bn([w,Q])],decls:1,vars:0,template:function(s,o){1&s&&e._UZ(0,"router-outlet")},dependencies:[g.lC],changeDetection:0})}return t})();var Ke=r(9773),ne=r(2220),D=r(8484),Z=r(3449),Xe=r(412),Ve=r(59),We=r(9189),en=r(3296),nn=r(1133),tn=r(7625);const sn=function(){return["/my-absences"]};let on=(()=>{class t{constructor(){this.filter={dateFrom:null,dateTo:null},this.filterChange=new e.vpe,this.minDate={year:(new Date).getFullYear(),month:(new Date).getMonth()+1,day:(new Date).getDate()}}updateDateFrom(n){this.filter.dateFrom=n,n&&(this.filter.dateTo=n)}show(){this.filterChange.emit({dateFrom:te(this.filter.dateFrom),dateTo:te(this.filter.dateTo)})}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},features:[e._Bn([{provide:C.DO,useClass:C.s5},{provide:C.NG,useClass:en.n}])],decls:19,vars:18,consts:[[1,"mb-3",3,"routerLink"],[1,"filters"],[1,"form-group"],[1,"form-label"],[3,"minDate","value","valueChange"],[1,"buttons"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(s,o){1&s&&(e._UZ(0,"erz-backlink",0),e.TgZ(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"label",3),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"erz-date-select",4),e.NdJ("valueChange",function(a){return o.updateDateFrom(a)}),e.qZA()(),e.TgZ(10,"div",2)(11,"label",3),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"erz-date-select",4),e.NdJ("valueChange",function(a){return o.filter.dateTo=a}),e.qZA()(),e.TgZ(15,"div",5)(16,"button",6),e.NdJ("click",function(){return o.show()}),e._uU(17),e.ALo(18,"translate"),e.qZA()()()),2&s&&(e.Q6J("routerLink",e.DdM(17,sn)),e.xp6(2),e.Oqu(e.lcZ(3,9,"my-absences.report.title")),e.xp6(5),e.Oqu(e.lcZ(8,11,"my-absences.report.header.date-from")),e.xp6(2),e.Q6J("minDate",o.minDate)("value",o.filter.dateFrom),e.xp6(3),e.Oqu(e.lcZ(13,13,"my-absences.report.header.date-to")),e.xp6(2),e.Q6J("minDate",o.minDate)("value",o.filter.dateTo),e.xp6(3),e.hij(" ",e.lcZ(18,15,"my-absences.report.header.show")," "))},dependencies:[g.rH,nn.T,tn.I,h.X$],styles:["[_nghost-%COMP%]{display:block;padding:1rem 0;border-bottom:1px solid #dee2e6}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.form-group[_ngcontent-%COMP%]{flex:1;min-width:20rem;max-width:40rem;margin-right:1rem;margin-bottom:.5rem}.buttons[_ngcontent-%COMP%]{flex:none;margin-top:1.625rem;margin-right:0}@media (max-width: 575.98px){.buttons[_ngcontent-%COMP%]{width:100%;margin-top:1rem;margin-bottom:1rem}}"],changeDetection:0})}return t})();function te(t){return t?(0,We.Z)(t):null}var cn=r(238);function rn(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div",12)(1,"input",13,29),e.NdJ("change",function(){e.CHM(n);const o=e.oxw(2).$implicit,i=e.oxw(6);return e.KtG(i.selectionService.toggle(o))}),e.ALo(3,"async"),e.qZA()()}if(2&t){const n=e.oxw(2).$implicit,s=e.oxw(6);e.xp6(1),e.Q6J("checked",e.lcZ(3,1,s.selectionService.isSelected$(n)))}}function an(t,c){if(1&t&&(e.TgZ(0,"div")(1,"i",17),e._uU(2),e.qZA()()),2&t){const n=e.oxw().erzLet;e.Gre("checkbox presence-category ",n.category,""),e.xp6(2),e.Oqu(n.icon)}}function ln(t,c){if(1&t&&(e.ynx(0),e.YNc(1,rn,4,3,"div",27),e.YNc(2,an,3,4,"ng-template",null,28,e.W1O),e.BQk()),2&t){const n=c.erzLet,s=e.MAs(3);e.xp6(1),e.Q6J("ngIf",!n)("ngIfElse",s)}}function dn(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.hij(", ",n.StudyClassNumber,"")}}function pn(t,c){if(1&t&&(e.TgZ(0,"div",31),e._uU(1),e.qZA()),2&t){const n=e.oxw().erzLet;e.xp6(1),e.hij(" ",n," ")}}function mn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,pn,2,1,"div",30),e.BQk()),2&t){const n=c.erzLet;e.xp6(1),e.Q6J("ngIf",n)}}function un(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div",19,20),e.NdJ("click",function(o){e.CHM(n);const i=e.MAs(1),a=e.oxw(6);return e.KtG(a.onRowClick(o,i))}),e.YNc(2,ln,4,2,"ng-container",0),e.ALo(3,"async"),e.TgZ(4,"div",21),e._uU(5),e.YNc(6,dn,2,1,"ng-container",8),e.qZA(),e.TgZ(7,"div",22),e._uU(8),e.ALo(9,"date"),e.ALo(10,"date"),e.qZA(),e.TgZ(11,"div",23),e._uU(12),e.qZA(),e.YNc(13,mn,2,1,"ng-container",0),e.ALo(14,"async"),e.TgZ(15,"div",24),e._uU(16),e.ALo(17,"date"),e.qZA(),e.TgZ(18,"div",25),e._uU(19),e.ALo(20,"erzDaysDifference"),e.qZA(),e.TgZ(21,"div",26),e._uU(22),e.ALo(23,"date"),e.ALo(24,"erzDaysDifference"),e.qZA()()}if(2&t){const n=c.$implicit,s=e.oxw(6);e.xp6(2),e.Q6J("erzLet",e.lcZ(3,11,s.getPresenceCategory(n))),e.xp6(3),e.hij(" ",n.EventDesignation,""),e.xp6(1),e.Q6J("ngIf",n.StudyClassNumber),e.xp6(2),e.AsE(" ",e.xi3(9,13,n.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(10,16,n.LessonDateTimeTo,"HH:mm")," "),e.xp6(4),e.hij(" ",n.TeacherInformation," "),e.xp6(1),e.Q6J("erzLet",e.lcZ(14,19,s.getPresenceTypeDesignation(n))),e.xp6(3),e.hij(" ",e.xi3(17,21,n.LessonDateTimeFrom,"dd.MM.yyyy")," "),e.xp6(3),e.hij(" ",e.lcZ(20,24,n.LessonDateTimeFrom)," "),e.xp6(3),e.AsE(" ",e.xi3(23,26,n.LessonDateTimeFrom,"dd.MM.yyyy"),", ",e.lcZ(24,29,n.LessonDateTimeFrom)," ")}}function _n(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div")(1,"div",10,11),e.NdJ("click",function(o){e.CHM(n);const i=e.MAs(2),a=e.oxw(5);return e.KtG(a.onRowClick(o,i))}),e.TgZ(3,"div",12)(4,"input",13),e.NdJ("change",function(o){e.CHM(n);const i=e.oxw(5);return e.KtG(i.toggleAll(o.target.checked))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",14),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"div",15)(10,"a",16),e.ALo(11,"async"),e.TgZ(12,"i",17),e._uU(13,"edit"),e.qZA()()()(),e.YNc(14,un,25,31,"div",18),e.qZA()}if(2&t){const n=e.oxw(4).erzLet,s=e.oxw();e.xp6(4),e.Q6J("checked",e.lcZ(5,5,s.allSelected$)),e.xp6(3),e.hij(" ",e.lcZ(8,7,"my-absences.report.list.all")," "),e.xp6(3),e.ekj("disabled",0===e.lcZ(11,9,s.selectionService.selection$).length),e.xp6(4),e.Q6J("ngForOf",n.entries)}}function gn(t,c){1&t&&e._UZ(0,"erz-spinner",32)}function fn(t,c){if(1&t&&(e.TgZ(0,"div",7),e.YNc(1,_n,15,11,"div",8),e.YNc(2,gn,1,0,"erz-spinner",9),e.qZA()),2&t){const n=e.oxw(3).erzLet;e.xp6(1),e.Q6J("ngIf",n.entries&&n.entries.length>0),e.xp6(1),e.Q6J("ngIf",n.loadingPage)}}function hn(t,c){1&t&&(e.TgZ(0,"p",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"my-absences.report.no-entries")," "))}function bn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,fn,3,2,"div",5),e.YNc(2,hn,3,3,"ng-template",null,6,e.W1O),e.BQk()),2&t){const n=e.MAs(3),s=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",s.entries&&s.entries.length>0||s.loadingPage)("ngIfElse",n)}}function yn(t,c){1&t&&e._UZ(0,"erz-spinner")}function vn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,bn,4,2,"ng-container",2),e.ALo(2,"async"),e.YNc(3,yn,1,0,"ng-template",null,4,e.W1O),e.BQk()),2&t){const n=e.MAs(4),s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,s.state.loading$))("ngIfElse",n)}}function An(t,c){1&t&&(e.TgZ(0,"p",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"my-absences.report.no-filter")))}function xn(t,c){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"erz-my-absences-report-header",1),e.NdJ("filterChange",function(o){e.CHM(n);const i=e.oxw();return e.KtG(i.state.setFilter(o))}),e.ALo(2,"async"),e.qZA(),e.YNc(3,vn,5,4,"ng-container",2),e.ALo(4,"async"),e.YNc(5,An,3,3,"ng-template",null,3,e.W1O),e.BQk()}if(2&t){const n=e.MAs(6),s=e.oxw();e.xp6(1),e.Q6J("filter",e.lcZ(2,3,s.filterFromParams$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,5,s.state.isFilterValid$))("ngIfElse",n)}}const Cn=function(t,c,n){return{selection:t,entries:c,loadingPage:n}};function Ln(t){return{dateFrom:t.dateFrom?(0,ne.nx)(t.dateFrom):null,dateTo:t.dateTo?(0,ne.nx)(t.dateTo):null}}const Zn=function(t){return{count:t}};function Sn(t,c){if(1&t&&(e.TgZ(0,"div",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.erzLet;e.xp6(1),e.hij(" ",e.xi3(2,1,1===n?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",e.VKq(4,Zn,n))," ")}}function In(t,c){if(1&t&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Mn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,In,3,4,"div",16),e.ALo(2,"async"),e.BQk()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,n.absenceTypeIdErrors$))}}const $n=function(t){return{"border-top pt-3":t}};function Rn(t,c){if(1&t&&(e.TgZ(0,"div",12),e._UZ(1,"input",13),e.ALo(2,"async"),e.TgZ(3,"label",14),e._uU(4),e.qZA(),e.YNc(5,Mn,3,3,"ng-container",15),e.ALo(6,"async"),e.qZA()),2&t){const n=c.$implicit,s=c.index,o=e.oxw();let i;e.Q6J("ngClass",e.VKq(12,$n,n.IsHalfDay)),e.xp6(1),e.ekj("is-invalid",e.lcZ(2,8,o.absenceTypeIdErrors$).length>0),e.Q6J("id","absence-type-"+s)("value",n.Id),e.xp6(2),e.Q6J("for","absence-type-"+s),e.xp6(1),e.hij(" ",n.Designation," "),e.xp6(1),e.Q6J("ngIf",(null==(i=e.lcZ(6,10,o.absenceTypes$))?null:i.length)-1===s)}}function Un(t,c){1&t&&(e.TgZ(0,"div",18)(1,"span",19),e._uU(2,"Loading..."),e.qZA()())}const Fn=[{path:"",component:ce,children:[{path:"",component:Ue},{path:"confirm",component:Qe},{path:"report",component:Be,children:[{path:"",component:(()=>{class t{constructor(n,s,o,i,a,_){this.state=n,this.selectionService=s,this.route=o,this.scrollPosition=i,this.presenceTypesService=a,this.settings=_,this.filterFromParams$=this.route.queryParams.pipe((0,l.U)(Ln)),this.allSelected$=(0,u.a)([this.selectionService.selection$,this.state.entries$.pipe((0,A.w)(d=>(0,u.a)(d.map(f=>this.getPresenceType(f)))))]).pipe((0,l.U)(([d,f])=>d.length>0&&d.length===f.filter((0,v.ff)(D.qX)).length)),this.destroy$=new O.x}ngOnInit(){this.filterFromParams$.pipe((0,y.q)(1)).subscribe(n=>this.state.setFilter(n)),this.state.validFilter$.pipe((0,Ke.R)(this.destroy$)).subscribe(()=>this.selectionService.clear())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}getPresenceCategory(n){return this.getPresenceType(n).pipe((0,l.U)(s=>(0,D.qX)(s)?n.ConfirmationStateId===this.settings.checkableAbsenceStateId?{category:Z.Ov.Unapproved,icon:(0,Z.ES)(Z.Ov.Unapproved)}:{category:Z.Ov.Absent,icon:(0,Z.ES)(Z.Ov.Absent)}:null))}getPresenceTypeDesignation(n){return this.presenceTypesService.displayedTypes$.pipe((0,l.U)(s=>n.TypeRef.Id&&s.find(o=>o.Id===n.TypeRef.Id)?.Designation||null))}toggleAll(n){(0,u.a)([this.state.entries$.pipe((0,y.q)(1)),this.presenceTypesService.presenceTypes$.pipe((0,y.q)(1))]).subscribe(([s,o])=>{const i=o.filter(a=>(0,D.qX)(a)).map(a=>a.Id);this.selectionService.clear(n?s.filter(a=>null==a.TypeRef.Id||!i.includes(a.TypeRef.Id)):null)})}onRowClick(n,s){const o=s.querySelector('input[type="checkbox"]');o&&n.target!==o&&!n.target.closest(".buttons")&&o.click()}getPresenceType(n){return this.presenceTypesService.presenceTypes$.pipe((0,l.U)(s=>n.TypeRef.Id&&s.find(o=>o.Id===n.TypeRef.Id)||null))}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(w),e.Y36(Q),e.Y36(g.gz),e.Y36(Xe.X),e.Y36(F.c),e.Y36(T.L6))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report-list"]],decls:4,vars:11,consts:[[4,"erzLet"],[3,"filter","filterChange"],[4,"ngIf","ngIfElse"],["noFilter",""],["loading",""],["class","py-3",4,"ngIf","ngIfElse"],["noEntries",""],[1,"py-3"],[4,"ngIf"],["class","inline",4,"ngIf"],[1,"entries-all",3,"click"],["all",""],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],[1,"all"],[1,"buttons"],["routerLink","confirm",1,"edit","btn","btn-primary","btn-icon","me-2"],[1,"material-icons"],["class","entry",3,"click",4,"ngFor","ngForOf"],[1,"entry",3,"click"],["row",""],[1,"lesson-class"],[1,"time","pe-2"],[1,"teacher"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["class","checkbox",4,"ngIf","ngIfElse"],["categoryIcon",""],["checkbox",""],["class","presence-type",4,"ngIf"],[1,"presence-type"],[1,"inline"],[1,"mt-3"]],template:function(s,o){1&s&&(e.YNc(0,xn,7,7,"ng-container",0),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async")),2&s&&e.Q6J("erzLet",e.kEZ(7,Cn,e.lcZ(1,1,o.selectionService.selection$),e.lcZ(2,3,o.state.entries$),e.lcZ(3,5,o.state.loadingPage$)))},dependencies:[m.sg,m.O5,g.rH,U.e,Ve.O,on,m.Ov,m.uU,h.X$,cn.Q],styles:['.entries-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons";grid-template-columns:min-content 1fr min-content}.entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.entry[_ngcontent-%COMP%]:first-child{padding-top:0}.entries-all[_ngcontent-%COMP%] + .entry[_ngcontent-%COMP%]{padding-top:1rem}.presence-category.absent[_ngcontent-%COMP%]{color:#d01018}.presence-category.unapproved[_ngcontent-%COMP%]{color:#ffa814}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.presence-category[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{display:block;font-size:16px}.entries-all[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding-top:.2rem}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.buttons[_ngcontent-%COMP%]{grid-area:buttons;display:flex}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return t})(),data:{restoreScrollPositionFrom:["/my-absences/report/confirm"]}},{path:"confirm",component:(()=>{class t extends V{constructor(n,s,o,i,a,_,d,f,S,I){super(n,s,o,i,a,_,d,f),this.state=S,this.selectionService=I,this.titleKey="my-absences.report.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe((0,l.U)(j=>(0,Y.Z)((0,R.Z)(j.map(H=>H.lessonIds))))),this.confirmationStateId=this.settings.checkableAbsenceStateId}getHalfDayType(){return this.presenceTypesService.getPresenceType(this.settings.halfDayPresenceTypeId).pipe((0,l.U)(n=>n.Active?n:null))}onSaveSuccess(){this.selectionService.clear(),this.state.resetEntries(),super.onSaveSuccess()}navigateBack(){this.state.queryParams$.pipe((0,y.q)(1)).subscribe(n=>{this.router.navigate(["/my-absences/report"],{queryParams:n})})}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(p.QS),e.Y36(g.F0),e.Y36(N.k),e.Y36(h.sK),e.Y36(F.c),e.Y36(P.O),e.Y36($.V),e.Y36(T.L6),e.Y36(w),e.Y36(Q))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-confirm"]],features:[e.qOj],decls:28,vars:35,consts:[[1,"erz-container","erz-container-limited","erz-container-padding-y"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,o){1&s&&(e.TgZ(0,"div",0)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Sn,3,6,"div",1),e.ALo(5,"async"),e.TgZ(6,"form",2),e.NdJ("ngSubmit",function(){return o.onSubmit()}),e.TgZ(7,"div",3)(8,"label",4),e._uU(9),e.ALo(10,"translate"),e.ALo(11,"addSpace"),e.qZA(),e.YNc(12,Rn,7,14,"div",5),e.ALo(13,"async"),e.qZA(),e.TgZ(14,"div",6),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",7)(18,"button",8),e.NdJ("click",function(){return o.cancel()}),e.ALo(19,"async"),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"button",9),e.ALo(23,"async"),e._uU(24),e.ALo(25,"translate"),e.YNc(26,Un,3,0,"div",10),e.ALo(27,"async"),e.qZA()()()()),2&s&&(e.xp6(2),e.Oqu(e.lcZ(3,12,o.titleKey)),e.xp6(2),e.Q6J("erzLet",e.lcZ(5,14,o.getSelectedCount())),e.xp6(2),e.Q6J("formGroup",o.formGroup),e.xp6(3),e.AsE("",e.lcZ(10,16,"my-absences.confirm.choose-presence-type"),"",e.xi3(11,18,":",":"),""),e.xp6(3),e.Q6J("ngForOf",e.lcZ(13,21,o.absenceTypes$)),e.xp6(3),e.hij(" ",e.lcZ(16,23,"my-absences.confirm.remark")," "),e.xp6(3),e.Q6J("disabled",e.lcZ(19,25,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(21,27,"my-absences.confirm.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(23,29,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(25,31,"my-absences.confirm.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(27,33,o.saving$)))},dependencies:[m.mk,m.sg,m.O5,p._Y,p.Fj,p._,p.JJ,p.JL,p.sg,p.u,U.e,m.Ov,h.X$,W.u],changeDetection:0})}return t})()}]}]}];let kn=(()=>{class t{static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({imports:[g.Bz.forChild(Fn),g.Bz]})}return t})(),zn=(()=>{class t{static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({providers:[J.o],imports:[se.m,kn]})}return t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[862],{862:(Yn,E,r)=>{r.r(E),r.d(E,{MyAbsencesModule:()=>On});var se=r(6486),g=r(1523),G=r(7328),u=r(2572),A=r(4664),b=r(7081),x=r(2181),l=r(7398),y=r(8180),oe=r(7921),ie=r(3020),T=r(4141),q=r(49),v=r(3942),M=r(1389),e=r(5879),$=r(8173),B=r(3779);let O=(()=>{class t{constructor(n,s,o){this.settings=n,this.storageService=s,this.studentsService=o,this.studentId$=new G.t(1),this.lessonAbsences$=this.studentId$.pipe((0,A.w)(this.loadLessonAbsences.bind(this)),(0,b.d)(1)),this.lessonIncidents$=this.studentId$.pipe((0,A.w)(this.loadLessonIncidents.bind(this)),(0,b.d)(1)),this.lessonPresences$=this.getLessonPresences(),this.checkableAbsences$=this.getAbsences(this.settings.checkableAbsenceStateId),this.openAbsences$=this.getAbsences(this.settings.unconfirmedAbsenceStateId),this.excusedAbsences$=this.getAbsences(this.settings.excusedAbsenceStateId),this.unexcusedAbsences$=this.getAbsences(this.settings.unexcusedAbsenceStateId),this.incidents$=this.getAbsences(null),this.openLessonAbsences$=(0,u.a)([this.openAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.checkableLessonAbsences$=(0,u.a)([this.checkableAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.excusedLessonAbsences$=(0,u.a)([this.excusedAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.unexcusedLessonAbsences$=(0,u.a)([this.unexcusedAbsences$.pipe((0,x.h)(v.Nf)),this.lessonAbsences$]).pipe((0,l.U)((0,M.h)(this.getLessonAbsences.bind(this))),(0,b.d)(1)),this.incidentsLessonAbsences$=(0,u.a)([this.incidents$.pipe((0,x.h)(v.Nf)),this.lessonIncidents$]).pipe((0,l.U)((0,M.h)(this.getLessonIncidents.bind(this))),(0,b.d)(1)),this.counts$=this.getCounts();const i=this.storageService.getPayload()?.id_person;i&&this.studentId$.next(Number(i))}reset(){this.studentId$.pipe((0,y.q)(1)).subscribe(n=>this.studentId$.next(n))}getLessonPresences(){return this.getCached((0,u.a)([this.studentId$,this.lessonAbsences$,this.lessonIncidents$]).pipe((0,A.w)(([n,s,o])=>this.loadTimetableEntries(n,s,o).pipe((0,l.U)(i=>this.buildLessonPresences(s,o,i)))),(0,l.U)(q.Qw)))}getAbsences(n){return this.getCached(this.lessonPresences$.pipe((0,l.U)(s=>s?.filter(o=>o.ConfirmationStateId===n)||null)))}getLessonAbsences(n,s){const o=n.map(i=>i.LessonRef.Id);return s.filter(i=>o.includes(i.LessonRef.Id))}getLessonIncidents(n,s){const o=n.map(i=>i.LessonRef.Id);return s.filter(i=>o.includes(i.LessonRef.Id))}getCounts(){return(0,u.a)([this.getCount(this.checkableAbsences$),this.getCount(this.openAbsences$),this.getCount(this.excusedAbsences$),this.getCount(this.unexcusedAbsences$),this.getCount(this.incidents$)]).pipe((0,l.U)(([n,s,o,i,a])=>({checkableAbsences:n,openAbsences:s,excusedAbsences:o,unexcusedAbsences:i,incidents:a,halfDays:null})))}getCached(n){return n.pipe((0,oe.O)(null),(0,ie.B)({connector:()=>new G.t(1)}))}getCount(n){return n.pipe((0,l.U)(s=>s?.length??null))}loadLessonAbsences(n){return this.studentsService.getLessonAbsences(n)}loadLessonIncidents(n){return this.studentsService.getLessonIncidents(n)}loadTimetableEntries(n,s,o){return this.studentsService.getTimetableEntries(n,{"filter.Id":`;${[...s,...o].map(i=>i.LessonRef.Id).join(";")}`})}buildLessonPresences(n,s,o){return[...n,...s].map(i=>this.buildLessonPresence(i,o)).filter(v.Nf)}buildLessonPresence(n,s){const o=s.find(i=>i.Id===n.LessonRef.Id);return o?{Id:"",LessonRef:{Id:n.LessonRef.Id,HRef:n.LessonRef.HRef?n.LessonRef.HRef:null},StudentRef:n.StudentRef,EventRef:{Id:0,HRef:null},TypeRef:n.TypeRef,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:"ConfirmationStateId"in n?n.ConfirmationStateId:null,EventDesignation:o.EventDesignation,HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:o.From,LessonDateTimeTo:o.To,Comment:null,Date:o.From,Type:n.Type,StudentFullName:n.StudentFullName,StudyClassNumber:"",TeacherInformation:o.EventManagerInformation}:null}static#e=this.\u0275fac=function(s){return new(s||t)(e.LFG(T.L6),e.LFG($.V),e.LFG(B.l))};static#n=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})(),ce=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences"]],features:[e._Bn([O])],decls:1,vars:0,template:function(s,o){1&s&&e._UZ(0,"router-outlet")},dependencies:[g.lC],changeDetection:0})}return t})();var Y=r(8645),L=r(2096),K=r(6100),z=r(2194),R=r(6055),re=r(6016),J=r(8393),m=r(6814),C=r(253),U=r(6567),ae=r(8898),le=r(3036),h=r(9515);const de=["link"],pe=function(){return["/my-absences/report"]};let me=(()=>{class t{onClick(){this.link.nativeElement.click()}constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report-link"]],viewQuery:function(s,o){if(1&s&&e.Gf(de,5),2&s){let i;e.iGM(i=e.CRH())&&(o.link=i.first)}},hostBindings:function(s,o){1&s&&e.NdJ("click",function(a){return o.onClick(a)})},decls:8,vars:5,consts:[[1,"m-0"],[1,"btn","btn-link","p-0",3,"routerLink"],["link",""],[1,"d-flex","align-items-center"],[1,"material-icons"]],template:function(s,o){1&s&&(e.TgZ(0,"h5",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"a",1,2)(5,"div",3)(6,"i",4),e._uU(7,"keyboard_arrow_right"),e.qZA()()()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"my-absences.report.title"),"\n"),e.xp6(2),e.Q6J("routerLink",e.DdM(4,pe)))},dependencies:[g.rH,h.X$],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;cursor:pointer}.btn[_ngcontent-%COMP%]{color:#000;text-decoration:none}"],changeDetection:0})}return t})();function ue(t,c){1&t&&e._UZ(0,"erz-my-absences-report-link")}function _e(t,c){}function ge(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.checkableAbsences,")")}}function fe(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("checkable-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,ge,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.checkable-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.checkableAbsences)}}function he(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",17),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.checkableAbsences$)}}function be(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.openAbsences,")")}}function ye(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("open-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,be,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.open-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.openAbsences)}}function ve(t,c){if(1&t&&(e._UZ(0,"erz-student-dossier-absences",18),e.ALo(1,"translate"),e.ALo(2,"async"),e.ALo(3,"async")),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.openAbsences$)("selectionService",n.absencesSelectionService)("defaultAbsenceSelectionMessage",e.lcZ(1,5,"my-absences.show.default-absence-selection-message"))("reportUrl",e.lcZ(2,7,n.openAbsencesReportUrl$))("reportAvailable",e.lcZ(3,9,n.openAbsencesReportAvailable$))}}function Ae(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.excusedAbsences,")")}}function xe(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("excused-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,Ae,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.excused-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.excusedAbsences)}}function Ce(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",17),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.excusedAbsences$)}}function Te(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.unexcusedAbsences,")")}}function Le(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("unexcused-absences"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,Te,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.unexcused-absences")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.unexcusedAbsences)}}function Ze(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",19),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function Se(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij("(",n.absenceCounts.incidents,")")}}function Ie(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",15),e.NdJ("click",function(){e.CHM(n),e.oxw();const o=e.MAs(15);return e.KtG(o.toggle("incidents"))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,Se,2,1,"ng-container",16),e.qZA()}if(2&t){const n=c.opened,s=e.oxw().erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.incidents")," "),e.xp6(2),e.Q6J("ngIf",null!==s.absenceCounts.incidents)}}function Me(t,c){if(1&t&&e._UZ(0,"erz-student-dossier-absences",17),2&t){const n=e.oxw(2);e.Q6J("absences$",n.myAbsencesService.incidents$)}}function $e(t,c){if(1&t&&(e.TgZ(0,"div",1)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",2)(5,"div"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",3)(9,"a",4),e.ALo(10,"async"),e.ALo(11,"async"),e.TgZ(12,"i",5),e._uU(13,"description"),e.qZA()()()(),e.TgZ(14,"ngb-accordion",null,6)(16,"ngb-panel",7),e.YNc(17,ue,1,0,"ng-template",8),e.YNc(18,_e,0,0,"ng-template",9),e.qZA(),e.TgZ(19,"ngb-panel",10),e.YNc(20,fe,4,5,"ng-template",8),e.YNc(21,he,1,1,"ng-template",9),e.qZA(),e.TgZ(22,"ngb-panel",11),e.YNc(23,ye,4,5,"ng-template",8),e.YNc(24,ve,4,11,"ng-template",9),e.qZA(),e.TgZ(25,"ngb-panel",12),e.YNc(26,xe,4,5,"ng-template",8),e.YNc(27,Ce,1,1,"ng-template",9),e.qZA(),e.TgZ(28,"ngb-panel",13),e.YNc(29,Le,4,5,"ng-template",8),e.YNc(30,Ze,1,2,"ng-template",9),e.qZA(),e.TgZ(31,"ngb-panel",14),e.YNc(32,Ie,4,5,"ng-template",8),e.YNc(33,Me,1,1,"ng-template",9),e.qZA()()()),2&t){const n=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,5,"my-absences.title")),e.xp6(4),e.Oqu(e.lcZ(7,7,"my-absences.description")),e.xp6(3),e.ekj("disabled",!1===e.lcZ(10,9,n.allAbsencesReportUrlAvailable$)),e.Q6J("href",e.lcZ(11,11,n.allAbsencesReportUrl$),e.LSH)}}const Re=function(t){return{absenceCounts:t}};let Ue=(()=>{class t{constructor(n,s,o){this.reportsService=n,this.myAbsencesService=s,this.absencesSelectionService=o,this.openAbsencesReportUrl$=this.loadOpenAbsencesReportUrl(),this.allAbsencesReportUrl$=this.loadAllAbsencesReportUrl(),this.openAbsencesReportAvailable$=this.reportsService.studentConfirmationAvailability$,this.allAbsencesReportUrlAvailable$=this.allAbsencesReportUrl$.pipe((0,l.U)(i=>!!i&&i.length>0)),this.destroy$=new Y.x}ngOnInit(){this.myAbsencesService.openLessonAbsences$.pipe((0,y.q)(1),(0,x.h)((0,v.ff)(K.yD))).subscribe(n=>this.reportsService.setStudentConfirmationAvailabilityRecordIds(n.map(s=>`${s.LessonRef.Id}_${s.RegistrationId}`)))}ngOnDestroy(){this.destroy$.next()}loadOpenAbsencesReportUrl(){return(0,u.a)([this.absencesSelectionService.selectedWithoutPresenceType$,this.absencesSelectionService.selectedIds$]).pipe((0,A.w)(([n,s])=>0===n.length&&s.length>0?this.getOpenAbsencesReportRecordIds((0,z.Z)((0,R.Z)(s.map(o=>o.lessonIds)))):(0,L.of)(null)),(0,l.U)(n=>n?this.reportsService.getStudentConfirmationUrl(n):null))}loadAllAbsencesReportUrl(){return(0,u.a)([this.myAbsencesService.openLessonAbsences$,this.myAbsencesService.checkableLessonAbsences$,this.myAbsencesService.excusedLessonAbsences$,this.myAbsencesService.unexcusedLessonAbsences$,this.myAbsencesService.incidentsLessonAbsences$]).pipe((0,l.U)(n=>this.buildUrl((0,R.Z)(n))),(0,b.d)(1))}buildUrl(n){return n.length>0?this.reportsService.getEvaluateAbsencesUrl(this.getAllReportRecordIds(n)):null}getAllReportRecordIds(n){return n.map(s=>`${s.LessonRef.Id}_${s.RegistrationId}`)}getOpenAbsencesReportRecordIds(n){return this.myAbsencesService.openLessonAbsences$.pipe((0,l.U)(s=>s.filter(o=>n.includes(o.LessonRef.Id)).map(o=>`${o.LessonRef.Id}_${o.RegistrationId}`)))}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(re.F),e.Y36(O),e.Y36(J.o))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-show"]],decls:2,vars:5,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[1,"d-flex","justify-content-between","border-bottom","header"],[1,"ps-3"],["target","_blank",1,"report","btn","btn-primary","btn-icon",3,"href"],[1,"material-icons"],["acc","ngbAccordion"],["id","report-absence"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","checkable-absences"],["id","open-absences"],["id","excused-absences"],["id","unexcused-absences"],["id","incidents"],[3,"opened","click"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService","defaultAbsenceSelectionMessage","reportUrl","reportAvailable"],[3,"absences$","displayPresenceType"]],template:function(s,o){1&s&&(e.YNc(0,$e,34,13,"div",0),e.ALo(1,"async")),2&s&&e.Q6J("erzLet",e.VKq(3,Re,e.lcZ(1,1,o.myAbsencesService.counts$)))},dependencies:[m.O5,C.gY,C.Gk,C.gW,C.k9,U.e,ae.H,le.u,me,m.Ov,h.X$],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return t})();var p=r(6223),X=r(5619),Fe=r(4716),ke=r(1257),N=r(6869),F=r(905),P=r(6023);let V=(()=>{class t{constructor(n,s,o,i,a,_,d,f){this.fb=n,this.router=s,this.toastService=o,this.translate=i,this.presenceTypesService=a,this.updateService=_,this.storageService=d,this.settings=f,this.formGroup=this.createFormGroup(),this.saving$=new X.X(!1),this.submitted$=new X.X(!1),this.absenceTypes$=(0,u.a)([this.getConfirmationTypes(),this.getHalfDayType()]).pipe((0,l.U)(([S,I])=>I?[...S,I]:S)),this.absenceTypeIdErrors$=(0,ke.Z6)((0,L.of)(this.formGroup),this.submitted$,"absenceTypeId"),this.destroy$=new Y.x}ngOnInit(){this.selectedLessonIds$.pipe((0,y.q)(1),(0,x.h)(K.yD)).subscribe(()=>this.navigateBack())}ngOnDestroy(){this.destroy$.next()}onSubmit(){if(this.submitted$.next(!0),this.formGroup.valid){const{absenceTypeId:n}=this.formGroup.value;this.save(n)}}cancel(){this.navigateBack()}getSelectedCount(){return this.selectedLessonIds$.pipe((0,l.U)(n=>n.length))}getConfirmationTypes(){return this.presenceTypesService.confirmationTypes$.pipe((0,l.U)(n=>n.filter(s=>s.IsAbsence&&s.Id!==this.settings.halfDayPresenceTypeId)))}getHalfDayType(){return(0,L.of)(null)}createFormGroup(){return this.fb.group({absenceTypeId:[null,p.kI.required]})}save(n){this.saving$.next(!0),this.selectedLessonIds$.pipe((0,y.q)(1),(0,A.w)(s=>this.updateService.editLessonPresences(s,[Number(this.storageService.getPayload()?.id_person)],n)),(0,Fe.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-absences.confirm.save-success")),this.navigateBack()}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(p.QS),e.Y36(g.F0),e.Y36(N.k),e.Y36(h.sK),e.Y36(F.c),e.Y36(P.O),e.Y36($.V),e.Y36(T.Zr))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(s,o){},encapsulation:2})}return t})();var W=r(500);const Oe=function(t){return{count:t}};function Ye(t,c){if(1&t&&(e.TgZ(0,"div",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.erzLet;e.xp6(1),e.hij(" ",e.xi3(2,1,1===n?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",e.VKq(4,Oe,n))," ")}}function ze(t,c){if(1&t&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Je(t,c){if(1&t&&(e.ynx(0),e.YNc(1,ze,3,4,"div",16),e.ALo(2,"async"),e.BQk()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,n.absenceTypeIdErrors$))}}const Ne=function(t){return{"border-top pt-3":t}};function Pe(t,c){if(1&t&&(e.TgZ(0,"div",12),e._UZ(1,"input",13),e.ALo(2,"async"),e.TgZ(3,"label",14),e._uU(4),e.qZA(),e.YNc(5,Je,3,3,"ng-container",15),e.ALo(6,"async"),e.qZA()),2&t){const n=c.$implicit,s=c.index,o=e.oxw();let i;e.Q6J("ngClass",e.VKq(12,Ne,n.IsHalfDay)),e.xp6(1),e.ekj("is-invalid",e.lcZ(2,8,o.absenceTypeIdErrors$).length>0),e.Q6J("id","absence-type-"+s)("value",n.Id),e.xp6(2),e.Q6J("for","absence-type-"+s),e.xp6(1),e.hij(" ",n.Designation," "),e.xp6(1),e.Q6J("ngIf",(null==(i=e.lcZ(6,10,o.absenceTypes$))?null:i.length)-1===s)}}function we(t,c){1&t&&(e.TgZ(0,"div",18)(1,"span",19),e._uU(2,"Loading..."),e.qZA()())}let Qe=(()=>{class t extends V{constructor(n,s,o,i,a,_,d,f,S,I){super(n,s,o,i,a,_,d,f),this.myAbsencesService=S,this.selectionService=I,this.titleKey="my-absences.confirm.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe((0,l.U)(j=>(0,z.Z)((0,R.Z)(j.map(H=>H.lessonIds))))),this.confirmationStateId=this.settings.unconfirmedAbsencesRefreshTime}onSaveSuccess(){this.selectionService.clear(),this.myAbsencesService.reset(),super.onSaveSuccess()}navigateBack(){this.router.navigate(["/my-absences"])}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(p.QS),e.Y36(g.F0),e.Y36(N.k),e.Y36(h.sK),e.Y36(F.c),e.Y36(P.O),e.Y36($.V),e.Y36(T.L6),e.Y36(O),e.Y36(J.o))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-confirm"]],features:[e.qOj],decls:28,vars:35,consts:[[1,"erz-container","erz-container-limited"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,o){1&s&&(e.TgZ(0,"div",0)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Ye,3,6,"div",1),e.ALo(5,"async"),e.TgZ(6,"form",2),e.NdJ("ngSubmit",function(){return o.onSubmit()}),e.TgZ(7,"div",3)(8,"label",4),e._uU(9),e.ALo(10,"translate"),e.ALo(11,"addSpace"),e.qZA(),e.YNc(12,Pe,7,14,"div",5),e.ALo(13,"async"),e.qZA(),e.TgZ(14,"div",6),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",7)(18,"button",8),e.NdJ("click",function(){return o.cancel()}),e.ALo(19,"async"),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"button",9),e.ALo(23,"async"),e._uU(24),e.ALo(25,"translate"),e.YNc(26,we,3,0,"div",10),e.ALo(27,"async"),e.qZA()()()()),2&s&&(e.xp6(2),e.Oqu(e.lcZ(3,12,o.titleKey)),e.xp6(2),e.Q6J("erzLet",e.lcZ(5,14,o.getSelectedCount())),e.xp6(2),e.Q6J("formGroup",o.formGroup),e.xp6(3),e.AsE("",e.lcZ(10,16,"my-absences.confirm.choose-presence-type"),"",e.xi3(11,18,":",":"),""),e.xp6(3),e.Q6J("ngForOf",e.lcZ(13,21,o.absenceTypes$)),e.xp6(3),e.hij(" ",e.lcZ(16,23,"my-absences.confirm.remark")," "),e.xp6(3),e.Q6J("disabled",e.lcZ(19,25,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(21,27,"my-absences.confirm.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(23,29,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(25,31,"my-absences.confirm.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(27,33,o.saving$)))},dependencies:[m.mk,m.sg,m.O5,p._Y,p.Fj,p._,p.JJ,p.JL,p.sg,p.u,U.e,m.Ov,h.X$,W.u],changeDetection:0})}return t})();var De=r(9862),k=r(5301),je=r(4307),He=r(8584),ee=r(4477),Ee=r(3005),Ge=r(1608);let w=(()=>{class t extends ee.f{constructor(n,s,o,i,a,_){super(n,s,_,o,"/my-absences/report"),this.studentsService=i,this.storageService=a,this.preventAbsencesAfterStart=!1;const d=this.storageService.getPayload()?.instance_id;this.preventAbsencesAfterStart=!!d&&this.settings.preventStudentAbsenceAfterLessonStart.includes(d)}getInitialFilter(){return{dateFrom:null,dateTo:null}}isValidFilter(n){return!(!n.dateFrom&&!n.dateTo)}loadEntries(n,s,o){const i=this.buildRequestParamsFromFilter(n).set("sort","From.asc");return this.loadingService.load(this.loadTimetableEntries(i).pipe((0,l.U)(a=>this.filterAbsencesAfterLessonStart(a)),(0,A.w)(a=>(0,u.a)([(0,L.of)(a),this.loadLessonAbsences(a),this.loadLessonDispensations(a)])),(0,l.U)(([a,_,d])=>this.buildLessonPresences(a,_,d)),(0,l.U)(a=>({offset:0,total:a.length,entries:a}))),ee.O)}filterAbsencesAfterLessonStart(n){return this.preventAbsencesAfterStart?n.filter(s=>s.From>=new Date):n}buildParamsFromFilter(n){const{dateFrom:s,dateTo:o}=n,i={};return s&&(i.dateFrom=(0,k.Z)(s,"yyyy-MM-dd")),o&&(i.dateTo=(0,k.Z)(o,"yyyy-MM-dd")),i}buildRequestParamsFromFilter(n){let s=new De.LE;return n.dateFrom&&(s=s.set("filter.From",`>${(0,k.Z)((0,je.Z)(n.dateFrom,1),"yyyy-MM-dd")}`)),n.dateTo&&(s=s.set("filter.To",`<${(0,k.Z)((0,He.Z)(n.dateTo,1),"yyyy-MM-dd")}`)),s}get studentId(){const n=this.storageService.getPayload()?.id_person;if(null==n)throw new Error("No student id available");return Number(n)}loadTimetableEntries(n){return this.studentsService.getTimetableEntries(this.studentId,n)}loadLessonAbsences(n){return n.length>0?this.studentsService.getLessonAbsences(this.studentId,{"filter.Id":`;${n.map(s=>s.Id).join(";")}`}):(0,L.of)([])}loadLessonDispensations(n){return n.length>0?this.studentsService.getLessonDispensations(this.studentId,{"filter.Id":`;${n.map(s=>s.Id).join(";")}`}):(0,L.of)([])}buildLessonPresences(n,s,o){return n.map(i=>this.buildLessonPresence(i,s,o))}buildLessonPresence(n,s,o){const i=s.find(d=>d.LessonRef.Id===n.Id),a=o.find(d=>d.LessonRef.Id===n.Id),_=this.buildLessonPresenceTypeRef(i,a);return{Id:"",LessonRef:{Id:n.Id,HRef:null},StudentRef:(i||a)?.StudentRef||{Id:this.studentId,HRef:null},EventRef:{Id:0,HRef:null},TypeRef:_,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:i?.ConfirmationStateId||a&&this.settings.excusedAbsenceStateId||null,EventDesignation:n.EventDesignation||"",HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:n.From||new Date,LessonDateTimeTo:n.To||new Date,Comment:null,Date:n.From||new Date,Type:(i||a)?.Type||null,StudentFullName:(i||a)?.StudentFullName||"",StudyClassNumber:"",TeacherInformation:n.EventManagerInformation}}buildLessonPresenceTypeRef(n,s){return n?{...n.TypeRef}:s?{...s.TypeRef}:{Id:null,HRef:null}}static#e=this.\u0275fac=function(s){return new(s||t)(e.LFG(m.Ye),e.LFG(Ee.b),e.LFG(T.L6),e.LFG(B.l),e.LFG($.V),e.LFG(Ge.K))};static#n=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})();var qe=r(6561);let Q=(()=>{class t extends qe.z{constructor(){super(...arguments),this.selectedIds$=this.selection$.pipe((0,l.U)(q.fG))}static#e=this.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(t)))(o||t)}}();static#n=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})(),Be=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report"]],features:[e._Bn([w,Q])],decls:1,vars:0,template:function(s,o){1&s&&e._UZ(0,"router-outlet")},dependencies:[g.lC],changeDetection:0})}return t})();var Ke=r(9773),ne=r(2220),D=r(8484),Z=r(3449),Xe=r(412),Ve=r(59),We=r(9189),en=r(3296),nn=r(1133),tn=r(7625);const sn=function(){return["/my-absences"]};let on=(()=>{class t{constructor(){this.filter={dateFrom:null,dateTo:null},this.filterChange=new e.vpe,this.minDate={year:(new Date).getFullYear(),month:(new Date).getMonth()+1,day:(new Date).getDate()}}updateDateFrom(n){this.filter.dateFrom=n,n&&(this.filter.dateTo=n)}show(){this.filterChange.emit({dateFrom:te(this.filter.dateFrom),dateTo:te(this.filter.dateTo)})}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},features:[e._Bn([{provide:C.DO,useClass:C.s5},{provide:C.NG,useClass:en.n}])],decls:19,vars:18,consts:[[3,"routerLink"],[1,"filters"],[1,"form-group"],[1,"form-label"],[3,"minDate","value","valueChange"],[1,"buttons"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(s,o){1&s&&(e._UZ(0,"erz-backlink",0),e.TgZ(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"label",3),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"erz-date-select",4),e.NdJ("valueChange",function(a){return o.updateDateFrom(a)}),e.qZA()(),e.TgZ(10,"div",2)(11,"label",3),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"erz-date-select",4),e.NdJ("valueChange",function(a){return o.filter.dateTo=a}),e.qZA()(),e.TgZ(15,"div",5)(16,"button",6),e.NdJ("click",function(){return o.show()}),e._uU(17),e.ALo(18,"translate"),e.qZA()()()),2&s&&(e.Q6J("routerLink",e.DdM(17,sn)),e.xp6(2),e.Oqu(e.lcZ(3,9,"my-absences.report.title")),e.xp6(5),e.Oqu(e.lcZ(8,11,"my-absences.report.header.date-from")),e.xp6(2),e.Q6J("minDate",o.minDate)("value",o.filter.dateFrom),e.xp6(3),e.Oqu(e.lcZ(13,13,"my-absences.report.header.date-to")),e.xp6(2),e.Q6J("minDate",o.minDate)("value",o.filter.dateTo),e.xp6(3),e.hij(" ",e.lcZ(18,15,"my-absences.report.header.show")," "))},dependencies:[g.rH,nn.T,tn.I,h.X$],styles:["[_nghost-%COMP%]{display:block;padding:1rem 0;border-bottom:1px solid #dee2e6}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.form-group[_ngcontent-%COMP%]{flex:1;min-width:20rem;max-width:40rem;margin-right:1rem;margin-bottom:.5rem}.buttons[_ngcontent-%COMP%]{flex:none;margin-top:1.625rem;margin-right:0}@media (max-width: 575.98px){.buttons[_ngcontent-%COMP%]{width:100%;margin-top:1rem;margin-bottom:1rem}}"],changeDetection:0})}return t})();function te(t){return t?(0,We.Z)(t):null}var cn=r(238);function rn(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div",12)(1,"input",13,29),e.NdJ("change",function(){e.CHM(n);const o=e.oxw(2).$implicit,i=e.oxw(6);return e.KtG(i.selectionService.toggle(o))}),e.ALo(3,"async"),e.qZA()()}if(2&t){const n=e.oxw(2).$implicit,s=e.oxw(6);e.xp6(1),e.Q6J("checked",e.lcZ(3,1,s.selectionService.isSelected$(n)))}}function an(t,c){if(1&t&&(e.TgZ(0,"div")(1,"i",17),e._uU(2),e.qZA()()),2&t){const n=e.oxw().erzLet;e.Gre("checkbox presence-category ",n.category,""),e.xp6(2),e.Oqu(n.icon)}}function ln(t,c){if(1&t&&(e.ynx(0),e.YNc(1,rn,4,3,"div",27),e.YNc(2,an,3,4,"ng-template",null,28,e.W1O),e.BQk()),2&t){const n=c.erzLet,s=e.MAs(3);e.xp6(1),e.Q6J("ngIf",!n)("ngIfElse",s)}}function dn(t,c){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.hij(", ",n.StudyClassNumber,"")}}function pn(t,c){if(1&t&&(e.TgZ(0,"div",31),e._uU(1),e.qZA()),2&t){const n=e.oxw().erzLet;e.xp6(1),e.hij(" ",n," ")}}function mn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,pn,2,1,"div",30),e.BQk()),2&t){const n=c.erzLet;e.xp6(1),e.Q6J("ngIf",n)}}function un(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div",19,20),e.NdJ("click",function(o){e.CHM(n);const i=e.MAs(1),a=e.oxw(6);return e.KtG(a.onRowClick(o,i))}),e.YNc(2,ln,4,2,"ng-container",0),e.ALo(3,"async"),e.TgZ(4,"div",21),e._uU(5),e.YNc(6,dn,2,1,"ng-container",8),e.qZA(),e.TgZ(7,"div",22),e._uU(8),e.ALo(9,"date"),e.ALo(10,"date"),e.qZA(),e.TgZ(11,"div",23),e._uU(12),e.qZA(),e.YNc(13,mn,2,1,"ng-container",0),e.ALo(14,"async"),e.TgZ(15,"div",24),e._uU(16),e.ALo(17,"date"),e.qZA(),e.TgZ(18,"div",25),e._uU(19),e.ALo(20,"erzDaysDifference"),e.qZA(),e.TgZ(21,"div",26),e._uU(22),e.ALo(23,"date"),e.ALo(24,"erzDaysDifference"),e.qZA()()}if(2&t){const n=c.$implicit,s=e.oxw(6);e.xp6(2),e.Q6J("erzLet",e.lcZ(3,11,s.getPresenceCategory(n))),e.xp6(3),e.hij(" ",n.EventDesignation,""),e.xp6(1),e.Q6J("ngIf",n.StudyClassNumber),e.xp6(2),e.AsE(" ",e.xi3(9,13,n.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(10,16,n.LessonDateTimeTo,"HH:mm")," "),e.xp6(4),e.hij(" ",n.TeacherInformation," "),e.xp6(1),e.Q6J("erzLet",e.lcZ(14,19,s.getPresenceTypeDesignation(n))),e.xp6(3),e.hij(" ",e.xi3(17,21,n.LessonDateTimeFrom,"dd.MM.yyyy")," "),e.xp6(3),e.hij(" ",e.lcZ(20,24,n.LessonDateTimeFrom)," "),e.xp6(3),e.AsE(" ",e.xi3(23,26,n.LessonDateTimeFrom,"dd.MM.yyyy"),", ",e.lcZ(24,29,n.LessonDateTimeFrom)," ")}}function _n(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div")(1,"div",10,11),e.NdJ("click",function(o){e.CHM(n);const i=e.MAs(2),a=e.oxw(5);return e.KtG(a.onRowClick(o,i))}),e.TgZ(3,"div",12)(4,"input",13),e.NdJ("change",function(o){e.CHM(n);const i=e.oxw(5);return e.KtG(i.toggleAll(o.target.checked))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",14),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"div",15)(10,"a",16),e.ALo(11,"async"),e.TgZ(12,"i",17),e._uU(13,"edit"),e.qZA()()()(),e.YNc(14,un,25,31,"div",18),e.qZA()}if(2&t){const n=e.oxw(4).erzLet,s=e.oxw();e.xp6(4),e.Q6J("checked",e.lcZ(5,5,s.allSelected$)),e.xp6(3),e.hij(" ",e.lcZ(8,7,"my-absences.report.list.all")," "),e.xp6(3),e.ekj("disabled",0===e.lcZ(11,9,s.selectionService.selection$).length),e.xp6(4),e.Q6J("ngForOf",n.entries)}}function gn(t,c){1&t&&e._UZ(0,"erz-spinner",32)}function fn(t,c){if(1&t&&(e.TgZ(0,"div",7),e.YNc(1,_n,15,11,"div",8),e.YNc(2,gn,1,0,"erz-spinner",9),e.qZA()),2&t){const n=e.oxw(3).erzLet;e.xp6(1),e.Q6J("ngIf",n.entries&&n.entries.length>0),e.xp6(1),e.Q6J("ngIf",n.loadingPage)}}function hn(t,c){1&t&&(e.TgZ(0,"p",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"my-absences.report.no-entries")," "))}function bn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,fn,3,2,"div",5),e.YNc(2,hn,3,3,"ng-template",null,6,e.W1O),e.BQk()),2&t){const n=e.MAs(3),s=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",s.entries&&s.entries.length>0||s.loadingPage)("ngIfElse",n)}}function yn(t,c){1&t&&e._UZ(0,"erz-spinner")}function vn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,bn,4,2,"ng-container",2),e.ALo(2,"async"),e.YNc(3,yn,1,0,"ng-template",null,4,e.W1O),e.BQk()),2&t){const n=e.MAs(4),s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,s.state.loading$))("ngIfElse",n)}}function An(t,c){1&t&&(e.TgZ(0,"p",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"my-absences.report.no-filter")))}function xn(t,c){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"erz-my-absences-report-header",1),e.NdJ("filterChange",function(o){e.CHM(n);const i=e.oxw();return e.KtG(i.state.setFilter(o))}),e.ALo(2,"async"),e.qZA(),e.YNc(3,vn,5,4,"ng-container",2),e.ALo(4,"async"),e.YNc(5,An,3,3,"ng-template",null,3,e.W1O),e.BQk()}if(2&t){const n=e.MAs(6),s=e.oxw();e.xp6(1),e.Q6J("filter",e.lcZ(2,3,s.filterFromParams$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,5,s.state.isFilterValid$))("ngIfElse",n)}}const Cn=function(t,c,n){return{selection:t,entries:c,loadingPage:n}};function Ln(t){return{dateFrom:t.dateFrom?(0,ne.nx)(t.dateFrom):null,dateTo:t.dateTo?(0,ne.nx)(t.dateTo):null}}const Zn=function(t){return{count:t}};function Sn(t,c){if(1&t&&(e.TgZ(0,"div",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.erzLet;e.xp6(1),e.hij(" ",e.xi3(2,1,1===n?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",e.VKq(4,Zn,n))," ")}}function In(t,c){if(1&t&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=c.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Mn(t,c){if(1&t&&(e.ynx(0),e.YNc(1,In,3,4,"div",16),e.ALo(2,"async"),e.BQk()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,n.absenceTypeIdErrors$))}}const $n=function(t){return{"border-top pt-3":t}};function Rn(t,c){if(1&t&&(e.TgZ(0,"div",12),e._UZ(1,"input",13),e.ALo(2,"async"),e.TgZ(3,"label",14),e._uU(4),e.qZA(),e.YNc(5,Mn,3,3,"ng-container",15),e.ALo(6,"async"),e.qZA()),2&t){const n=c.$implicit,s=c.index,o=e.oxw();let i;e.Q6J("ngClass",e.VKq(12,$n,n.IsHalfDay)),e.xp6(1),e.ekj("is-invalid",e.lcZ(2,8,o.absenceTypeIdErrors$).length>0),e.Q6J("id","absence-type-"+s)("value",n.Id),e.xp6(2),e.Q6J("for","absence-type-"+s),e.xp6(1),e.hij(" ",n.Designation," "),e.xp6(1),e.Q6J("ngIf",(null==(i=e.lcZ(6,10,o.absenceTypes$))?null:i.length)-1===s)}}function Un(t,c){1&t&&(e.TgZ(0,"div",18)(1,"span",19),e._uU(2,"Loading..."),e.qZA()())}const Fn=[{path:"",component:ce,children:[{path:"",component:Ue},{path:"confirm",component:Qe},{path:"report",component:Be,children:[{path:"",component:(()=>{class t{constructor(n,s,o,i,a,_){this.state=n,this.selectionService=s,this.route=o,this.scrollPosition=i,this.presenceTypesService=a,this.settings=_,this.filterFromParams$=this.route.queryParams.pipe((0,l.U)(Ln)),this.allSelected$=(0,u.a)([this.selectionService.selection$,this.state.entries$.pipe((0,A.w)(d=>(0,u.a)(d.map(f=>this.getPresenceType(f)))))]).pipe((0,l.U)(([d,f])=>d.length>0&&d.length===f.filter((0,v.ff)(D.qX)).length)),this.destroy$=new Y.x}ngOnInit(){this.filterFromParams$.pipe((0,y.q)(1)).subscribe(n=>this.state.setFilter(n)),this.state.validFilter$.pipe((0,Ke.R)(this.destroy$)).subscribe(()=>this.selectionService.clear())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}getPresenceCategory(n){return this.getPresenceType(n).pipe((0,l.U)(s=>(0,D.qX)(s)?n.ConfirmationStateId===this.settings.checkableAbsenceStateId?{category:Z.Ov.Unapproved,icon:(0,Z.ES)(Z.Ov.Unapproved)}:{category:Z.Ov.Absent,icon:(0,Z.ES)(Z.Ov.Absent)}:null))}getPresenceTypeDesignation(n){return this.presenceTypesService.displayedTypes$.pipe((0,l.U)(s=>n.TypeRef.Id&&s.find(o=>o.Id===n.TypeRef.Id)?.Designation||null))}toggleAll(n){(0,u.a)([this.state.entries$.pipe((0,y.q)(1)),this.presenceTypesService.presenceTypes$.pipe((0,y.q)(1))]).subscribe(([s,o])=>{const i=o.filter(a=>(0,D.qX)(a)).map(a=>a.Id);this.selectionService.clear(n?s.filter(a=>null==a.TypeRef.Id||!i.includes(a.TypeRef.Id)):null)})}onRowClick(n,s){const o=s.querySelector('input[type="checkbox"]');o&&n.target!==o&&!n.target.closest(".buttons")&&o.click()}getPresenceType(n){return this.presenceTypesService.presenceTypes$.pipe((0,l.U)(s=>n.TypeRef.Id&&s.find(o=>o.Id===n.TypeRef.Id)||null))}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(w),e.Y36(Q),e.Y36(g.gz),e.Y36(Xe.X),e.Y36(F.c),e.Y36(T.L6))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-report-list"]],decls:4,vars:11,consts:[[4,"erzLet"],[3,"filter","filterChange"],[4,"ngIf","ngIfElse"],["noFilter",""],["loading",""],["class","py-3",4,"ngIf","ngIfElse"],["noEntries",""],[1,"py-3"],[4,"ngIf"],["class","inline",4,"ngIf"],[1,"entries-all",3,"click"],["all",""],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],[1,"all"],[1,"buttons"],["routerLink","confirm",1,"edit","btn","btn-primary","btn-icon","me-2"],[1,"material-icons"],["class","entry",3,"click",4,"ngFor","ngForOf"],[1,"entry",3,"click"],["row",""],[1,"lesson-class"],[1,"time","pe-2"],[1,"teacher"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["class","checkbox",4,"ngIf","ngIfElse"],["categoryIcon",""],["checkbox",""],["class","presence-type",4,"ngIf"],[1,"presence-type"],[1,"inline"],[1,"mt-3"]],template:function(s,o){1&s&&(e.YNc(0,xn,7,7,"ng-container",0),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async")),2&s&&e.Q6J("erzLet",e.kEZ(7,Cn,e.lcZ(1,1,o.selectionService.selection$),e.lcZ(2,3,o.state.entries$),e.lcZ(3,5,o.state.loadingPage$)))},dependencies:[m.sg,m.O5,g.rH,U.e,Ve.O,on,m.Ov,m.uU,h.X$,cn.Q],styles:['.entries-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons";grid-template-columns:min-content 1fr min-content}.entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.entry[_ngcontent-%COMP%]:first-child{padding-top:0}.entries-all[_ngcontent-%COMP%] + .entry[_ngcontent-%COMP%]{padding-top:1rem}.presence-category.absent[_ngcontent-%COMP%]{color:#d01018}.presence-category.unapproved[_ngcontent-%COMP%]{color:#ffa814}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.presence-category[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{display:block;font-size:16px}.entries-all[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding-top:.2rem}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.buttons[_ngcontent-%COMP%]{grid-area:buttons;display:flex}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return t})(),data:{restoreScrollPositionFrom:["/my-absences/report/confirm"]}},{path:"confirm",component:(()=>{class t extends V{constructor(n,s,o,i,a,_,d,f,S,I){super(n,s,o,i,a,_,d,f),this.state=S,this.selectionService=I,this.titleKey="my-absences.report.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe((0,l.U)(j=>(0,z.Z)((0,R.Z)(j.map(H=>H.lessonIds))))),this.confirmationStateId=this.settings.checkableAbsenceStateId}getHalfDayType(){return this.presenceTypesService.getPresenceType(this.settings.halfDayPresenceTypeId).pipe((0,l.U)(n=>n.Active?n:null))}onSaveSuccess(){this.selectionService.clear(),this.state.resetEntries(),super.onSaveSuccess()}navigateBack(){this.state.queryParams$.pipe((0,y.q)(1)).subscribe(n=>{this.router.navigate(["/my-absences/report"],{queryParams:n})})}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(p.QS),e.Y36(g.F0),e.Y36(N.k),e.Y36(h.sK),e.Y36(F.c),e.Y36(P.O),e.Y36($.V),e.Y36(T.L6),e.Y36(w),e.Y36(Q))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-absences-confirm"]],features:[e.qOj],decls:28,vars:35,consts:[[1,"erz-container","erz-container-limited"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,o){1&s&&(e.TgZ(0,"div",0)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Sn,3,6,"div",1),e.ALo(5,"async"),e.TgZ(6,"form",2),e.NdJ("ngSubmit",function(){return o.onSubmit()}),e.TgZ(7,"div",3)(8,"label",4),e._uU(9),e.ALo(10,"translate"),e.ALo(11,"addSpace"),e.qZA(),e.YNc(12,Rn,7,14,"div",5),e.ALo(13,"async"),e.qZA(),e.TgZ(14,"div",6),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",7)(18,"button",8),e.NdJ("click",function(){return o.cancel()}),e.ALo(19,"async"),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"button",9),e.ALo(23,"async"),e._uU(24),e.ALo(25,"translate"),e.YNc(26,Un,3,0,"div",10),e.ALo(27,"async"),e.qZA()()()()),2&s&&(e.xp6(2),e.Oqu(e.lcZ(3,12,o.titleKey)),e.xp6(2),e.Q6J("erzLet",e.lcZ(5,14,o.getSelectedCount())),e.xp6(2),e.Q6J("formGroup",o.formGroup),e.xp6(3),e.AsE("",e.lcZ(10,16,"my-absences.confirm.choose-presence-type"),"",e.xi3(11,18,":",":"),""),e.xp6(3),e.Q6J("ngForOf",e.lcZ(13,21,o.absenceTypes$)),e.xp6(3),e.hij(" ",e.lcZ(16,23,"my-absences.confirm.remark")," "),e.xp6(3),e.Q6J("disabled",e.lcZ(19,25,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(21,27,"my-absences.confirm.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(23,29,o.saving$)),e.xp6(2),e.hij(" ",e.lcZ(25,31,"my-absences.confirm.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(27,33,o.saving$)))},dependencies:[m.mk,m.sg,m.O5,p._Y,p.Fj,p._,p.JJ,p.JL,p.sg,p.u,U.e,m.Ov,h.X$,W.u],changeDetection:0})}return t})()}]}]}];let kn=(()=>{class t{static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({imports:[g.Bz.forChild(Fn),g.Bz]})}return t})(),On=(()=>{class t{static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({providers:[J.o],imports:[se.m,kn]})}return t})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/958.js b/public/apps/webapp-schulverwaltung/958.js index 9a94f218..1fc74171 100644 --- a/public/apps/webapp-schulverwaltung/958.js +++ b/public/apps/webapp-schulverwaltung/958.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[958],{1958:(Ue,y,a)=>{a.r(y),a.d(y,{MyProfileModule:()=>ze});var Z=a(6486),c=a(1523),f=a(5619),v=a(4664),h=a(7081),e=a(5879),b=a(7909);let m=(()=>{class t{constructor(n){this.profileService=n,this.reset$=new f.X(void 0),this.profile$=this.reset$.pipe((0,v.w)(()=>this.profileService.getMyProfile()),(0,h.d)(1)),this.loading$=this.profileService.loading$}reset(){this.reset$.next()}static#e=this.\u0275fac=function(i){return new(i||t)(e.LFG(b.J))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})(),M=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile"]],features:[e._Bn([m])],decls:1,vars:0,template:function(i,r){1&i&&e._UZ(0,"router-outlet")},dependencies:[c.lC],changeDetection:0})}return t})();var l=a(6814),d=a(253),u=a(6567),A=a(59),T=a(8898),C=a(1442),P=a(9949),z=a(8075),_=a(9515);let w=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-entry"]],inputs:{label:"label",value:"value"},decls:6,vars:4,consts:[[1,"row"],[1,"col-md-6"]],template:function(i,r){1&i&&(e.TgZ(0,"dl",0)(1,"dt",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"dd",1),e._uU(5),e.qZA()()),2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,2,r.label)),e.xp6(3),e.Oqu(r.value))},dependencies:[_.X$],styles:["dl[_ngcontent-%COMP%]{padding:0 1rem}dt[_ngcontent-%COMP%]{font-weight:400;color:#00000080}"],changeDetection:0})}return t})();var S=a(7328),L=a(2572),g=a(7398),U=a(6016),J=a(2628);function N(t,o){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.hij("(",n.student.Gender,")")}}function I(t,o){if(1&t&&(e.TgZ(0,"a",10)(1,"i",11),e._uU(2,"description"),e.qZA()()),2&t){const n=e.oxw().erzLet;e.Q6J("href",n,e.LSH)}}function Y(t,o){if(1&t&&(e.ynx(0),e.YNc(1,I,3,1,"a",9),e.BQk()),2&t){const n=o.erzLet;e.xp6(1),e.Q6J("ngIf",n)}}function Q(t,o){if(1&t&&(e.TgZ(0,"div",2)(1,"div",3),e._UZ(2,"erz-avatar",4),e.TgZ(3,"div",5),e._uU(4),e.YNc(5,N,2,1,"span",6),e.TgZ(6,"div",7),e._uU(7),e.ALo(8,"date"),e.qZA()()(),e.YNc(9,Y,2,1,"ng-container",8),e.ALo(10,"async"),e.qZA()),2&t){const n=e.oxw();e.xp6(2),e.Q6J("studentId",n.student.Id),e.xp6(2),e.lnq(" ",n.student.LastName," ",n.student.FirstName," ",n.student.MiddleName," "),e.xp6(1),e.Q6J("ngIf",n.student.Gender),e.xp6(2),e.Oqu(e.xi3(8,7,n.student.Birthdate,"dd.MM.yyyy")),e.xp6(2),e.Q6J("erzLet",e.lcZ(10,10,n.reportUrl$))}}function O(t,o){if(1&t&&(e.TgZ(0,"div",12),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Oqu(n.student.Email)}}let $=(()=>{class t{constructor(n){this.reportsService=n,this.studentId$=new S.t(1),this.reportUrl$=(0,L.a)([this.reportsService.personMasterDataAvailability$,this.studentId$]).pipe((0,g.U)(([i,r])=>i&&r?this.reportsService.getPersonMasterDataUrl(r):null))}ngOnChanges(n){n.student&&this.studentId$.next(n.student.currentValue?.Id||null)}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(U.F))};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-header"]],inputs:{student:"student"},features:[e.TTD],decls:2,vars:2,consts:[["class","avatar-person",4,"ngIf"],["class","email",4,"ngIf"],[1,"avatar-person"],[1,"d-flex"],[1,"me-3","avatar","large",3,"studentId"],[1,"person"],[4,"ngIf"],[1,"birthdate"],[4,"erzLet"],["class","report btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["target","_blank",1,"report","btn","btn-primary","btn-icon","me-2",3,"href"],[1,"material-icons"],[1,"email"]],template:function(i,r){1&i&&(e.YNc(0,Q,11,12,"div",0),e.YNc(1,O,2,1,"div",1)),2&i&&(e.Q6J("ngIf",r.student),e.xp6(1),e.Q6J("ngIf",r.student))},dependencies:[l.O5,u.e,J.A,l.Ov,l.uU],styles:[".avatar-person[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-left:1rem 1rem 1rem 0}.person[_ngcontent-%COMP%]{align-self:center}.email[_ngcontent-%COMP%]{padding:1rem 1rem 0 0}.report[_ngcontent-%COMP%]{align-self:flex-start;line-height:1}"],changeDetection:0})}return t})(),F=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-address"]],inputs:{address:"address"},decls:2,vars:1,template:function(i,r){1&i&&(e.TgZ(0,"address"),e._uU(1),e.qZA()),2&i&&(e.xp6(1),e.Oqu(r.address))},styles:["[_nghost-%COMP%]{padding:1rem}address[_ngcontent-%COMP%]{white-space:pre-wrap}"],changeDetection:0})}return t})();function E(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",22),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.student.SocialSecurityNumber)}}function q(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",23),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.student.HomeTown||n.profile.student.Nationality)}}function j(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",24),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.student.NativeLanguage)}}function G(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",25),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.stayPermitValue)}}function H(t,o){if(1&t&&(e._UZ(0,"erz-my-profile-entry",26),e.ALo(1,"date")),2&t){const n=e.oxw(3).erzLet;e.s9C("value",e.xi3(1,1,n.profile.student.StayPermitExpiry,"mediumDate"))}}function B(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw();const r=e.MAs(8);return e.KtG(r.toggle("student-address"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.student-address")," "))}function k(t,o){if(1&t&&(e.TgZ(0,"div",28)(1,"a",29),e.ALo(2,"translate"),e.TgZ(3,"i",30),e._uU(4,"edit"),e.qZA()(),e._UZ(5,"erz-student-dossier-address",31),e.qZA()),2&t){const n=e.oxw(3).erzLet;e.xp6(1),e.uIk("aria-label",e.lcZ(2,2,"my-profile.edit.title")),e.xp6(4),e.Q6J("student",n.profile.student)}}function X(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw(2);const r=e.MAs(8);return e.KtG(r.toggle("correspondence-address"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.correspondence-address")," "))}function D(t,o){if(1&t&&e._UZ(0,"erz-my-profile-address",33),2&t){const n=e.oxw(4).erzLet;e.Q6J("address",n.profile.student.CorrespondenceAddress)}}function K(t,o){1&t&&(e.TgZ(0,"ngb-panel",32),e.YNc(1,X,3,4,"ng-template",16),e.YNc(2,D,1,1,"ng-template",17),e.qZA())}function R(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw(2);const r=e.MAs(8);return e.KtG(r.toggle("billing-address"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.billing-address")," "))}function V(t,o){if(1&t&&e._UZ(0,"erz-my-profile-address",33),2&t){const n=e.oxw(4).erzLet;e.Q6J("address",n.profile.student.BillingAddress)}}function W(t,o){1&t&&(e.TgZ(0,"ngb-panel",34),e.YNc(1,R,3,4,"ng-template",16),e.YNc(2,V,1,1,"ng-template",17),e.qZA())}function ee(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw(2);const r=e.MAs(8);return e.KtG(r.toggle("legal-representatives"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.legal-representation")," "))}function te(t,o){1&t&&e._UZ(0,"erz-student-dossier-legal-representative",37),2&t&&e.Q6J("person",o.$implicit)}function ne(t,o){if(1&t&&e.YNc(0,te,1,1,"erz-student-dossier-legal-representative",36),2&t){const n=e.oxw(4).erzLet;e.Q6J("ngForOf",n.profile.legalRepresentativePersons)}}function ie(t,o){1&t&&(e.TgZ(0,"ngb-panel",35),e.YNc(1,ee,3,4,"ng-template",16),e.YNc(2,ne,1,1,"ng-template",17),e.qZA())}function oe(t,o){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).index;e.xp6(1),e.Oqu(n+1)}}function re(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n);const r=e.oxw().index;e.oxw();const p=e.MAs(8);return e.KtG(p.toggle("apprenticeship-company-"+r))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,oe,2,1,"ng-container",39),e.qZA()}if(2&t){const n=o.opened,i=e.oxw(4).erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.apprenticeship-company")," "),e.xp6(2),e.Q6J("ngIf",i.profile.apprenticeshipCompanies.length>1)}}function ae(t,o){if(1&t&&e._UZ(0,"erz-student-dossier-apprenticeship-company",40),2&t){const n=e.oxw().$implicit;e.Q6J("company",n)}}function le(t,o){1&t&&(e.TgZ(0,"ngb-panel",38),e.YNc(1,re,4,5,"ng-template",16),e.YNc(2,ae,1,1,"ng-template",17),e.qZA()),2&t&&e.Q6J("id","apprenticeship-company-"+o.index)}function se(t,o){if(1&t&&(e.TgZ(0,"div",7)(1,"div",8),e.YNc(2,E,1,1,"erz-my-profile-entry",9),e.YNc(3,q,1,1,"erz-my-profile-entry",10),e.YNc(4,j,1,1,"erz-my-profile-entry",11),e.YNc(5,G,1,1,"erz-my-profile-entry",12),e.YNc(6,H,2,4,"erz-my-profile-entry",13),e.qZA(),e.TgZ(7,"ngb-accordion",null,14)(9,"ngb-panel",15),e.YNc(10,B,3,4,"ng-template",16),e.YNc(11,k,6,4,"ng-template",17),e.qZA(),e.YNc(12,K,3,0,"ngb-panel",18),e.YNc(13,W,3,0,"ngb-panel",19),e.YNc(14,ie,3,0,"ngb-panel",20),e.YNc(15,le,3,1,"ngb-panel",21),e.qZA()()),2&t){const n=e.oxw(2).erzLet;e.xp6(2),e.Q6J("ngIf",n.profile.student.SocialSecurityNumber),e.xp6(1),e.Q6J("ngIf",n.profile.student.HomeTown||n.profile.student.Nationality),e.xp6(1),e.Q6J("ngIf",n.profile.student.NativeLanguage),e.xp6(1),e.Q6J("ngIf",n.profile.stayPermitValue),e.xp6(1),e.Q6J("ngIf",n.profile.student.StayPermitExpiry),e.xp6(6),e.Q6J("ngIf",n.profile.student.CorrespondenceAddress),e.xp6(1),e.Q6J("ngIf",n.profile.student.BillingAddress),e.xp6(1),e.Q6J("ngIf",n.profile.legalRepresentativePersons.length>0),e.xp6(1),e.Q6J("ngForOf",n.profile.apprenticeshipCompanies)}}function pe(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"shared.profile.no-profile")))}function ce(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"erz-my-profile-header",4),e.YNc(2,se,16,9,"div",5),e.YNc(3,pe,3,3,"ng-template",null,6,e.W1O),e.BQk()),2&t){const n=e.MAs(4),i=e.oxw().erzLet;e.xp6(1),e.Q6J("student",i.profile&&i.profile.student),e.xp6(1),e.Q6J("ngIf",i.profile)("ngIfElse",n)}}function de(t,o){1&t&&e._UZ(0,"erz-spinner")}function _e(t,o){if(1&t&&(e.TgZ(0,"div",1)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ce,5,3,"ng-container",2),e.ALo(5,"async"),e.YNc(6,de,1,0,"ng-template",null,3,e.W1O),e.qZA()),2&t){const n=e.MAs(7),i=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,3,"my-profile.title")),e.xp6(2),e.Q6J("ngIf",!1===e.lcZ(5,5,i.profileService.loading$))("ngIfElse",n)}}const fe=function(t){return{profile:t}};let me=(()=>{class t{constructor(n){this.profileService=n}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(m))};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-show"]],decls:2,vars:5,consts:[["class","erz-container erz-container-limited erz-container-padding-y erz-container-padding-x-responsive",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y","erz-container-padding-x-responsive"],[4,"ngIf","ngIfElse"],["loading",""],[3,"student"],["class","profile-content",4,"ngIf","ngIfElse"],["noProfile",""],[1,"profile-content"],[1,"profile-entries","pt-3"],["label","my-profile.show.social-security-number",3,"value",4,"ngIf"],["label","my-profile.show.hometown-nationality",3,"value",4,"ngIf"],["label","my-profile.show.native-language",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit-expiry",3,"value",4,"ngIf"],["acc","ngbAccordion"],["id","student-address"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","correspondence-address",4,"ngIf"],["id","billing-address",4,"ngIf"],["id","legal-representatives",4,"ngIf"],[3,"id",4,"ngFor","ngForOf"],["label","my-profile.show.social-security-number",3,"value"],["label","my-profile.show.hometown-nationality",3,"value"],["label","my-profile.show.native-language",3,"value"],["label","my-profile.show.stay-permit",3,"value"],["label","my-profile.show.stay-permit-expiry",3,"value"],[3,"opened","click"],[1,"clearfix"],["routerLink","edit",1,"btn","btn-primary","btn-icon","float-end","me-2"],[1,"material-icons"],["emailProperty","Email2",1,"profile-entry",3,"student"],["id","correspondence-address"],[1,"profile-entry",3,"address"],["id","billing-address"],["id","legal-representatives"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"id"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(i,r){1&i&&(e.YNc(0,_e,8,7,"div",0),e.ALo(1,"async")),2&i&&e.Q6J("erzLet",e.VKq(3,fe,e.lcZ(1,1,r.profileService.profile$)))},dependencies:[l.sg,l.O5,c.rH,d.gY,d.Gk,d.gW,d.k9,u.e,A.O,T.H,C.k,P.O,z.g,w,$,F,l.Ov,l.uU,_.X$],styles:[".profile-content[_ngcontent-%COMP%]{padding-top:1rem}.profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}.profile-entries[_ngcontent-%COMP%]:not(:empty){border-top:1px solid rgb(222,222,222)}"],changeDetection:0})}return t})();var s=a(6223),x=a(8180),ue=a(4716),ge=a(1257),ye=a(6869),ve=a(5258);function he(t,o){if(1&t&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij(" ",n.student.AddressLine2," ")}}function xe(t,o){if(1&t&&(e.TgZ(0,"div",21),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Ze(t,o){if(1&t&&(e.TgZ(0,"div",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function be(t,o){1&t&&(e.TgZ(0,"div",23)(1,"span",24),e._uU(2,"Loading..."),e.qZA()())}function Me(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.onSubmit())}),e.TgZ(1,"div",4)(2,"p"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"address",5)(6,"div"),e._uU(7),e.qZA(),e.YNc(8,he,2,1,"div",6),e.TgZ(9,"div"),e._uU(10),e.qZA()()(),e.YNc(11,xe,3,4,"div",7),e.ALo(12,"async"),e.TgZ(13,"div",4)(14,"label",8),e._uU(15),e.ALo(16,"translate"),e.qZA(),e._UZ(17,"input",9),e.qZA(),e.TgZ(18,"div",4)(19,"label",10),e._uU(20),e.ALo(21,"translate"),e.qZA(),e._UZ(22,"input",11),e.TgZ(23,"small",12),e._uU(24),e.ALo(25,"translate"),e.qZA()(),e.TgZ(26,"div",4)(27,"label",13),e._uU(28),e.ALo(29,"translate"),e.qZA(),e._UZ(30,"input",14),e.ALo(31,"async"),e.YNc(32,Ze,3,4,"div",15),e.ALo(33,"async"),e.TgZ(34,"small",16),e._uU(35),e.ALo(36,"translate"),e.qZA()(),e.TgZ(37,"div",17)(38,"button",18),e.NdJ("click",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.cancel())}),e.ALo(39,"async"),e._uU(40),e.ALo(41,"translate"),e.qZA(),e.TgZ(42,"button",19),e.ALo(43,"async"),e._uU(44),e.ALo(45,"translate"),e.YNc(46,be,3,0,"div",20),e.ALo(47,"async"),e.qZA()()()}if(2&t){const n=e.oxw().erzLet,i=e.oxw();e.Q6J("formGroup",n.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,20,"my-profile.edit.address-changes-remark")),e.xp6(4),e.Oqu(n.student.AddressLine1),e.xp6(1),e.Q6J("ngIf",n.student.AddressLine2),e.xp6(2),e.AsE("",n.student.Zip||""," ",n.student.Location,""),e.xp6(1),e.Q6J("ngForOf",e.lcZ(12,22,i.formErrors$)),e.xp6(4),e.hij(" ",e.lcZ(16,24,"my-profile.edit.fields.phone-private")," "),e.xp6(5),e.hij(" ",e.lcZ(21,26,"my-profile.edit.fields.phone-mobile")," "),e.xp6(4),e.Oqu(e.lcZ(25,28,"my-profile.edit.fields.phone-mobile-hint")),e.xp6(4),e.hij(" ",e.lcZ(29,30,"my-profile.edit.fields.email2")," "),e.xp6(2),e.ekj("is-invalid",e.lcZ(31,32,i.email2Errors$).length>0),e.xp6(2),e.Q6J("ngForOf",e.lcZ(33,34,i.email2Errors$)),e.xp6(3),e.Oqu(e.lcZ(36,36,"my-profile.edit.fields.email2-hint")),e.xp6(3),e.Q6J("disabled",e.lcZ(39,38,i.saving$)),e.xp6(2),e.hij(" ",e.lcZ(41,40,"my-profile.edit.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(43,42,i.saving$)),e.xp6(2),e.hij(" ",e.lcZ(45,44,"my-profile.edit.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(47,46,i.saving$))}}function Ae(t,o){if(1&t&&(e.TgZ(0,"div",1)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Me,48,48,"form",2),e.qZA()),2&t){const n=o.erzLet;e.xp6(2),e.Oqu(e.lcZ(3,2,"my-profile.edit.title")),e.xp6(2),e.Q6J("ngIf",n.formGroup)}}const Te=function(t,o){return{formGroup:t,student:o}},Ce=[{path:"",component:M,children:[{path:"",component:me},{path:"edit",component:(()=>{class t{constructor(n,i,r,p,we,Se){this.fb=n,this.router=i,this.toastService=r,this.translate=p,this.profileService=we,this.personsService=Se,this.student$=this.profileService.profile$.pipe((0,g.U)(({student:Le})=>Le)),this.formGroup$=this.student$.pipe((0,g.U)(this.createFormGroup.bind(this)),(0,h.d)(1)),this.saving$=new f.X(!1),this.submitted$=new f.X(!1),this.email2Errors$=(0,ge.Z6)(this.formGroup$,this.submitted$,"email2")}cancel(){this.navigateBack()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,x.q)(1)).subscribe(n=>{if(n.valid){const{phonePrivate:i,phoneMobile:r,email2:p}=n.value;this.save(i?.trim()||null,r?.trim()||null,p||null)}})}createFormGroup(n){return this.fb.group({phonePrivate:[n.PhonePrivate],phoneMobile:[n.PhoneMobile],email2:[n.Email2,s.kI.email]})}save(n,i,r){this.saving$.next(!0),this.student$.pipe((0,x.q)(1),(0,v.w)(p=>this.personsService.update(p.Id,n,i,r)),(0,ue.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.profileService.reset(),this.toastService.success(this.translate.instant("my-profile.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(["/my-profile"])}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(s.QS),e.Y36(c.F0),e.Y36(ye.k),e.Y36(_.sK),e.Y36(m),e.Y36(ve.J))};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-edit"]],decls:3,vars:8,consts:[["class","erz-container erz-container-limited erz-container-padding-y",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"mb-3"],[1,"text-muted"],[4,"ngIf"],["class","alert alert-danger",4,"ngFor","ngForOf"],["id","my-profile-phone-private",1,"form-label"],["id","my-profile-phone-private","formControlName","phonePrivate","type","tel",1,"form-control"],["id","my-profile-phone-mobile",1,"form-label"],["id","my-profile-phone-mobile","formControlName","phoneMobile","type","tel","aria-describedby","my-profile-phone-mobile-hint",1,"form-control"],["id","my-profile-phone-mobile-hint",1,"form-text"],["id","my-profile-email2",1,"form-label"],["id","my-profile-email2","formControlName","email2","type","email","aria-describedby","my-profile-email2-hint",1,"form-control"],["class","invalid-feedback",4,"ngFor","ngForOf"],["id","my-profile-email2-hint",1,"form-text"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(i,r){1&i&&(e.YNc(0,Ae,5,4,"div",0),e.ALo(1,"async"),e.ALo(2,"async")),2&i&&e.Q6J("erzLet",e.WLB(5,Te,e.lcZ(1,1,r.formGroup$),e.lcZ(2,3,r.student$)))},dependencies:[l.sg,l.O5,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,u.e,l.Ov,_.X$],changeDetection:0})}return t})()}]}];let Pe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=e.oAB({type:t});static#n=this.\u0275inj=e.cJS({imports:[c.Bz.forChild(Ce),c.Bz]})}return t})(),ze=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=e.oAB({type:t});static#n=this.\u0275inj=e.cJS({imports:[Z.m,Pe]})}return t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[958],{1958:(Ue,y,a)=>{a.r(y),a.d(y,{MyProfileModule:()=>we});var Z=a(6486),c=a(1523),f=a(5619),v=a(4664),h=a(7081),e=a(5879),b=a(7909);let m=(()=>{class t{constructor(n){this.profileService=n,this.reset$=new f.X(void 0),this.profile$=this.reset$.pipe((0,v.w)(()=>this.profileService.getMyProfile()),(0,h.d)(1)),this.loading$=this.profileService.loading$}reset(){this.reset$.next()}static#e=this.\u0275fac=function(i){return new(i||t)(e.LFG(b.J))};static#t=this.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac})}return t})(),M=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile"]],features:[e._Bn([m])],decls:1,vars:0,template:function(i,r){1&i&&e._UZ(0,"router-outlet")},dependencies:[c.lC],changeDetection:0})}return t})();var l=a(6814),_=a(253),u=a(6567),A=a(59),T=a(8898),C=a(1442),P=a(9949),w=a(8075),d=a(9515);let z=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-entry"]],inputs:{label:"label",value:"value"},decls:6,vars:4,consts:[[1,"row"],[1,"col-md-6"]],template:function(i,r){1&i&&(e.TgZ(0,"dl",0)(1,"dt",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"dd",1),e._uU(5),e.qZA()()),2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,2,r.label)),e.xp6(3),e.Oqu(r.value))},dependencies:[d.X$],styles:["dl[_ngcontent-%COMP%]{padding:0 1rem}dt[_ngcontent-%COMP%]{font-weight:400;color:#00000080}"],changeDetection:0})}return t})();var S=a(7328),L=a(2572),g=a(7398),U=a(6016),J=a(2628);function N(t,o){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.hij("(",n.student.Gender,")")}}function I(t,o){if(1&t&&(e.TgZ(0,"a",10)(1,"i",11),e._uU(2,"description"),e.qZA()()),2&t){const n=e.oxw().erzLet;e.Q6J("href",n,e.LSH)}}function Y(t,o){if(1&t&&(e.ynx(0),e.YNc(1,I,3,1,"a",9),e.BQk()),2&t){const n=o.erzLet;e.xp6(1),e.Q6J("ngIf",n)}}function Q(t,o){if(1&t&&(e.TgZ(0,"div",2)(1,"div",3),e._UZ(2,"erz-avatar",4),e.TgZ(3,"div",5),e._uU(4),e.YNc(5,N,2,1,"span",6),e.TgZ(6,"div",7),e._uU(7),e.ALo(8,"date"),e.qZA()()(),e.YNc(9,Y,2,1,"ng-container",8),e.ALo(10,"async"),e.qZA()),2&t){const n=e.oxw();e.xp6(2),e.Q6J("studentId",n.student.Id),e.xp6(2),e.lnq(" ",n.student.LastName," ",n.student.FirstName," ",n.student.MiddleName," "),e.xp6(1),e.Q6J("ngIf",n.student.Gender),e.xp6(2),e.Oqu(e.xi3(8,7,n.student.Birthdate,"dd.MM.yyyy")),e.xp6(2),e.Q6J("erzLet",e.lcZ(10,10,n.reportUrl$))}}function O(t,o){if(1&t&&(e.TgZ(0,"div",12),e._uU(1),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Oqu(n.student.Email)}}let $=(()=>{class t{constructor(n){this.reportsService=n,this.studentId$=new S.t(1),this.reportUrl$=(0,L.a)([this.reportsService.personMasterDataAvailability$,this.studentId$]).pipe((0,g.U)(([i,r])=>i&&r?this.reportsService.getPersonMasterDataUrl(r):null))}ngOnChanges(n){n.student&&this.studentId$.next(n.student.currentValue?.Id||null)}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(U.F))};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-header"]],inputs:{student:"student"},features:[e.TTD],decls:2,vars:2,consts:[["class","avatar-person",4,"ngIf"],["class","email",4,"ngIf"],[1,"avatar-person"],[1,"d-flex"],[1,"me-3","avatar","large",3,"studentId"],[1,"person"],[4,"ngIf"],[1,"birthdate"],[4,"erzLet"],["class","report btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["target","_blank",1,"report","btn","btn-primary","btn-icon","me-2",3,"href"],[1,"material-icons"],[1,"email"]],template:function(i,r){1&i&&(e.YNc(0,Q,11,12,"div",0),e.YNc(1,O,2,1,"div",1)),2&i&&(e.Q6J("ngIf",r.student),e.xp6(1),e.Q6J("ngIf",r.student))},dependencies:[l.O5,u.e,J.A,l.Ov,l.uU],styles:[".avatar-person[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-left:1rem 1rem 1rem 0}.person[_ngcontent-%COMP%]{align-self:center}.email[_ngcontent-%COMP%]{padding:1rem 1rem 0 0}.report[_ngcontent-%COMP%]{align-self:flex-start;line-height:1}"],changeDetection:0})}return t})(),F=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-address"]],inputs:{address:"address"},decls:2,vars:1,template:function(i,r){1&i&&(e.TgZ(0,"address"),e._uU(1),e.qZA()),2&i&&(e.xp6(1),e.Oqu(r.address))},styles:["[_nghost-%COMP%]{padding:1rem}address[_ngcontent-%COMP%]{white-space:pre-wrap}"],changeDetection:0})}return t})();function E(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",22),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.student.SocialSecurityNumber)}}function q(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",23),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.student.HomeTown||n.profile.student.Nationality)}}function j(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",24),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.student.NativeLanguage)}}function G(t,o){if(1&t&&e._UZ(0,"erz-my-profile-entry",25),2&t){const n=e.oxw(3).erzLet;e.s9C("value",n.profile.stayPermitValue)}}function H(t,o){if(1&t&&(e._UZ(0,"erz-my-profile-entry",26),e.ALo(1,"date")),2&t){const n=e.oxw(3).erzLet;e.s9C("value",e.xi3(1,1,n.profile.student.StayPermitExpiry,"mediumDate"))}}function B(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw();const r=e.MAs(8);return e.KtG(r.toggle("student-address"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.student-address")," "))}function k(t,o){if(1&t&&(e.TgZ(0,"div",28)(1,"a",29),e.ALo(2,"translate"),e.TgZ(3,"i",30),e._uU(4,"edit"),e.qZA()(),e._UZ(5,"erz-student-dossier-address",31),e.qZA()),2&t){const n=e.oxw(3).erzLet;e.xp6(1),e.uIk("aria-label",e.lcZ(2,2,"my-profile.edit.title")),e.xp6(4),e.Q6J("student",n.profile.student)}}function X(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw(2);const r=e.MAs(8);return e.KtG(r.toggle("correspondence-address"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.correspondence-address")," "))}function D(t,o){if(1&t&&e._UZ(0,"erz-my-profile-address",33),2&t){const n=e.oxw(4).erzLet;e.Q6J("address",n.profile.student.CorrespondenceAddress)}}function K(t,o){1&t&&(e.TgZ(0,"ngb-panel",32),e.YNc(1,X,3,4,"ng-template",16),e.YNc(2,D,1,1,"ng-template",17),e.qZA())}function R(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw(2);const r=e.MAs(8);return e.KtG(r.toggle("billing-address"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.billing-address")," "))}function V(t,o){if(1&t&&e._UZ(0,"erz-my-profile-address",33),2&t){const n=e.oxw(4).erzLet;e.Q6J("address",n.profile.student.BillingAddress)}}function W(t,o){1&t&&(e.TgZ(0,"ngb-panel",34),e.YNc(1,R,3,4,"ng-template",16),e.YNc(2,V,1,1,"ng-template",17),e.qZA())}function ee(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n),e.oxw(2);const r=e.MAs(8);return e.KtG(r.toggle("legal-representatives"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.Q6J("opened",o.opened),e.xp6(1),e.hij(" ",e.lcZ(2,2,"shared.profile.legal-representation")," "))}function te(t,o){1&t&&e._UZ(0,"erz-student-dossier-legal-representative",37),2&t&&e.Q6J("person",o.$implicit)}function ne(t,o){if(1&t&&e.YNc(0,te,1,1,"erz-student-dossier-legal-representative",36),2&t){const n=e.oxw(4).erzLet;e.Q6J("ngForOf",n.profile.legalRepresentativePersons)}}function ie(t,o){1&t&&(e.TgZ(0,"ngb-panel",35),e.YNc(1,ee,3,4,"ng-template",16),e.YNc(2,ne,1,1,"ng-template",17),e.qZA())}function oe(t,o){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const n=e.oxw(2).index;e.xp6(1),e.Oqu(n+1)}}function re(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"erz-student-dossier-entry-header",27),e.NdJ("click",function(){e.CHM(n);const r=e.oxw().index;e.oxw();const p=e.MAs(8);return e.KtG(p.toggle("apprenticeship-company-"+r))}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,oe,2,1,"ng-container",39),e.qZA()}if(2&t){const n=o.opened,i=e.oxw(4).erzLet;e.Q6J("opened",n),e.xp6(1),e.hij(" ",e.lcZ(2,3,"shared.profile.apprenticeship-company")," "),e.xp6(2),e.Q6J("ngIf",i.profile.apprenticeshipCompanies.length>1)}}function ae(t,o){if(1&t&&e._UZ(0,"erz-student-dossier-apprenticeship-company",40),2&t){const n=e.oxw().$implicit;e.Q6J("company",n)}}function le(t,o){1&t&&(e.TgZ(0,"ngb-panel",38),e.YNc(1,re,4,5,"ng-template",16),e.YNc(2,ae,1,1,"ng-template",17),e.qZA()),2&t&&e.Q6J("id","apprenticeship-company-"+o.index)}function se(t,o){if(1&t&&(e.TgZ(0,"div",7)(1,"div",8),e.YNc(2,E,1,1,"erz-my-profile-entry",9),e.YNc(3,q,1,1,"erz-my-profile-entry",10),e.YNc(4,j,1,1,"erz-my-profile-entry",11),e.YNc(5,G,1,1,"erz-my-profile-entry",12),e.YNc(6,H,2,4,"erz-my-profile-entry",13),e.qZA(),e.TgZ(7,"ngb-accordion",null,14)(9,"ngb-panel",15),e.YNc(10,B,3,4,"ng-template",16),e.YNc(11,k,6,4,"ng-template",17),e.qZA(),e.YNc(12,K,3,0,"ngb-panel",18),e.YNc(13,W,3,0,"ngb-panel",19),e.YNc(14,ie,3,0,"ngb-panel",20),e.YNc(15,le,3,1,"ngb-panel",21),e.qZA()()),2&t){const n=e.oxw(2).erzLet;e.xp6(2),e.Q6J("ngIf",n.profile.student.SocialSecurityNumber),e.xp6(1),e.Q6J("ngIf",n.profile.student.HomeTown||n.profile.student.Nationality),e.xp6(1),e.Q6J("ngIf",n.profile.student.NativeLanguage),e.xp6(1),e.Q6J("ngIf",n.profile.stayPermitValue),e.xp6(1),e.Q6J("ngIf",n.profile.student.StayPermitExpiry),e.xp6(6),e.Q6J("ngIf",n.profile.student.CorrespondenceAddress),e.xp6(1),e.Q6J("ngIf",n.profile.student.BillingAddress),e.xp6(1),e.Q6J("ngIf",n.profile.legalRepresentativePersons.length>0),e.xp6(1),e.Q6J("ngForOf",n.profile.apprenticeshipCompanies)}}function pe(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"shared.profile.no-profile")))}function ce(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"erz-my-profile-header",4),e.YNc(2,se,16,9,"div",5),e.YNc(3,pe,3,3,"ng-template",null,6,e.W1O),e.BQk()),2&t){const n=e.MAs(4),i=e.oxw().erzLet;e.xp6(1),e.Q6J("student",i.profile&&i.profile.student),e.xp6(1),e.Q6J("ngIf",i.profile)("ngIfElse",n)}}function _e(t,o){1&t&&e._UZ(0,"erz-spinner")}function de(t,o){if(1&t&&(e.TgZ(0,"div",1)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ce,5,3,"ng-container",2),e.ALo(5,"async"),e.YNc(6,_e,1,0,"ng-template",null,3,e.W1O),e.qZA()),2&t){const n=e.MAs(7),i=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,3,"my-profile.title")),e.xp6(2),e.Q6J("ngIf",!1===e.lcZ(5,5,i.profileService.loading$))("ngIfElse",n)}}const fe=function(t){return{profile:t}};let me=(()=>{class t{constructor(n){this.profileService=n}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(m))};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-show"]],decls:2,vars:5,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[4,"ngIf","ngIfElse"],["loading",""],[3,"student"],["class","profile-content",4,"ngIf","ngIfElse"],["noProfile",""],[1,"profile-content"],[1,"profile-entries","pt-3"],["label","my-profile.show.social-security-number",3,"value",4,"ngIf"],["label","my-profile.show.hometown-nationality",3,"value",4,"ngIf"],["label","my-profile.show.native-language",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit-expiry",3,"value",4,"ngIf"],["acc","ngbAccordion"],["id","student-address"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","correspondence-address",4,"ngIf"],["id","billing-address",4,"ngIf"],["id","legal-representatives",4,"ngIf"],[3,"id",4,"ngFor","ngForOf"],["label","my-profile.show.social-security-number",3,"value"],["label","my-profile.show.hometown-nationality",3,"value"],["label","my-profile.show.native-language",3,"value"],["label","my-profile.show.stay-permit",3,"value"],["label","my-profile.show.stay-permit-expiry",3,"value"],[3,"opened","click"],[1,"clearfix"],["routerLink","edit",1,"btn","btn-primary","btn-icon","float-end","me-2"],[1,"material-icons"],["emailProperty","Email2",1,"profile-entry",3,"student"],["id","correspondence-address"],[1,"profile-entry",3,"address"],["id","billing-address"],["id","legal-representatives"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"id"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(i,r){1&i&&(e.YNc(0,de,8,7,"div",0),e.ALo(1,"async")),2&i&&e.Q6J("erzLet",e.VKq(3,fe,e.lcZ(1,1,r.profileService.profile$)))},dependencies:[l.sg,l.O5,c.rH,_.gY,_.Gk,_.gW,_.k9,u.e,A.O,T.H,C.k,P.O,w.g,z,$,F,l.Ov,l.uU,d.X$],styles:[".profile-content[_ngcontent-%COMP%]{padding-top:1rem}.profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}.profile-entries[_ngcontent-%COMP%]:not(:empty){border-top:1px solid rgb(222,222,222)}"],changeDetection:0})}return t})();var s=a(6223),x=a(8180),ue=a(4716),ge=a(1257),ye=a(6869),ve=a(5258);function he(t,o){if(1&t&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&t){const n=e.oxw(2).erzLet;e.xp6(1),e.hij(" ",n.student.AddressLine2," ")}}function xe(t,o){if(1&t&&(e.TgZ(0,"div",21),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Ze(t,o){if(1&t&&(e.TgZ(0,"div",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,"global.validation-errors."+n.error,n.params)," ")}}function be(t,o){1&t&&(e.TgZ(0,"div",23)(1,"span",24),e._uU(2,"Loading..."),e.qZA()())}function Me(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.onSubmit())}),e.TgZ(1,"div",4)(2,"p"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"address",5)(6,"div"),e._uU(7),e.qZA(),e.YNc(8,he,2,1,"div",6),e.TgZ(9,"div"),e._uU(10),e.qZA()()(),e.YNc(11,xe,3,4,"div",7),e.ALo(12,"async"),e.TgZ(13,"div",4)(14,"label",8),e._uU(15),e.ALo(16,"translate"),e.qZA(),e._UZ(17,"input",9),e.qZA(),e.TgZ(18,"div",4)(19,"label",10),e._uU(20),e.ALo(21,"translate"),e.qZA(),e._UZ(22,"input",11),e.TgZ(23,"small",12),e._uU(24),e.ALo(25,"translate"),e.qZA()(),e.TgZ(26,"div",4)(27,"label",13),e._uU(28),e.ALo(29,"translate"),e.qZA(),e._UZ(30,"input",14),e.ALo(31,"async"),e.YNc(32,Ze,3,4,"div",15),e.ALo(33,"async"),e.TgZ(34,"small",16),e._uU(35),e.ALo(36,"translate"),e.qZA()(),e.TgZ(37,"div",17)(38,"button",18),e.NdJ("click",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.cancel())}),e.ALo(39,"async"),e._uU(40),e.ALo(41,"translate"),e.qZA(),e.TgZ(42,"button",19),e.ALo(43,"async"),e._uU(44),e.ALo(45,"translate"),e.YNc(46,be,3,0,"div",20),e.ALo(47,"async"),e.qZA()()()}if(2&t){const n=e.oxw().erzLet,i=e.oxw();e.Q6J("formGroup",n.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,20,"my-profile.edit.address-changes-remark")),e.xp6(4),e.Oqu(n.student.AddressLine1),e.xp6(1),e.Q6J("ngIf",n.student.AddressLine2),e.xp6(2),e.AsE("",n.student.Zip||""," ",n.student.Location,""),e.xp6(1),e.Q6J("ngForOf",e.lcZ(12,22,i.formErrors$)),e.xp6(4),e.hij(" ",e.lcZ(16,24,"my-profile.edit.fields.phone-private")," "),e.xp6(5),e.hij(" ",e.lcZ(21,26,"my-profile.edit.fields.phone-mobile")," "),e.xp6(4),e.Oqu(e.lcZ(25,28,"my-profile.edit.fields.phone-mobile-hint")),e.xp6(4),e.hij(" ",e.lcZ(29,30,"my-profile.edit.fields.email2")," "),e.xp6(2),e.ekj("is-invalid",e.lcZ(31,32,i.email2Errors$).length>0),e.xp6(2),e.Q6J("ngForOf",e.lcZ(33,34,i.email2Errors$)),e.xp6(3),e.Oqu(e.lcZ(36,36,"my-profile.edit.fields.email2-hint")),e.xp6(3),e.Q6J("disabled",e.lcZ(39,38,i.saving$)),e.xp6(2),e.hij(" ",e.lcZ(41,40,"my-profile.edit.cancel")," "),e.xp6(2),e.Q6J("disabled",e.lcZ(43,42,i.saving$)),e.xp6(2),e.hij(" ",e.lcZ(45,44,"my-profile.edit.save")," "),e.xp6(2),e.Q6J("ngIf",e.lcZ(47,46,i.saving$))}}function Ae(t,o){if(1&t&&(e.TgZ(0,"div",1)(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Me,48,48,"form",2),e.qZA()),2&t){const n=o.erzLet;e.xp6(2),e.Oqu(e.lcZ(3,2,"my-profile.edit.title")),e.xp6(2),e.Q6J("ngIf",n.formGroup)}}const Te=function(t,o){return{formGroup:t,student:o}},Ce=[{path:"",component:M,children:[{path:"",component:me},{path:"edit",component:(()=>{class t{constructor(n,i,r,p,ze,Se){this.fb=n,this.router=i,this.toastService=r,this.translate=p,this.profileService=ze,this.personsService=Se,this.student$=this.profileService.profile$.pipe((0,g.U)(({student:Le})=>Le)),this.formGroup$=this.student$.pipe((0,g.U)(this.createFormGroup.bind(this)),(0,h.d)(1)),this.saving$=new f.X(!1),this.submitted$=new f.X(!1),this.email2Errors$=(0,ge.Z6)(this.formGroup$,this.submitted$,"email2")}cancel(){this.navigateBack()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,x.q)(1)).subscribe(n=>{if(n.valid){const{phonePrivate:i,phoneMobile:r,email2:p}=n.value;this.save(i?.trim()||null,r?.trim()||null,p||null)}})}createFormGroup(n){return this.fb.group({phonePrivate:[n.PhonePrivate],phoneMobile:[n.PhoneMobile],email2:[n.Email2,s.kI.email]})}save(n,i,r){this.saving$.next(!0),this.student$.pipe((0,x.q)(1),(0,v.w)(p=>this.personsService.update(p.Id,n,i,r)),(0,ue.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.profileService.reset(),this.toastService.success(this.translate.instant("my-profile.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(["/my-profile"])}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(s.QS),e.Y36(c.F0),e.Y36(ye.k),e.Y36(d.sK),e.Y36(m),e.Y36(ve.J))};static#t=this.\u0275cmp=e.Xpm({type:t,selectors:[["erz-my-profile-edit"]],decls:3,vars:8,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"mb-3"],[1,"text-muted"],[4,"ngIf"],["class","alert alert-danger",4,"ngFor","ngForOf"],["id","my-profile-phone-private",1,"form-label"],["id","my-profile-phone-private","formControlName","phonePrivate","type","tel",1,"form-control"],["id","my-profile-phone-mobile",1,"form-label"],["id","my-profile-phone-mobile","formControlName","phoneMobile","type","tel","aria-describedby","my-profile-phone-mobile-hint",1,"form-control"],["id","my-profile-phone-mobile-hint",1,"form-text"],["id","my-profile-email2",1,"form-label"],["id","my-profile-email2","formControlName","email2","type","email","aria-describedby","my-profile-email2-hint",1,"form-control"],["class","invalid-feedback",4,"ngFor","ngForOf"],["id","my-profile-email2-hint",1,"form-text"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(i,r){1&i&&(e.YNc(0,Ae,5,4,"div",0),e.ALo(1,"async"),e.ALo(2,"async")),2&i&&e.Q6J("erzLet",e.WLB(5,Te,e.lcZ(1,1,r.formGroup$),e.lcZ(2,3,r.student$)))},dependencies:[l.sg,l.O5,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,u.e,l.Ov,d.X$],changeDetection:0})}return t})()}]}];let Pe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=e.oAB({type:t});static#n=this.\u0275inj=e.cJS({imports:[c.Bz.forChild(Ce),c.Bz]})}return t})(),we=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=e.oAB({type:t});static#n=this.\u0275inj=e.cJS({imports:[Z.m,Pe]})}return t})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/main.js b/public/apps/webapp-schulverwaltung/main.js index 13a18573..76024ea2 100644 --- a/public/apps/webapp-schulverwaltung/main.js +++ b/public/apps/webapp-schulverwaltung/main.js @@ -1 +1 @@ -(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[179],{7483:(Pe,V,a)=>{"use strict";a.d(V,{De:()=>d,P2:()=>w,Ps:()=>P,Re:()=>p,W3:()=>R,dP:()=>O,df:()=>B,dw:()=>L,fr:()=>$,yY:()=>F});var t=a(3986);function d(q,ie){return ie.map(k=>k.Id===q.TestId?P(q,k):k)}function w(q,ie){return ie.map(k=>k.Id===q?{...k,IsPublished:!k.IsPublished}:k)}function L(q){const ie=function j(q){return q.Results?.map(ie=>null!==ie.Points?ie.Points:M).filter(ie=>ie>M)||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function p(q){return q.MaxPointsAdjusted||q.MaxPoints}function O(q){const ie=function f(q){return q.Results?.filter(ie=>null!==ie.GradeDesignation).map(ie=>Number(ie.GradeDesignation)).filter(ie=>!isNaN(ie))||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function R(q,ie){return ie.Results?.find(k=>k.StudentId===q)}function F(q,ie){return null===ie?null:ie.filter(k=>k.Id!==q)}function P(q,ie){const k=ie.Results?.filter(Te=>q.Id!==Te.Id)||[];return{...ie,Results:[...k,q]}}function B(q){return q.slice().sort((ie,k)=>k.Date.getTime()-ie.Date.getTime())}function $(q,ie){return ie?.find(k=>k.Id===q.GradingScaleId)||null}const M=-1},2324:(Pe,V,a)=>{"use strict";a.d(V,{G:()=>w});var t=a(9189),d=a(5301);class w{constructor(p){if(this.absences=p,0===p.length)throw new Error("Absences array is empty");this.date=(0,t.Z)(this.absences[0].LessonDateTimeFrom),this.dateString=(0,d.Z)(this.date,"yyyy-MM-dd"),this.studentId=this.absences[0].StudentRef.Id,this.studentFullName=this.absences[0].StudentFullName,this.studyClassNumber=this.absences[0].StudyClassNumber,this.lessonsCount=this.absences.length}}},7727:(Pe,V,a)=>{"use strict";a.d(V,{Ob:()=>O,MX:()=>F,HM:()=>B,pE:()=>P,EA:()=>R});var t=a(5301),d=a(2324),w=a(6747);class L extends Error{constructor(M,q){super(`TypeScript thought we could never end up here\n${q}`)}}var p=a(4011);function O(j){const M=function f(j){return j.reduce((M,q)=>{const ie=(0,t.Z)(q.LessonDateTimeFrom,"yyyy-MM-dd"),k=q.StudentRef.Id;return M[ie]||(M[ie]={}),M[ie][k]||(M[ie][k]=[]),M[ie][k].push(q),M},{})}(j);return Object.keys(M).reduce((q,ie)=>(Object.keys(M[ie]).forEach(k=>{q=[...q,new d.G(M[ie][k].sort(w.kM))]}),q),[])}function R(j,M){return[...j].sort(function $(j){return(M,q)=>{switch(j.primarySortKey){case"date":{const ie=M.date.getTime(),k=q.date.getTime();return ie===k?M.studentFullName.localeCompare(q.studentFullName):j.ascending?ie-k:k-ie}case"name":{const ie=j.ascending?M.studentFullName.localeCompare(q.studentFullName):q.studentFullName.localeCompare(M.studentFullName);return 0===ie?q.date.getTime()-M.date.getTime():ie}default:throw new L(j.primarySortKey,"Unhandled sort criteria")}}}(M))}function F(j){return j.reduce((M,q)=>M.concat(q.absences),[])}function P(j,M){return j.filter(q=>!M.some(({lessonIds:ie,personId:k})=>ie.includes(q.LessonRef.Id)&&k===q.StudentRef.Id))}function B(j,M){return(0,p.Z)([...j,...M],"Id")}},3449:(Pe,V,a)=>{"use strict";a.d(V,{ES:()=>w,Ov:()=>d,Oz:()=>L});var t=a(8484),d=function(p){return p.Present="present",p.Unapproved="unapproved",p.Absent="absent",p}(d||{});function w(p){switch(p){case d.Absent:return"cancel";case d.Unapproved:return"help";default:return"check_circle"}}class L{constructor(O,R,F,P){this.lessonPresence=O,this.presenceType=R,this.precedingAbsences=F,this.confirmationState=P,this.studentFullName=O.StudentFullName}get presenceCategory(){return(0,t.fv)(this.settings,this.confirmationState&&Number(this.confirmationState.Key))?d.Unapproved:(0,t.qX)(this.presenceType)?d.Absent:d.Present}get nextPresenceCategory(){return this.presenceCategory===d.Absent?d.Present:d.Absent}getNextPresenceType(O){return this.nextPresenceCategory===d.Absent?this.presenceCategory===d.Unapproved?this.presenceType:O.find(R=>(0,t.xK)(R,this.settings))||null:null}get canChangePresenceType(){return(0,t.NF)(this.lessonPresence,this.presenceType,this.settings)}get canChangeIncident(){return!(0,t.qX)(this.presenceType)}get showDesignation(){return!this.canChangePresenceType||this.presenceCategory===d.Absent&&!(0,t.xK)(this.presenceType,this.settings)||this.presenceCategory===d.Unapproved}get presenceCategoryIcon(){return w(this.presenceCategory)}get settings(){return window.schulverwaltung.settings}}},6747:(Pe,V,a)=>{"use strict";a.d(V,{In:()=>w,bL:()=>R,kM:()=>P,uP:()=>F});var t=a(3449),d=a(4011);function w(f,j){return null===f&&null===j||null!==f&&null!==j&&f.LessonRef.Id===j.LessonRef.Id&&f.EventDesignation===j.EventDesignation&&f.StudyClassNumber===j.StudyClassNumber&&f.TeacherInformation===j.TeacherInformation&&f.LessonDateTimeFrom.getTime()===j.LessonDateTimeFrom.getTime()&&f.LessonDateTimeTo.getTime()===j.LessonDateTimeTo.getTime()}function R(f,j,M,q,ie){return function p(f,j){return f?j.filter(M=>f.lessons.map(q=>q.LessonRef.Id).indexOf(M.LessonRef.Id)>=0).sort(B):[]}(f,j).map(k=>F(f,k,M,q,ie))}function F(f,j,M,q,ie){let k=null;j.TypeRef.Id&&(k=M.find(ye=>ye.Id===j.TypeRef.Id)||null);const Te=function O(f,j,M){return(0,d.Z)(f.filter(q=>q.StudentRef.Id===j.StudentRef.Id&&q.LessonRef.From&&q.LessonRef.From.toDateString()===M?.LessonDateTimeFrom.toDateString()&&q.LessonRef.Fromye.Key===j.ConfirmationStateId)),new t.Oz(j,k,Te,Se)}function P(f,j){const M=f.LessonDateTimeFrom.getTime(),q=j.LessonDateTimeFrom.getTime();return M-q==0?f.LessonDateTimeTo.getTime()-j.LessonDateTimeTo.getTime():M-q}function B(f,j){return f.StudentFullName.localeCompare(j.StudentFullName)}function $(f,j){return f.LessonRef.From&&f.LessonRef.To&&j.LessonRef.From&&j.LessonRef.To?f.LessonRef.From.getTime()-j.LessonRef.From.getTime()==0?f.LessonRef.To.getTime()-j.LessonRef.To.getTime():f.LessonRef.From.getTime()-j.LessonRef.From.getTime():0}},8484:(Pe,V,a)=>{"use strict";function d(B){return!(!B||!B.IsComment)}function w(B){return!(!B||!B.IsIncident)}function L(B){return!(!B||!(B.IsAbsence||B.IsDispensation||B.IsHalfDay))}function p(B,$){return!(!B||!$||B.Id!==$.absencePresenceTypeId)}function O(B,$){return!(!B||!$||$!==B.checkableAbsenceStateId)}function F(B,$,f){return!!(function t(B){return!B}($)&&null===B.ConfirmationStateId||d($)||w($)||L($)&&B.ConfirmationStateId===f.unconfirmedAbsenceStateId||O(f,B.ConfirmationStateId))}function P(B,$){return B?.IsAbsence?$.unconfirmedAbsenceStateId:null}a.d(V,{C3:()=>d,LO:()=>P,NF:()=>F,fv:()=>O,hm:()=>w,qX:()=>L,xK:()=>p})},2769:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>B,R:()=>f});var t=a(9862),d=a(6232),w=a(8504),L=a(6306),p=a(3942),O=a(5879),R=a(1523),F=a(6869),P=a(9515);function B(j,M={}){let q;return q=M instanceof t.LE?M:new t.LE({fromObject:M}),q.set("restConfig",JSON.stringify(j))}let f=(()=>{class j{constructor(q,ie,k){this.router=q,this.toastService=ie,this.translate=k}intercept(q,ie){const{config:k,params:Te}=function $(j){return{config:JSON.parse(j.get("restConfig")||"{}"),params:j.delete("restConfig")}}(q.params);return ie.handle(q.clone({params:Te})).pipe((0,L.K)(this.getErrorHandler(k)))}getErrorHandler(q){return ie=>{if(ie instanceof t.UA&&!q.disableErrorHandling&&(!q.disableErrorHandlingForStatus||!q.disableErrorHandlingForStatus.includes(ie.status)))switch(ie.status){case 401:return this.notifyError("noaccess"),this.router.navigate(["/unauthenticated"]),d.E;case 403:return this.notifyError("noaccess"),d.E;case 404:return this.notifyError("notfound"),d.E;case 0:case 503:case 504:return this.notifyError("unavailable"),d.E;case 409:return this.notifyConflictError(ie),d.E;default:return this.notifyError("server"),d.E}return(0,w._)(()=>ie)}}notifyError(q){this.toastService.error(this.translate.instant(`global.rest-errors.${q}-message`),this.translate.instant(`global.rest-errors.${q}-title`))}notifyConflictError(q){const ie=this.translate.instant("global.rest-errors.conflict-message"),k=this.parseConflictIssues(q);this.toastService.error(k.length>0?k.join("\n"):ie,this.translate.instant("global.rest-errors.conflict-title"))}parseConflictIssues(q){return Array.isArray(q.error?.Issues)?q.error.Issues.map(ie=>ie?.Message).filter(p.YO):[]}static#e=this.\u0275fac=function(ie){return new(ie||j)(O.LFG(R.F0),O.LFG(F.k),O.LFG(P.sK))};static#t=this.\u0275prov=O.Yz7({token:j,factory:j.\u0275fac})}return j})()},4141:(Pe,V,a)=>{"use strict";a.d(V,{L6:()=>P,Zr:()=>F});var t=a(5879),d=a(754),w=a(8121);const L=d.dt({de:d.dt({label:d.Z_,description:d.Z_}),fr:d.dt({label:d.Z_,description:d.Z_})}),p=d.IM(d.Z_,L),O=d.dt({roles:d.IX(d.Z_),types:d.IX(d.Z_)}),R=d.dt({substitutionsAdminLink:d.Z_}),F=d.dt({apiUrl:d.Z_,scriptsAndAssetsPath:d.Z_,paginationLimit:d.pk,absencePresenceTypeId:d.pk,latePresenceTypeId:d.pk,dispensationPresenceTypeId:d.pk,halfDayPresenceTypeId:d.pk,unconfirmedAbsenceStateId:d.pk,unexcusedAbsenceStateId:d.pk,excusedAbsenceStateId:d.pk,checkableAbsenceStateId:d.pk,lessonPresencesRefreshTime:d.pk,unconfirmedAbsencesRefreshTime:(0,w.Wx)(d.pk),personMasterDataReportId:d.pk,studentConfirmationReportId:d.pk,evaluateAbsencesReportId:d.pk,testsByCourseReportId:d.pk,testsBySubscriptionReportIdStudent:d.pk,testsBySubscriptionReportIdTeacher:d.pk,subscriptionDetailGroupId:d.pk,headerRoleRestriction:d.IM(d.Z_,d.Z_),notificationRefreshTime:d.pk,notificationTypes:p,notificationTypesAssignments:d.IX(O),eventlist:d.IM(d.Z_,d.Z_),dashboard:R,preventStudentAbsenceAfterLessonStart:d.IX(d.Z_)}),P=new t.OlP("Application Settings",{providedIn:"root",factory:()=>window.schulverwaltung.settings})},2628:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>O});var t=a(4141),d=a(5879),w=a(8173),L=a(6814),p=a(1523);let O=(()=>{class R{constructor(P,B){this.settings=P,this.storageService=B,this.avatarStyles={}}ngOnChanges(P){P.studentId&&(this.avatarStyles=this.buildAvatarStyles(this.studentId))}buildAvatarStyles(P){return{"background-image":[this.buildAvatarUrl(P),this.fallbackAvatarUrl].map(B=>`url(${B})`).join(", ")}}buildAvatarUrl(P){const B=this.storageService.getAccessToken()||"";return`${this.settings.apiUrl}/Files/personPictures/${P}?token=${B}`}get fallbackAvatarUrl(){return`${this.settings.scriptsAndAssetsPath}/assets/images/avatar-placeholder.png`}static#e=this.\u0275fac=function(B){return new(B||R)(d.Y36(t.L6),d.Y36(w.V))};static#t=this.\u0275cmp=d.Xpm({type:R,selectors:[["erz-avatar"]],inputs:{studentId:"studentId",link:"link",linkParams:"linkParams"},features:[d.TTD],decls:1,vars:5,consts:[[1,"avatar",3,"routerLink","queryParams","ngStyle"]],template:function(B,$){1&B&&d._UZ(0,"a",0),2&B&&(d.ekj("disabled",!$.link),d.Q6J("routerLink",$.link)("queryParams",$.linkParams)("ngStyle",$.avatarStyles))},dependencies:[L.PC,p.rH],styles:["[_nghost-%COMP%]{display:flex}.small[_nghost-%COMP%]{width:40px;min-width:40px;height:50px}.medium[_nghost-%COMP%]{width:58px;min-width:58px;height:75px}.large[_nghost-%COMP%]{width:100px;min-width:100px;height:130px}.avatar[_ngcontent-%COMP%]{flex:1;border:1px solid rgba(0,0,0,.25);background-repeat:no-repeat;background-size:cover;background-position:center}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}"]})}return R})()},7625:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>L});var t=a(5879),d=a(1523),w=a(9515);let L=(()=>{class p{constructor(){this.routerLink=[]}static#e=this.\u0275fac=function(F){return new(F||p)};static#t=this.\u0275cmp=t.Xpm({type:p,selectors:[["erz-backlink"]],inputs:{routerLink:"routerLink",queryParams:"queryParams"},decls:6,vars:5,consts:[[3,"routerLink","queryParams"],[1,"material-icons"],[1,"label"]],template:function(F,P){1&F&&(t.TgZ(0,"a",0)(1,"span",1),t._uU(2,"arrow_back"),t.qZA(),t.TgZ(3,"span",2),t._uU(4),t.ALo(5,"translate"),t.qZA()()),2&F&&(t.Q6J("routerLink",P.routerLink)("queryParams",P.queryParams),t.xp6(4),t.Oqu(t.lcZ(5,3,"global.back")))},dependencies:[d.rH,w.X$],styles:["[_nghost-%COMP%]{display:flex}a[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.3rem}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{text-decoration:none}a[_ngcontent-%COMP%]:hover .label[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:focus .label[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-color:#ea161f}"]})}return p})()},917:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>ae});var t=a(6223),d=a(5619),w=a(8645),L=a(2572),p=a(7398),O=a(7081),R=a(8180),F=a(9773),P=a(2181),B=a(4664),$=a(4716),f=a(3942),j=a(1257),M=a(4141),q=a(1140),ie=a(6163),k=a(5879),Te=a(1523),Se=a(6869),ye=a(9515),ce=a(8393),_e=a(5001),ve=a(905),xe=a(6023),be=a(6814),ke=a(6567);const vt=function(fe){return{count:fe}};function rt(fe,De){if(1&fe&&(k.TgZ(0,"div",4),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.erzLet;k.xp6(1),k.hij(" ",k.xi3(2,1,1===je?"open-absences.edit.lesson-selected":"open-absences.edit.lessons-selected",k.VKq(4,vt,je))," ")}}function Mt(fe,De){if(1&fe&&(k.TgZ(0,"div",19),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function qe(fe,De){if(1&fe&&(k.TgZ(0,"div",27),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function _t(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,qe,3,4,"div",26),k.ALo(2,"async"),k.BQk()),2&fe){const je=k.oxw(5);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,1,je.absenceTypeIdErrors$))}}function $e(fe,De){if(1&fe&&(k.TgZ(0,"div",23),k._UZ(1,"input",24),k.ALo(2,"async"),k.TgZ(3,"label",25),k._uU(4),k.qZA(),k.YNc(5,_t,3,3,"ng-container",11),k.ALo(6,"async"),k.qZA()),2&fe){const je=De.$implicit,Xe=De.index,tt=k.oxw(4);let wt;k.xp6(1),k.ekj("is-invalid",k.lcZ(2,7,tt.absenceTypeIdErrors$).length>0),k.Q6J("id","absence-type-"+Xe)("value",je.Id),k.xp6(2),k.Q6J("for","absence-type-"+Xe),k.xp6(1),k.hij(" ",je.Designation," "),k.xp6(1),k.Q6J("ngIf",(null==(wt=k.lcZ(6,9,tt.absenceTypes$))?null:wt.length)-1===Xe)}}const Ee=function(){return["/edit-absences"]};function ze(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,$e,7,11,"div",20),k.ALo(2,"async"),k.TgZ(3,"div",21),k._uU(4),k.ALo(5,"translate"),k.TgZ(6,"a",22),k._uU(7),k.ALo(8,"translate"),k.qZA()(),k.BQk()),2&fe){const je=k.oxw(3);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,4,je.absenceTypes$)),k.xp6(3),k.hij(" ",k.lcZ(5,6,"open-absences.edit.remark")," "),k.xp6(2),k.Q6J("routerLink",k.DdM(10,Ee)),k.xp6(1),k.hij(" ",k.lcZ(8,8,"edit-absences.title")," ")}}function J(fe,De){1&fe&&(k.TgZ(0,"div",28)(1,"span",29),k._uU(2,"Loading..."),k.qZA()())}function Q(fe,De){if(1&fe){const je=k.EpF();k.TgZ(0,"form",5),k.NdJ("ngSubmit",function(){k.CHM(je);const tt=k.oxw(2);return k.KtG(tt.onSubmit())}),k.YNc(1,Mt,3,4,"div",6),k.ALo(2,"async"),k.TgZ(3,"div",7)(4,"div",8),k._UZ(5,"input",9),k.TgZ(6,"label",10),k._uU(7),k.qZA(),k.YNc(8,ze,9,11,"ng-container",11),k.qZA(),k.TgZ(9,"div",12),k._UZ(10,"input",13),k.TgZ(11,"label",14),k._uU(12),k.qZA()()(),k.TgZ(13,"div",15)(14,"button",16),k.NdJ("click",function(){k.CHM(je);const tt=k.oxw(2);return k.KtG(tt.cancel())}),k.ALo(15,"async"),k._uU(16),k.ALo(17,"translate"),k.qZA(),k.TgZ(18,"button",17),k.ALo(19,"async"),k._uU(20),k.ALo(21,"translate"),k.YNc(22,J,3,0,"div",18),k.ALo(23,"async"),k.qZA()()()}if(2&fe){const je=k.oxw().erzLet,Xe=k.oxw();k.Q6J("formGroup",je.formGroup),k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,12,Xe.formErrors$)),k.xp6(4),k.Q6J("value",je.excusedState.Key),k.xp6(2),k.hij(" ",je.excusedState.Value," "),k.xp6(1),k.Q6J("ngIf",je.formGroup.get("absenceTypeId")),k.xp6(2),k.Q6J("value",je.unexcusedState.Key),k.xp6(2),k.hij(" ",je.unexcusedState.Value," "),k.xp6(2),k.Q6J("disabled",k.lcZ(15,14,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(17,16,"open-absences.edit.cancel")," "),k.xp6(2),k.Q6J("disabled",k.lcZ(19,18,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(21,20,"open-absences.edit.save")," "),k.xp6(2),k.Q6J("ngIf",k.lcZ(23,22,Xe.saving$))}}function oe(fe,De){if(1&fe&&(k.TgZ(0,"div",1)(1,"h1"),k._uU(2),k.ALo(3,"translate"),k.qZA(),k.YNc(4,rt,3,6,"div",2),k.ALo(5,"async"),k.YNc(6,Q,24,24,"form",3),k.qZA()),2&fe){const je=De.erzLet,Xe=k.oxw();k.xp6(2),k.Oqu(k.lcZ(3,3,"open-absences.edit.title")),k.xp6(2),k.Q6J("erzLet",k.lcZ(5,5,Xe.getSelectedCount())),k.xp6(2),k.Q6J("ngIf",je.formGroup&&je.unexcusedState&&je.excusedState)}}const se=function(fe,De,je){return{formGroup:fe,unexcusedState:De,excusedState:je}};let ae=(()=>{class fe{constructor(je,Xe,tt,wt,It,Je,Tt,et,Pt,zt,dn){this.fb=je,this.router=Xe,this.activatedRoute=tt,this.toastService=wt,this.translate=It,this.selectionService=Je,this.dropDownItemsService=Tt,this.presenceTypesService=et,this.updateService=Pt,this.settings=zt,this.openAbsencesEditService=dn,this.formGroup$=this.selectionService.selectedWithoutPresenceType$.pipe((0,p.U)(this.createFormGroup.bind(this)),(0,O.d)(1)),this.saving$=new d.X(!1),this.submitted$=new d.X(!1),this.formErrors$=(0,j.Z6)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,j.Z6)(this.formGroup$,this.submitted$,"absenceTypeId"),this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,O.d)(1)),this.excusedState$=(0,q.q)(this.confirmationStates$,this.settings.excusedAbsenceStateId),this.unexcusedState$=(0,q.q)(this.confirmationStates$,this.settings.unexcusedAbsenceStateId),this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.destroy$=new w.x}ngOnInit(){this.selectionService.selectedIds$.pipe((0,R.q)(1)).subscribe(je=>{0===je.length&&this.navigateBack()}),(0,j.ZX)(this.formGroup$,"confirmationValue").pipe((0,F.R)(this.destroy$)).subscribe(je=>{"number"==typeof je&&this.updateAbsenceTypeIdDisabled(je)}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,P.h)(f.Nf)),this.saving$]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe,tt])=>{tt?(je.disable(),Xe.disable()):(je.enable(),this.updateAbsenceTypeIdDisabled(je.value))}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe])=>je.setValue(Xe.Key))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,R.q)(1)).subscribe(je=>{if(je.valid){const{confirmationValue:Xe,absenceTypeId:tt}=je.value;this.save(Xe,tt)}})}cancel(){this.navigateBack()}getSelectedCount(){return this.selectionService.selectedLessons$.pipe((0,p.U)(je=>je.length))}createFormGroup(je){return this.fb.group(je.length>0?{confirmationValue:[null],absenceTypeId:[null,t.kI.required]}:{confirmationValue:[null]})}updateAbsenceTypeIdDisabled(je){(0,L.a)([(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,R.q)(1),(0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).subscribe(([Xe,tt])=>{je===tt.Key?Xe.enable():Xe.disable()})}save(je,Xe){this.saving$.next(!0),(0,L.a)([this.selectionService.selectedIds$.pipe((0,R.q)(1)),this.unexcusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,B.w)(([tt,wt])=>(0,L.a)(tt.map(({lessonIds:It,personId:Je,presenceTypeId:Tt})=>this.updateService.confirmLessonPresences(It,[Je],this.getNewAbsenceTypeId(Tt,je,Number(wt.Key),Xe),je)))),(0,$.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}getNewAbsenceTypeId(je,Xe,tt,wt){if(!je)throw new Error("absence type id cannot be null");return Xe===tt?this.settings.absencePresenceTypeId:je===this.settings.absencePresenceTypeId?wt:je}onSaveSuccess(){this.openAbsencesEditService?.updateAfterConfirm&&this.openAbsencesEditService.updateAfterConfirm(),this.toastService.success(this.translate.instant("open-absences.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(this.openAbsencesEditService?.confirmBackLink||[".."],{relativeTo:this.activatedRoute,queryParams:this.openAbsencesEditService?.confirmBackLinkParams})}static#e=this.\u0275fac=function(Xe){return new(Xe||fe)(k.Y36(t.QS),k.Y36(Te.F0),k.Y36(Te.gz),k.Y36(Se.k),k.Y36(ye.sK),k.Y36(ce.o),k.Y36(_e.R),k.Y36(ve.c),k.Y36(xe.O),k.Y36(M.L6),k.Y36(ie.m,8))};static#t=this.\u0275cmp=k.Xpm({type:fe,selectors:[["erz-confirm-absences"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited erz-container-padding-y",4,"erzLet"],[1,"erz-container","erz-container-limited","erz-container-padding-y"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[3,"formGroup","ngSubmit"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],[1,"form-check","mt-2","mb-3","pb-3","border-bottom"],["type","radio","id","excused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","excused",1,"form-check-label"],[4,"ngIf"],[1,"form-check","mt-3","mb-3","pb-3","border-bottom"],["type","radio","id","unexcused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","unexcused",1,"form-check-label"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],["class","form-check my-3",4,"ngFor","ngForOf"],[1,"remark"],[3,"routerLink"],[1,"form-check","my-3"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(Xe,tt){1&Xe&&(k.YNc(0,oe,7,7,"div",0),k.ALo(1,"async"),k.ALo(2,"async"),k.ALo(3,"async")),2&Xe&&k.Q6J("erzLet",k.kEZ(7,se,k.lcZ(1,1,tt.formGroup$),k.lcZ(2,3,tt.unexcusedState$),k.lcZ(3,5,tt.excusedState$)))},dependencies:[be.sg,be.O5,t._Y,t.Fj,t._,t.JJ,t.JL,t.sg,t.u,Te.rH,ke.e,be.Ov,ye.X$],changeDetection:0})}return fe})()},1133:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(5879),d=a(902),w=a(6223),L=a(253),p=a(9515);let O=(()=>{class R{constructor(){this.value=null,this.placeholder="shared.date-select.default-placeholder",this.minDate=null,this.valueChange=new t.vpe,this.componentId=(0,d.Z)("erz-date-select-")}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275cmp=t.Xpm({type:R,selectors:[["erz-date-select"]],inputs:{value:"value",placeholder:"placeholder",minDate:"minDate"},outputs:{valueChange:"valueChange"},decls:8,vars:10,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text","ngbDatepicker","",1,"form-control",3,"minDate","ngModel","click","ngModelChange"],["dp","ngbDatepicker"]],template:function(B,$){if(1&B){const f=t.EpF();t.TgZ(0,"div",0)(1,"span",1)(2,"i",2),t._uU(3,"calendar_today"),t.qZA()(),t.TgZ(4,"input",3,4),t.NdJ("click",function(){t.CHM(f);const M=t.MAs(5);return t.KtG(M.toggle())})("ngModelChange",function(M){return $.valueChange.emit(M)}),t.ALo(6,"translate"),t.ALo(7,"translate"),t.qZA()()}2&B&&(t.xp6(1),t.Q6J("id",$.componentId),t.xp6(3),t.Q6J("minDate",$.minDate)("ngModel",$.value),t.uIk("placeholder",t.lcZ(6,6,$.placeholder))("aria-label",t.lcZ(7,8,$.placeholder))("aria-describedby",$.componentId))},dependencies:[w.Fj,w.JJ,w.On,L.J4,p.X$]})}return R})()},6001:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(5879),d=a(6814),w=a(6223),L=a(363),p=a(9515);function O($,f){if(1&$){const j=t.EpF();t.TgZ(0,"div",5),t._uU(1),t.TgZ(2,"span",6),t.NdJ("click",function(){const ie=t.CHM(j).$implicit,k=t.oxw().clear;return t.KtG(k(ie))}),t._uU(3,"\xd7"),t.qZA()()}if(2&$){const j=f.$implicit;t.xp6(1),t.hij(" ",j.Value," ")}}function R($,f){1&$&&t.YNc(0,O,4,1,"div",4),2&$&&t.Q6J("ngForOf",f.items)}function F($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,M=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",M.selected),t.xp6(1),t.hij(" ",j.Group," ")}}function P($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,M=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",M.selected),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.values=[],this.valuesChange=new t.vpe}itemsChanged(){this.valuesChange.emit(this.values)}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-multiselect"]],inputs:{options:"options",values:"values"},outputs:{valuesChange:"valuesChange"},decls:5,vars:10,consts:[["groupBy","Group","bindValue","Key","bindLabel","Value","dropdownPosition","bottom",1,"multiselect",3,"items","multiple","selectableGroup","selectableGroupAsModel","closeOnSelect","ngModel","placeholder","clearable","ngModelChange","click","clear"],["ng-multi-label-tmp",""],["ng-optgroup-tmp",""],["ng-option-tmp",""],["class","ng-value",4,"ngFor","ngForOf"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","right",3,"click"],["type","checkbox",3,"id","ngModel"]],template:function(M,q){1&M&&(t.TgZ(0,"ng-select",0),t.NdJ("ngModelChange",function(k){return q.values=k})("click",function(){return q.itemsChanged()})("clear",function(){return q.itemsChanged()}),t.ALo(1,"translate"),t.YNc(2,R,1,1,"ng-template",1),t.YNc(3,F,2,3,"ng-template",2),t.YNc(4,P,2,3,"ng-template",3),t.qZA()),2&M&&(t.s9C("placeholder",t.lcZ(1,8,"shared.select.empty-option")),t.Q6J("items",q.options)("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("closeOnSelect",!1)("ngModel",q.values)("clearable",!0))},dependencies:[d.sg,w.Wl,w.JJ,w.On,L.w9,L.C5,L.ir,L.zB,p.X$]})}return $})()},4229:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>B});var t=a(5879),d=a(5619),w=a(2572),L=a(7398),p=a(6814),O=a(6223),R=a(9515);function F($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$){const j=t.oxw();t.Q6J("ngValue",null),t.xp6(1),t.hij(" ",t.lcZ(2,2,j.emptyLabel)," ")}}function P($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.qZA()),2&$){const j=f.$implicit;t.Q6J("ngValue",j),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.valueChange=new t.vpe,this.options$=new d.X([]),this.rawValue$=new d.X(null),this.value$=(0,w.a)([this.rawValue$,this.options$]).pipe((0,L.U)(([j,M])=>M&&M.find(q=>q.Key===j)||null))}ngOnChanges(j){j.value&&this.rawValue$.next(j.value.currentValue),j.options&&this.options$.next(j.options.currentValue)}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},features:[t.TTD],decls:5,vars:7,consts:[[1,"form-select",3,"tabindex","disabled","ngModel","ngModelChange"],[3,"ngValue",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(M,q){1&M&&(t.TgZ(0,"select",0),t.NdJ("ngModelChange",function(k){return q.valueChange.emit(k&&k.Key)}),t.ALo(1,"async"),t.YNc(2,F,3,4,"option",1),t.YNc(3,P,2,2,"option",2),t._uU(4," >\n"),t.qZA()),2&M&&(t.s9C("tabindex",q.tabindex),t.Q6J("disabled",q.disabled)("ngModel",t.lcZ(1,5,q.value$)),t.xp6(2),t.Q6J("ngIf",q.allowEmpty),t.xp6(1),t.Q6J("ngForOf",q.options))},dependencies:[p.sg,p.O5,O.YN,O.Kr,O.EJ,O.JJ,O.On,p.Ov,R.X$]})}return $})()},59:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>d});var t=a(5879);let d=(()=>{class w{constructor(){}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275cmp=t.Xpm({type:w,selectors:[["erz-spinner"]],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(O,R){1&O&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2),t._uU(3,"Loading..."),t.qZA()()())},styles:[".spinner-container[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]:not(.inline) .spinner-container[_ngcontent-%COMP%]{top:-131px;min-height:200px}.spinner-border[_ngcontent-%COMP%]{width:4rem;height:4rem}[_nghost-%COMP%]:not(.inline) .spinner-border[_ngcontent-%COMP%]{margin-top:100px}.small[_nghost-%COMP%] .spinner-border[_ngcontent-%COMP%]{width:2rem;height:2rem;--bs-spinner-vertical-align: -.2em;--bs-spinner-border-width: .15em}"]})}return w})()},3388:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>It});var t=a(8645),d=a(9773),w=a(7328),L=a(2572),p=a(2096),O=a(6232),R=a(4664),F=a(7921),P=a(3020),B=a(7398),$=a(4141),f=a(5879),j=a(7575),M=a(905),q=a(6869),ie=a(9515);let k=(()=>{class Je{constructor(et,Pt,zt,dn,Rn){this.settings=et,this.lessonPresencesService=Pt,this.presenceTypesService=zt,this.toastService=dn,this.translate=Rn,this.studentId$=new w.t(1),this.checkableAbsences$=this.getAbsences(this.loadCheckableAbsences.bind(this)),this.openAbsences$=this.getAbsences(this.loadOpenAbsences.bind(this)),this.excusedAbsences$=this.getAbsences(this.loadExcusedAbsences.bind(this)),this.unexcusedAbsences$=this.getAbsences(this.loadUnexcusedAbsences.bind(this)),this.incidents$=this.getAbsences(this.loadIncidents.bind(this)),this.halfDays$=this.getAbsences(this.loadHalfDays.bind(this)),this.counts$=this.getCounts()}setStudentId(et){this.studentId$.next(et)}getAbsences(et){return this.studentId$.pipe((0,R.w)(et),(0,F.O)(null),(0,P.B)({connector:()=>new w.t(1)}))}getCounts(){return this.studentId$.pipe((0,R.w)(et=>(0,L.a)([this.loadStatistics(et).pipe((0,F.O)(null)),this.openAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null)),this.checkableAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null))])),(0,B.U)(([et,Pt,zt])=>({openAbsences:Pt,checkableAbsences:zt,excusedAbsences:et?.TotalAbsencesValidExcuse??null,unexcusedAbsences:et?.TotalAbsencesWithoutExcuse??null,incidents:et?.TotalIncidents??null,halfDays:et?.TotalHalfDays??null})))}loadStatistics(et){return this.lessonPresencesService.getStatistics({student:et,educationalEvent:null,studyClass:null},null,0).pipe((0,R.w)(({entries:Pt})=>Pt.length>0?(0,p.of)(Pt[0]):(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),O.E)))}loadOpenAbsences(et){return this.lessonPresencesService.getListOfUnconfirmed(this.getBaseParams(et))}loadCheckableAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.checkableAbsenceStateId}`}})}loadExcusedAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.excusedAbsenceStateId}`}})}loadUnexcusedAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.unexcusedAbsenceStateId}`}})}loadIncidents(et){return this.presenceTypesService.incidentTypes$.pipe((0,B.U)(Pt=>({...this.getBaseParams(et),"filter.TypeRef":`;${Pt.map(zt=>zt.Id).join(";")}`})),(0,R.w)(Pt=>this.lessonPresencesService.getList({params:Pt})))}loadHalfDays(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.TypeRef":`=${this.settings.halfDayPresenceTypeId}`}})}getBaseParams(et){return{sort:"LessonDateTimeFrom.asc","filter.StudentRef":`=${et}`}}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.LFG($.L6),f.LFG(j.q),f.LFG(M.c),f.LFG(q.k),f.LFG(ie.sK))};static#t=this.\u0275prov=f.Yz7({token:Je,factory:Je.\u0275fac})}return Je})();var Te=a(4409),Se=a(8393),ye=a(6814),ce=a(253),_e=a(6567),ve=a(8898),xe=a(3036);function be(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.checkableAbsences,")")}}function ke(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("checkable-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,be,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.checkable-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.checkableAbsences)}}function vt(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.checkableAbsences$)}}function rt(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.openAbsences,")")}}function Mt(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("open-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,rt,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.open-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.openAbsences)}}function qe(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",13),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.openAbsences$)("selectionService",et.absencesSelectionService)}}function _t(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.excusedAbsences,")")}}function $e(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("excused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,_t,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.excused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.excusedAbsences)}}function Ee(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.excusedAbsences$)}}function ze(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.unexcusedAbsences,")")}}function J(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("unexcused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,ze,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.unexcused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.unexcusedAbsences)}}function Q(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function oe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.incidents,")")}}function se(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("incidents"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,oe,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.incidents")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.incidents)}}function ae(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.incidents$)}}function fe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(3).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.halfDays,")")}}function De(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw(2);const zt=f.MAs(2);return f.KtG(zt.toggle("half-days"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,fe,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw(2).erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.half-days")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.halfDays)}}function je(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const et=f.oxw(3);f.Q6J("absences$",et.absencesService.halfDays$)("displayPresenceType",!1)}}function Xe(Je,Tt){1&Je&&(f.TgZ(0,"ngb-panel",15),f.YNc(1,De,4,5,"ng-template",3),f.YNc(2,je,1,2,"ng-template",4),f.qZA())}function tt(Je,Tt){if(1&Je&&(f.ynx(0),f.TgZ(1,"ngb-accordion",null,1)(3,"ngb-panel",2),f.YNc(4,ke,4,5,"ng-template",3),f.YNc(5,vt,1,1,"ng-template",4),f.qZA(),f.TgZ(6,"ngb-panel",5),f.YNc(7,Mt,4,5,"ng-template",3),f.YNc(8,qe,1,2,"ng-template",4),f.qZA(),f.TgZ(9,"ngb-panel",6),f.YNc(10,$e,4,5,"ng-template",3),f.YNc(11,Ee,1,1,"ng-template",4),f.qZA(),f.TgZ(12,"ngb-panel",7),f.YNc(13,J,4,5,"ng-template",3),f.YNc(14,Q,1,2,"ng-template",4),f.qZA(),f.TgZ(15,"ngb-panel",8),f.YNc(16,se,4,5,"ng-template",3),f.YNc(17,ae,1,1,"ng-template",4),f.qZA(),f.YNc(18,Xe,3,0,"ngb-panel",9),f.ALo(19,"async"),f.qZA(),f.BQk()),2&Je){const et=f.oxw();f.xp6(18),f.Q6J("ngIf",f.lcZ(19,1,et.halfDayActive$))}}const wt=function(Je){return{absenceCounts:Je}};let It=(()=>{class Je{constructor(et,Pt,zt,dn){this.state=et,this.presenceTypesService=Pt,this.absencesService=zt,this.absencesSelectionService=dn,this.halfDayActive$=this.presenceTypesService.halfDayActive$,this.destroy$=new t.x,this.state.currentDossier$.next("absences")}ngOnInit(){this.state.studentId$.pipe((0,d.R)(this.destroy$)).subscribe(et=>this.absencesService.setStudentId(et))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.Y36(Te.j),f.Y36(M.c),f.Y36(k),f.Y36(Se.o))};static#t=this.\u0275cmp=f.Xpm({type:Je,selectors:[["erz-dossier-absences"]],features:[f._Bn([k])],decls:2,vars:5,consts:[[4,"erzLet"],["acc","ngbAccordion"],["id","checkable-absences"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","open-absences"],["id","excused-absences"],["id","unexcused-absences"],["id","incidents"],["id","half-days",4,"ngIf"],[3,"opened","click"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService"],[3,"absences$","displayPresenceType"],["id","half-days"]],template:function(Pt,zt){1&Pt&&(f.YNc(0,tt,20,3,"ng-container",0),f.ALo(1,"async")),2&Pt&&f.Q6J("erzLet",f.VKq(3,wt,f.lcZ(1,1,zt.absencesService.counts$)))},dependencies:[ye.O5,ce.gY,ce.Gk,ce.gW,ce.k9,_e.e,ve.H,xe.u,ye.Ov,ie.X$],changeDetection:0})}return Je})()},8705:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ce});var t=a(5879),d=a(4409),w=a(6814),L=a(253),p=a(6567),O=a(8898),R=a(1442),F=a(9949),P=a(8075),B=a(9515);function $(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe),t.oxw(2);const ke=t.MAs(3);return t.KtG(ke.toggle("legal-representatives"))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&_e&&(t.Q6J("opened",ve.opened),t.xp6(1),t.hij(" ",t.lcZ(2,2,"shared.profile.legal-representation")," "))}function f(_e,ve){1&_e&&t._UZ(0,"erz-student-dossier-legal-representative",10),2&_e&&t.Q6J("person",ve.$implicit)}function j(_e,ve){if(1&_e&&t.YNc(0,f,1,1,"erz-student-dossier-legal-representative",9),2&_e){const xe=t.oxw(2).erzLet;t.Q6J("ngForOf",xe.profile.legalRepresentativePersons)}}function M(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",5),t.YNc(1,$,3,4,"ng-template",6),t.YNc(2,j,1,1,"ng-template",7),t.qZA())}function q(_e,ve){if(1&_e&&(t.ynx(0),t._uU(1),t.BQk()),2&_e){const xe=t.oxw(2).index;t.xp6(1),t.Oqu(xe+1)}}function ie(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe);const ke=t.oxw().index;t.oxw();const vt=t.MAs(3);return t.KtG(vt.toggle("apprenticeship-company-"+ke))}),t._uU(1),t.ALo(2,"translate"),t.YNc(3,q,2,1,"ng-container",12),t.qZA()}if(2&_e){const xe=ve.opened,be=t.oxw(2).erzLet;t.Q6J("opened",xe),t.xp6(1),t.hij(" ",t.lcZ(2,3,"shared.profile.apprenticeship-company")," "),t.xp6(2),t.Q6J("ngIf",be.profile.apprenticeshipCompanies.length>1)}}function k(_e,ve){if(1&_e&&t._UZ(0,"erz-student-dossier-apprenticeship-company",13),2&_e){const xe=t.oxw().$implicit;t.Q6J("company",xe)}}function Te(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",11),t.YNc(1,ie,4,5,"ng-template",6),t.YNc(2,k,1,1,"ng-template",7),t.qZA()),2&_e&&t.Q6J("id","apprenticeship-company-"+ve.index)}function Se(_e,ve){if(1&_e&&(t.ynx(0),t._UZ(1,"erz-student-dossier-address",1),t.TgZ(2,"ngb-accordion",null,2),t.YNc(4,M,3,0,"ngb-panel",3),t.YNc(5,Te,3,1,"ngb-panel",4),t.qZA(),t.BQk()),2&_e){const xe=ve.erzLet;t.xp6(1),t.Q6J("student",xe.profile.student),t.xp6(3),t.Q6J("ngIf",xe.profile.legalRepresentativePersons.length>0),t.xp6(1),t.Q6J("ngForOf",xe.profile.apprenticeshipCompanies)}}const ye=function(_e){return{profile:_e}};let ce=(()=>{class _e{constructor(xe){this.state=xe,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(t.Y36(d.j))};static#t=this.\u0275cmp=t.Xpm({type:_e,selectors:[["erz-dossier-addresses"]],decls:2,vars:5,consts:[[4,"erzLet"],[1,"profile-entry",3,"student"],["acc","ngbAccordion"],["id","legal-representatives",4,"ngIf"],[3,"id",4,"ngFor","ngForOf"],["id","legal-representatives"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"id"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(be,ke){1&be&&(t.YNc(0,Se,6,3,"ng-container",0),t.ALo(1,"async")),2&be&&t.Q6J("erzLet",t.VKq(3,ye,t.lcZ(1,1,ke.state.profile$)))},dependencies:[w.sg,w.O5,L.gY,L.Gk,L.gW,L.k9,p.e,O.H,R.k,F.O,P.g,w.Ov,B.X$],styles:[".profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}"],changeDetection:0})}return _e})()},5841:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>B});var t=a(8645),d=a(3986),w=a(5879),L=a(8405);function p($,f){if(1&$){const j=w.EpF();w.TgZ(0,"erz-student-dossier-entry-header",7),w.NdJ("click",function(){w.CHM(j);const q=w.oxw().index,ie=w.MAs(2);return w.KtG(ie.toggle("course-"+q))}),w._UZ(1,"erz-dossier-grades-course-header",8),w.qZA()}if(2&$){const j=f.opened,M=w.oxw().$implicit;w.Q6J("opened",j),w.xp6(1),w.Q6J("designation",M.course.Designation)("finalGrade",M.finalGrade)("grading",M.grading)("gradingScale",M.gradingScale)("average",M.average)}}function O($,f){if(1&$&&w._UZ(0,"erz-dossier-course-tests",9),2&$){const j=w.oxw().$implicit,M=w.oxw(2);w.Q6J("decoratedCourse",j)("studentId",M.studentId)("gradingScales",M.gradingScales)("isEditable",M.isEditable)}}function R($,f){if(1&$&&(w.TgZ(0,"div")(1,"ngb-accordion",null,3)(3,"ngb-panel",4),w.YNc(4,p,2,6,"ng-template",5),w.YNc(5,O,1,4,"ng-template",6),w.qZA()()()),2&$){const j=f.index;w.xp6(3),w.Q6J("id","course-"+j)}}function F($,f){if(1&$&&(w.ynx(0),w.YNc(1,R,6,1,"div",2),w.ALo(2,"async"),w.BQk()),2&$){const j=w.oxw();w.xp6(1),w.Q6J("ngForOf",w.lcZ(2,2,j.decoratedCoursesSubject$))("ngForTrackBy",j.trackByCourseId)}}function P($,f){1&$&&(w.TgZ(0,"p",10),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"dossier.no-courses")," "))}let B=(()=>{class ${constructor(j){this.dossierGradeService=j,this.isEditable=!0,this.decoratedCoursesSubject$=new t.x}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}trackByCourseId(j,M){return M.course.Id}decorateCourses(){return this.courses?.map(j=>{const M=this.dossierGradeService.getFinalGradeForStudent(j,this.studentId),q=this.dossierGradeService.getGradesForStudent(j,this.studentId,this.gradingScales);return{course:j,finalGrade:M,grading:this.dossierGradeService.getGradingForStudent(j,this.studentId),gradingScale:this.dossierGradeService.getGradingScaleOfCourse(j,this.gradingScales),average:M?.AverageTestResult||(0,d.S)(q)}})}static#e=this.\u0275fac=function(M){return new(M||$)(w.Y36(L.S))};static#t=this.\u0275cmp=w.Xpm({type:$,selectors:[["erz-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},features:[w.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noCourses",""],[4,"ngFor","ngForOf","ngForTrackBy"],["acc","ngbAccordion"],[3,"id"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],[3,"designation","finalGrade","grading","gradingScale","average"],[3,"decoratedCourse","studentId","gradingScales","isEditable"],["data-testid","message-no-courses",1,"py-3"]],template:function(M,q){if(1&M&&(w.YNc(0,F,3,4,"ng-container",0),w.YNc(1,P,3,3,"ng-template",null,1,w.W1O)),2&M){const ie=w.MAs(2);w.Q6J("ngIf",(null==q.courses?null:q.courses.length)>0)("ngIfElse",ie)}}})}return $})()},9608:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>F});var t=a(5879),d=a(6814),w=a(1523),L=a(2628),p=a(7625);function O(P,B){if(1&P&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&P){const $=t.oxw();t.xp6(1),t.hij("(",$.student.Gender,")")}}function R(P,B){if(1&P&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"date"),t.qZA()),2&P){const $=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,$.student.Birthdate,"dd.MM.yyyy")," ")}}let F=(()=>{class P{constructor(){this.link="/"}static#e=this.\u0275fac=function(f){return new(f||P)};static#t=this.\u0275cmp=t.Xpm({type:P,selectors:[["erz-student-backlink"]],inputs:{link:"link",queryParams:"queryParams",studentId:"studentId",studentName:"studentName",student:"student"},decls:9,vars:6,consts:[[1,"d-flex","flex-column"],[1,"mb-3",3,"routerLink","queryParams"],[1,"d-flex","flex-row","align-items-center"],[1,"me-3","medium",3,"studentId"],["class","gender",4,"ngIf"],["class","birthdate",4,"ngIf"],[1,"gender"],[1,"birthdate"]],template:function(f,j){1&f&&(t.TgZ(0,"div",0),t._UZ(1,"erz-backlink",1),t.TgZ(2,"div",2),t._UZ(3,"erz-avatar",3),t.TgZ(4,"div",0)(5,"h1"),t._uU(6),t.YNc(7,O,2,1,"span",4),t.qZA(),t.YNc(8,R,3,4,"div",5),t.qZA()()()),2&f&&(t.xp6(1),t.Q6J("routerLink",j.link)("queryParams",j.queryParams),t.xp6(2),t.Q6J("studentId",j.studentId),t.xp6(3),t.hij(" ",j.student?j.student.FullName:j.studentName," "),t.xp6(1),t.Q6J("ngIf",j.student),t.xp6(1),t.Q6J("ngIf",j.student))},dependencies:[d.O5,w.rH,L.A,p.I,d.uU],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h1[_ngcontent-%COMP%]{margin:0;display:flex;align-items:baseline}.gender[_ngcontent-%COMP%]{font-size:1rem;font-weight:300;margin-left:1.5ch}.birthdate[_ngcontent-%COMP%]{color:#adb5bd}"],changeDetection:0})}return P})()},3036:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>oe});var t=a(7328),d=a(5619),w=a(2572),L=a(2096),p=a(2689),O=a(7921),R=a(7081),F=a(7398),P=a(2181),B=a(4664),$=a(8180),f=a(3942),j=a(6100),M=a(5879),q=a(905),ie=a(6814),k=a(1523),Te=a(6567),Se=a(59),ye=a(9515),ce=a(238);const _e=["checkbox"];function ve(se,ae){if(1&se&&(M.TgZ(0,"a",16)(1,"i",12),M._uU(2,"description"),M.qZA()()),2&se){const fe=M.oxw(4);M.ekj("disabled",!fe.reportUrl),M.Q6J("href",fe.reportUrl,M.LSH)}}function xe(se,ae){if(1&se&&(M.TgZ(0,"a",17),M.ALo(1,"async"),M.TgZ(2,"i",12),M._uU(3,"mail"),M.qZA()()),2&se){const fe=M.oxw(4);M.MGl("href","mailto:",M.lcZ(1,1,fe.mailTo$),"",M.LSH)}}function be(se,ae){if(1&se&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&se){const fe=M.oxw(4);M.xp6(1),M.hij(" ",fe.defaultAbsenceSelectionMessage," ")}}function ke(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",5),M.NdJ("click",function(je){M.CHM(fe);const Xe=M.MAs(3),tt=M.oxw(3);return M.KtG(tt.onRowClick(je,Xe))}),M.TgZ(1,"div",6)(2,"input",7,8),M.NdJ("change",function(je){M.CHM(fe);const Xe=M.oxw(3);return M.KtG(Xe.toggleAll(je.target.checked))}),M.ALo(4,"async"),M.qZA()(),M.TgZ(5,"div",9),M._uU(6),M.ALo(7,"translate"),M.qZA(),M.TgZ(8,"div",10)(9,"a",11),M.ALo(10,"async"),M.TgZ(11,"i",12),M._uU(12,"edit"),M.qZA()(),M.YNc(13,ve,3,3,"a",13),M.YNc(14,xe,4,3,"a",14),M.qZA(),M.YNc(15,be,2,1,"div",15),M.ALo(16,"async"),M.qZA()}if(2&se){const fe=M.oxw(3);let De;M.xp6(2),M.Q6J("checked",M.lcZ(4,8,fe.allSelected$)),M.xp6(4),M.Oqu(M.lcZ(7,10,"open-absences.detail.all")),M.xp6(3),M.ekj("disabled",0===M.lcZ(10,12,fe.selectionService.selection$).length),M.s9C("routerLink",fe.confirmLink),M.xp6(4),M.Q6J("ngIf",fe.reportAvailable),M.xp6(1),M.Q6J("ngIf",fe.displayEmail),M.xp6(1),M.Q6J("ngIf",fe.defaultAbsenceSelectionMessage&&(null==(De=M.lcZ(16,14,fe.selectionService.selectedWithoutPresenceType$))?null:De.length)>0)}}function vt(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",6)(1,"input",7,29),M.NdJ("change",function(){M.CHM(fe);const je=M.oxw().$implicit,Xe=M.oxw(3);return M.KtG(Xe.selectionService.toggle(je))}),M.ALo(3,"async"),M.qZA()()}if(2&se){const fe=M.oxw().$implicit,De=M.oxw(3);M.xp6(1),M.Q6J("checked",M.lcZ(3,1,De.selectionService.isSelected$(fe)))}}function rt(se,ae){if(1&se&&(M.ynx(0),M._uU(1),M.BQk()),2&se){const fe=M.oxw().$implicit;M.xp6(1),M.hij(", ",fe.StudyClassNumber,"")}}function Mt(se,ae){if(1&se&&(M.TgZ(0,"div",32),M._uU(1),M.qZA()),2&se){const fe=M.oxw().erzLet;M.xp6(1),M.hij(" ",fe," ")}}function qe(se,ae){1&se&&(M.TgZ(0,"div",33),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&se&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"my-absences.show.confirm-presence-type")," "))}function _t(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,Mt,2,1,"div",30),M.YNc(2,qe,3,3,"div",31),M.BQk()),2&se){const fe=ae.erzLet,De=M.oxw(4);M.xp6(1),M.Q6J("ngIf",fe),M.xp6(1),M.Q6J("ngIf",De.displayPresenceType&&!fe&&De.defaultAbsenceSelectionMessage)}}function $e(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",19),M.NdJ("click",function(je){const tt=M.CHM(fe).index,wt=M.oxw(3);return M.KtG(wt.onRowClick(je,tt))}),M.YNc(1,vt,4,3,"div",20),M.ALo(2,"async"),M.TgZ(3,"div",21),M._uU(4),M.YNc(5,rt,2,1,"ng-container",22),M.qZA(),M.TgZ(6,"div",23),M._uU(7),M.ALo(8,"date"),M.ALo(9,"date"),M.qZA(),M.TgZ(10,"div",24),M._uU(11),M.qZA(),M.YNc(12,_t,3,2,"ng-container",25),M.ALo(13,"async"),M.TgZ(14,"div",26),M._uU(15),M.ALo(16,"date"),M.qZA(),M.TgZ(17,"div",27),M._uU(18),M.ALo(19,"erzDaysDifference"),M.qZA(),M.TgZ(20,"div",28),M._uU(21),M.ALo(22,"date"),M.ALo(23,"erzDaysDifference"),M.qZA()()}if(2&se){const fe=ae.$implicit,De=M.oxw(3);M.xp6(1),M.Q6J("ngIf",M.lcZ(2,11,De.editable$)),M.xp6(3),M.hij(" ",fe.EventDesignation,""),M.xp6(1),M.Q6J("ngIf",fe.StudyClassNumber),M.xp6(2),M.AsE(" ",M.xi3(8,13,fe.LessonDateTimeFrom,"HH:mm"),"\u2013",M.xi3(9,16,fe.LessonDateTimeTo,"HH:mm")," "),M.xp6(4),M.hij(" ",fe.TeacherInformation," "),M.xp6(1),M.Q6J("erzLet",M.lcZ(13,19,De.getPresenceTypeDesignation(fe))),M.xp6(3),M.hij(" ",M.xi3(16,21,fe.LessonDateTimeFrom,"dd.MM.yyyy")," "),M.xp6(3),M.hij(" ",M.lcZ(19,24,fe.LessonDateTimeFrom)," "),M.xp6(3),M.AsE(" ",M.xi3(22,26,fe.LessonDateTimeFrom,"dd.MM.yyyy"),", ",M.lcZ(23,29,fe.LessonDateTimeFrom)," ")}}function Ee(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,ke,17,16,"div",3),M.ALo(2,"async"),M.YNc(3,$e,24,31,"div",4),M.ALo(4,"async"),M.BQk()),2&se){const fe=M.oxw(2);M.xp6(1),M.Q6J("ngIf",M.lcZ(2,2,fe.editable$)),M.xp6(2),M.Q6J("ngForOf",M.lcZ(4,4,fe.lessonPresences$))}}function ze(se,ae){1&se&&(M.TgZ(0,"p",34),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&se&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"shared.profile.no-absences")))}function J(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,Ee,5,6,"ng-container",0),M.ALo(2,"async"),M.YNc(3,ze,3,3,"ng-template",null,2,M.W1O),M.BQk()),2&se){const fe=M.MAs(4),De=M.oxw();let je;M.xp6(1),M.Q6J("ngIf",(null==(je=M.lcZ(2,2,De.lessonPresences$))?null:je.length)>0)("ngIfElse",fe)}}function Q(se,ae){1&se&&M._UZ(0,"erz-spinner",35)}let oe=(()=>{class se{constructor(fe){this.presenceTypesService=fe,this.selectionService=null,this.displayPresenceType=!0,this.defaultAbsenceSelectionMessage=null,this.reportUrl=null,this.reportAvailable=!1,this.confirmLink="confirm",this.displayEmail=!1,this.lessonPresences$$=new t.t(1),this.lessonPresences$=this.lessonPresences$$.pipe((0,p.B)(),(0,O.O)(null),(0,R.d)(1)),this.loading$=this.lessonPresences$.pipe((0,F.U)((0,f.ff)(j.kJ))),this.selectionService$=new t.t(1),this.editable$=this.selectionService$.pipe((0,F.U)(()=>!0),(0,O.O)(!1)),this.displayPresenceType$=new d.X(!0),this.allSelected$=(0,w.a)([this.lessonPresences$.pipe((0,P.h)(f.Nf)),this.selectionService$.pipe((0,B.w)(De=>De.selection$))]).pipe((0,F.U)(([De,je])=>De.length===je.length))}ngOnChanges(fe){fe.absences$&&this.lessonPresences$$.next(fe.absences$.currentValue),fe.selectionService&&fe.selectionService.currentValue&&(fe.selectionService.currentValue.clear(),this.selectionService$.next(fe.selectionService.currentValue)),fe.displayPresenceType&&this.displayPresenceType$.next(fe.displayPresenceType.currentValue)}toggleAll(fe){fe?this.lessonPresences$.pipe((0,$.q)(1)).subscribe(De=>this.selectionService?.clear(De)):this.selectionService?.clear()}onRowClick(fe,De){if(0===this.checkboxes.length)return;let je;je="number"==typeof De?this.checkboxes.toArray()[De].nativeElement:De,fe.target!==je&&!fe.target.closest(".buttons")&&je.click()}getPresenceTypeDesignation(fe){return this.displayPresenceType$.pipe((0,B.w)(De=>De?this.presenceTypesService.displayedTypes$:(0,L.of)([])),(0,F.U)(De=>fe.TypeRef.Id&&De.find(je=>je.Id===fe.TypeRef.Id)?.Designation||null))}static#e=this.\u0275fac=function(De){return new(De||se)(M.Y36(q.c))};static#t=this.\u0275cmp=M.Xpm({type:se,selectors:[["erz-student-dossier-absences"]],viewQuery:function(De,je){if(1&De&&M.Gf(_e,5),2&De){let Xe;M.iGM(Xe=M.CRH())&&(je.checkboxes=Xe)}},inputs:{absences$:"absences$",selectionService:"selectionService",displayPresenceType:"displayPresenceType",defaultAbsenceSelectionMessage:"defaultAbsenceSelectionMessage",reportUrl:"reportUrl",reportAvailable:"reportAvailable",confirmLink:"confirmLink",displayEmail:"displayEmail",mailTo$:"mailTo$"},features:[M.TTD],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],["noAbsences",""],["class","absence-all",3,"click",4,"ngIf"],["class","absence-entry",3,"click",4,"ngFor","ngForOf"],[1,"absence-all",3,"click"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["allCheckbox",""],[1,"all"],[1,"buttons"],[1,"edit","btn","btn-primary","btn-icon","me-2",3,"routerLink"],[1,"material-icons"],["class","report btn btn-primary btn-icon me-2","target","_blank",3,"disabled","href",4,"ngIf"],["class","mail btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["class","validation",4,"ngIf"],["target","_blank",1,"report","btn","btn-primary","btn-icon","me-2",3,"href"],["target","_blank",1,"mail","btn","btn-primary","btn-icon","me-2",3,"href"],[1,"validation"],[1,"absence-entry",3,"click"],["class","checkbox",4,"ngIf"],[1,"lesson-class"],[4,"ngIf"],[1,"time","pe-2"],[1,"teacher"],[4,"erzLet"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["checkbox",""],["class","presence-type",4,"ngIf"],["class","presence-type confirm",4,"ngIf"],[1,"presence-type"],[1,"presence-type","confirm"],[1,"mx-3"],[1,"inline","d-block","mb-3"]],template:function(De,je){if(1&De&&(M.YNc(0,J,5,4,"ng-container",0),M.ALo(1,"async"),M.YNc(2,Q,1,0,"ng-template",null,1,M.W1O)),2&De){const Xe=M.MAs(3);M.Q6J("ngIf",!1===M.lcZ(1,2,je.loading$))("ngIfElse",Xe)}},dependencies:[ie.sg,ie.O5,k.rH,Te.e,Se.O,ie.Ov,ie.uU,ye.X$,ce.Q],styles:['.absence-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons" "validation validation validation";grid-template-columns:min-content 1fr min-content}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.absence-entry[_ngcontent-%COMP%]:first-child{padding-top:0}.absence-all[_ngcontent-%COMP%] + .absence-entry[_ngcontent-%COMP%]{padding-top:1rem}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.buttons[_ngcontent-%COMP%]{grid-area:buttons;display:flex}.validation[_ngcontent-%COMP%]{grid-area:validation}.validation[_ngcontent-%COMP%], .presence-type.confirm[_ngcontent-%COMP%]{color:#d01018}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return se})()},1442:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>R});var t=a(5879),d=a(6814);function w(F,P){if(1&F&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.hij(" ",B.student.AddressLine2,"")}}function L(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhonePrivate,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhonePrivate," ")}}function p(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhoneMobile,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhoneMobile," ")}}function O(F,P){if(1&F&&(t.TgZ(0,"a",2),t._uU(1),t.qZA()),2&F){const B=t.oxw();t.MGl("href","mailto:",B.email,"",t.LSH),t.xp6(1),t.hij(" ",B.email," ")}}let R=(()=>{class F{constructor(){this.emailProperty="DisplayEmail"}get postalCode(){return"PostalCode"in this.student?this.student.PostalCode:this.student.Zip}get email(){return"Email2"===this.emailProperty&&"Email2"in this.student?this.student.Email2||null:this.student.DisplayEmail}static#e=this.\u0275fac=function($){return new($||F)};static#t=this.\u0275cmp=t.Xpm({type:F,selectors:[["erz-student-dossier-address"]],inputs:{student:"student",emailProperty:"emailProperty"},decls:9,vars:7,consts:[[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"]],template:function($,f){1&$&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,w,3,1,"ng-container",0),t._uU(4),t._UZ(5,"br"),t.YNc(6,L,4,2,"ng-container",0),t.YNc(7,p,4,2,"ng-container",0),t.YNc(8,O,2,2,"a",1),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",f.student.AddressLine1,""),t.xp6(2),t.Q6J("ngIf",f.student.AddressLine2),t.xp6(1),t.AsE(" ",f.postalCode||""," ",f.student.Location,""),t.xp6(2),t.Q6J("ngIf",f.student.PhonePrivate),t.xp6(1),t.Q6J("ngIf",f.student.PhoneMobile),t.xp6(1),t.Q6J("ngIf",f.email))},dependencies:[d.O5],changeDetection:0})}return F})()},8075:(Pe,V,a)=>{"use strict";a.d(V,{g:()=>ye});var t=a(5879),d=a(6814),w=a(9515),L=a(9753),p=a(500);function O(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyName)}}function R(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyNameAddition)}}function F(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",ve.company.apprenticeshipManager.Lastname||""," ",ve.company.apprenticeshipManager.Firstname||"","")}}function P(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine1)}}function B(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine2)}}function $(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE("",ve.company.apprenticeshipManager.PostalCode," ",ve.company.apprenticeshipManager.Location,"")}}function f(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","tel:",ve.company.apprenticeshipManager.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.PhoneBusiness)}}function j(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.apprenticeshipManager),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.apprenticeshipManager))}}function M(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t._UZ(4,"br"),t._uU(5),t.ALo(6,"date"),t.ALo(7,"date"),t.qZA()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,4,"shared.profile.apprenticeship-period"),"",t.xi3(3,6,":",":"),""),t.xp6(4),t.AsE(" ",t.xi3(6,9,ve.company.apprenticeshipContract.ContractDateFrom,"dd.MM.yyyy"),"\u2013",t.xi3(7,12,ve.company.apprenticeshipContract.ContractDateTo,"dd.MM.yyyy"),"\n")}}function q(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.AsE(" ",ve.company.jobTrainer.Lastname||""," ",ve.company.jobTrainer.Firstname||"","")}}function ie(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneBusiness)}}function k(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneMobile)}}function Te(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.jobTrainer),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.jobTrainer))}}function Se(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t.TgZ(4,"address"),t.YNc(5,q,3,2,"ng-container",0),t.YNc(6,ie,4,2,"ng-container",0),t.YNc(7,k,4,2,"ng-container",0),t.YNc(8,Te,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,6,"shared.profile.job-trainer"),"",t.xi3(3,8,":",":")," "),t.xp6(4),t.Q6J("ngIf",ve.company.jobTrainer.Lastname||ve.company.jobTrainer.Firstname),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,11,ve.company.jobTrainer))}}let ye=(()=>{class ce{constructor(){}static#e=this.\u0275fac=function(xe){return new(xe||ce)};static#t=this.\u0275cmp=t.Xpm({type:ce,selectors:[["erz-student-dossier-apprenticeship-company"]],inputs:{company:"company"},decls:12,vars:12,consts:[[4,"ngIf"],["class","subentry",4,"ngIf"],[3,"href"],[1,"subentry"]],template:function(xe,be){1&xe&&(t.TgZ(0,"address"),t.YNc(1,O,3,1,"ng-container",0),t.YNc(2,R,3,1,"ng-container",0),t.YNc(3,F,3,2,"ng-container",0),t.YNc(4,P,3,1,"ng-container",0),t.YNc(5,B,3,1,"ng-container",0),t.YNc(6,$,3,2,"ng-container",0),t.YNc(7,f,4,2,"ng-container",0),t.YNc(8,j,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA(),t.YNc(10,M,8,15,"div",1),t.YNc(11,Se,10,13,"div",1)),2&xe&&(t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyName),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyNameAddition),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Lastname)||(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Firstname)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine1),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine2),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PostalCode)&&(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Location)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,10,be.company.apprenticeshipManager)),t.xp6(2),t.Q6J("ngIf",be.company.apprenticeshipContract.ContractDateFrom),t.xp6(1),t.Q6J("ngIf",be.company.jobTrainer))},dependencies:[d.O5,d.uU,w.X$,L.U,p.u],styles:[".subentry[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return ce})()},8898:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>w});var t=a(5879);const d=["*"];let w=(()=>{class L{constructor(){this.opened=!1}static#e=this.\u0275fac=function(R){return new(R||L)};static#t=this.\u0275cmp=t.Xpm({type:L,selectors:[["erz-student-dossier-entry-header"]],inputs:{opened:"opened"},ngContentSelectors:d,decls:6,vars:1,consts:[[1,"m-0"],["type","button",1,"btn","btn-link","p-0"],[1,"d-flex","align-items-center"],[1,"material-icons"]],template:function(R,F){1&R&&(t.F$t(),t.TgZ(0,"h5",0),t.Hsn(1),t.qZA(),t.TgZ(2,"button",1)(3,"div",2)(4,"i",3),t._uU(5),t.qZA()()()),2&R&&(t.xp6(5),t.Oqu(F.opened?"keyboard_arrow_down":"keyboard_arrow_up"))},styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-top:1px solid #dee2e6;cursor:pointer}button[_ngcontent-%COMP%]{color:#000;text-decoration:none}.btn-link[_ngcontent-%COMP%]:hover{text-decoration:none}"],changeDetection:0})}return L})()},9949:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>B});var t=a(5879),d=a(6814),w=a(9753);function L($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine1)}}function p($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine2)}}function O($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.AsE("",j.person.Zip," ",j.person.Location,"")}}function R($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhonePrivate,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhonePrivate)}}function F($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhoneMobile)}}function P($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,j.person),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,j.person))}}let B=(()=>{class ${constructor(){}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-student-dossier-legal-representative"]],inputs:{person:"person"},decls:10,vars:10,consts:[[4,"ngIf"],[3,"href"]],template:function(M,q){1&M&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,L,3,1,"ng-container",0),t.YNc(4,p,3,1,"ng-container",0),t.YNc(5,O,3,2,"ng-container",0),t.YNc(6,R,4,2,"ng-container",0),t.YNc(7,F,4,2,"ng-container",0),t.YNc(8,P,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()),2&M&&(t.xp6(1),t.AsE(" ",q.person.LastName," ",q.person.FirstName,""),t.xp6(2),t.Q6J("ngIf",q.person.AddressLine1),t.xp6(1),t.Q6J("ngIf",q.person.AddressLine2),t.xp6(1),t.Q6J("ngIf",q.person.Zip&&q.person.Zip),t.xp6(1),t.Q6J("ngIf",q.person.PhonePrivate),t.xp6(1),t.Q6J("ngIf",q.person.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,8,q.person)))},dependencies:[d.O5,w.U],changeDetection:0})}return $})()},5582:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>ce});var t=a(8405),d=a(4409),w=a(5879),L=a(6814),p=a(1523),O=a(6567),R=a(59),F=a(9608),P=a(9515);function B(_e,ve){if(1&_e&&(w.TgZ(0,"a",10)(1,"i",11),w._uU(2,"description"),w.qZA()()),2&_e){const xe=w.oxw(2).erzLet;w.Q6J("href",xe.reportUrl,w.LSH)}}const $=function(_e){return{returnparams:_e}},f=function(_e){return[_e]};function j(_e,ve){if(1&_e&&(w.TgZ(0,"a",12),w.ALo(1,"async"),w.TgZ(2,"button",13,14),w._uU(4),w.ALo(5,"translate"),w.qZA()()),2&_e){const xe=ve.$implicit,be=w.MAs(3),ke=w.oxw(3);w.Q6J("queryParams",w.VKq(9,$,w.lcZ(1,5,ke.state.returnParams$)))("routerLink",w.VKq(11,f,xe)),w.xp6(2),w.ekj("btn-outline-secondary",!be.isActive),w.xp6(2),w.hij(" ",w.lcZ(5,7,"dossier."+xe)," ")}}function M(_e,ve){1&_e&&(w.TgZ(0,"div"),w._UZ(1,"router-outlet"),w.qZA())}function q(_e,ve){1&_e&&(w.TgZ(0,"p"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&_e&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"shared.profile.no-profile")))}const ie=function(){return["addresses","absences","grades"]};function k(_e,ve){if(1&_e&&(w.ynx(0),w.TgZ(1,"div",4),w._UZ(2,"erz-student-backlink",5),w.ALo(3,"async"),w.ALo(4,"async"),w.TgZ(5,"div"),w.YNc(6,B,3,1,"a",6),w.qZA()(),w.TgZ(7,"div",7),w.YNc(8,j,6,13,"a",8),w.qZA(),w.YNc(9,M,2,0,"div",2),w.YNc(10,q,3,3,"ng-template",null,9,w.W1O),w.BQk()),2&_e){const xe=w.MAs(11),be=w.oxw().erzLet,ke=w.oxw();w.xp6(2),w.Q6J("link","../..")("queryParams",w.lcZ(3,8,ke.state.backlinkQueryParams$))("studentId",w.lcZ(4,10,ke.state.studentId$))("student",be.profile&&be.profile.student),w.xp6(4),w.Q6J("ngIf","grades"===be.currentDossierSection),w.xp6(2),w.Q6J("ngForOf",w.DdM(12,ie)),w.xp6(1),w.Q6J("ngIf",be.profile)("ngIfElse",xe)}}function Te(_e,ve){1&_e&&w._UZ(0,"erz-spinner")}function Se(_e,ve){if(1&_e&&(w.ynx(0),w.YNc(1,k,12,13,"ng-container",2),w.ALo(2,"async"),w.YNc(3,Te,1,0,"ng-template",null,3,w.W1O),w.BQk()),2&_e){const xe=w.MAs(4),be=w.oxw();w.xp6(1),w.Q6J("ngIf",!1===w.lcZ(2,2,be.state.loading$))("ngIfElse",xe)}}const ye=function(_e,ve,xe){return{profile:_e,currentDossierSection:ve,reportUrl:xe}};let ce=(()=>{class _e{constructor(xe,be){this.state=xe,this.dossierGradesService=be,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(w.Y36(d.j),w.Y36(t.S))};static#t=this.\u0275cmp=w.Xpm({type:_e,selectors:[["erz-student-dossier"]],features:[w._Bn([d.j,t.S])],decls:5,vars:11,consts:[[1,"erz-container","erz-container-limited","erz-container-padding-y","erz-container-padding-x-responsive"],[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[1,"d-flex","w-100","justify-content-between"],[1,"mb-2",3,"link","queryParams","studentId","student"],["class","edit btn btn-primary btn-icon ms-2","target","_blank",3,"href",4,"ngIf"],[1,"d-flex","flex-row","py-3","flex-wrap"],["class","me-1 mt-1 me-sm-2",3,"queryParams","routerLink",4,"ngFor","ngForOf"],["noProfile",""],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"material-icons"],[1,"me-1","mt-1","me-sm-2",3,"queryParams","routerLink"],["data-test-id","dossier-section-button","type","button","routerLinkActive","btn-primary",1,"btn","btn-outline-secondary"],["rla","routerLinkActive"]],template:function(be,ke){1&be&&(w.TgZ(0,"div",0),w.YNc(1,Se,5,4,"ng-container",1),w.ALo(2,"async"),w.ALo(3,"async"),w.ALo(4,"async"),w.qZA()),2&be&&(w.xp6(1),w.Q6J("erzLet",w.kEZ(7,ye,w.lcZ(2,1,ke.state.profile$),w.lcZ(3,3,ke.state.currentDossier$),w.lcZ(4,5,ke.dossierGradesService.testReportUrl$))))},dependencies:[L.sg,L.O5,p.lC,p.rH,p.Od,O.e,R.O,F.b,L.Ov,P.X$],changeDetection:0})}return _e})()},1703:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(5879),d=a(902),w=a(6223);let L=(()=>{class p{constructor(){this.id=null,this.label=null,this.disabled=!1,this.value=!1,this.valueChange=new t.vpe,this.fallbackId=(0,d.Z)("erz-switch")}static#e=this.\u0275fac=function(F){return new(F||p)};static#t=this.\u0275cmp=t.Xpm({type:p,selectors:[["erz-switch"]],inputs:{id:"id",label:"label",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},decls:3,vars:5,consts:[["type","checkbox",3,"disabled","ngModel","ngModelChange"]],template:function(F,P){if(1&F&&(t.TgZ(0,"input",0),t.NdJ("ngModelChange",function($){return P.valueChange.emit($)}),t.qZA(),t.TgZ(1,"label"),t._uU(2),t.qZA()),2&F){let B,$;t.Q6J("disabled",P.disabled)("ngModel",P.value),t.uIk("id",null!==(B=P.id)&&void 0!==B?B:P.fallbackId),t.xp6(1),t.uIk("for",null!==($=P.id)&&void 0!==$?$:P.fallbackId),t.xp6(1),t.Oqu(P.label)}},dependencies:[w.Wl,w.JJ,w.On],styles:['input[_ngcontent-%COMP%]{opacity:0;position:absolute}label[_ngcontent-%COMP%]{cursor:pointer;text-indent:-9999px;width:36px;height:18px;border:1px solid rgb(0,0,0);background:#fff;display:block;border-radius:18px;position:relative}label[_ngcontent-%COMP%]:after{content:"";position:absolute;top:1px;left:1px;width:14px;height:14px;background:rgb(0,0,0);border-radius:14px;transition:.3s}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border-color:#000;background:rgb(0,0,0)}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:calc(100% - 1px);transform:translate(-100%);background:#fff}input[_ngcontent-%COMP%]:focus + label[_ngcontent-%COMP%]{box-shadow:0 0 0 .25rem #4e4e4e40}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]{cursor:default;background:#fff;border-color:#dedede}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]:after{background:rgb(222,222,222)}label[_ngcontent-%COMP%]:active:after{width:18.2px}'],changeDetection:0})}return p})()},9707:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>w});var t=a(5879);const d=["*"];let w=(()=>{class L{static#e=this.\u0275fac=function(R){return new(R||L)};static#t=this.\u0275cmp=t.Xpm({type:L,selectors:[["erz-preserve-line-height"]],ngContentSelectors:d,decls:3,vars:0,template:function(R,F){1&R&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t._uU(2,"\xa0"),t.qZA())},encapsulation:2})}return L})()},2015:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>Se});var t=a(5619),d=a(7398),w=a(3997),L=a(4664),p=a(4716),O=a(3620),R=a(2181),F=a(902),P=a(3942),B=a(5879),$=a(6814),f=a(6223),j=a(253),M=a(9515);function q(_e,ve){if(1&_e){const xe=B.EpF();B.TgZ(0,"button",6),B.NdJ("click",function(ke){B.CHM(xe);const vt=B.oxw();return B.KtG(vt.modelChange(ke))}),B.TgZ(1,"i",2),B._uU(2,"clear"),B.qZA()()}}function ie(_e,ve){1&_e&&(B.TgZ(0,"div",7)(1,"div",8)(2,"span",9),B._uU(3,"Loading..."),B.qZA()()())}let Se=(()=>{class _e{constructor(){this.selectedItem$=new t.X(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe((0,d.U)(xe=>xe?xe.Key:null),(0,w.x)()),this.componentId=(0,F.Z)("erz-typeahead-"),this.loading$=new t.X(!1),this.search=xe=>xe.pipe(function ye(_e,ve){return xe=>xe.pipe((0,O.b)(ve),(0,d.U)(ce),(0,w.x)(),(0,R.h)((0,P.$L)(_e)))}(3,300),(0,L.w)(this.fetchItems.bind(this)))}ngOnChanges(xe){xe.value&&xe.value.currentValue&&xe.value.currentValue!==this.selectedItemKey&&this.fetchItem(xe.value.currentValue).subscribe(be=>{this.modelChange(be)})}format(xe){return xe.Value}modelChange(xe){this.selectedItem$.next(xe instanceof Object?xe:null)}get selectedItemKey(){return this.selectedItem$.value?this.selectedItem$.value.Key:null}fetchItems(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItems(xe,this.additionalHttpParams).pipe((0,p.x)(()=>this.loading$.next(!1)))}fetchItem(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(xe).pipe((0,p.x)(()=>this.loading$.next(!1)))}static#e=this.\u0275fac=function(be){return new(be||_e)};static#t=this.\u0275cmp=B.Xpm({type:_e,selectors:[["erz-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},features:[B.TTD],decls:11,vars:18,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text",1,"form-control",3,"ngbTypeahead","inputFormatter","resultFormatter","ngModel","ngModelChange"],["class","btn btn-link text-decoration-none","type","button",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["type","button",1,"btn","btn-link","text-decoration-none",3,"click"],[1,"spinner-container"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"visually-hidden"]],template:function(be,ke){1&be&&(B.TgZ(0,"div",0)(1,"span",1)(2,"i",2),B._uU(3,"search"),B.qZA()(),B.TgZ(4,"input",3),B.NdJ("ngModelChange",function(rt){return ke.modelChange(rt)}),B.ALo(5,"translate"),B.ALo(6,"translate"),B.ALo(7,"async"),B.qZA(),B.YNc(8,q,3,0,"button",4),B.qZA(),B.YNc(9,ie,4,0,"div",5),B.ALo(10,"async")),2&be&&(B.xp6(1),B.Q6J("id",ke.componentId),B.xp6(3),B.Q6J("ngbTypeahead",ke.search)("inputFormatter",ke.format)("resultFormatter",ke.format)("ngModel",B.lcZ(7,14,ke.selectedItem$)),B.uIk("placeholder",B.lcZ(5,10,ke.placeholder))("aria-label",B.lcZ(6,12,ke.placeholder))("aria-describedby",ke.componentId),B.xp6(4),B.Q6J("ngIf",ke.value),B.xp6(1),B.Q6J("ngIf",B.lcZ(10,16,ke.loading$)))},dependencies:[$.O5,f.Fj,f.JJ,f.On,j.dR,$.Ov,M.X$],styles:["[_nghost-%COMP%]{display:block;position:relative;background:rgb(255,255,255)}.spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:.75rem;display:flex;align-items:center;z-index:1001}.spinner-border[_ngcontent-%COMP%]{color:#6c757d}input[_ngcontent-%COMP%]{padding-right:2.5em}.input-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{position:absolute;right:0;z-index:5}"],changeDetection:0})}return _e})();function ce(_e){return _e.trim().toLowerCase()}},6567:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879);class d{constructor(){this.$implicit=null,this.erzLet=null}}let w=(()=>{class L{set erzLet(O){this.context.$implicit=this.context.erzLet=O}constructor(O,R){this.vcr=O,this.templateRef=R,this.context=new d}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:L,selectors:[["","erzLet",""]],inputs:{erzLet:"erzLet"}})}return L})()},8121:(Pe,V,a)=>{"use strict";a.d(V,{X_:()=>j,jJ:()=>q,L9:()=>M,wS:()=>B,Wx:()=>P,$f:()=>f,s3:()=>$});var t=a(754),d=a(5040),w=a(5803),L=t.sH("JsonArray",function(){return t.Bk(O)}),p=t.sH("JsonRecord",function(){return t.IM(t.Z_,O)}),O=t.G0([t.O7,t.pk,t.Z_,t.lB,L,p],"Json"),R=new t.Dy("JsonFromString",O.is,function(ie,k){try{return t.Vp(JSON.parse(ie))}catch{return t.Rn(ie,k)}},function(ie){return JSON.stringify(ie)}),F=a(2220);function P(ie){return t.G0([t.lB,ie])}function B(ie){return t.G0([t.lB,t.S1,ie])}const $=t.dt({Id:t.pk,HRef:P(t.Z_)}),f=t.dt({Id:P(t.pk),HRef:P(t.Z_)}),j=t.Z_.pipe(R,"JsonFromUnknown"),M=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Se=(0,F.Uy)(Te);return isNaN(Se.getTime())?t.Rn(ie,k):t.Vp(Se)})),ie=>(0,F.oZ)(ie)),q=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Se=(0,F.nx)(Te);return isNaN(Se.getTime())?t.Rn(ie,k):t.Vp(Se)})),ie=>(0,F.Aq)(ie))},7379:(Pe,V,a)=>{"use strict";a.d(V,{Ff:()=>Se,T0:()=>q,Ly:()=>M,mJ:()=>Te});var t=a(754),d=a(8121),w=a(4717),L=a(2738);const p=t.dt({TestId:t.pk,CourseRegistrationId:t.pk,GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),GradeDesignation:(0,d.Wx)(t.Z_),Points:(0,d.Wx)(t.pk),StudentId:t.pk,Id:t.Z_}),O=t.dt({Id:t.pk,CourseId:t.pk,Date:d.L9,Designation:t.Z_,Weight:t.pk,WeightPercent:t.pk,IsPointGrading:t.O7,MaxPoints:(0,d.Wx)(t.pk),MaxPointsAdjusted:(0,d.Wx)(t.pk),IsPublished:t.O7,IsOwner:t.O7,Owner:(0,d.Wx)(t.Z_),Creation:t.Z_,GradingScaleId:(0,d.Wx)(t.pk),GradingScale:(0,d.Wx)(t.Z_),Results:(0,d.Wx)(t.IX(p))}),R=t.dt({Id:t.pk}),F=t.r$({HRef:(0,d.Wx)(t.Z_)}),P=t.r$({HasEvaluationStarted:t.O7,EvaluationUntil:(0,d.Wx)(d.L9),HasReviewOfEvaluationStarted:t.O7,HasTestGrading:t.O7,Id:t.pk}),B=t.jV([R,F,P]),$=t.r$({Id:t.pk,StudentCount:t.pk}),f=t.jV([R,F,$]),j=t.dt({EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,Grade:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeValue:(0,d.Wx)(t.pk),AverageTestResult:t.pk,Id:t.pk,IsAdequate:t.O7,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),M=t.dt({AverageTestResult:t.pk,CanGrade:t.O7,EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),Id:t.pk,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),q=t.dt({HRef:t.Z_,Id:t.pk,Number:t.Z_,Designation:t.Z_,DateFrom:(0,d.Wx)(d.L9),DateTo:(0,d.Wx)(d.L9),StatusId:t.pk,GradingScaleId:(0,d.Wx)(t.pk),FinalGrades:(0,d.Wx)(t.IX(j)),Gradings:(0,d.Wx)(t.IX(M)),Tests:(0,d.Wx)(t.IX(O)),EvaluationStatusRef:B,AttendanceRef:f,ParticipatingStudents:(0,d.Wx)(t.IX(w.Z)),Classes:(0,d.Wx)(t.IX(L.y))}),Te=(t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,Points:(0,d.Wx)(t.pk)}),t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,GradeId:(0,d.Wx)(t.pk)}),t.dt({TestResults:t.IX(p),Gradings:t.IX(M)})),Se=t.dt({Gradings:t.IX(M)})},8470:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>d});var t=a(754);const d=t.dt({Key:t.G0([t.pk,t.Z_]),Value:t.Z_})},8952:(Pe,V,a)=>{"use strict";a.d(V,{C:()=>R});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk}),L=t.r$({HRef:(0,d.Wx)(t.Z_)}),p=t.r$({From:d.L9,To:d.L9,EventNumber:t.Z_,EventDesignation:t.Z_,Designation:(0,d.Wx)(t.Z_)}),O=t.jV([w,L,p]),R=t.dt({Id:t.Z_,LessonRef:O,StudentRef:d.s3,TypeRef:d.s3,Type:(0,d.Wx)(t.Z_),ConfirmationState:(0,d.Wx)(t.Z_),ConfirmationStateId:t.pk,Comment:(0,d.Wx)(t.Z_),StudentFullName:t.Z_,RegistrationId:t.pk,HRef:t.Z_})},4717:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk,AddressLine1:(0,d.Wx)(t.Z_),AddressLine2:(0,d.wS)(t.Z_),Birthdate:(0,d.Wx)(d.L9),DisplayEmail:(0,d.Wx)(t.Z_),FullName:t.Z_,Gender:t.G0([t.i0("M"),t.i0("F"),t.i0("X")]),Location:(0,d.Wx)(t.Z_),PhoneMobile:(0,d.Wx)(t.Z_),PhonePrivate:(0,d.Wx)(t.Z_),PostalCode:(0,d.Wx)(t.Z_)})},2738:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>d});var t=a(754);const d=t.dt({Id:t.pk,Designation:t.Z_,StudentCount:t.pk,Number:t.Z_})},6514:(Pe,V,a)=>{"use strict";a.d(V,{Y:()=>p,t:()=>L});var t=a(754),d=a(8121),w=a(8470);const L=t.dt({Id:t.Z_,SubscriptionId:t.pk,VssId:t.pk,EventId:t.pk,DropdownItems:(0,d.Wx)(t.IX(w.b)),IdPerson:t.pk,ShowAsRadioButtons:t.O7,Value:(0,d.Wx)(t.Z_)}),p=t.dt({Id:t.pk,CurrentWorkProgressId:(0,d.Wx)(t.Z_||(0,d.Wx)(t.pk)),EventId:(0,d.Wx)(t.pk),PersonId:(0,d.Wx)(t.pk),Status:t.Z_,StatusId:(0,d.Wx)(t.pk),IsOkay:(0,d.Wx)(t.O7),IsQueued:(0,d.Wx)(t.O7),EventDesignation:(0,d.Wx)(t.Z_),EventInformation:(0,d.Wx)(t.Z_||t.pk),EventNotes:(0,d.Wx)(t.Z_||t.pk),CheckPersonalInformation:(0,d.Wx)(t.O7),CorrespondencePersonId:(0,d.Wx)(t.pk),CorrespondenceAddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing1PersonId:(0,d.Wx)(t.pk),Billing1AddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing2PersonId:(0,d.Wx)(t.Z_||t.pk),Billing2AddressTypeId:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId2:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail2:(0,d.Wx)(t.Z_||t.pk),IdObject:(0,d.Wx)(t.pk),IdSubscription:(0,d.Wx)(t.pk),IdStatus:(0,d.Wx)(t.pk),AnsweredQuestions:(0,d.Wx)(t.Z_||t.pk),Messages:(0,d.Wx)(t.Z_||t.pk),SubscriptionDetails:(0,d.Wx)(t.IX(L)),HRef:(0,d.Wx)(t.Z_)})},3786:(Pe,V,a)=>{"use strict";a.d(V,{Az:()=>Te,b7:()=>B,zn:()=>j,k_:()=>$,Sx:()=>k,PW:()=>M,iu:()=>q,PG:()=>P});var t=a(754);var L=a(5803);function p(Se,ye,ce){return void 0===ce&&(ce="withFallback("+Se.name+")"),function w(Se,ye,ce){void 0===ce&&(ce=Se.name);var _e=function d(Se){var ye=Object.create(Object.getPrototypeOf(Se));return Object.assign(ye,Se),ye}(Se);return _e.validate=ye,_e.decode=function(ve){return ye(ve,t.Ju(_e))},_e.name=ce,_e}(Se,function(_e,ve){return(0,L.vx)(function(){return t.Vp(ye)})(Se.validate(_e,ve))},ce)}var O=a(8121),R=a(8470);const F=t.dt({Key:t.Z_,Value:t.Z_}),P=t.dt({Id:t.Z_,Settings:t.OT(t.IX(F))}),B=O.X_.pipe(t.dt({mail:p(t.O7,!1),gui:p(t.O7,!1),phoneMobile:p(t.O7,!1)})),$=new t.Dy("NotificationTypesInactive",Se=>Array.isArray(Se)&&Se.every(ye=>"string"==typeof ye),(Se,ye)=>"string"==typeof Se?t.Vp(Se.split(";").filter(Boolean)):t.Rn(Se,ye),Se=>Se.join(";")),f=t.dt({id:t.pk,subject:t.Z_,body:t.Z_}),j=O.X_.pipe(t.OT(t.IX(f)));var M=function(Se){return Se.Grid="grid",Se.List="list",Se}(M||{});const q=O.X_.pipe(t.dt({presenceControl:t.mM({grid:null,list:null})})),ie=t.dt({eventId:(0,O.Wx)(t.pk),group:(0,O.Wx)(R.b.props.Key)}),k=O.X_.pipe(t.OT(t.IX(ie))),Te=t.dt({AccessInfo:t.dt({Roles:t.IX(t.Z_),Permissions:t.IX(t.Z_)})})},500:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>w});var t=a(5879),d=a(8299);let w=(()=>{class L{constructor(O){this.i18n=O}transform(O,R){return"fr-CH"===this.i18n.detectLanguage()?(Array.from(R).map(P=>O=O.replace(P," ".concat(P))),O):O}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.D,16))};static#t=this.\u0275pipe=t.Yjl({name:"addSpace",type:L,pure:!0})}return L})()},238:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>F});var t=a(5351),d=a(9189),w=a(2816),O=a(5879),R=a(9515);let F=(()=>{class P{constructor($){this.translate=$}transform($){if(!$)return"";const f=function p(P,B){(0,w.Z)(2,arguments);var $=(0,d.Z)(P),f=(0,d.Z)(B),j=$.getTime()-(0,t.Z)($),M=f.getTime()-(0,t.Z)(f);return Math.round((j-M)/864e5)}($,new Date);return this.translate.instant(`shared.daysDifference.${this.getKey(f)}`,{count:Math.abs(f)})}getKey($){return 0===$?"today":1===$?"tomorrow":-1===$?"yesterday":$>0?"in":"ago"}static#e=this.\u0275fac=function(f){return new(f||P)(O.Y36(R.sK,16))};static#t=this.\u0275pipe=O.Yjl({name:"erzDaysDifference",type:P,pure:!0})}return P})()},6651:(Pe,V,a)=>{"use strict";a.d(V,{GR:()=>L,ey:()=>O,fY:()=>p});var t=a(6814),d=a(5879);const w="1-3",L="\u2013";let p=(()=>{class F{constructor(B){this.locale=B}transform(B,$,f){const j=Number(B??null);return isNaN(j)?L:O(Number(B??null),f??this.locale,$)}static#e=this.\u0275fac=function($){return new($||F)(d.Y36(d.soG,16))};static#t=this.\u0275pipe=d.Yjl({name:"decimalOrDash",type:F,pure:!0})}return F})();function O(F,P,B){return 0===F?L:(0,t.uf)(F,P,`1.${function R(F){return F?String(F).includes("-")?String(F):`${F}-${F}`:w}(B)}`)}},9753:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>d});var t=a(5879);let d=(()=>{class w{transform(p){return p?.DisplayEmail||p?.Email||p?.Email2||null}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275pipe=t.Yjl({name:"erzPersonEmail",type:w,pure:!0})}return w})()},4703:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>w});var t=a(5879),d=a(6593);let w=(()=>{class L{constructor(O){this.sanitizer=O}transform(O,R){switch(R){case"html":return this.sanitizer.bypassSecurityTrustHtml(O);case"style":return this.sanitizer.bypassSecurityTrustStyle(O);case"script":return this.sanitizer.bypassSecurityTrustScript(O);case"url":return this.sanitizer.bypassSecurityTrustUrl(O);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(O);default:throw new Error(`Invalid safe type specified: ${R}`)}}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.H7,16))};static#t=this.\u0275pipe=t.Yjl({name:"safe",type:L,pure:!0})}return L})()},9410:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>L});var t=a(7424),d=a.n(t),w=a(5879);let L=(()=>{class p{transform(R,F){return d()(R,F)}static#e=this.\u0275fac=function(F){return new(F||p)};static#t=this.\u0275pipe=w.Yjl({name:"xss",type:p,pure:!0})}return p})()},813:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879),d=a(8173);let w=(()=>{class L{constructor(O){this.storage=O}get isAuthenticated(){return!!this.accessToken}get accessToken(){return this.storage.getAccessToken()}static#e=this.\u0275fac=function(R){return new(R||L)(t.LFG(d.V))};static#t=this.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},8393:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>f});var t=a(7398),d=a(7081),w=a(8180),L=a(8706),p=a(6561),O=a(49),R=a(3942),F=a(2324),P=a(7727),B=a(4141),$=a(5879);let f=(()=>{class M extends p.z{constructor(ie){super(),this.settings=ie,this.selectedIds$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>(0,O.PO)([...(0,P.MX)(k),...Te])),(0,d.d)(1)),this.selectedLessons$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te]),(0,d.d)(1)),this.selectedWithoutPresenceType$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te].filter(Se=>Se.TypeRef.Id===this.settings.absencePresenceTypeId)))}clearNonOpenAbsencesEntries(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({openAbsencesEntries:ie})=>this.clear(ie))}clearNonLessonPresences(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({lessonPresences:ie})=>this.clear(ie))}static#e=this.\u0275fac=function(k){return new(k||M)($.LFG(B.L6))};static#t=this.\u0275prov=$.Yz7({token:M,factory:M.\u0275fac})}return M})();function j(M){return{openAbsencesEntries:M.filter((0,R.V9)(F.G)),lessonPresences:M.filter((0,L.ff)((0,R.V9)(F.G)))}}},1074:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>j});var t=a(4664),d=a(7398),w=a(2096),L=a(754),p=a(4141),O=a(7379),R=a(275),F=a(6031),P=a(8366),B=a(7470),$=a(5879),f=a(9862);let j=(()=>{class M extends P.v{constructor(ie,k){super(ie,k,O.T0,"Courses"),this.statusCodec=L.dt((0,B.e)(this.codec.props,["Id","StatusId","EvaluationStatusRef"]))}getNumberOfCoursesForRating(){return this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef&fields=Id,StatusId,EvaluationStatusRef&filter.StatusId=;10300;10240`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(this.statusCodec)),(0,d.U)(ie=>ie.filter(k=>!0===k.EvaluationStatusRef.HasEvaluationStarted)),(0,d.U)(ie=>ie.length))}getExpandedCourses(ie){return(0,F.n)(ie,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0))):(0,w.of)([])}getExpandedCourse(ie){return this.http.get(`${this.baseUrl}/${ie}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe((0,t.w)((0,R.Jx)(O.T0)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe((0,t.w)((0,R.Y0)(O.T0)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0)))}add(ie,k,Te,Se,ye,ce,_e){return this.http.put(`${this.baseUrl}/${ie}/Tests/New`,{Tests:[{Date:k,Designation:Te,Weight:Se,IsPointGrading:ye,MaxPoints:ce,MaxPointsAdjusted:_e}]}).pipe((0,d.U)(()=>{}))}update(ie,k,Te,Se,ye,ce,_e,ve){return this.http.put(`${this.baseUrl}/${ie}/Tests/Update`,{Tests:[{Id:k,Designation:Te,Date:Se,Weight:ye,IsPointGrading:ce,MaxPoints:_e,MaxPointsAdjusted:ve}]}).pipe((0,d.U)(()=>{}))}delete(ie,k){return this.http.put(`${this.baseUrl}/${ie}/Tests/Delete`,{TestIds:[k]}).pipe((0,d.U)(()=>k))}updateTestResult(ie,k){return this.http.put(`${this.baseUrl}/${ie}/SetTestResult`,k).pipe((0,t.w)((0,R.Jx)(O.mJ)),(0,t.w)(Te=>(0,w.of)({courseId:ie,body:Te})))}setAverageAsFinalGrade(ie){return this.http.put(`${this.baseUrl}/SetAverageTestResult`,ie).pipe((0,t.w)((0,R.Jx)(O.Ff)))}publishTest(ie){return this.http.put(`${this.baseUrl}/PublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}unpublishTest(ie){return this.http.put(`${this.baseUrl}/UnpublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}static#e=this.\u0275fac=function(k){return new(k||M)($.LFG(f.eN),$.LFG(p.L6))};static#t=this.\u0275prov=$.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},8405:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ye});var t=a(7328),d=a(8645),w=a(3997),L=a(4664),p=a(7398),O=a(7081),R=a(3019),F=a(2572),P=a(9315),B=a(4141),$=a(3942),f=a(7483),j=a(2460),M=a(5879),q=a(1074),ie=a(3219),k=a(6016),Te=a(3005),Se=a(1760);let ye=(()=>{class ce{constructor(ve,xe,be,ke,vt,rt){this.coursesRestService=ve,this.subscriptionRestService=xe,this.reportsService=be,this.loadingService=ke,this.gradingScalesRestService=vt,this.settings=rt,this.studentId$=new t.t(1),this.updateTest$=new d.x,this.initialStudentCourses$=this.studentId$.pipe((0,w.x)(),(0,L.w)(this.loadCourses.bind(this)),(0,p.U)(Mt=>Mt.sort((qe,_t)=>qe.Designation.localeCompare(_t.Designation))),(0,O.d)(1)),this.updatedStudentCourses$=this.updateTest$.pipe((0,j.M)(this.initialStudentCourses$),(0,p.U)(([Mt,qe])=>this.updateCourses(qe,Mt))),this.studentCourses$=(0,R.T)(this.initialStudentCourses$,this.updatedStudentCourses$).pipe((0,O.d)(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe((0,p.U)(Mt=>Mt.flatMap(qe=>qe.Id))),this.idSubscriptions$=(0,F.a)([this.studentId$,this.studentCourseIds$]).pipe((0,L.w)(([Mt,qe])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(Mt,qe))),this.ids$=this.idSubscriptions$.pipe((0,p.U)(Mt=>Mt.map(qe=>qe.Id))),this.testReportUrl$=this.ids$.pipe((0,p.U)(Mt=>this.reportsService.getSubscriptionReportUrl(this.settings.testsBySubscriptionReportIdTeacher,Mt))),this.tests$=this.studentCourses$.pipe((0,p.U)(Mt=>Mt.flatMap(qe=>qe.Tests).filter($.Nf))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,p.U)(Mt=>[...Mt.map(qe=>qe.GradingScaleId)].filter($.Nf).filter($.Tw))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,p.U)(Mt=>Mt.flatMap(qe=>qe.GradingScaleId).filter($.Nf).filter($.Tw))),this.gradingScaleIds$=(0,F.a)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,p.U)(([Mt,qe])=>Mt.concat(qe).filter($.Tw))),this.gradingScales$=this.gradingScaleIds$.pipe((0,L.w)(Mt=>(0,P.D)(Mt.map(qe=>this.gradingScalesRestService.getGradingScale(qe)))))}setStudentId(ve){this.studentId$.next(ve)}getFinalGradeForStudent(ve,xe){return ve?.FinalGrades?.find(be=>be.StudentId===xe)}getGradingForStudent(ve,xe){return ve?.Gradings?.find(be=>be.StudentId===xe)}getGradingScaleOfCourse(ve,xe){return xe?.find(be=>be.Id===ve.GradingScaleId)}getGradesForStudent(ve,xe,be){return ve.Tests?.flatMap(ke=>({value:Number((0,f.fr)(ke,be)?.Grades.find(rt=>rt.Id===(0,f.W3)(xe,ke)?.GradeId)?.Designation),weight:ke.Weight})).filter(({value:ke})=>!!ke)||[]}loadCourses(ve){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe((0,p.U)(xe=>xe.filter(be=>be.ParticipatingStudents?.find(ke=>ke.Id===ve)))))}updateCourses(ve,xe){return ve.map(be=>({...be,Tests:null!==be.Tests?be.Tests.map(ke=>ke.Id===xe.Id?xe:ke):null}))}static#e=this.\u0275fac=function(xe){return new(xe||ce)(M.LFG(q.s),M.LFG(ie.o),M.LFG(k.F),M.LFG(Te.b),M.LFG(Se.R),M.LFG(B.L6))};static#t=this.\u0275prov=M.Yz7({token:ce,factory:ce.\u0275fac})}return ce})()},4409:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>P});var t=a(5619),d=a(7398),w=a(4664),L=a(7081),p=a(1342),O=a(5879),R=a(7909),F=a(1523);let P=(()=>{class B{constructor(f,j){this.profileService=f,this.route=j,this.currentDossier$=new t.X("addresses"),this.studentId$=this.route.paramMap.pipe((0,d.U)(M=>Number(M.get("id")))),this.profile$=this.studentId$.pipe((0,w.w)(M=>this.profileService.getProfile(M)),(0,L.d)(1)),this.returnParams$=this.route.queryParams.pipe((0,d.U)(({returnparams:M})=>M)),this.backlinkQueryParams$=this.returnParams$.pipe((0,d.U)(p.dD)),this.loading$=this.profileService.loading$}static#e=this.\u0275fac=function(j){return new(j||B)(O.LFG(R.J),O.LFG(F.gz))};static#t=this.\u0275prov=O.Yz7({token:B,factory:B.\u0275fac})}return B})()},5001:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>F});var t=a(4664),d=a(7081),w=a(275),L=a(4141),p=a(8470),O=a(5879),R=a(9862);let F=(()=>{class P{constructor($,f){this.http=$,this.settings=f}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe((0,t.w)((0,w.Y0)(p.b)),(0,d.d)(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe((0,t.w)((0,w.Y0)(p.b)),(0,d.d)(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(L.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},1760:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>M});var t=a(2096),d=a(4664),w=a(9315),L=a(7081),p=a(4141),O=a(754),R=a(8121);const F=O.dt({Id:O.pk,IdGradingScale:O.pk,Designation:O.Z_,Value:O.pk,Sufficient:O.O7,Sort:O.Z_,IdObject:O.pk,HRef:(0,R.Wx)(O.Z_)}),P=O.dt({Id:O.pk,Designation:O.Z_,MinGrade:(0,R.Wx)(O.pk),MaxGrade:(0,R.Wx)(O.pk),CommentsAllowed:O.O7,LowestSufficientGrade:O.pk,RisingGrades:O.O7,Grades:O.IX(F),IdObject:O.pk,FreeGrading:O.O7,HRef:O.Z_});var B=a(275),$=a(8366),f=a(5879),j=a(9862);let M=(()=>{class q extends $.v{constructor(k,Te){super(k,Te,P,"GradingScales")}getGradingScale(k){return null===k?(0,t.of)(null):this.http.get(`${this.baseUrl}/${k}`).pipe((0,d.w)((0,B.Jx)(P)))}loadGradingScales(k){return k.pipe((0,d.w)(Te=>(0,w.D)(Te.map(Se=>this.getGradingScale(Se)))),(0,L.d)(1))}static#e=this.\u0275fac=function(Te){return new(Te||q)(f.LFG(j.eN),f.LFG(p.L6))};static#t=this.\u0275prov=f.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},8299:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>O});var t=a(5879),d=a(9515),w=a(8173);const L=["de-CH","fr-CH"],p=L[0];let O=(()=>{class R{constructor(P,B){this.translate=P,this.storage=B}initialize(){this.translate.setDefaultLang(p),this.translate.use(this.detectLanguage())}detectLanguage(){return this.detectedLanguage||(this.detectedLanguage=this.getDocumentLanguage()||this.getStoredLanguage()||this.getBrowserLanguage()||p),this.detectedLanguage}getLocalizedLanguage(P){return(P=L.find(B=>B===`${(P||"").toLowerCase()}-CH`))||p}getDocumentLanguage(){const P=document.querySelector("[lang]");return this.normalizeLanguage(P&&P.lang)}getStoredLanguage(){return this.normalizeLanguage(this.storage.getLanguage())}getBrowserLanguage(){return this.normalizeLanguage(this.translate.getBrowserLang())}normalizeLanguage(P){return(P=(P||"").split("-")[0])&&L.find(B=>P===B.split("-")[0])||null}static#e=this.\u0275fac=function(B){return new(B||R)(t.LFG(d.sK),t.LFG(w.V))};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7575:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>vt});var t=a(9862),d=a(5301),w=a(3166),L=a(4307),p=a(8584),O=a(754),R=a(2096),F=a(9315),P=a(4664),B=a(7398),$=a(7727),f=a(4141),j=a(8121);const M=O.dt({StudentRef:j.s3,StudentFullName:O.Z_,TotalAbsences:O.pk,TotalAbsencesUnconfirmed:O.pk,TotalAbsencesValidExcuse:O.pk,TotalAbsencesWithoutExcuse:O.pk,TotalAbsencesUnchecked:O.pk,TotalDispensations:O.pk,TotalHalfDays:O.pk,TotalIncidents:O.pk}),q=O.dt({Id:O.Z_,LessonRef:j.s3,StudentRef:j.s3,EventRef:j.s3,TypeRef:j.$f,RegistrationRef:j.$f,StudyClassRef:j.$f,ConfirmationStateId:(0,j.Wx)(O.pk),EventDesignation:O.Z_,HasStudyCourseConfirmationCode:O.O7,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9,Comment:(0,j.Wx)(O.Z_),Date:(0,j.Wx)(j.jJ),Type:(0,j.Wx)(O.Z_),StudentFullName:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_}),ie=O.dt({LessonRef:j.s3,EventRef:j.s3,EventDesignation:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9});var k=a(275),Te=a(1389);function Se(qe){return _t=>_t.pipe((0,P.w)($e=>{const Ee=Number($e.headers.get("X-Pagination-Offset")),ze=Number($e.headers.get("X-Pagination-Total"));return(0,k.Y0)(qe)($e.body).pipe((0,B.U)(J=>({offset:Ee,total:ze,entries:J})))}))}function ye(qe,_t,$e=new t.LE){return $e.set("offset",String(qe)).set("limit",String(_t))}function ce(qe=new t.WM){return qe.set("X-Pagination-Total","on")}var _e=a(7470),ve=a(8366),xe=a(6031),be=a(5879),ke=a(8173);let vt=(()=>{class qe extends ve.v{constructor($e,Ee,ze){super($e,Ee,q,"LessonPresences"),this.storage=ze,this.lessonPresenceRefCodec=O.dt((0,_e.e)(this.codec.props,["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"])),this.lessonPresenceIdCodec=O.dt((0,_e.e)(this.codec.props,["Id"]))}getLessonsByDate($e){const Ee={fields:Object.keys(ie.props).join(","),"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"};return this.http.get(`${this.baseUrl}/`,{params:Ee,headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(ie)))}getListByLessons($e){if(0===$e.length)return(0,R.of)([]);const ze={"filter.LessonRef":`;${$e.map(J=>J.LessonRef.Id).join(";")}`};return this.getList({params:ze,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListByDateStudentClass($e,Ee,ze){const J={"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,"filter.StudentRef":`=${Ee}`};return null!=ze&&(J["filter.StudyClassRef"]=`=${ze}`),this.getList({params:J,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListForToday(){return this.http.get(`${this.baseUrl}/Today`,{headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.codec)))}getListOfUnconfirmed($e){return(0,xe.n)(this.storage.getPayload()?.roles,"ClassTeacherRole")?(0,F.D)([this.getListOfUnconfirmedClassTeacher($e),this.getListOfUnconfirmedLessonTeacher($e)]).pipe((0,B.U)((0,Te.h)($.HM))):(0,xe.n)(this.storage.getPayload()?.roles,"LessonTeacherRole")?this.getListOfUnconfirmedLessonTeacher($e):(0,xe.n)(this.storage.getPayload()?.roles,"AbsenceAdministratorRole")?this.getListOfUnconfirmedAbsenceAdministrator($e):(0,R.of)([])}getStatistics($e,Ee,ze){let J=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return J=function Mt(qe,_t=new t.LE){return qe?_t.set("sort",`${qe.key}.${qe.ascending?"asc":"desc"}`):_t}(Ee,J),J=ye(ze,this.settings.paginationLimit,J),this.http.get(`${this.baseUrl}/Statistics`,{params:J,headers:ce(),observe:"response"}).pipe(Se(M))}getLessonRefs($e){let Ee=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return Ee=Ee.set("filter.TypeRef",">0"),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getRegistrationRefsByEventIds($e){let Ee=new t.LE;return Ee.set("filter.EventRef",`;${$e.join(";")}`),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getFilteredList($e,Ee,ze){let J=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]],new t.LE({fromObject:ze}));return $e.teacher&&(J=J.set("filter.TeacherInformation",`~*${$e.teacher}*`)),$e.dateFrom&&$e.dateTo&&(0,w.Z)($e.dateFrom,$e.dateTo)?J=J.set("filter.LessonDateTimeFrom",`=${(0,d.Z)($e.dateFrom,"yyyy-MM-dd")}`):($e.dateFrom&&(J=J.set("filter.LessonDateTimeFrom",`>${(0,d.Z)((0,L.Z)($e.dateFrom,1),"yyyy-MM-dd")}`)),$e.dateTo&&(J=J.set("filter.LessonDateTimeTo",`<${(0,d.Z)((0,p.Z)($e.dateTo,1),"yyyy-MM-dd")}`))),$e.confirmationStates&&(J=J.set("filter.ConfirmationStateId",`;${$e.confirmationStates.join(";")}`)),$e.incidentTypes&&(J=J.set("filter.TypeRef",`;${$e.incidentTypes.join(";")}`)),$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")}`)),$e.incidentTypes&&$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")};${$e.incidentTypes.join(";")}`)),this.http.get(`${this.baseUrl}/`,{params:ye(Ee,this.settings.paginationLimit,J),headers:ce(),observe:"response"}).pipe(Se(q))}hasLessonsLessonTeacher(){const $e=(new t.LE).set("fields","Id");return this.http.get(`${this.baseUrl}/`,{params:ye(0,1,$e),headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)(Ee=>Ee.length>0))}checkableAbsencesCount(){return this.http.get(`${this.baseUrl}/`,{headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{"filter.ConfirmationStateId":`;${this.settings.checkableAbsenceStateId}`,fields:"Id,ConfirmationStateId"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)($e=>$e.length))}getListOfUnconfirmedLessonTeacher($e){return this.getList({headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=false"}})}getListOfUnconfirmedClassTeacher($e){return this.getList({headers:{"X-Role-Restriction":"ClassTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=true"}})}getListOfUnconfirmedAbsenceAdministrator($e){return this.getList({headers:{"X-Role-Restriction":"AbsenceAdministratorRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`}})}static#e=this.\u0275fac=function(Ee){return new(Ee||qe)(be.LFG(t.eN),be.LFG(f.L6),be.LFG(ke.V))};static#t=this.\u0275prov=be.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();function rt(qe,_t=new t.LE){return qe.reduce(($e,[Ee,ze])=>Ee&&ze?$e.set(`filter.${ze}`,`=${Ee}`):$e,_t)}},6023:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>p});var t=a(7398),d=a(4141),w=a(5879),L=a(9862);let p=(()=>{class O{constructor(F,P){this.http=F,this.settings=P}editLessonPresences(F,P,B,$,f){const j={LessonIds:F,PersonIds:P};return void 0!==B&&(j.PresenceTypeId=B),void 0!==$&&(j.ConfirmationValue=$),this.http.put(`${this.settings.apiUrl}/LessonPresences/Edit`,j,{params:f}).pipe((0,t.U)(()=>{}))}removeLessonPresences(F,P,B){return this.http.put(`${this.settings.apiUrl}/LessonPresences/Reset`,{LessonIds:F,PersonIds:P,WithComment:!0},{params:B}).pipe((0,t.U)(()=>{}))}confirmLessonPresences(F,P,B,$){return this.http.put(`${this.settings.apiUrl}/LessonAbsences/Confirm`,{LessonIds:F,PersonIds:P,AbsenceTypeId:B,ConfirmationValue:$}).pipe((0,t.U)(()=>{}))}static#e=this.\u0275fac=function(P){return new(P||O)(w.LFG(L.eN),w.LFG(d.L6))};static#t=this.\u0275prov=w.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},3005:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>f});var t=a(8645),d=a(7),w=a(7328),L=a(6699),p=a(7921),O=a(7398),R=a(3997),F=a(4716),P=a(7105),B=a(5879);const $="default";let f=(()=>{class M{constructor(){this.action$=new t.x,this.loadingCounts$=(0,d.b)(this.action$.pipe((0,L.R)((ie,{action:k,context:Te})=>{switch(k){case"increment":return ie[Te]=(ie[Te]||0)+1,ie;case"decrement":return ie[Te]=Math.max(0,(ie[Te]||0)-1),ie;default:return ie}},{}),(0,p.O)({})),{connector:()=>new w.t(1)}),this.loading$=this.loading(),this.loadingCountsSub=this.loadingCounts$.connect()}ngOnDestroy(){this.loadingCountsSub.unsubscribe()}loading(ie=$){return this.loadingCounts$.pipe((0,O.U)(k=>k[ie]),(0,O.U)(j),(0,R.x)())}load(ie,k=$){return ie.pipe((0,P.Pl)(this.incrementLoadingCount(k)),(0,F.x)(this.decrementLoadingCount(k)))}incrementLoadingCount(ie){return()=>this.action$.next({action:"increment",context:ie})}decrementLoadingCount(ie){return()=>this.action$.next({action:"decrement",context:ie})}static#e=this.\u0275fac=function(k){return new(k||M)};static#t=this.\u0275prov=B.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();function j(M){return 0!==(M||0)}},5258:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>f});var t=a(4664),d=a(7398),w=a(8366),L=a(4141),p=a(754),O=a(8121);const R=p.dt({Id:p.pk,FormOfAddress:p.Z_,Nationality:(0,O.Wx)(p.Z_),AddressLine1:(0,O.Wx)(p.Z_),AddressLine2:(0,O.Wx)(p.Z_),BillingAddress:(0,O.Wx)(p.Z_),Birthdate:(0,O.Wx)(O.L9),CorrespondenceAddress:(0,O.Wx)(p.Z_),DisplayEmail:(0,O.Wx)(p.Z_),Email:(0,O.wS)(p.Z_),Email2:(0,O.wS)(p.Z_),FirstName:(0,O.Wx)(p.Z_),Gender:(0,O.Wx)(p.G0([p.i0("M"),p.i0("F"),p.i0("X")])),HomeTown:(0,O.Wx)(p.Z_),LastName:(0,O.Wx)(p.Z_),FullName:(0,O.Wx)(p.Z_),Location:(0,O.Wx)(p.Z_),MiddleName:(0,O.Wx)(p.Z_),NativeLanguage:(0,O.Wx)(p.Z_),PhoneMobile:(0,O.Wx)(p.Z_),PhonePrivate:(0,O.Wx)(p.Z_),PhoneBusiness:(0,O.wS)(p.Z_),SocialSecurityNumber:(0,O.Wx)(p.Z_),StayPermit:(0,O.Wx)(p.pk),StayPermitExpiry:(0,O.Wx)(O.L9),Zip:(0,O.Wx)(p.Z_)});var F=a(275),P=a(7470),B=a(5879),$=a(9862);let f=(()=>{class j extends w.v{constructor(q,ie){super(q,ie,R,"Persons"),this.personEmailCodec=p.dt((0,P.e)(this.codec.props,["Email","FormOfAddress"]))}getListForIds(q){return this.getList({params:{"filter.Id":`;${q.join(";")}`}})}getMyself(){return this.http.get(`${this.baseUrl}/me`).pipe((0,t.w)((0,F.Jx)(this.codec)))}getByIdWithEmailInfos(q){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":q.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe((0,t.w)((0,F.Y0)(this.personEmailCodec)),(0,d.U)(ie=>ie[0]))}update(q,ie,k,Te){return this.http.put(`${this.baseUrl}/${q}`,{PhonePrivate:ie,PhoneMobile:k,Email2:Te}).pipe((0,d.U)(()=>{}))}static#e=this.\u0275fac=function(ie){return new(ie||j)(B.LFG($.eN),B.LFG(L.L6))};static#t=this.\u0275prov=B.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},905:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>M});var t=a(7081),d=a(7398),w=a(7921),L=a(3997),p=a(4141),O=a(7749),R=a(5879),F=a(8366),P=a(754),B=a(8121);const $=P.dt({Id:P.pk,Active:P.O7,Designation:(0,B.Wx)(P.Z_),IsAbsence:P.O7,IsComment:P.O7,IsDispensation:P.O7,IsIncident:P.O7,IsHalfDay:P.O7,NeedsConfirmation:P.O7,Sort:P.pk});var f=a(9862);let j=(()=>{class q extends F.v{constructor(k,Te){super(k,Te,$,"PresenceTypes")}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(f.eN),R.LFG(p.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})(),M=(()=>{class q{constructor(k,Te){this.restService=k,this.settings=Te,this.presenceTypes$=this.loadPresenceTypes().pipe((0,t.d)(1)),this.activePresenceTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterActiveTypes.bind(this)),(0,t.d)(1)),this.confirmationTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterConfirmationTypes.bind(this)),(0,t.d)(1)),this.incidentTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterIncidentTypes.bind(this)),(0,t.d)(1)),this.displayedTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterDisplayedTypes.bind(this)),(0,t.d)(1)),this.halfDayActive$=this.presenceTypes$.pipe((0,d.U)(this.isHalfDayActive.bind(this)),(0,w.O)(!1),(0,L.x)(),(0,t.d)(1))}getPresenceType(k){return this.presenceTypes$.pipe((0,d.U)(Te=>{const Se=Te.find(ye=>ye.Id===k);if(!Se)throw new Error("presence type not found");return Se}))}loadPresenceTypes(){return this.restService.getList().pipe((0,d.U)(O.KV))}filterActiveTypes(k){return k.filter(Te=>Te.Active)}filterConfirmationTypes(k){return k.filter(Te=>Te.NeedsConfirmation&&Te.Active&&Te.Id!==this.settings.absencePresenceTypeId)}filterIncidentTypes(k){return k.filter(Te=>Te.IsIncident&&Te.Active)}filterDisplayedTypes(k){return k.filter(Te=>Te.Id!==this.settings.absencePresenceTypeId)}isHalfDayActive(k){return!!k.find(Te=>Te.Id===this.settings.halfDayPresenceTypeId)?.Active}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(j),R.LFG(p.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},6016:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>ie});var t=a(8645),d=a(7),w=a(7328),L=a(7081),p=a(7398),O=a(7921),R=a(3997),F=a(2181),P=a(4664),B=a(4141),$=a(3942),f=a(5879),j=a(8173),M=a(3219),q=a(9862);let ie=(()=>{class k{constructor(Se,ye,ce,_e){this.settings=Se,this.storageService=ye,this.subscriptionService=ce,this.http=_e,this.studentConfirmationAvailabilityRecordIds$=new t.x,this.personMasterDataAvailability$=this.loadReportAvailability("Person",this.settings.personMasterDataReportId,[Number(this.storageService.getPayload()?.id_person)]).pipe((0,L.d)(1)),this.studentConfirmationAvailability$=this.loadReportAvailabilityByAsyncRecordIds("Praesenzinformation",this.settings.studentConfirmationReportId,this.studentConfirmationAvailabilityRecordIds$),this.studentConfirmationAvailabilitySub=this.studentConfirmationAvailability$.connect()}ngOnDestroy(){this.studentConfirmationAvailabilitySub.unsubscribe()}getPersonMasterDataUrl(Se){return this.getReportUrl("Person",this.settings.personMasterDataReportId,[Se])}getStudentConfirmationUrl(Se){return this.getReportUrl("Praesenzinformation",this.settings.studentConfirmationReportId,Se)}getEvaluateAbsencesUrl(Se){return this.getReportUrl("Praesenzinformation",this.settings.evaluateAbsencesReportId,Se)}getEventReportUrl(Se){return this.getReportUrl("Anlass",this.settings.testsByCourseReportId,[Se])}getSubscriptionReportUrl(Se,ye){return`${this.settings.apiUrl}/Files/CrystalReports/Anmeldung/${Se}?ids=${ye}&token=${this.storageService.getAccessToken()}`}setStudentConfirmationAvailabilityRecordIds(Se){this.studentConfirmationAvailabilityRecordIds$.next(Se)}getReportUrl(Se,ye,ce){return`${this.settings.apiUrl}/Files/CrystalReports/${Se}/${ye}?ids=${ce.join(",")}&token=${this.storageService.getAccessToken()}`}loadReportAvailability(Se,ye,ce){return this.http.get(`${this.settings.apiUrl}/CrystalReports/AvailableReports/${Se}?ids=${ye}&keys=${ce.join(",")}`).pipe((0,p.U)($.Nf),(0,O.O)(!1),(0,R.x)())}loadReportAvailabilityByAsyncRecordIds(Se,ye,ce){return(0,d.b)(ce.pipe((0,F.h)((_e,ve)=>0===ve),(0,P.w)(_e=>this.loadReportAvailability(Se,ye,_e))),{connector:()=>new w.t(1)})}static#e=this.\u0275fac=function(ye){return new(ye||k)(f.LFG(B.L6),f.LFG(j.V),f.LFG(M.o),f.LFG(q.eN))};static#t=this.\u0275prov=f.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},8366:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4664),d=a(275);class w{constructor(p,O,R,F){this.http=p,this.settings=O,this.codec=R,this.resourcePath=F}get(p,O){return this.http.get(`${this.baseUrl}/${p}`,O).pipe((0,t.w)((0,d.Jx)(this.codec)))}getList(p){return this.http.get(`${this.baseUrl}/`,p).pipe((0,t.w)((0,d.Y0)(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}}},6561:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(8645),d=a(7),w=a(7328),L=a(6699),p=a(7921),O=a(7398),R=a(3997),F=a(5879),P=function($){return $.ToggleSelection="TOGGLE",$.ClearSelection="CLEAR",$}(P||{});let B=(()=>{class ${constructor(){this.action$=new t.x,this.selection$=(0,d.b)(this.action$.pipe((0,L.R)(this.reduceSelection.bind(this),[]),(0,p.O)([])),{connector:()=>new w.t(1)}),this.selectionSub=this.selection$.connect()}ngOnDestroy(){this.selectionSub.unsubscribe()}toggle(j){this.action$.next({type:P.ToggleSelection,payload:j})}clear(j=null){this.action$.next({type:P.ClearSelection,payload:j})}isSelected$(j){return this.selection$.pipe((0,O.U)(M=>M.includes(j)),(0,R.x)())}reduceSelection(j,M){switch(M.type){case P.ToggleSelection:return j.includes(M.payload)?j.filter(q=>q!==M.payload):[...j,M.payload];case P.ClearSelection:return M.payload||[];default:return j}}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275prov=F.Yz7({token:$,factory:$.\u0275fac})}return $})()},8173:(Pe,V,a)=>{"use strict";a.d(V,{V:()=>O});var t=a(5879);let O=(()=>{class R{getLanguage(){return this.getValue("uiCulture")}getAccessToken(){const P=this.getValue("CLX.LoginToken");return P?P.replace(/^"+|"+$/g,""):null}getRefreshToken(){return this.getValue("CLX.RefreshToken")}getTokenExpire(){return this.getValue("CLX.TokenExpire")}getPayload(){const P=this.getAccessToken(),B=P?P.split(".")[1]:null,$=B?B.replace("-","+").replace("_","/"):null,f=JSON.parse(window.atob($||""));return f.roles="holder_roles"in f?f.holder_roles:f.roles,f}getValue(P){return sessionStorage.getItem(P)||localStorage.getItem(P)}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7909:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>_t});var t=a(2572),d=a(2096),w=a(4664),L=a(2181),p=a(7398),O=a(2769),R=a(1389),F=a(7105),P=a(3942),B=a(581),$=a(2816);function j($e,Ee){(0,$.Z)(2,arguments);var ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=ze.getTime()-J.getTime();return Q<0?-1:Q>0?1:Q}var k=a(5879),Te=a(3779),Se=a(5258),ye=a(4141),ce=a(754),_e=a(8121);const ve=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),CompanyName:(0,_e.wS)(ce.Z_),CompanyNameAddition:(0,_e.wS)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),AddressLine1:(0,_e.wS)(ce.Z_),AddressLine2:(0,_e.wS)(ce.Z_),PostalCode:(0,_e.Wx)(ce.Z_),Location:(0,_e.Wx)(ce.Z_),Id:ce.pk});var xe=a(8366),be=a(9862);let ke=(()=>{class $e extends xe.v{constructor(ze,J){super(ze,J,ve,"ApprenticeshipManagers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();const vt=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),PhoneMobile:(0,_e.Wx)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),Id:ce.pk});let rt=(()=>{class $e extends xe.v{constructor(ze,J){super(ze,J,vt,"JobTrainers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();var Mt=a(3005),qe=a(5001);let _t=(()=>{class $e{constructor(ze,J,Q,oe,se,ae){this.studentService=ze,this.personsService=J,this.apprenticeshipManagersService=Q,this.jobTrainersService=oe,this.loadingService=se,this.dropDownItemsService=ae,this.loading$=this.loadingService.loading$}getProfile(ze){return this.loadingService.load((0,t.a)([this.loadStudent(ze),this.loadLegalRepresentatives(ze),this.loadApprenticeshipContracts(ze)]).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this)))))}getMyProfile(){return this.loadingService.load(this.personsService.getMyself().pipe((0,w.w)(ze=>(0,t.a)([(0,d.of)(ze),this.loadLegalRepresentatives(ze.Id),this.loadApprenticeshipContracts(ze.Id),this.loadStayPermitValue(ze.StayPermit)]))).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this))),(0,L.h)(P.Nf)))}loadStudent(ze){return this.studentService.get(ze,{params:(0,O.I)({disableErrorHandlingForStatus:[404]})}).pipe((0,F.Qx)())}loadLegalRepresentatives(ze){return this.studentService.getLegalRepresentatives(ze)}loadApprenticeshipContracts(ze){return this.studentService.getCurrentApprenticeshipContracts(ze,(0,O.I)({disableErrorHandlingForStatus:[404]})).pipe((0,F.Qx)([]))}loadStayPermitValue(ze){return this.dropDownItemsService.getStayPermits().pipe((0,p.U)(J=>J.find(Q=>Q.Key===ze)?.Value||null))}mapToProfile(ze,J,Q,oe=null){return ze?(J=this.getRelevantLegalRepresentatives(ze,J),(0,t.a)([this.loadLegalRepresentativPersons(J),this.loadJobTrainers(Q),this.loadApprenticeshipManagers(Q)]).pipe((0,p.U)(([se,ae,fe])=>this.createProfile(ze,oe,J,se,Q,fe,ae)))):(0,d.of)(null)}loadLegalRepresentativPersons(ze){return 0===ze.length?(0,d.of)([]):this.personsService.getListForIds(ze.map(J=>J.RepresentativeId))}loadJobTrainers(ze){const J=ze.map(Q=>Q.JobTrainer).filter(Q=>"number"==typeof Q);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.jobTrainersService.get(Q)))}loadApprenticeshipManagers(ze){const J=ze.map(Q=>Q.ApprenticeshipManagerId);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.apprenticeshipManagersService.get(Q)))}createProfile(ze,J,Q,oe,se,ae,fe){return{student:ze,stayPermitValue:J||void 0,legalRepresentativePersons:Q.map(je=>this.findPerson(je.RepresentativeId,oe)).filter(P.Nf),apprenticeshipCompanies:se.map(je=>this.createApprenticeshipCompany(je,ae,fe))}}getRelevantLegalRepresentatives(ze,J){const Q=function ie($e){return function M($e,Ee){(0,$.Z)(2,arguments);var ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=j(ze,J),oe=Math.abs(function f($e,Ee){(0,$.Z)(2,arguments);var ze=(0,B.Z)($e),J=(0,B.Z)(Ee);return ze.getFullYear()-J.getFullYear()}(ze,J));ze.setFullYear(1584),J.setFullYear(1584);var se=j(ze,J)===-Q,ae=Q*(oe-Number(se));return 0===ae?0:ae}(new Date,$e.Birthdate||new Date)>=18}(ze);return J.filter(oe=>!Q||oe.RepresentativeAfterMajority)}createApprenticeshipCompany(ze,J,Q){return{apprenticeshipContract:ze,jobTrainer:this.findPerson(ze.JobTrainer,Q),apprenticeshipManager:this.findPerson(ze.ApprenticeshipManagerId,J)}}findPerson(ze,J){return ze&&J.find(Q=>Q.Id===ze)||null}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(Te.l),k.LFG(Se.J),k.LFG(ke),k.LFG(rt),k.LFG(Mt.b),k.LFG(qe.R))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})()},3779:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>ie});var t=a(9862),d=a(4664),w=a(4141),L=a(7346),p=a(275),O=a(4717),R=a(754);const F=R.dt({Id:R.pk,RepresentativeId:R.pk,RepresentativeAfterMajority:R.O7});var P=a(8121);const B=R.dt({Id:R.pk,JobTrainer:(0,P.Wx)(R.pk),ApprenticeshipManagerId:R.pk,ContractDateFrom:(0,P.Wx)(P.L9),ContractDateTo:(0,P.Wx)(P.L9)}),$=R.dt({Id:R.pk,From:P.L9,To:P.L9,EventId:R.pk,EventNumber:R.Z_,EventDesignation:R.Z_,EventLocation:(0,P.Wx)(R.Z_),EventManagerInformation:R.Z_});var f=a(8952);const j=R.dt({LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,Type:(0,P.Wx)(R.Z_),RegistrationId:R.pk,HRef:R.Z_}),M=R.dt({Id:R.Z_,LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Type:(0,P.Wx)(R.Z_),Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,HRef:R.Z_});var q=a(5879);let ie=(()=>{class k extends L.r{constructor(Se,ye){super(Se,ye,O.Z,"Students","FullName")}getLegalRepresentatives(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LegalRepresentatives`,{params:ye}).pipe((0,d.w)((0,p.Y0)(F)))}getCurrentApprenticeshipContracts(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/ApprenticeshipContracts/Current`,{params:ye}).pipe((0,d.w)((0,p.Y0)(B)))}getLessonAbsences(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonAbsences`,{params:ye}).pipe((0,d.w)((0,p.Y0)(f.C)))}getLessonIncidents(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonIncidents`,{params:ye}).pipe((0,d.w)((0,p.Y0)(j)))}getLessonDispensations(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonDispensations`,{params:ye}).pipe((0,d.w)((0,p.Y0)(M)))}getTimetableEntries(Se,ye={}){return ye instanceof t.LE||(ye=new t.LE({fromObject:ye})),ye=ye.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation,EventManagerInformation"),this.http.get(`${this.baseUrl}/${Se}/TimetableEntries/CurrentSemester`,{params:ye}).pipe((0,d.w)((0,p.Y0)($)))}static#e=this.\u0275fac=function(ye){return new(ye||k)(q.LFG(t.eN),q.LFG(w.L6))};static#t=this.\u0275prov=q.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},3219:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>F});var t=a(4664),d=a(4141),w=a(6514),L=a(275),p=a(8366),O=a(5879),R=a(9862);let F=(()=>{class P extends p.v{constructor($,f){super($,f,w.t,"Subscriptions")}getIdSubscriptionsByStudentAndCourse($,f){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${$}&filter.EventId=;${f}`).pipe((0,t.w)((0,L.Y0)(w.Y)))}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(d.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},6869:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>p});var t=a(8658),d=a(5619),w=a(8180),L=a(5879);let p=(()=>{class O{constructor(){this.toastsSubject=new d.X([]),this.toasts$=this.toastsSubject.asObservable()}success(F,P){this.addUnique({message:F,header:P,classname:"bg-success text-light",icon:"check_circle"})}warning(F,P){this.addUnique({message:F,header:P,classname:"bg-warning",icon:"help"})}error(F,P){this.addUnique({message:F,header:P,classname:"bg-danger text-light",icon:"cancel"})}remove(F){this.updateToasts(P=>P.filter(B=>!(0,t.Z)(B,F)))}addUnique(F){this.updateToasts(P=>{if(!this.exists(P,F))return[...P,F]})}exists(F,P){return!!F.find(B=>B.message===P.message&&B.header===P.header)}updateToasts(F){this.toasts$.pipe((0,w.q)(1)).subscribe(P=>{const B=F(P);B&&this.toastsSubject.next(B)})}static#e=this.\u0275fac=function(P){return new(P||O)};static#t=this.\u0275prov=L.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},7346:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>F});var t=a(4664),d=a(7398),w=a(754),L=a(7470),p=a(275),O=a(8366);class F extends O.v{constructor(B,$,f,j,M,q="Id"){super(B,$,f,j),this.labelAttr=M,this.keyAttr=q,this.typeaheadCodec=w.dt((0,L.e)(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(B,$){const f={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${B}*`}};return this.http.get(`${this.baseUrl}/`,$?this.mergeHttpParams(f,$):f).pipe((0,t.w)((0,p.Y0)(this.typeaheadCodec)),(0,d.U)(j=>j.map(M=>({Key:M[this.keyAttr],Value:M[this.labelAttr]}))))}getTypeaheadItemByKey(B){return this.http.get(`${this.baseUrl}/${B}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe((0,t.w)((0,p.Jx)(this.typeaheadCodec)),(0,d.U)($=>({Key:$[this.keyAttr],Value:$[this.labelAttr]})))}mergeHttpParams(B,$){const f={params:{...B.params,...$.params}};return $.params.fields&&(f.params.fields=B.params.fields.concat(",",$.params.fields)),f}}},7938:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>_e});var t=a(8645),d=a(7921),w=a(3620),L=a(4664),p=a(7398),O=a(7081),R=a(9397),F=a(3786),P=a(275),B=a(7105),$=a(5879),f=a(8366),j=a(4141),M=a(9862);let q=(()=>{class ve extends f.v{constructor(be,ke){super(be,ke,F.PG,"UserSettings")}getUserSettingsCst(be){return this.http.get(`${this.baseUrl}/Cst`,{params:be}).pipe((0,L.w)((0,P.Jx)(this.codec)))}updateUserSettingsCst(be){return this.http.patch(`${this.baseUrl}/Cst`,be)}getAccessInfo(){return this.http.get(`${this.baseUrl}/?expand=AccessInfo`).pipe((0,L.w)((0,P.Jx)(F.Az)),(0,p.U)(({AccessInfo:be})=>be))}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(M.eN),$.LFG(j.L6))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();const k="presenceControlViewMode",Te="presenceControlGroupView",Se="notification",ye="notificationTypesInactive",ce="notificationData";let _e=(()=>{class ve{constructor(be){this.settingsRestService=be,this.refetch$=new t.x,this.settings$=this.refetch$.pipe((0,d.O)(null),(0,w.b)(100),(0,L.w)(()=>this.settingsRestService.getUserSettingsCst()),(0,p.U)(ke=>ke.Settings),(0,O.d)(1)),this.accessInfo$=this.settingsRestService.getAccessInfo().pipe((0,O.d)(1))}refetch(){this.refetch$.next()}getSetting(be){return this.settings$.pipe((0,p.U)(ke=>ke.find(vt=>vt.Key===be)?.Value??null))}saveSetting(be,ke){return this.settingsRestService.updateUserSettingsCst(this.buildSettings(be,ke)).pipe((0,R.b)(()=>this.refetch$.next()))}getPresenceControlViewMode(){return this.getSetting(k).pipe((0,B.LS)('{"presenceControl":"grid"}'),(0,L.w)((0,P.Jx)(F.iu)),(0,p.U)(({presenceControl:be})=>be))}savePresenceControlViewMode(be){return this.saveSetting(k,F.iu.encode({presenceControl:be}))}getPresenceControlGroupView(){return this.getSetting(Te).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.Sx)))}savePresenceControlGroupView(be){return this.saveSetting(Te,F.Sx.encode(be))}getNotificationChannels(){return this.getSetting(Se).pipe((0,B.LS)("{}"),(0,L.w)((0,P.Jx)(F.b7)))}saveNotificationChannels(be){return this.saveSetting(Se,F.b7.encode(be))}getNotificationTypesInactive(){return this.getSetting(ye).pipe((0,B.LS)(""),(0,L.w)((0,P.Jx)(F.k_)))}saveNotificationTypesInactive(be){return this.saveSetting(ye,F.k_.encode(be))}getNotificationData(){return this.getSetting(ce).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.zn)))}saveNotificationData(be){return this.saveSetting(ce,F.zn.encode(be))}getRolesAndPermissions(){return this.accessInfo$.pipe((0,p.U)(({Roles:be,Permissions:ke})=>[...be,...ke]),(0,d.O)(null))}buildSettings(be,ke){return{Id:"Cst",Settings:[{Key:be,Value:ke}]}}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(q))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})()},6486:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>Ri});var t=a(6814),d=a(9862),w=a(6223),L=a(1523),p=a(253),O=a(9515),P=(a(2628),a(59),a(6567)),B=a(6283),$=a(4141),f=a(5879),j=a(813);let M=(()=>{class ht{constructor(lt,Ot){this.auth=lt,this.settings=Ot}intercept(lt,Ot){if(lt.url.startsWith(this.settings.apiUrl)&&this.auth.accessToken){const qt=lt.headers.set("CLX-Authorization",`token_type=urn:ietf:params:oauth:token-type:jwt-bearer, access_token=${this.auth.accessToken}`);return Ot.handle(lt.clone({headers:qt}))}return Ot.handle(lt)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.LFG(j.e),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();var q=a(2769),ie=a(2394);const ye=function Se(ht,pn,lt){var Ot=ht.length;return lt=void 0===lt?Ot:lt,!pn&<>=Ot?ht:function k(ht,pn,lt){var Ot=-1,qt=ht.length;pn<0&&(pn=-pn>qt?0:qt+pn),(lt=lt>qt?qt:lt)<0&&(lt+=qt),qt=pn>lt?0:lt-pn>>>0,pn>>>=0;for(var Kr=Array(qt);++Ot{class ht{constructor(lt,Ot){this.router=lt,this.settings=Ot}intercept(lt,Ot){if(!lt.headers.has("X-Role-Restriction")&&this.settings.headerRoleRestriction){const qt=this.getCurrentModuleName();if(qt&&this.settings.headerRoleRestriction[qt]){const Kr=lt.headers.set("X-Role-Restriction",this.settings.headerRoleRestriction[qt]);return Ot.handle(lt.clone({headers:Kr}))}}return Ot.handle(lt)}getCurrentModuleName(){const lt=this.router.url?(0,Ae.D9)(this.router.url):null;return lt?Oe(lt):null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.LFG(L.F0),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();a(2015),a(1133);var vn=a(4229),ir=(a(9608),a(5582),a(8898)),Wi=(a(1442),a(9949),a(8075),a(3036),a(917),a(9753),a(238),a(6651)),jn=(a(4703),a(9410),a(500),a(6001),a(363));let vr=(()=>{class ht{constructor(lt){this.translate=lt}transform(lt){return`${this.translate.instant("tests.factor")} ${lt.Weight} (${lt.WeightPercent}%)`}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestWeight",type:ht,pure:!0})}return ht})();var Sr=a(7483);let vi=(()=>{class ht{constructor(lt){this.translate=lt}transform(lt,Ot,qt="tests.points"){return lt.IsPointGrading&<.IsPublished?`${(0,Sr.W3)(Ot,lt)?.Points||"\u2013"} / ${lt.MaxPointsAdjusted||lt.MaxPoints} ${this.translate.instant(qt)}`:""}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestPoints",type:ht,pure:!0})}return ht})();a(9707),a(3388),a(8705);var ui=a(5619);function ys(ht,pn,lt){return pn?pn.Grade:function Ui(ht,pn){return pn?.Grades.find(lt=>lt.Id===ht?.GradeId)?.Designation}(ht,lt)||ht?.GradeValue}let xr=(()=>{class ht{constructor(){}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-final-grade"]],inputs:{finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},features:[f._Bn([t.JJ])],decls:14,vars:11,consts:[[1,"final-entry"],["data-testid","final-grade"],["data-testid","average-test-results"]],template:function(Ot,qt){1&Ot&&(f.TgZ(0,"div",0)(1,"div"),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",1)(5,"span"),f._uU(6),f.qZA()(),f.TgZ(7,"div"),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"div",2)(11,"span"),f._uU(12),f.ALo(13,"decimalOrDash"),f.qZA()()()),2&Ot&&(f.xp6(2),f.Oqu(f.lcZ(3,4,"dossier.grade")),f.xp6(4),f.Oqu(qt.getGradeForStudent()||"\u2013"),f.xp6(2),f.Oqu(f.lcZ(9,6,"dossier.average")),f.xp6(4),f.Oqu(f.xi3(13,8,qt.average,"1-3")))},dependencies:[O.X$,Wi.fY],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]})}return ht})();var Kt=a(7328),Mn=a(7398),hr=a(8645),$r=a(3620),bi=a(2181),Nr=a(9773),Ze=a(1074);const Ve=function(ht){return{maxPoints:ht}};function ct(ht,pn){if(1&ht&&(f.TgZ(0,"div",15),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht){const lt=f.oxw(2);f.xp6(1),f.hij(" ",f.xi3(2,1,"global.validation-errors.invalidPoints",f.VKq(4,Ve,lt.maxPoints))," ")}}function Yt(ht,pn){if(1&ht){const lt=f.EpF();f.TgZ(0,"div",10)(1,"label",11),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",5)(5,"input",12,13),f.NdJ("input",function(){f.CHM(lt);const qt=f.MAs(6),Kr=f.oxw();return f.KtG(Kr.onPointsChange(qt.value))}),f.qZA()(),f.YNc(7,ct,3,6,"div",14),f.qZA()}if(2&ht){const lt=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,8,"dossier.dialog.points")),f.xp6(2),f.ekj("is-invalid",lt.pointsInput.errors),f.xp6(1),f.ekj("is-invalid",lt.pointsInput.errors),f.s9C("max",lt.maxPoints),f.Q6J("formControl",lt.pointsInput),f.xp6(2),f.Q6J("ngIf",lt.pointsInput.errors)}}let gr=(()=>{class ht{constructor(lt,Ot){this.activeModal=lt,this.courseService=Ot,this.maxPoints=0,this.gradeSubject$=new hr.x,this.pointsSubject$=new hr.x,this.closeButtonDisabled$=new ui.X(!1),this.gradingScaleDisabled$=new ui.X(!0),this.grade$=this.gradeSubject$.pipe((0,$r.b)(500)),this.points$=this.pointsSubject$.pipe((0,$r.b)(500),(0,bi.h)(this.isValid.bind(this)),(0,Mn.U)(Number)),this.destroy$=new hr.x}ngOnInit(){this.maxPoints=(0,Sr.Re)(this.test),this.pointsInput=new w.p4({value:this.points,disabled:!1},[w.kI.min(0),w.kI.pattern("[0-9]+([\\.][0-9]+)?"),this.maxPointValidator()]),this.gradingScaleDisabled$.next(this.test.IsPointGrading&&this.points>0),this.grade$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRuequestBodyForGradeChange.bind(this))).subscribe(lt=>this.updateTestResult(lt)),this.points$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(lt=>this.updateTestResult(lt))}onGradeChange(lt){this.gradeSubject$.next(lt)}onPointsChange(lt){this.pointsSubject$.next(lt),this.gradingScaleDisabled$.next(lt.length>0)}get updatedTestResult(){return this.updatedTest?.TestResults[0]}updateTestResult(lt){this.closeButtonDisabled$.next(!0),this.courseService.updateTestResult(this.test.CourseId,lt).subscribe(Ot=>{this.gradeId=Ot.body.TestResults[0]?.GradeId,this.updatedTest=Ot.body,this.closeButtonDisabled$.next(!1)})}buildRuequestBodyForGradeChange(lt){return{StudentIds:[this.studentId],TestId:this.test.Id,GradeId:lt}}buildRequestBodyPointsChange(lt){return{StudentIds:[this.studentId],TestId:this.test.Id,Points:lt}}isValid(lt){return""!==lt&&!isNaN(Number(lt))&&!(Number(lt)<0||Number(lt)>this.maxPoints)}maxPointValidator(){return lt=>Number(lt.value)>(0,Sr.Re)(this.test)?{customMax:!0}:null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(p.Kz),f.Y36(Ze.s))};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-edit"]],inputs:{test:"test",gradeId:"gradeId",gradeOptions:"gradeOptions",points:"points",studentId:"studentId"},decls:19,vars:20,consts:[[1,"modal-body"],[1,"mb-4"],["class","form-group row",4,"ngIf"],[1,"form-group","row","mt-2"],["for","grade",1,"col-6","col-form-label"],[1,"col-6"],["id","grade",3,"options","value","allowEmpty","disabled","valueChange"],[1,"text-muted","mt-4"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"form-group","row"],["for","points",1,"col-6","col-form-label"],["id","points","type","number","step","0.01","min","0",1,"form-control",3,"max","formControl","input"],["pointInput",""],["class","invalid-feedback col-6 offset-6","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback","col-6","offset-6"]],template:function(Ot,qt){1&Ot&&(f.TgZ(0,"div",0)(1,"p",1),f._uU(2),f.qZA(),f.YNc(3,Yt,8,10,"div",2),f.TgZ(4,"div",3)(5,"label",4),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"div",5)(9,"erz-select",6),f.NdJ("valueChange",function(ji){return qt.onGradeChange(ji)}),f.ALo(10,"async"),f.qZA()()(),f.TgZ(11,"p",7),f._uU(12),f.ALo(13,"translate"),f.qZA()(),f.TgZ(14,"div",8)(15,"button",9),f.NdJ("click",function(){return qt.activeModal.close(qt.updatedTestResult)}),f.ALo(16,"async"),f._uU(17),f.ALo(18,"translate"),f.qZA()()),2&Ot&&(f.xp6(2),f.Oqu(qt.test.Designation),f.xp6(1),f.Q6J("ngIf",qt.test.IsPointGrading),f.xp6(3),f.Oqu(f.lcZ(7,10,"dossier.dialog.grade")),f.xp6(3),f.Q6J("options",qt.gradeOptions)("value",qt.gradeId)("allowEmpty",!1)("disabled",f.lcZ(10,12,qt.gradingScaleDisabled$)),f.xp6(3),f.hij(" ",f.lcZ(13,14,qt.test.IsPointGrading?"dossier.dialog.hint.points":"dossier.dialog.hint.grade")," "),f.xp6(3),f.Q6J("disabled",f.lcZ(16,16,qt.closeButtonDisabled$)),f.xp6(2),f.hij(" ",f.lcZ(18,18,"dossier.dialog.close")," "))},dependencies:[t.O5,w.Fj,w.wV,w.JJ,w.qQ,w.Fd,w.oH,vn.H,t.Ov,O.X$]})}return ht})();var Si=a(8405);function Yn(ht,pn){if(1&ht){const lt=f.EpF();f.TgZ(0,"a",11),f.NdJ("click",function(){f.CHM(lt);const qt=f.oxw().erzLet,Kr=f.oxw();return f.KtG(Kr.editGrading(qt))}),f.TgZ(1,"i",12),f._uU(2,"edit"),f.qZA(),f.TgZ(3,"span",13),f._uU(4),f.ALo(5,"async"),f.qZA()()}if(2&ht){const lt=f.oxw(2);f.xp6(4),f.Oqu(f.lcZ(5,1,lt.grading$))}}function sr(ht,pn){if(1&ht&&(f.TgZ(0,"span",13),f._uU(1),f.ALo(2,"async"),f.qZA()),2&ht){const lt=f.oxw(2);f.xp6(1),f.Oqu(f.lcZ(2,1,lt.grading$))}}function Wr(ht,pn){if(1&ht&&(f.TgZ(0,"div",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht){const lt=f.oxw().erzLet;f.xp6(1),f.hij(" ",f.lcZ(2,1,lt.IsPublished?"tests.published":"tests.not-published")," ")}}function Mi(ht,pn){if(1&ht&&(f.TgZ(0,"div",1)(1,"div",2),f._uU(2),f.qZA(),f.TgZ(3,"div",3),f._uU(4),f.ALo(5,"date"),f.qZA(),f.TgZ(6,"div",4),f.YNc(7,Yn,6,3,"a",5),f.YNc(8,sr,3,3,"ng-template",null,6,f.W1O),f.qZA(),f.TgZ(10,"div",7),f._uU(11),f.ALo(12,"erzTestWeight"),f.qZA(),f.TgZ(13,"div",8)(14,"span"),f._uU(15),f.ALo(16,"erzTestPoints"),f.qZA()(),f.TgZ(17,"div",9),f._uU(18),f.qZA(),f.YNc(19,Wr,3,3,"div",10),f.qZA()),2&ht){const lt=pn.erzLet,Ot=f.MAs(9),qt=f.oxw();f.xp6(2),f.hij(" ",lt.Designation," "),f.xp6(2),f.hij(" ",f.xi3(5,8,lt.Date,"dd.MM.yyyy")," "),f.xp6(3),f.Q6J("ngIf",qt.isEditable&<.IsOwner)("ngIfElse",Ot),f.xp6(4),f.hij(" ",f.lcZ(12,11,lt)," "),f.xp6(4),f.Oqu(f.Dn7(16,13,lt,qt.studentId,"dossier.points")),f.xp6(3),f.hij(" ",lt.Owner," "),f.xp6(1),f.Q6J("ngIf",qt.isEditable)}}let di=(()=>{class ht{constructor(lt,Ot){this.gradeService=lt,this.modalService=Ot,this.test$=new Kt.t(1),this.grading$=this.test$.pipe((0,Mn.U)(this.getGrading.bind(this)))}ngOnChanges(lt){lt.test&&this.test$.next(this.test)}editGrading(lt){const Ot=this.modalService.open(gr,{backdrop:"static"});Ot.componentInstance.test=lt,Ot.componentInstance.gradeId=this.getGradeId(lt),Ot.componentInstance.gradeOptions=ht.mapToOptions(this.gradingScale),Ot.componentInstance.studentId=this.studentId,Ot.componentInstance.points=this.getPoints(lt),Ot.result.then(qt=>{qt&&this.updateStudentGrade(qt,lt)},()=>{})}updateStudentGrade(lt,Ot){const qt=(0,Sr.Ps)(lt,Ot);this.gradeService.updateTest$.next(qt)}getGrading(lt){return this.gradingScale?.Grades.find(Ot=>Ot.Id===this.getGradeId(lt))?.Designation||"\u2013"}getGradeId(lt){return(0,Sr.W3)(this.studentId,lt)?.GradeId||null}getPoints(lt){return(0,Sr.W3)(this.studentId,lt)?.Points||null}static mapToOptions(lt){return lt?.Grades.map(Ot=>({Key:Ot.Id,Value:Ot.Designation}))||null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(Si.S),f.Y36(p.FF))};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[["class","test-entry",4,"erzLet"],[1,"test-entry"],["data-testid","test-designation",1,"designation"],["data-testid","test-date",1,"date"],[1,"grade"],["class","btn btn-link","aria-label","edit grade",3,"click",4,"ngIf","ngIfElse"],["notEditable",""],["data-testid","test-factor",1,"factor"],["data-testid","test-points",1,"points"],["data-testid","test-teacher",1,"teacher"],["class","state","data-testid","test-status",4,"ngIf"],["aria-label","edit grade",1,"btn","btn-link",3,"click"],["data-testid","test-grade-edit-icon",1,"material-icons"],["data-testid","test-grade"],["data-testid","test-status",1,"state"]],template:function(Ot,qt){1&Ot&&(f.YNc(0,Mi,20,17,"div",0),f.ALo(1,"async")),2&Ot&&f.Q6J("erzLet",f.lcZ(1,1,qt.test$))},dependencies:[t.O5,P.e,t.Ov,t.uU,O.X$,vr,vi],styles:['.test-entry[_ngcontent-%COMP%]{border-top:1px solid #dee2e6;padding:1rem;display:grid;grid-template-areas:"designation designation grade factor" "date date points ." "teacher teacher . ." "state state . .";grid-template-columns:repeat(4,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}.designation[_ngcontent-%COMP%]{grid-area:designation}.date[_ngcontent-%COMP%]{grid-area:date}.grade[_ngcontent-%COMP%]{grid-area:grade}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;color:#000;padding:0;text-decoration:none}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.grade[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:-1em;color:#00000080}.points[_ngcontent-%COMP%]{grid-area:points;color:#00000080}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.state[_ngcontent-%COMP%]{grid-area:state}@media (max-width: 575.98px){.test-entry[_ngcontent-%COMP%]{grid-template-areas:"designation designation" "date grade" "factor points" "teacher teacher" "state state";grid-template-columns:repeat(2,1fr)}}']})}return ht})();function ns(ht,pn){if(1&ht&&f._UZ(0,"erz-dossier-single-test",5),2&ht){const lt=pn.$implicit,Ot=f.oxw(3);f.Q6J("test",lt)("studentId",Ot.studentId)("gradingScale",Ot.getGradingScaleOfTest(lt))("isEditable",Ot.isEditable)}}function bs(ht,pn){if(1&ht&&(f.TgZ(0,"div"),f._UZ(1,"erz-dossier-grades-final-grade",3),f.YNc(2,ns,1,4,"erz-dossier-single-test",4),f.qZA()),2&ht){const lt=f.oxw().erzLet,Ot=f.oxw();f.xp6(1),f.Q6J("finalGrade",Ot.decoratedCourse.finalGrade)("grading",Ot.decoratedCourse.grading)("gradingScale",Ot.decoratedCourse.gradingScale)("average",Ot.decoratedCourse.average),f.xp6(1),f.Q6J("ngForOf",lt)}}function zi(ht,pn){1&ht&&(f.TgZ(0,"p",6),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"dossier.no-tests")," "))}function Oi(ht,pn){if(1&ht&&(f.ynx(0),f.YNc(1,bs,3,5,"div",1),f.YNc(2,zi,3,3,"ng-template",null,2,f.W1O),f.BQk()),2&ht){const lt=pn.erzLet,Ot=f.MAs(3);f.xp6(1),f.Q6J("ngIf",lt.length>0)("ngIfElse",Ot)}}let Ii=(()=>{class ht{ngOnChanges(lt){lt.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new ui.X([])}sortedTests(){return this.decoratedCourse.course.Tests?(0,Sr.df)(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(lt){return(0,Sr.fr)(lt,this.gradingScales)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["noTests",""],[3,"finalGrade","grading","gradingScale","average"],[3,"test","studentId","gradingScale","isEditable",4,"ngFor","ngForOf"],[3,"test","studentId","gradingScale","isEditable"],["data-testid","message-no-tests",1,"p-3"]],template:function(Ot,qt){1&Ot&&(f.YNc(0,Oi,4,2,"ng-container",0),f.ALo(1,"async")),2&Ot&&f.Q6J("erzLet",f.lcZ(1,1,qt.sortedTests$))},dependencies:[t.sg,t.O5,P.e,xr,di,t.Ov,O.X$]})}return ht})();var Pi=a(5841);function Gn(ht,pn){if(1&ht&&(f.TgZ(0,"span",2),f._uU(1),f.qZA()),2&ht){const lt=f.oxw();f.xp6(1),f.hij(" (",lt.grade,")")}}function Es(ht,pn){if(1&ht&&(f.TgZ(0,"span",3),f._uU(1),f.ALo(2,"number"),f.qZA()),2&ht){const lt=f.oxw();f.xp6(1),f.hij(" (",f.xi3(2,1,lt.average,"1.1-3"),")")}}let Zi=(()=>{class ht{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-course-header"]],inputs:{designation:"designation",finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},decls:3,vars:3,consts:[["class","grade","data-testId","grade",4,"ngIf"],["class","average","data-testId","average",4,"ngIf"],["data-testId","grade",1,"grade"],["data-testId","average",1,"average"]],template:function(Ot,qt){1&Ot&&(f._uU(0),f.YNc(1,Gn,2,1,"span",0),f.YNc(2,Es,3,4,"span",1)),2&Ot&&(f.Oqu(qt.designation),f.xp6(1),f.Q6J("ngIf",qt.grade),f.xp6(1),f.Q6J("ngIf",!qt.grade&&qt.average))},dependencies:[t.O5,t.JJ],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]})}return ht})();a(1703),a(7625);let Ri=(()=>{class ht{static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275mod=f.oAB({type:ht});static#n=this.\u0275inj=f.cJS({providers:[{provide:d.TP,useClass:q.R,multi:!0},{provide:d.TP,useClass:M,multi:!0},{provide:d.TP,useClass:mt,multi:!0}],imports:[t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw.forChild(),p.IJ,B.Rq,jn.A0,t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw,p.IJ,B.Rq,jn.A0]})}return ht})();f.B6R(Pi.d,function(){return[t.sg,t.O5,p.gY,p.Gk,p.gW,p.k9,ir.H,Ii,Zi]},function(){return[t.Ov,O.X$]})},6163:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>d});const d=new(a(5879).OlP)("Confirm Absences Service")},6100:(Pe,V,a)=>{"use strict";function p(F){return 0===F.length}function R(F){return Array.isArray(F)}a.d(V,{kJ:()=>R,yD:()=>p})},2220:(Pe,V,a)=>{"use strict";function t(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2],R[3],R[4],R[5])}function d(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2])}function w(O){return L(O)+`T${p(O.getHours())}:${p(O.getMinutes())}:${p(O.getSeconds())}`}function L(O){return`${O.getFullYear()}-${p(O.getMonth()+1)}-${p(O.getDate())}`}function p(O){return("0"+O).slice(-2)}a.d(V,{Aq:()=>L,Uy:()=>t,nx:()=>d,oZ:()=>w})},275:(Pe,V,a)=>{"use strict";a.d(V,{Jx:()=>j,Y0:()=>M});var t=a(754),d=a(5040),w=a(5803);function O(q){return void 0!==q.message?q.message:"Invalid value ".concat(function L(q){return"function"==typeof q?(0,t.$P)(q):"number"!=typeof q||isFinite(q)?JSON.stringify(q):isNaN(q)?"NaN":q>0?"Infinity":"-Infinity"}(q.value)," supplied to ").concat(function p(q){return q.map(function(ie){var Te=ie.type;return"".concat(ie.key,": ").concat(Te.name)}).join("/")}(q.context))}var P={report:(0,w.g_)(function R(q){return q.map(O)},function F(){return["No errors!"]})},B=a(8504),$=a(2096);class f extends Error{constructor(){super(...arguments),this.name="DecodeError"}}function j(q){return ie=>(0,d.zG)(q.decode(ie),(0,w.g_)(k=>(0,B._)(()=>new f(P.report((0,w.t$)(k)).join("\n"))),k=>(0,$.of)(k)))}function M(q){return j(t.IX(q))}},1140:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>w,q:()=>d});var t=a(7398);function d(L,p){return L.pipe((0,t.U)(O=>O.find(R=>R.Key===p)||null))}function w(L){return L.slice().sort((p,O)=>p.Value.localeCompare(O.Value))}},3942:(Pe,V,a)=>{"use strict";function d(P){return null!==P}function w(P){return"string"==typeof P&&P.length>0}function L(P){return B=>!P(B)}function p(P){return B=>B.length>=P}function O(P){return!!P}function R(P){return B=>B instanceof P}function F(P,B,$){return $.indexOf(P)===B}a.d(V,{$L:()=>p,Nf:()=>d,Tw:()=>F,V9:()=>R,YO:()=>w,fQ:()=>O,ff:()=>L})},1257:(Pe,V,a)=>{"use strict";a.d(V,{YV:()=>B,Z6:()=>P,ZX:()=>$});var t=a(2572),d=a(2096),w=a(6232),L=a(2181),p=a(4664),O=a(7921),R=a(7398),F=a(7081);function P(j,M,q){return(0,t.a)([j,M]).pipe((0,L.h)(([ie,k])=>k),(0,p.w)(([ie,k])=>{const Te=q?ie?.get(q)||null:ie;return Te?Te.statusChanges.pipe((0,O.O)(Te.status),(0,R.U)(()=>function f(j){return j?Object.keys(j.errors||{}).map(M=>({error:M,params:j.errors&&j.errors[M]instanceof Object?j.errors[M]:null})):[]}(Te))):(0,d.of)([])}),(0,O.O)([]),(0,F.d)(1))}function B(j,M){return j.pipe((0,R.U)(q=>q.get(M)||null))}function $(j,M){return B(j,M).pipe((0,p.w)(q=>q?q.valueChanges:w.E))}},1389:(Pe,V,a)=>{"use strict";function t(d){return w=>d(...w)}a.d(V,{h:()=>t})},49:(Pe,V,a)=>{"use strict";a.d(V,{PO:()=>w,Qw:()=>p,fG:()=>d,kK:()=>O});var t=a(5301);function d(R){const F=R.reduce((P,B)=>(P[B.StudentRef.Id]||(P[B.StudentRef.Id]=[]),P[B.StudentRef.Id].push(B.LessonRef.Id),P),{});return Object.keys(F).map(P=>({personIds:[Number(P)],lessonIds:F[P]}))}function w(R){const F={};return R.forEach(P=>{F[P.StudentRef.Id]||(F[P.StudentRef.Id]={}),F[P.StudentRef.Id][String(P.TypeRef.Id)]||(F[P.StudentRef.Id][String(P.TypeRef.Id)]=[]),F[P.StudentRef.Id][String(P.TypeRef.Id)].push(P.LessonRef.Id)}),Object.keys(F).reduce((P,B)=>[...P,...Object.keys(F[B]).map($=>({personId:Number(B),presenceTypeId:"null"===$?null:Number($),lessonIds:F[B][String($)]}))],[])}function p(R){return R.slice().sort((F,P)=>F.LessonDateTimeFrom.getTime()-P.LessonDateTimeFrom.getTime())}function O(R){return`${R.EventDesignation}, ${(0,t.Z)(R.LessonDateTimeFrom,"dd.MM.yyyy")}, ${(0,t.Z)(R.LessonDateTimeFrom,"HH:mm")}-${(0,t.Z)(R.LessonDateTimeTo,"HH:mm")}`}},3986:(Pe,V,a)=>{"use strict";function t(p){return 0===p.length?0:w(p.map(({value:O,weight:R})=>O*R))/w(p.map(({weight:O})=>O))}function d(p){return 0===p.length?0:Number(w(p)/p.length)}function w(p){return p.reduce(L,0)}function L(p,O){return p+O}a.d(V,{S:()=>t,Y:()=>d})},7105:(Pe,V,a)=>{"use strict";a.d(V,{LS:()=>ie,Pl:()=>q,Qx:()=>j,eG:()=>k,re:()=>Te});var t=a(9862),d=a(2096),w=a(8504),L=a(4911),p=a(3019),O=a(2438),R=a(1687),F=a(6306),P=a(7398),B=a(3572),$=a(4664),f=a(7921);function j(Se){return(0,F.K)(ye=>ye instanceof t.UA&&404===ye.status?(0,d.of)(Se||null):(0,w._)(()=>ye))}function q(Se){return ye=>(0,L.P)(()=>(Se(),ye))}function ie(Se){return ye=>ye.pipe((0,P.U)(ce=>ce??Se),(0,B.d)(Se))}function k(Se,ye){return Se.pipe((0,$.w)(ce=>ye.pipe((0,f.O)(ce),(0,P.U)(()=>ce))))}function Te(Se,ye=window.document){return(0,p.T)(...["click","keydown"].map(ce=>(0,O.R)(ye,ce))).pipe((0,f.O)(null),(0,$.w)(()=>(0,R.F)(Se)),(0,P.U)(()=>{}))}},7749:(Pe,V,a)=>{"use strict";function t(L){return L.slice().sort((p,O)=>p.Sort-O.Sort)}function d(L){return L.map(p=>({Key:p.Id,Value:p.Designation||""}))}function w(L,p){return L.map(O=>Object.assign(O,{Group:p}))}a.d(V,{KV:()=>t,nC:()=>d,pt:()=>w})},6031:(Pe,V,a)=>{"use strict";function t(w,L){return d(w).includes(L)}function d(w){return w?w.split(";"):[]}a.d(V,{F:()=>d,n:()=>t})},7470:(Pe,V,a)=>{"use strict";function t(d,w){return w.reduce((L,p)=>({...L,[p]:d[p]}),{})}a.d(V,{e:()=>t})},1342:(Pe,V,a)=>{"use strict";a.d(V,{D9:()=>L,dD:()=>d,tW:()=>w});var t=a(1523);function d(p){return String(p||"").split("&").reduce((O,R)=>{const[F,P]=R.split("=");return{...O,[F]:P}},{})}function w(p){return Object.keys(p).reduce((O,R)=>{const F=p[R];return[...O,null==F?R:`${R}=${F}`]},[]).join("&")}function L(p){const P=(new t.sz).parse(p)?.root.children[t.eC]?.segments;return P?P[0].path:null}},4515:(Pe,V,a)=>{"use strict";var t=a(6593),d=a(5879),w=a(6814),L=a(9862);const p=void 0,R=["de-CH",[["AM","PM"],p,p],p,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So","Mo","Di","Mi","Do","Fr","Sa"]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],p,p],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",p,"{1} 'um' {0}",p],[".","\u2019",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4-#,##0.00","#E0"],"CHF","CHF","Schweizer Franken",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[p,"\u0440."],CUC:[p,"Cub$"],DEM:["DM"],EUR:[],FKP:[p,"Fl\xa3"],GHS:[p,"\u20b5"],GNF:[p,"F.G."],KMF:[p,"FC"],PHP:[p,"\u20b1"],RON:[p,"L"],RUR:[p,"\u0440."],RWF:[p,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[p,"K"]},"ltr",function O(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===I?1:5}],F=void 0,B=["fr-CH",[["AM","PM"],F,F],F,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],F,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],F,[["av. J.-C.","ap. J.-C."],F,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd.MM.yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH.mm:ss 'h' zzzz"],["{1} {0}","{1}, {0}","{1} '\xe0' {0}",F],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":","."],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"CHF","CHF","franc suisse",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[F,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[F,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[F,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[F,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[F,"\xa5"],KMF:[F,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[F,"$C"],NZD:["$NZ","$"],PHP:[F,"\u20b1"],RHD:["$RH"],RON:[F,"L"],RWF:[F,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[F,"$T"],TTD:["$TT","$"],TWD:[F,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[F,"$"],XPF:["FCFP"],ZMW:[F,"Kw"]},"ltr",function P(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length,te=parseInt(W.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 0===v||1===v?1:0===te&&0!==v&&v%1e6==0&&0===I||!(te>=0&&te<=5)?4:5}];var $=a(7328),f=a(3019),j=a(4664),M=a(7398);const q={schedule(W,h){const v=setTimeout(W,h);return()=>clearTimeout(v)},scheduleBeforeRender(W){if(typeof window>"u")return q.schedule(W,0);if(typeof window.requestAnimationFrame>"u")return q.schedule(W,16);const h=window.requestAnimationFrame(W);return()=>window.cancelAnimationFrame(h)}};let ye;function ke(W,h,v){let I=v;return function k(W){return!!W&&W.nodeType===Node.ELEMENT_NODE}(W)&&h.some((te,me)=>!("*"===te||!function ce(W,h){if(!ye){const v=Element.prototype;ye=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector}return W.nodeType===Node.ELEMENT_NODE&&ye.call(W,h)}(W,te)||(I=me,0))),I}class rt{constructor(h,v){this.componentFactory=v.get(d._Vd).resolveComponentFactory(h)}create(h){return new Mt(this.componentFactory,h)}}class Mt{constructor(h,v){this.componentFactory=h,this.injector=v,this.eventEmitters=new $.t(1),this.events=this.eventEmitters.pipe((0,j.w)(I=>(0,f.T)(...I))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:I})=>I)),this.ngZone=this.injector.get(d.R0b),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(h){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(h)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=q.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(h){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(h):this.componentRef.instance[h])}setInputValue(h,v,I){this.runInZone(()=>{I&&(v=I.call(this.componentRef?.instance,v)),null!==this.componentRef?function _e(W,h){return W===h||W!=W&&h!=h}(v,this.getInputValue(h))&&(void 0!==v||!this.unchangedInputs.has(h))||(this.recordInputChange(h,v),this.unchangedInputs.delete(h),this.hasInputChanges=!0,this.componentRef.instance[h]=v,this.scheduleDetectChanges()):this.initialInputValues.set(h,v)})}initializeComponent(h){const v=d.zs3.create({providers:[],parent:this.injector}),I=function be(W,h){const v=W.childNodes,I=h.map(()=>[]);let te=-1;h.some((me,Ne)=>"*"===me&&(te=Ne,!0));for(let me=0,Ne=v.length;me{this.initialInputValues.has(h)&&this.setInputValue(h,this.initialInputValues.get(h),v)}),this.initialInputValues.clear()}initializeOutputs(h){const v=this.componentFactory.outputs.map(({propName:I,templateName:te})=>h.instance[I].pipe((0,M.U)(Ne=>({name:te,value:Ne}))));this.eventEmitters.next(v)}callNgOnChanges(h){if(!this.implementsOnChanges||null===this.inputChanges)return;const v=this.inputChanges;this.inputChanges=null,h.instance.ngOnChanges(v)}markViewForCheck(h){this.hasInputChanges&&(this.hasInputChanges=!1,h.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=q.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(h,v){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const I=this.inputChanges[h];if(I)return void(I.currentValue=v);const te=this.unchangedInputs.has(h),me=te?void 0:this.getInputValue(h);this.inputChanges[h]=new d.WD2(me,v,te)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(h){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(h):h()}}class qe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function _t(W,h){const v=function xe(W,h){return h.get(d._Vd).resolveComponentFactory(W).inputs}(W,h.injector),I=h.strategyFactory||new rt(W,h.injector),te=function ve(W){const h={};return W.forEach(({propName:v,templateName:I,transform:te})=>{h[function ie(W){return W.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}(I)]=[v,te]}),h}(v);class me extends qe{static#e=this.observedAttributes=Object.keys(te);get ngElementStrategy(){if(!this._ngElementStrategy){const Fe=this._ngElementStrategy=I.create(this.injector||h.injector);v.forEach(({propName:st,transform:Dt})=>{if(!this.hasOwnProperty(st))return;const rn=this[st];delete this[st],Fe.setInputValue(st,rn,Dt)})}return this._ngElementStrategy}constructor(Fe){super(),this.injector=Fe}attributeChangedCallback(Fe,st,Dt,rn){const[Xt,Tn]=te[Fe];this.ngElementStrategy.setInputValue(Xt,Dt,Tn)}connectedCallback(){let Fe=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),Fe=!0),this.ngElementStrategy.connect(this),Fe||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(Fe=>{const st=new CustomEvent(Fe.name,{detail:Fe.value});this.dispatchEvent(st)})}}return v.forEach(({propName:Ne,transform:Fe})=>{Object.defineProperty(me.prototype,Ne,{get(){return this.ngElementStrategy.getInputValue(Ne)},set(st){this.ngElementStrategy.setInputValue(Ne,st,Fe)},configurable:!0,enumerable:!0})}),me}class Ee{}class ze{}const J="*";function ae(W,h=null){return{type:2,steps:W,options:h}}function fe(W){return{type:6,styles:W,offset:null}}class et{constructor(h=0,v=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=h+v}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}onStart(h){this._originalOnStartFns.push(h),this._onStartFns.push(h)}onDone(h){this._originalOnDoneFns.push(h),this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(h=>h()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(h){this._position=this.totalTime?h*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(h){const v="start"==h?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class Pt{constructor(h){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=h;let v=0,I=0,te=0;const me=this.players.length;0==me?queueMicrotask(()=>this._onFinish()):this.players.forEach(Ne=>{Ne.onDone(()=>{++v==me&&this._onFinish()}),Ne.onDestroy(()=>{++I==me&&this._onDestroy()}),Ne.onStart(()=>{++te==me&&this._onStart()})}),this.totalTime=this.players.reduce((Ne,Fe)=>Math.max(Ne,Fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}init(){this.players.forEach(h=>h.init())}onStart(h){this._onStartFns.push(h)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(h=>h()),this._onStartFns=[])}onDone(h){this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(h=>h.play())}pause(){this.players.forEach(h=>h.pause())}restart(){this.players.forEach(h=>h.restart())}finish(){this._onFinish(),this.players.forEach(h=>h.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(h=>h.destroy()),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}reset(){this.players.forEach(h=>h.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(h){const v=h*this.totalTime;this.players.forEach(I=>{const te=I.totalTime?Math.min(1,v/I.totalTime):1;I.setPosition(te)})}getPosition(){const h=this.players.reduce((v,I)=>null===v||I.totalTime>v.totalTime?I:v,null);return null!=h?h.getPosition():0}beforeDestroy(){this.players.forEach(h=>{h.beforeDestroy&&h.beforeDestroy()})}triggerCallback(h){const v="start"==h?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}function Rn(W){return new d.vHH(3e3,!1)}function Vt(W){switch(W.length){case 0:return new et;case 1:return W[0];default:return new Pt(W)}}function Un(W,h,v=new Map,I=new Map){const te=[],me=[];let Ne=-1,Fe=null;if(h.forEach(st=>{const Dt=st.get("offset"),rn=Dt==Ne,Xt=rn&&Fe||new Map;st.forEach((Tn,Vn)=>{let xn=Vn,Fn=Tn;if("offset"!==Vn)switch(xn=W.normalizePropertyName(xn,te),Fn){case"!":Fn=v.get(Vn);break;case J:Fn=I.get(Vn);break;default:Fn=W.normalizeStyleValue(Vn,xn,Fn,te)}Xt.set(xn,Fn)}),rn||me.push(Xt),Fe=Xt,Ne=Dt}),te.length)throw function Dr(W){return new d.vHH(3502,!1)}();return me}function on(W,h,v,I){switch(h){case"start":W.onStart(()=>I(v&&rr(v,"start",W)));break;case"done":W.onDone(()=>I(v&&rr(v,"done",W)));break;case"destroy":W.onDestroy(()=>I(v&&rr(v,"destroy",W)))}}function rr(W,h,v){const me=ln(W.element,W.triggerName,W.fromState,W.toState,h||W.phaseName,v.totalTime??W.totalTime,!!v.disabled),Ne=W._data;return null!=Ne&&(me._data=Ne),me}function ln(W,h,v,I,te="",me=0,Ne){return{element:W,triggerName:h,fromState:v,toState:I,phaseName:te,totalTime:me,disabled:!!Ne}}function $n(W,h,v){let I=W.get(h);return I||W.set(h,I=v),I}function Qe(W){const h=W.indexOf(":");return[W.substring(1,h),W.slice(h+1)]}const Le=(()=>typeof document>"u"?null:document.documentElement)();function Ue(W){const h=W.parentNode||W.host||null;return h===Le?null:h}let Rt=null,kt=!1;function pr(W,h){for(;h;){if(h===W)return!0;h=Ue(h)}return!1}function jr(W,h,v){if(v)return Array.from(W.querySelectorAll(h));const I=W.querySelector(h);return I?[I]:[]}let Ar=(()=>{class W{validateStyleProperty(v){return function Ft(W){Rt||(Rt=function wn(){return typeof document<"u"?document.body:null}()||{},kt=!!Rt.style&&"WebkitAppearance"in Rt.style);let h=!0;return Rt.style&&!function bt(W){return"ebkit"==W.substring(1,6)}(W)&&(h=W in Rt.style,!h&&kt&&(h="Webkit"+W.charAt(0).toUpperCase()+W.slice(1)in Rt.style)),h}(v)}matchesElement(v,I){return!1}containsElement(v,I){return pr(v,I)}getParentElement(v){return Ue(v)}query(v,I,te){return jr(v,I,te)}computeStyle(v,I,te){return te||""}animate(v,I,te,me,Ne,Fe=[],st){return new et(te,me)}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})(),Hr=(()=>{class W{static#e=this.NOOP=new Ar}return W})();const zr=1e3,Ur="ng-enter",ai="ng-leave",pe="ng-trigger",z=".ng-trigger",K="ng-animating",D=".ng-animating";function X(W){if("number"==typeof W)return W;const h=W.match(/^(-?[\.\d]+)(m?s)/);return!h||h.length<2?0:de(parseFloat(h[1]),h[2])}function de(W,h){return"s"===h?W*zr:W}function Oe(W,h,v){return W.hasOwnProperty("duration")?W:function Ae(W,h,v){let te,me=0,Ne="";if("string"==typeof W){const Fe=W.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Fe)return h.push(Rn()),{duration:0,delay:0,easing:""};te=de(parseFloat(Fe[1]),Fe[2]);const st=Fe[3];null!=st&&(me=de(parseFloat(st),Fe[4]));const Dt=Fe[5];Dt&&(Ne=Dt)}else te=W;if(!v){let Fe=!1,st=h.length;te<0&&(h.push(function We(){return new d.vHH(3100,!1)}()),Fe=!0),me<0&&(h.push(function Ye(){return new d.vHH(3101,!1)}()),Fe=!0),Fe&&h.splice(st,0,Rn())}return{duration:te,delay:me,easing:Ne}}(W,h,v)}function mt(W,h={}){return Object.keys(W).forEach(v=>{h[v]=W[v]}),h}function $t(W){const h=new Map;return Object.keys(W).forEach(v=>{h.set(v,W[v])}),h}function En(W,h=new Map,v){if(v)for(let[I,te]of v)h.set(I,te);for(let[I,te]of W)h.set(I,te);return h}function Nn(W,h,v){h.forEach((I,te)=>{const me=Wi(te);v&&!v.has(te)&&v.set(te,W.style[me]),W.style[me]=I})}function ir(W,h){h.forEach((v,I)=>{const te=Wi(I);W.style[te]=""})}function _r(W){return Array.isArray(W)?1==W.length?W[0]:ae(W):W}const Yr=new RegExp("{{\\s*(.+?)\\s*}}","g");function es(W){let h=[];if("string"==typeof W){let v;for(;v=Yr.exec(W);)h.push(v[1]);Yr.lastIndex=0}return h}function _i(W,h,v){const I=W.toString(),te=I.replace(Yr,(me,Ne)=>{let Fe=h[Ne];return null==Fe&&(v.push(function xt(W){return new d.vHH(3003,!1)}()),Fe=""),Fe.toString()});return te==I?W:te}function Ti(W){const h=[];let v=W.next();for(;!v.done;)h.push(v.value),v=W.next();return h}const hs=/-+([a-z0-9])/g;function Wi(W){return W.replace(hs,(...h)=>h[1].toUpperCase())}function Vr(W,h,v){switch(h.type){case 7:return W.visitTrigger(h,v);case 0:return W.visitState(h,v);case 1:return W.visitTransition(h,v);case 2:return W.visitSequence(h,v);case 3:return W.visitGroup(h,v);case 4:return W.visitAnimate(h,v);case 5:return W.visitKeyframes(h,v);case 6:return W.visitStyle(h,v);case 8:return W.visitReference(h,v);case 9:return W.visitAnimateChild(h,v);case 10:return W.visitAnimateRef(h,v);case 11:return W.visitQuery(h,v);case 12:return W.visitStagger(h,v);default:throw function nn(W){return new d.vHH(3004,!1)}()}}function jn(W,h){return window.getComputedStyle(W)[h]}const ui="*";function ys(W,h){const v=[];return"string"==typeof W?W.split(/\s*,\s*/).forEach(I=>function Ui(W,h,v){if(":"==W[0]){const st=function xr(W,h){switch(W){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(v,I)=>parseFloat(I)>parseFloat(v);case":decrement":return(v,I)=>parseFloat(I) *"}}(W,v);if("function"==typeof st)return void h.push(st);W=st}const I=W.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return v.push(function Qt(W){return new d.vHH(3015,!1)}()),h;const te=I[1],me=I[2],Ne=I[3];h.push(hr(te,Ne));"<"==me[0]&&!(te==ui&&Ne==ui)&&h.push(hr(Ne,te))}(I,v,h)):v.push(W),v}const Kt=new Set(["true","1"]),Mn=new Set(["false","0"]);function hr(W,h){const v=Kt.has(W)||Mn.has(W),I=Kt.has(h)||Mn.has(h);return(te,me)=>{let Ne=W==ui||W==te,Fe=h==ui||h==me;return!Ne&&v&&"boolean"==typeof te&&(Ne=te?Kt.has(W):Mn.has(W)),!Fe&&I&&"boolean"==typeof me&&(Fe=me?Kt.has(h):Mn.has(h)),Ne&&Fe}}const bi=new RegExp("s*:selfs*,?","g");function Nr(W,h,v,I){return new Ve(W).build(h,v,I)}class Ve{constructor(h){this._driver=h}build(h,v,I){const te=new Bt(v);return this._resetContextStyleTimingState(te),Vr(this,_r(h),te)}_resetContextStyleTimingState(h){h.currentQuerySelector="",h.collectedStyles=new Map,h.collectedStyles.set("",new Map),h.currentTime=0}visitTrigger(h,v){let I=v.queryCount=0,te=v.depCount=0;const me=[],Ne=[];return"@"==h.name.charAt(0)&&v.errors.push(function Ht(){return new d.vHH(3006,!1)}()),h.definitions.forEach(Fe=>{if(this._resetContextStyleTimingState(v),0==Fe.type){const st=Fe,Dt=st.name;Dt.toString().split(/\s*,\s*/).forEach(rn=>{st.name=rn,me.push(this.visitState(st,v))}),st.name=Dt}else if(1==Fe.type){const st=this.visitTransition(Fe,v);I+=st.queryCount,te+=st.depCount,Ne.push(st)}else v.errors.push(function Zt(){return new d.vHH(3007,!1)}())}),{type:7,name:h.name,states:me,transitions:Ne,queryCount:I,depCount:te,options:null}}visitState(h,v){const I=this.visitStyle(h.styles,v),te=h.options&&h.options.params||null;if(I.containsDynamicStyles){const me=new Set,Ne=te||{};I.styles.forEach(Fe=>{Fe instanceof Map&&Fe.forEach(st=>{es(st).forEach(Dt=>{Ne.hasOwnProperty(Dt)||me.add(Dt)})})}),me.size&&(Ti(me.values()),v.errors.push(function fn(W,h){return new d.vHH(3008,!1)}()))}return{type:0,name:h.name,style:I,options:te?{params:te}:null}}visitTransition(h,v){v.queryCount=0,v.depCount=0;const I=Vr(this,_r(h.animation),v);return{type:1,matchers:ys(h.expr,v.errors),animation:I,queryCount:v.queryCount,depCount:v.depCount,options:Yn(h.options)}}visitSequence(h,v){return{type:2,steps:h.steps.map(I=>Vr(this,I,v)),options:Yn(h.options)}}visitGroup(h,v){const I=v.currentTime;let te=0;const me=h.steps.map(Ne=>{v.currentTime=I;const Fe=Vr(this,Ne,v);return te=Math.max(te,v.currentTime),Fe});return v.currentTime=te,{type:3,steps:me,options:Yn(h.options)}}visitAnimate(h,v){const I=function Si(W,h){if(W.hasOwnProperty("duration"))return W;if("number"==typeof W)return sr(Oe(W,h).duration,0,"");const v=W;if(v.split(/\s+/).some(me=>"{"==me.charAt(0)&&"{"==me.charAt(1))){const me=sr(0,0,"");return me.dynamic=!0,me.strValue=v,me}const te=Oe(v,h);return sr(te.duration,te.delay,te.easing)}(h.timings,v.errors);v.currentAnimateTimings=I;let te,me=h.styles?h.styles:fe({});if(5==me.type)te=this.visitKeyframes(me,v);else{let Ne=h.styles,Fe=!1;if(!Ne){Fe=!0;const Dt={};I.easing&&(Dt.easing=I.easing),Ne=fe(Dt)}v.currentTime+=I.duration+I.delay;const st=this.visitStyle(Ne,v);st.isEmptyStep=Fe,te=st}return v.currentAnimateTimings=null,{type:4,timings:I,style:te,options:null}}visitStyle(h,v){const I=this._makeStyleAst(h,v);return this._validateStyleAst(I,v),I}_makeStyleAst(h,v){const I=[],te=Array.isArray(h.styles)?h.styles:[h.styles];for(let Fe of te)"string"==typeof Fe?Fe===J?I.push(Fe):v.errors.push(new d.vHH(3002,!1)):I.push($t(Fe));let me=!1,Ne=null;return I.forEach(Fe=>{if(Fe instanceof Map&&(Fe.has("easing")&&(Ne=Fe.get("easing"),Fe.delete("easing")),!me))for(let st of Fe.values())if(st.toString().indexOf("{{")>=0){me=!0;break}}),{type:6,styles:I,easing:Ne,offset:h.offset,containsDynamicStyles:me,options:null}}_validateStyleAst(h,v){const I=v.currentAnimateTimings;let te=v.currentTime,me=v.currentTime;I&&me>0&&(me-=I.duration+I.delay),h.styles.forEach(Ne=>{"string"!=typeof Ne&&Ne.forEach((Fe,st)=>{const Dt=v.collectedStyles.get(v.currentQuerySelector),rn=Dt.get(st);let Xt=!0;rn&&(me!=te&&me>=rn.startTime&&te<=rn.endTime&&(v.errors.push(function en(W,h,v,I,te){return new d.vHH(3010,!1)}()),Xt=!1),me=rn.startTime),Xt&&Dt.set(st,{startTime:me,endTime:te}),v.options&&function Zr(W,h,v){const I=h.params||{},te=es(W);te.length&&te.forEach(me=>{I.hasOwnProperty(me)||v.push(function At(W){return new d.vHH(3001,!1)}())})}(Fe,v.options,v.errors)})})}visitKeyframes(h,v){const I={type:5,styles:[],options:null};if(!v.currentAnimateTimings)return v.errors.push(function Dn(){return new d.vHH(3011,!1)}()),I;let me=0;const Ne=[];let Fe=!1,st=!1,Dt=0;const rn=h.steps.map(S=>{const y=this._makeStyleAst(S,v);let x=null!=y.offset?y.offset:function gr(W){if("string"==typeof W)return null;let h=null;if(Array.isArray(W))W.forEach(v=>{if(v instanceof Map&&v.has("offset")){const I=v;h=parseFloat(I.get("offset")),I.delete("offset")}});else if(W instanceof Map&&W.has("offset")){const v=W;h=parseFloat(v.get("offset")),v.delete("offset")}return h}(y.styles),G=0;return null!=x&&(me++,G=y.offset=x),st=st||G<0||G>1,Fe=Fe||G0&&me{const x=Tn>0?y==Vn?1:Tn*y:Ne[y],G=x*E;v.currentTime=xn+Fn.delay+G,Fn.duration=G,this._validateStyleAst(S,v),S.offset=x,I.styles.push(S)}),I}visitReference(h,v){return{type:8,animation:Vr(this,_r(h.animation),v),options:Yn(h.options)}}visitAnimateChild(h,v){return v.depCount++,{type:9,options:Yn(h.options)}}visitAnimateRef(h,v){return{type:10,animation:this.visitReference(h.animation,v),options:Yn(h.options)}}visitQuery(h,v){const I=v.currentQuerySelector,te=h.options||{};v.queryCount++,v.currentQuery=h;const[me,Ne]=function ct(W){const h=!!W.split(/\s*,\s*/).find(v=>":self"==v);return h&&(W=W.replace(bi,"")),W=W.replace(/@\*/g,z).replace(/@\w+/g,v=>z+"-"+v.slice(1)).replace(/:animating/g,D),[W,h]}(h.selector);v.currentQuerySelector=I.length?I+" "+me:me,$n(v.collectedStyles,v.currentQuerySelector,new Map);const Fe=Vr(this,_r(h.animation),v);return v.currentQuery=null,v.currentQuerySelector=I,{type:11,selector:me,limit:te.limit||0,optional:!!te.optional,includeSelf:Ne,animation:Fe,originalSelector:h.selector,options:Yn(h.options)}}visitStagger(h,v){v.currentQuery||v.errors.push(function it(){return new d.vHH(3013,!1)}());const I="full"===h.timings?{duration:0,delay:0,easing:"full"}:Oe(h.timings,v.errors,!0);return{type:12,animation:Vr(this,_r(h.animation),v),timings:I,options:null}}}class Bt{constructor(h){this.errors=h,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Yn(W){return W?(W=mt(W)).params&&(W.params=function Yt(W){return W?mt(W):null}(W.params)):W={},W}function sr(W,h,v){return{duration:W,delay:h,easing:v}}function Wr(W,h,v,I,te,me,Ne=null,Fe=!1){return{type:1,element:W,keyframes:h,preStyleProps:v,postStyleProps:I,duration:te,delay:me,totalTime:te+me,easing:Ne,subTimeline:Fe}}class Mi{constructor(){this._map=new Map}get(h){return this._map.get(h)||[]}append(h,v){let I=this._map.get(h);I||this._map.set(h,I=[]),I.push(...v)}has(h){return this._map.has(h)}clear(){this._map.clear()}}const bs=new RegExp(":enter","g"),Oi=new RegExp(":leave","g");function Ii(W,h,v,I,te,me=new Map,Ne=new Map,Fe,st,Dt=[]){return(new Pi).buildKeyframes(W,h,v,I,te,me,Ne,Fe,st,Dt)}class Pi{buildKeyframes(h,v,I,te,me,Ne,Fe,st,Dt,rn=[]){Dt=Dt||new Mi;const Xt=new Es(h,v,Dt,te,me,rn,[]);Xt.options=st;const Tn=st.delay?X(st.delay):0;Xt.currentTimeline.delayNextStep(Tn),Xt.currentTimeline.setStyles([Ne],null,Xt.errors,st),Vr(this,I,Xt);const Vn=Xt.timelines.filter(xn=>xn.containsAnimation());if(Vn.length&&Fe.size){let xn;for(let Fn=Vn.length-1;Fn>=0;Fn--){const E=Vn[Fn];if(E.element===v){xn=E;break}}xn&&!xn.allowOnlyTimelineStyles()&&xn.setStyles([Fe],null,Xt.errors,st)}return Vn.length?Vn.map(xn=>xn.buildKeyframes()):[Wr(v,[],[],[],0,Tn,"",!1)]}visitTrigger(h,v){}visitState(h,v){}visitTransition(h,v){}visitAnimateChild(h,v){const I=v.subInstructions.get(v.element);if(I){const te=v.createSubContext(h.options),me=v.currentTimeline.currentTime,Ne=this._visitSubInstructions(I,te,te.options);me!=Ne&&v.transformIntoNewTimeline(Ne)}v.previousNode=h}visitAnimateRef(h,v){const I=v.createSubContext(h.options);I.transformIntoNewTimeline(),this._applyAnimationRefDelays([h.options,h.animation.options],v,I),this.visitReference(h.animation,I),v.transformIntoNewTimeline(I.currentTimeline.currentTime),v.previousNode=h}_applyAnimationRefDelays(h,v,I){for(const te of h){const me=te?.delay;if(me){const Ne="number"==typeof me?me:X(_i(me,te?.params??{},v.errors));I.delayNextStep(Ne)}}}_visitSubInstructions(h,v,I){let me=v.currentTimeline.currentTime;const Ne=null!=I.duration?X(I.duration):null,Fe=null!=I.delay?X(I.delay):null;return 0!==Ne&&h.forEach(st=>{const Dt=v.appendInstructionToTimeline(st,Ne,Fe);me=Math.max(me,Dt.duration+Dt.delay)}),me}visitReference(h,v){v.updateOptions(h.options,!0),Vr(this,h.animation,v),v.previousNode=h}visitSequence(h,v){const I=v.subContextCount;let te=v;const me=h.options;if(me&&(me.params||me.delay)&&(te=v.createSubContext(me),te.transformIntoNewTimeline(),null!=me.delay)){6==te.previousNode.type&&(te.currentTimeline.snapshotCurrentStyles(),te.previousNode=Gn);const Ne=X(me.delay);te.delayNextStep(Ne)}h.steps.length&&(h.steps.forEach(Ne=>Vr(this,Ne,te)),te.currentTimeline.applyStylesToKeyframe(),te.subContextCount>I&&te.transformIntoNewTimeline()),v.previousNode=h}visitGroup(h,v){const I=[];let te=v.currentTimeline.currentTime;const me=h.options&&h.options.delay?X(h.options.delay):0;h.steps.forEach(Ne=>{const Fe=v.createSubContext(h.options);me&&Fe.delayNextStep(me),Vr(this,Ne,Fe),te=Math.max(te,Fe.currentTimeline.currentTime),I.push(Fe.currentTimeline)}),I.forEach(Ne=>v.currentTimeline.mergeTimelineCollectedStyles(Ne)),v.transformIntoNewTimeline(te),v.previousNode=h}_visitTiming(h,v){if(h.dynamic){const I=h.strValue;return Oe(v.params?_i(I,v.params,v.errors):I,v.errors)}return{duration:h.duration,delay:h.delay,easing:h.easing}}visitAnimate(h,v){const I=v.currentAnimateTimings=this._visitTiming(h.timings,v),te=v.currentTimeline;I.delay&&(v.incrementTime(I.delay),te.snapshotCurrentStyles());const me=h.style;5==me.type?this.visitKeyframes(me,v):(v.incrementTime(I.duration),this.visitStyle(me,v),te.applyStylesToKeyframe()),v.currentAnimateTimings=null,v.previousNode=h}visitStyle(h,v){const I=v.currentTimeline,te=v.currentAnimateTimings;!te&&I.hasCurrentStyleProperties()&&I.forwardFrame();const me=te&&te.easing||h.easing;h.isEmptyStep?I.applyEmptyStep(me):I.setStyles(h.styles,me,v.errors,v.options),v.previousNode=h}visitKeyframes(h,v){const I=v.currentAnimateTimings,te=v.currentTimeline.duration,me=I.duration,Fe=v.createSubContext().currentTimeline;Fe.easing=I.easing,h.styles.forEach(st=>{Fe.forwardTime((st.offset||0)*me),Fe.setStyles(st.styles,st.easing,v.errors,v.options),Fe.applyStylesToKeyframe()}),v.currentTimeline.mergeTimelineCollectedStyles(Fe),v.transformIntoNewTimeline(te+me),v.previousNode=h}visitQuery(h,v){const I=v.currentTimeline.currentTime,te=h.options||{},me=te.delay?X(te.delay):0;me&&(6===v.previousNode.type||0==I&&v.currentTimeline.hasCurrentStyleProperties())&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=Gn);let Ne=I;const Fe=v.invokeQuery(h.selector,h.originalSelector,h.limit,h.includeSelf,!!te.optional,v.errors);v.currentQueryTotal=Fe.length;let st=null;Fe.forEach((Dt,rn)=>{v.currentQueryIndex=rn;const Xt=v.createSubContext(h.options,Dt);me&&Xt.delayNextStep(me),Dt===v.element&&(st=Xt.currentTimeline),Vr(this,h.animation,Xt),Xt.currentTimeline.applyStylesToKeyframe(),Ne=Math.max(Ne,Xt.currentTimeline.currentTime)}),v.currentQueryIndex=0,v.currentQueryTotal=0,v.transformIntoNewTimeline(Ne),st&&(v.currentTimeline.mergeTimelineCollectedStyles(st),v.currentTimeline.snapshotCurrentStyles()),v.previousNode=h}visitStagger(h,v){const I=v.parentContext,te=v.currentTimeline,me=h.timings,Ne=Math.abs(me.duration),Fe=Ne*(v.currentQueryTotal-1);let st=Ne*v.currentQueryIndex;switch(me.duration<0?"reverse":me.easing){case"reverse":st=Fe-st;break;case"full":st=I.currentStaggerTime}const rn=v.currentTimeline;st&&rn.delayNextStep(st);const Xt=rn.currentTime;Vr(this,h.animation,v),v.previousNode=h,I.currentStaggerTime=te.currentTime-Xt+(te.startTime-I.currentTimeline.startTime)}}const Gn={};class Es{constructor(h,v,I,te,me,Ne,Fe,st){this._driver=h,this.element=v,this.subInstructions=I,this._enterClassName=te,this._leaveClassName=me,this.errors=Ne,this.timelines=Fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=st||new Zi(this._driver,v,0),Fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(h,v){if(!h)return;const I=h;let te=this.options;null!=I.duration&&(te.duration=X(I.duration)),null!=I.delay&&(te.delay=X(I.delay));const me=I.params;if(me){let Ne=te.params;Ne||(Ne=this.options.params={}),Object.keys(me).forEach(Fe=>{(!v||!Ne.hasOwnProperty(Fe))&&(Ne[Fe]=_i(me[Fe],Ne,this.errors))})}}_copyOptions(){const h={};if(this.options){const v=this.options.params;if(v){const I=h.params={};Object.keys(v).forEach(te=>{I[te]=v[te]})}}return h}createSubContext(h=null,v,I){const te=v||this.element,me=new Es(this._driver,te,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(te,I||0));return me.previousNode=this.previousNode,me.currentAnimateTimings=this.currentAnimateTimings,me.options=this._copyOptions(),me.updateOptions(h),me.currentQueryIndex=this.currentQueryIndex,me.currentQueryTotal=this.currentQueryTotal,me.parentContext=this,this.subContextCount++,me}transformIntoNewTimeline(h){return this.previousNode=Gn,this.currentTimeline=this.currentTimeline.fork(this.element,h),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(h,v,I){const te={duration:v??h.duration,delay:this.currentTimeline.currentTime+(I??0)+h.delay,easing:""},me=new rs(this._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,te,h.stretchStartingKeyframe);return this.timelines.push(me),te}incrementTime(h){this.currentTimeline.forwardTime(this.currentTimeline.duration+h)}delayNextStep(h){h>0&&this.currentTimeline.delayNextStep(h)}invokeQuery(h,v,I,te,me,Ne){let Fe=[];if(te&&Fe.push(this.element),h.length>0){h=(h=h.replace(bs,"."+this._enterClassName)).replace(Oi,"."+this._leaveClassName);let Dt=this._driver.query(this.element,h,1!=I);0!==I&&(Dt=I<0?Dt.slice(Dt.length+I,Dt.length):Dt.slice(0,I)),Fe.push(...Dt)}return!me&&0==Fe.length&&Ne.push(function Ut(W){return new d.vHH(3014,!1)}()),Fe}}class Zi{constructor(h,v,I,te){this._driver=h,this.element=v,this.startTime=I,this._elementTimelineStylesLookup=te,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(v),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(v,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(h){const v=1===this._keyframes.size&&this._pendingStyles.size;this.duration||v?(this.forwardTime(this.currentTime+h),v&&this.snapshotCurrentStyles()):this.startTime+=h}fork(h,v){return this.applyStylesToKeyframe(),new Zi(this._driver,h,v||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(h){this.applyStylesToKeyframe(),this.duration=h,this._loadKeyframe()}_updateStyle(h,v){this._localTimelineStyles.set(h,v),this._globalTimelineStyles.set(h,v),this._styleSummary.set(h,{time:this.currentTime,value:v})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(h){h&&this._previousKeyframe.set("easing",h);for(let[v,I]of this._globalTimelineStyles)this._backFill.set(v,I||J),this._currentKeyframe.set(v,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(h,v,I,te){v&&this._previousKeyframe.set("easing",v);const me=te&&te.params||{},Ne=function gs(W,h){const v=new Map;let I;return W.forEach(te=>{if("*"===te){I=I||h.keys();for(let me of I)v.set(me,J)}else En(te,v)}),v}(h,this._globalTimelineStyles);for(let[Fe,st]of Ne){const Dt=_i(st,me,I);this._pendingStyles.set(Fe,Dt),this._localTimelineStyles.has(Fe)||this._backFill.set(Fe,this._globalTimelineStyles.get(Fe)??J),this._updateStyle(Fe,Dt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((h,v)=>{this._currentKeyframe.set(v,h)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((h,v)=>{this._currentKeyframe.has(v)||this._currentKeyframe.set(v,h)}))}snapshotCurrentStyles(){for(let[h,v]of this._localTimelineStyles)this._pendingStyles.set(h,v),this._updateStyle(h,v)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const h=[];for(let v in this._currentKeyframe)h.push(v);return h}mergeTimelineCollectedStyles(h){h._styleSummary.forEach((v,I)=>{const te=this._styleSummary.get(I);(!te||v.time>te.time)&&this._updateStyle(I,v.value)})}buildKeyframes(){this.applyStylesToKeyframe();const h=new Set,v=new Set,I=1===this._keyframes.size&&0===this.duration;let te=[];this._keyframes.forEach((Fe,st)=>{const Dt=En(Fe,new Map,this._backFill);Dt.forEach((rn,Xt)=>{"!"===rn?h.add(Xt):rn===J&&v.add(Xt)}),I||Dt.set("offset",st/this.duration),te.push(Dt)});const me=h.size?Ti(h.values()):[],Ne=v.size?Ti(v.values()):[];if(I){const Fe=te[0],st=new Map(Fe);Fe.set("offset",0),st.set("offset",1),te=[Fe,st]}return Wr(this.element,te,me,Ne,this.duration,this.startTime,this.easing,!1)}}class rs extends Zi{constructor(h,v,I,te,me,Ne,Fe=!1){super(h,v,Ne.delay),this.keyframes=I,this.preStyleProps=te,this.postStyleProps=me,this._stretchStartingKeyframe=Fe,this.timings={duration:Ne.duration,delay:Ne.delay,easing:Ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let h=this.keyframes,{delay:v,duration:I,easing:te}=this.timings;if(this._stretchStartingKeyframe&&v){const me=[],Ne=I+v,Fe=v/Ne,st=En(h[0]);st.set("offset",0),me.push(st);const Dt=En(h[0]);Dt.set("offset",Pr(Fe)),me.push(Dt);const rn=h.length-1;for(let Xt=1;Xt<=rn;Xt++){let Tn=En(h[Xt]);const Vn=Tn.get("offset");Tn.set("offset",Pr((v+Vn*I)/Ne)),me.push(Tn)}I=Ne,v=0,te="",h=me}return Wr(this.element,h,this.preStyleProps,this.postStyleProps,I,v,te,!0)}}function Pr(W,h=3){const v=Math.pow(10,h-1);return Math.round(W*v)/v}class ht{}const lt=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ot extends ht{normalizePropertyName(h,v){return Wi(h)}normalizeStyleValue(h,v,I,te){let me="";const Ne=I.toString().trim();if(lt.has(v)&&0!==I&&"0"!==I)if("number"==typeof I)me="px";else{const Fe=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Fe&&0==Fe[1].length&&te.push(function Et(W,h){return new d.vHH(3005,!1)}())}return Ne+me}}function qt(W,h,v,I,te,me,Ne,Fe,st,Dt,rn,Xt,Tn){return{type:0,element:W,triggerName:h,isRemovalTransition:te,fromState:v,fromStyles:me,toState:I,toStyles:Ne,timelines:Fe,queriedElements:st,preStyleProps:Dt,postStyleProps:rn,totalTime:Xt,errors:Tn}}const Kr={};class ji{constructor(h,v,I){this._triggerName=h,this.ast=v,this._stateStyles=I}match(h,v,I,te){return function fi(W,h,v,I,te){return W.some(me=>me(h,v,I,te))}(this.ast.matchers,h,v,I,te)}buildStyles(h,v,I){let te=this._stateStyles.get("*");return void 0!==h&&(te=this._stateStyles.get(h?.toString())||te),te?te.buildStyles(v,I):new Map}build(h,v,I,te,me,Ne,Fe,st,Dt,rn){const Xt=[],Tn=this.ast.options&&this.ast.options.params||Kr,xn=this.buildStyles(I,Fe&&Fe.params||Kr,Xt),Fn=st&&st.params||Kr,E=this.buildStyles(te,Fn,Xt),S=new Set,y=new Map,x=new Map,G="void"===te,he={params:Hs(Fn,Tn),delay:this.ast.options?.delay},Me=rn?[]:Ii(h,v,this.ast.animation,me,Ne,xn,E,he,Dt,Xt);let at=0;if(Me.forEach(tn=>{at=Math.max(tn.duration+tn.delay,at)}),Xt.length)return qt(v,this._triggerName,I,te,G,xn,E,[],[],y,x,at,Xt);Me.forEach(tn=>{const kn=tn.element,Rr=$n(y,kn,new Set);tn.preStyleProps.forEach(hi=>Rr.add(hi));const or=$n(x,kn,new Set);tn.postStyleProps.forEach(hi=>or.add(hi)),kn!==v&&S.add(kn)});const ft=Ti(S.values());return qt(v,this._triggerName,I,te,G,xn,E,Me,ft,y,x,at)}}function Hs(W,h){const v=mt(h);for(const I in W)W.hasOwnProperty(I)&&null!=W[I]&&(v[I]=W[I]);return v}class po{constructor(h,v,I){this.styles=h,this.defaultParams=v,this.normalizer=I}buildStyles(h,v){const I=new Map,te=mt(this.defaultParams);return Object.keys(h).forEach(me=>{const Ne=h[me];null!==Ne&&(te[me]=Ne)}),this.styles.styles.forEach(me=>{"string"!=typeof me&&me.forEach((Ne,Fe)=>{Ne&&(Ne=_i(Ne,te,v));const st=this.normalizer.normalizePropertyName(Fe,v);Ne=this.normalizer.normalizeStyleValue(Fe,st,Ne,v),I.set(Fe,Ne)})}),I}}class Xs{constructor(h,v,I){this.name=h,this.ast=v,this._normalizer=I,this.transitionFactories=[],this.states=new Map,v.states.forEach(te=>{this.states.set(te.name,new po(te.style,te.options&&te.options.params||{},I))}),qs(this.states,"true","1"),qs(this.states,"false","0"),v.transitions.forEach(te=>{this.transitionFactories.push(new ji(h,te,this.states))}),this.fallbackTransition=function Co(W,h,v){return new ji(W,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ne,Fe)=>!0],options:null,queryCount:0,depCount:0},h)}(h,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(h,v,I,te){return this.transitionFactories.find(Ne=>Ne.match(h,v,I,te))||null}matchStyles(h,v,I){return this.fallbackTransition.buildStyles(h,v,I)}}function qs(W,h,v){W.has(h)?W.has(v)||W.set(v,W.get(h)):W.has(v)&&W.set(h,W.get(v))}const Y=new Mi;class re{constructor(h,v,I){this.bodyNode=h,this._driver=v,this._normalizer=I,this._animations=new Map,this._playersById=new Map,this.players=[]}register(h,v){const I=[],me=Nr(this._driver,v,I,[]);if(I.length)throw function wr(W){return new d.vHH(3503,!1)}();this._animations.set(h,me)}_buildPlayer(h,v,I){const te=h.element,me=Un(this._normalizer,h.keyframes,v,I);return this._driver.animate(te,me,h.duration,h.delay,h.easing,[],!0)}create(h,v,I={}){const te=[],me=this._animations.get(h);let Ne;const Fe=new Map;if(me?(Ne=Ii(this._driver,v,me,Ur,ai,new Map,new Map,I,Y,te),Ne.forEach(rn=>{const Xt=$n(Fe,rn.element,new Map);rn.postStyleProps.forEach(Tn=>Xt.set(Tn,null))})):(te.push(function Or(){return new d.vHH(3300,!1)}()),Ne=[]),te.length)throw function Ir(W){return new d.vHH(3504,!1)}();Fe.forEach((rn,Xt)=>{rn.forEach((Tn,Vn)=>{rn.set(Vn,this._driver.computeStyle(Xt,Vn,J))})});const Dt=Vt(Ne.map(rn=>{const Xt=Fe.get(rn.element);return this._buildPlayer(rn,new Map,Xt)}));return this._playersById.set(h,Dt),Dt.onDestroy(()=>this.destroy(h)),this.players.push(Dt),Dt}destroy(h){const v=this._getPlayer(h);v.destroy(),this._playersById.delete(h);const I=this.players.indexOf(v);I>=0&&this.players.splice(I,1)}_getPlayer(h){const v=this._playersById.get(h);if(!v)throw function Br(W){return new d.vHH(3301,!1)}();return v}listen(h,v,I,te){const me=ln(v,"","","");return on(this._getPlayer(h),I,me,te),()=>{}}command(h,v,I,te){if("register"==I)return void this.register(h,te[0]);if("create"==I)return void this.create(h,v,te[0]||{});const me=this._getPlayer(h);switch(I){case"play":me.play();break;case"pause":me.pause();break;case"reset":me.reset();break;case"restart":me.restart();break;case"finish":me.finish();break;case"init":me.init();break;case"setPosition":me.setPosition(parseFloat(te[0]));break;case"destroy":this.destroy(h)}}}const N="ng-animate-queued",Re="ng-animate-disabled",is=[],eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ss="__ng_removed";class to{get params(){return this.options.params}constructor(h,v=""){this.namespaceId=v;const I=h&&h.hasOwnProperty("value");if(this.value=function To(W){return W??null}(I?h.value:h),I){const me=mt(h);delete me.value,this.options=me}else this.options={};this.options.params||(this.options.params={})}absorbOptions(h){const v=h.params;if(v){const I=this.options.params;Object.keys(v).forEach(te=>{null==I[te]&&(I[te]=v[te])})}}}const Vs="void",Go=new to(Vs);class Ra{constructor(h,v,I){this.id=h,this.hostElement=v,this._engine=I,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+h,Li(v,this._hostClassName)}listen(h,v,I,te){if(!this._triggers.has(v))throw function oi(W,h){return new d.vHH(3302,!1)}();if(null==I||0==I.length)throw function zn(W){return new d.vHH(3303,!1)}();if(!function pi(W){return"start"==W||"done"==W}(I))throw function dt(W,h){return new d.vHH(3400,!1)}();const me=$n(this._elementListeners,h,[]),Ne={name:v,phase:I,callback:te};me.push(Ne);const Fe=$n(this._engine.statesByElement,h,new Map);return Fe.has(v)||(Li(h,pe),Li(h,pe+"-"+v),Fe.set(v,Go)),()=>{this._engine.afterFlush(()=>{const st=me.indexOf(Ne);st>=0&&me.splice(st,1),this._triggers.has(v)||Fe.delete(v)})}}register(h,v){return!this._triggers.has(h)&&(this._triggers.set(h,v),!0)}_getTrigger(h){const v=this._triggers.get(h);if(!v)throw function ot(W){return new d.vHH(3401,!1)}();return v}trigger(h,v,I,te=!0){const me=this._getTrigger(v),Ne=new os(this.id,v,h);let Fe=this._engine.statesByElement.get(h);Fe||(Li(h,pe),Li(h,pe+"-"+v),this._engine.statesByElement.set(h,Fe=new Map));let st=Fe.get(v);const Dt=new to(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&st&&Dt.absorbOptions(st.options),Fe.set(v,Dt),st||(st=Go),Dt.value!==Vs&&st.value===Dt.value){if(!function wo(W,h){const v=Object.keys(W),I=Object.keys(h);if(v.length!=I.length)return!1;for(let te=0;te{ir(h,E),Nn(h,S)})}return}const Tn=$n(this._engine.playersByElement,h,[]);Tn.forEach(Fn=>{Fn.namespaceId==this.id&&Fn.triggerName==v&&Fn.queued&&Fn.destroy()});let Vn=me.matchTransition(st.value,Dt.value,h,Dt.params),xn=!1;if(!Vn){if(!te)return;Vn=me.fallbackTransition,xn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:v,transition:Vn,fromState:st,toState:Dt,player:Ne,isFallbackTransition:xn}),xn||(Li(h,N),Ne.onStart(()=>{Ps(h,N)})),Ne.onDone(()=>{let Fn=this.players.indexOf(Ne);Fn>=0&&this.players.splice(Fn,1);const E=this._engine.playersByElement.get(h);if(E){let S=E.indexOf(Ne);S>=0&&E.splice(S,1)}}),this.players.push(Ne),Tn.push(Ne),Ne}deregister(h){this._triggers.delete(h),this._engine.statesByElement.forEach(v=>v.delete(h)),this._elementListeners.forEach((v,I)=>{this._elementListeners.set(I,v.filter(te=>te.name!=h))})}clearElementCache(h){this._engine.statesByElement.delete(h),this._elementListeners.delete(h);const v=this._engine.playersByElement.get(h);v&&(v.forEach(I=>I.destroy()),this._engine.playersByElement.delete(h))}_signalRemovalForInnerTriggers(h,v){const I=this._engine.driver.query(h,z,!0);I.forEach(te=>{if(te[ss])return;const me=this._engine.fetchNamespacesByElement(te);me.size?me.forEach(Ne=>Ne.triggerLeaveAnimation(te,v,!1,!0)):this.clearElementCache(te)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(te=>this.clearElementCache(te)))}triggerLeaveAnimation(h,v,I,te){const me=this._engine.statesByElement.get(h),Ne=new Map;if(me){const Fe=[];if(me.forEach((st,Dt)=>{if(Ne.set(Dt,st.value),this._triggers.has(Dt)){const rn=this.trigger(h,Dt,Vs,te);rn&&Fe.push(rn)}}),Fe.length)return this._engine.markElementAsRemoved(this.id,h,!0,v,Ne),I&&Vt(Fe).onDone(()=>this._engine.processLeaveNode(h)),!0}return!1}prepareLeaveAnimationListeners(h){const v=this._elementListeners.get(h),I=this._engine.statesByElement.get(h);if(v&&I){const te=new Set;v.forEach(me=>{const Ne=me.name;if(te.has(Ne))return;te.add(Ne);const st=this._triggers.get(Ne).fallbackTransition,Dt=I.get(Ne)||Go,rn=new to(Vs),Xt=new os(this.id,Ne,h);this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:Ne,transition:st,fromState:Dt,toState:rn,player:Xt,isFallbackTransition:!0})})}}removeNode(h,v){const I=this._engine;if(h.childElementCount&&this._signalRemovalForInnerTriggers(h,v),this.triggerLeaveAnimation(h,v,!0))return;let te=!1;if(I.totalAnimations){const me=I.players.length?I.playersByQueriedElement.get(h):[];if(me&&me.length)te=!0;else{let Ne=h;for(;Ne=Ne.parentNode;)if(I.statesByElement.get(Ne)){te=!0;break}}}if(this.prepareLeaveAnimationListeners(h),te)I.markElementAsRemoved(this.id,h,!1,v);else{const me=h[ss];(!me||me===eo)&&(I.afterFlush(()=>this.clearElementCache(h)),I.destroyInnerAnimations(h),I._onRemovalComplete(h,v))}}insertNode(h,v){Li(h,this._hostClassName)}drainQueuedTransitions(h){const v=[];return this._queue.forEach(I=>{const te=I.player;if(te.destroyed)return;const me=I.element,Ne=this._elementListeners.get(me);Ne&&Ne.forEach(Fe=>{if(Fe.name==I.triggerName){const st=ln(me,I.triggerName,I.fromState.value,I.toState.value);st._data=h,on(I.player,Fe.phase,st,Fe.callback)}}),te.markedForDestroy?this._engine.afterFlush(()=>{te.destroy()}):v.push(I)}),this._queue=[],v.sort((I,te)=>{const me=I.transition.ast.depCount,Ne=te.transition.ast.depCount;return 0==me||0==Ne?me-Ne:this._engine.driver.containsElement(I.element,te.element)?1:-1})}destroy(h){this.players.forEach(v=>v.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,h)}}class ho{_onRemovalComplete(h,v){this.onRemovalComplete(h,v)}constructor(h,v,I){this.bodyNode=h,this.driver=v,this._normalizer=I,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(te,me)=>{}}get queuedPlayers(){const h=[];return this._namespaceList.forEach(v=>{v.players.forEach(I=>{I.queued&&h.push(I)})}),h}createNamespace(h,v){const I=new Ra(h,v,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,v)?this._balanceNamespaceList(I,v):(this.newHostElements.set(v,I),this.collectEnterElement(v)),this._namespaceLookup[h]=I}_balanceNamespaceList(h,v){const I=this._namespaceList,te=this.namespacesByHostElement;if(I.length-1>=0){let Ne=!1,Fe=this.driver.getParentElement(v);for(;Fe;){const st=te.get(Fe);if(st){const Dt=I.indexOf(st);I.splice(Dt+1,0,h),Ne=!0;break}Fe=this.driver.getParentElement(Fe)}Ne||I.unshift(h)}else I.push(h);return te.set(v,h),h}register(h,v){let I=this._namespaceLookup[h];return I||(I=this.createNamespace(h,v)),I}registerTrigger(h,v,I){let te=this._namespaceLookup[h];te&&te.register(v,I)&&this.totalAnimations++}destroy(h,v){h&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const I=this._fetchNamespace(h);this.namespacesByHostElement.delete(I.hostElement);const te=this._namespaceList.indexOf(I);te>=0&&this._namespaceList.splice(te,1),I.destroy(v),delete this._namespaceLookup[h]}))}_fetchNamespace(h){return this._namespaceLookup[h]}fetchNamespacesByElement(h){const v=new Set,I=this.statesByElement.get(h);if(I)for(let te of I.values())if(te.namespaceId){const me=this._fetchNamespace(te.namespaceId);me&&v.add(me)}return v}trigger(h,v,I,te){if(Ki(v)){const me=this._fetchNamespace(h);if(me)return me.trigger(v,I,te),!0}return!1}insertNode(h,v,I,te){if(!Ki(v))return;const me=v[ss];if(me&&me.setForRemoval){me.setForRemoval=!1,me.setForMove=!0;const Ne=this.collectedLeaveElements.indexOf(v);Ne>=0&&this.collectedLeaveElements.splice(Ne,1)}if(h){const Ne=this._fetchNamespace(h);Ne&&Ne.insertNode(v,I)}te&&this.collectEnterElement(v)}collectEnterElement(h){this.collectedEnterElements.push(h)}markElementAsDisabled(h,v){v?this.disabledNodes.has(h)||(this.disabledNodes.add(h),Li(h,Re)):this.disabledNodes.has(h)&&(this.disabledNodes.delete(h),Ps(h,Re))}removeNode(h,v,I){if(Ki(v)){const te=h?this._fetchNamespace(h):null;te?te.removeNode(v,I):this.markElementAsRemoved(h,v,!1,I);const me=this.namespacesByHostElement.get(v);me&&me.id!==h&&me.removeNode(v,I)}else this._onRemovalComplete(v,I)}markElementAsRemoved(h,v,I,te,me){this.collectedLeaveElements.push(v),v[ss]={namespaceId:h,setForRemoval:te,hasAnimation:I,removedBeforeQueried:!1,previousTriggersValues:me}}listen(h,v,I,te,me){return Ki(v)?this._fetchNamespace(h).listen(v,I,te,me):()=>{}}_buildInstruction(h,v,I,te,me){return h.transition.build(this.driver,h.element,h.fromState.value,h.toState.value,I,te,h.fromState.options,h.toState.options,v,me)}destroyInnerAnimations(h){let v=this.driver.query(h,z,!0);v.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(v=this.driver.query(h,D,!0),v.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(h){const v=this.playersByElement.get(h);v&&v.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(h){const v=this.playersByQueriedElement.get(h);v&&v.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(h=>{if(this.players.length)return Vt(this.players).onDone(()=>h());h()})}processLeaveNode(h){const v=h[ss];if(v&&v.setForRemoval){if(h[ss]=eo,v.namespaceId){this.destroyInnerAnimations(h);const I=this._fetchNamespace(v.namespaceId);I&&I.clearElementCache(h)}this._onRemovalComplete(h,v.setForRemoval)}h.classList?.contains(Re)&&this.markElementAsDisabled(h,!1),this.driver.query(h,".ng-animate-disabled",!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(h=-1){let v=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,te)=>this._balanceNamespaceList(I,te)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;II()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],v.length?Vt(v).onDone(()=>{I.forEach(te=>te())}):I.forEach(te=>te())}}reportError(h){throw function we(W){return new d.vHH(3402,!1)}()}_flushAnimations(h,v){const I=new Mi,te=[],me=new Map,Ne=[],Fe=new Map,st=new Map,Dt=new Map,rn=new Set;this.disabledNodes.forEach(mn=>{rn.add(mn);const On=this.driver.query(mn,".ng-animate-queued",!0);for(let bn=0;bn{const bn=Ur+Fn++;xn.set(On,bn),mn.forEach(tr=>Li(tr,bn))});const E=[],S=new Set,y=new Set;for(let mn=0;mnS.add(tr)):y.add(On))}const x=new Map,G=no(Tn,Array.from(S));G.forEach((mn,On)=>{const bn=ai+Fn++;x.set(On,bn),mn.forEach(tr=>Li(tr,bn))}),h.push(()=>{Vn.forEach((mn,On)=>{const bn=xn.get(On);mn.forEach(tr=>Ps(tr,bn))}),G.forEach((mn,On)=>{const bn=x.get(On);mn.forEach(tr=>Ps(tr,bn))}),E.forEach(mn=>{this.processLeaveNode(mn)})});const he=[],Me=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(v).forEach(bn=>{const tr=bn.player,ar=bn.element;if(he.push(tr),this.collectedEnterElements.length){const ri=ar[ss];if(ri&&ri.setForMove){if(ri.previousTriggersValues&&ri.previousTriggersValues.has(bn.triggerName)){const Qi=ri.previousTriggersValues.get(bn.triggerName),ds=this.statesByElement.get(bn.element);if(ds&&ds.has(bn.triggerName)){const ao=ds.get(bn.triggerName);ao.value=Qi,ds.set(bn.triggerName,ao)}}return void tr.destroy()}}const Ms=!Xt||!this.driver.containsElement(Xt,ar),Ji=x.get(ar),fr=xn.get(ar),ni=this._buildInstruction(bn,I,fr,Ji,Ms);if(ni.errors&&ni.errors.length)return void Me.push(ni);if(Ms)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);if(bn.isFallbackTransition)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);const Jo=[];ni.timelines.forEach(ri=>{ri.stretchStartingKeyframe=!0,this.disabledNodes.has(ri.element)||Jo.push(ri)}),ni.timelines=Jo,I.append(ar,ni.timelines),Ne.push({instruction:ni,player:tr,element:ar}),ni.queriedElements.forEach(ri=>$n(Fe,ri,[]).push(tr)),ni.preStyleProps.forEach((ri,Qi)=>{if(ri.size){let ds=st.get(Qi);ds||st.set(Qi,ds=new Set),ri.forEach((ao,lo)=>ds.add(lo))}}),ni.postStyleProps.forEach((ri,Qi)=>{let ds=Dt.get(Qi);ds||Dt.set(Qi,ds=new Set),ri.forEach((ao,lo)=>ds.add(lo))})});if(Me.length){const mn=[];Me.forEach(On=>{mn.push(function yt(W,h){return new d.vHH(3505,!1)}())}),he.forEach(On=>On.destroy()),this.reportError(mn)}const at=new Map,ft=new Map;Ne.forEach(mn=>{const On=mn.element;I.has(On)&&(ft.set(On,On),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,at))}),te.forEach(mn=>{const On=mn.element;this._getPreviousPlayers(On,!1,mn.namespaceId,mn.triggerName,null).forEach(tr=>{$n(at,On,[]).push(tr),tr.destroy()})});const tn=E.filter(mn=>So(mn,st,Dt)),kn=new Map;yi(kn,this.driver,y,Dt,J).forEach(mn=>{So(mn,st,Dt)&&tn.push(mn)});const or=new Map;Vn.forEach((mn,On)=>{yi(or,this.driver,new Set(mn),st,"!")}),tn.forEach(mn=>{const On=kn.get(mn),bn=or.get(mn);kn.set(mn,new Map([...On?.entries()??[],...bn?.entries()??[]]))});const hi=[],Gs=[],Ns={};Ne.forEach(mn=>{const{element:On,player:bn,instruction:tr}=mn;if(I.has(On)){if(rn.has(On))return bn.onDestroy(()=>Nn(On,tr.toStyles)),bn.disabled=!0,bn.overrideTotalTime(tr.totalTime),void te.push(bn);let ar=Ns;if(ft.size>1){let Ji=On;const fr=[];for(;Ji=Ji.parentNode;){const ni=ft.get(Ji);if(ni){ar=ni;break}fr.push(Ji)}fr.forEach(ni=>ft.set(ni,ar))}const Ms=this._buildAnimation(bn.namespaceId,tr,at,me,or,kn);if(bn.setRealPlayer(Ms),ar===Ns)hi.push(bn);else{const Ji=this.playersByElement.get(ar);Ji&&Ji.length&&(bn.parentPlayer=Vt(Ji)),te.push(bn)}}else ir(On,tr.fromStyles),bn.onDestroy(()=>Nn(On,tr.toStyles)),Gs.push(bn),rn.has(On)&&te.push(bn)}),Gs.forEach(mn=>{const On=me.get(mn.element);if(On&&On.length){const bn=Vt(On);mn.setRealPlayer(bn)}}),te.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn!Ms.destroyed);ar.length?ro(this,On,ar):this.processLeaveNode(On)}return E.length=0,hi.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const On=this.players.indexOf(mn);this.players.splice(On,1)}),mn.play()}),hi}afterFlush(h){this._flushFns.push(h)}afterFlushAnimationsDone(h){this._whenQuietFns.push(h)}_getPreviousPlayers(h,v,I,te,me){let Ne=[];if(v){const Fe=this.playersByQueriedElement.get(h);Fe&&(Ne=Fe)}else{const Fe=this.playersByElement.get(h);if(Fe){const st=!me||me==Vs;Fe.forEach(Dt=>{Dt.queued||!st&&Dt.triggerName!=te||Ne.push(Dt)})}}return(I||te)&&(Ne=Ne.filter(Fe=>!(I&&I!=Fe.namespaceId||te&&te!=Fe.triggerName))),Ne}_beforeAnimationBuild(h,v,I){const me=v.element,Ne=v.isRemovalTransition?void 0:h,Fe=v.isRemovalTransition?void 0:v.triggerName;for(const st of v.timelines){const Dt=st.element,rn=Dt!==me,Xt=$n(I,Dt,[]);this._getPreviousPlayers(Dt,rn,Ne,Fe,v.toState).forEach(Vn=>{const xn=Vn.getRealPlayer();xn.beforeDestroy&&xn.beforeDestroy(),Vn.destroy(),Xt.push(Vn)})}ir(me,v.fromStyles)}_buildAnimation(h,v,I,te,me,Ne){const Fe=v.triggerName,st=v.element,Dt=[],rn=new Set,Xt=new Set,Tn=v.timelines.map(xn=>{const Fn=xn.element;rn.add(Fn);const E=Fn[ss];if(E&&E.removedBeforeQueried)return new et(xn.duration,xn.delay);const S=Fn!==st,y=function io(W){const h=[];return go(W,h),h}((I.get(Fn)||is).map(at=>at.getRealPlayer())).filter(at=>!!at.element&&at.element===Fn),x=me.get(Fn),G=Ne.get(Fn),he=Un(this._normalizer,xn.keyframes,x,G),Me=this._buildPlayer(xn,he,y);if(xn.subTimeline&&te&&Xt.add(Fn),S){const at=new os(h,Fe,Fn);at.setRealPlayer(Me),Dt.push(at)}return Me});Dt.forEach(xn=>{$n(this.playersByQueriedElement,xn.element,[]).push(xn),xn.onDone(()=>function as(W,h,v){let I=W.get(h);if(I){if(I.length){const te=I.indexOf(v);I.splice(te,1)}0==I.length&&W.delete(h)}return I}(this.playersByQueriedElement,xn.element,xn))}),rn.forEach(xn=>Li(xn,K));const Vn=Vt(Tn);return Vn.onDestroy(()=>{rn.forEach(xn=>Ps(xn,K)),Nn(st,v.toStyles)}),Xt.forEach(xn=>{$n(te,xn,[]).push(Vn)}),Vn}_buildPlayer(h,v,I){return v.length>0?this.driver.animate(h.element,v,h.duration,h.delay,h.easing,I):new et(h.duration,h.delay)}}class os{constructor(h,v,I){this.namespaceId=h,this.triggerName=v,this.element=I,this._player=new et,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(h){this._containsRealPlayer||(this._player=h,this._queuedCallbacks.forEach((v,I)=>{v.forEach(te=>on(h,I,void 0,te))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(h.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(h){this.totalTime=h}syncPlayerEvents(h){const v=this._player;v.triggerCallback&&h.onStart(()=>v.triggerCallback("start")),h.onDone(()=>this.finish()),h.onDestroy(()=>this.destroy())}_queueEvent(h,v){$n(this._queuedCallbacks,h,[]).push(v)}onDone(h){this.queued&&this._queueEvent("done",h),this._player.onDone(h)}onStart(h){this.queued&&this._queueEvent("start",h),this._player.onStart(h)}onDestroy(h){this.queued&&this._queueEvent("destroy",h),this._player.onDestroy(h)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(h){this.queued||this._player.setPosition(h)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(h){const v=this._player;v.triggerCallback&&v.triggerCallback(h)}}function Ki(W){return W&&1===W.nodeType}function ls(W,h){const v=W.style.display;return W.style.display=h??"none",v}function yi(W,h,v,I,te){const me=[];v.forEach(st=>me.push(ls(st)));const Ne=[];I.forEach((st,Dt)=>{const rn=new Map;st.forEach(Xt=>{const Tn=h.computeStyle(Dt,Xt,te);rn.set(Xt,Tn),(!Tn||0==Tn.length)&&(Dt[ss]=Pa,Ne.push(Dt))}),W.set(Dt,rn)});let Fe=0;return v.forEach(st=>ls(st,me[Fe++])),Ne}function no(W,h){const v=new Map;if(W.forEach(Fe=>v.set(Fe,[])),0==h.length)return v;const te=new Set(h),me=new Map;function Ne(Fe){if(!Fe)return 1;let st=me.get(Fe);if(st)return st;const Dt=Fe.parentNode;return st=v.has(Dt)?Dt:te.has(Dt)?1:Ne(Dt),me.set(Fe,st),st}return h.forEach(Fe=>{const st=Ne(Fe);1!==st&&v.get(st).push(Fe)}),v}function Li(W,h){W.classList?.add(h)}function Ps(W,h){W.classList?.remove(h)}function ro(W,h,v){Vt(v).onDone(()=>W.processLeaveNode(h))}function go(W,h){for(let v=0;vte.add(me)):h.set(W,I),v.delete(W),!0}class so{constructor(h,v,I){this.bodyNode=h,this._driver=v,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(te,me)=>{},this._transitionEngine=new ho(h,v,I),this._timelineEngine=new re(h,v,I),this._transitionEngine.onRemovalComplete=(te,me)=>this.onRemovalComplete(te,me)}registerTrigger(h,v,I,te,me){const Ne=h+"-"+te;let Fe=this._triggerCache[Ne];if(!Fe){const st=[],rn=Nr(this._driver,me,st,[]);if(st.length)throw function nr(W,h){return new d.vHH(3404,!1)}();Fe=function Ds(W,h,v){return new Xs(W,h,v)}(te,rn,this._normalizer),this._triggerCache[Ne]=Fe}this._transitionEngine.registerTrigger(v,te,Fe)}register(h,v){this._transitionEngine.register(h,v)}destroy(h,v){this._transitionEngine.destroy(h,v)}onInsert(h,v,I,te){this._transitionEngine.insertNode(h,v,I,te)}onRemove(h,v,I){this._transitionEngine.removeNode(h,v,I)}disableAnimations(h,v){this._transitionEngine.markElementAsDisabled(h,v)}process(h,v,I,te){if("@"==I.charAt(0)){const[me,Ne]=Qe(I);this._timelineEngine.command(me,v,Ne,te)}else this._transitionEngine.trigger(h,v,I,te)}listen(h,v,I,te,me){if("@"==I.charAt(0)){const[Ne,Fe]=Qe(I);return this._timelineEngine.listen(Ne,v,Fe,me)}return this._transitionEngine.listen(h,v,I,te,me)}flush(h=-1){this._transitionEngine.flush(h)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(h){this._transitionEngine.afterFlushAnimationsDone(h)}}let ua=(()=>{class W{static#e=this.initialStylesByElement=new WeakMap;constructor(v,I,te){this._element=v,this._startStyles=I,this._endStyles=te,this._state=0;let me=W.initialStylesByElement.get(v);me||W.initialStylesByElement.set(v,me=new Map),this._initialStyles=me}start(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(W.initialStylesByElement.delete(this._element),this._startStyles&&(ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}return W})();function Cs(W){let h=null;return W.forEach((v,I)=>{(function mo(W){return"display"===W||"position"===W})(I)&&(h=h||new Map,h.set(I,v))}),h}class Rs{constructor(h,v,I,te){this.element=h,this.keyframes=v,this.options=I,this._specialStyles=te,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=I.duration,this._delay=I.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const h=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,h,this.options),this._finalKeyframe=h.length?h[h.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(h){const v=[];return h.forEach(I=>{v.push(Object.fromEntries(I))}),v}_triggerWebAnimation(h,v,I){return h.animate(this._convertKeyframesToObject(v),I)}onStart(h){this._originalOnStartFns.push(h),this._onStartFns.push(h)}onDone(h){this._originalOnDoneFns.push(h),this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(h=>h()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}setPosition(h){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=h*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const h=new Map;this.hasStarted()&&this._finalKeyframe.forEach((I,te)=>{"offset"!==te&&h.set(te,this._finished?I:jn(this.element,te))}),this.currentSnapshot=h}triggerCallback(h){const v="start"===h?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class da{validateStyleProperty(h){return!0}validateAnimatableStyleProperty(h){return!0}matchesElement(h,v){return!1}containsElement(h,v){return pr(h,v)}getParentElement(h){return Ue(h)}query(h,v,I){return jr(h,v,I)}computeStyle(h,v,I){return window.getComputedStyle(h)[v]}animate(h,v,I,te,me,Ne=[]){const st={duration:I,delay:te,fill:0==te?"both":"forwards"};me&&(st.easing=me);const Dt=new Map,rn=Ne.filter(Vn=>Vn instanceof Rs);(function Bi(W,h){return 0===W||0===h})(I,te)&&rn.forEach(Vn=>{Vn.currentSnapshot.forEach((xn,Fn)=>Dt.set(Fn,xn))});let Xt=function cn(W){return W.length?W[0]instanceof Map?W:W.map(h=>$t(h)):[]}(v).map(Vn=>En(Vn));Xt=function Gi(W,h,v){if(v.size&&h.length){let I=h[0],te=[];if(v.forEach((me,Ne)=>{I.has(Ne)||te.push(Ne),I.set(Ne,me)}),te.length)for(let me=1;meNe.set(Fe,jn(W,Fe)))}}return h}(h,Xt,Dt);const Tn=function ca(W,h){let v=null,I=null;return Array.isArray(h)&&h.length?(v=Cs(h[0]),h.length>1&&(I=Cs(h[h.length-1]))):h instanceof Map&&(v=Cs(h)),v||I?new ua(W,v,I):null}(h,Xt);return new Rs(h,Xt,st,Tn)}}let fa=(()=>{class W extends Ee{constructor(v,I){super(),this._nextAnimationId=0,this._renderer=v.createRenderer(I.body,{id:"0",encapsulation:d.ifc.None,styles:[],data:{animation:[]}})}build(v){const I=this._nextAnimationId.toString();this._nextAnimationId++;const te=Array.isArray(v)?ae(v):v;return zo(this._renderer,null,I,"register",[te]),new pa(I,this._renderer)}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(w.K0))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class pa extends ze{constructor(h,v){super(),this._id=h,this._renderer=v}create(h,v){return new hl(this._id,h,v||{},this._renderer)}}class hl{constructor(h,v,I,te){this.id=h,this.element=v,this._renderer=te,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(h,v){return this._renderer.listen(this.element,`@@${this.id}:${h}`,v)}_command(h,...v){return zo(this._renderer,this.element,this.id,h,v)}onDone(h){this._listen("done",h)}onStart(h){this._listen("start",h)}onDestroy(h){this._listen("destroy",h)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(h){this._command("setPosition",h)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function zo(W,h,v,I,te){return W.setProperty(h,`@@${v}:${I}`,te)}const Zo="@.disabled";let Ko=(()=>{class W{constructor(v,I,te){this.delegate=v,this.engine=I,this._zone=te,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,I.onRemovalComplete=(me,Ne)=>{const Fe=Ne?.parentNode(me);Fe&&Ne.removeChild(Fe,me)}}createRenderer(v,I){const me=this.delegate.createRenderer(v,I);if(!(v&&I&&I.data&&I.data.animation)){let rn=this._rendererCache.get(me);return rn||(rn=new _o("",me,this.engine,()=>this._rendererCache.delete(me)),this._rendererCache.set(me,rn)),rn}const Ne=I.id,Fe=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Fe,v);const st=rn=>{Array.isArray(rn)?rn.forEach(st):this.engine.registerTrigger(Ne,Fe,v,rn.name,rn)};return I.data.animation.forEach(st),new ha(this,Fe,me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(v,I,te){v>=0&&vI(te)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(me=>{const[Ne,Fe]=me;Ne(Fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,te]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(so),d.LFG(d.R0b))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class _o{constructor(h,v,I,te){this.namespaceId=h,this.delegate=v,this.engine=I,this._onDestroy=te}get data(){return this.delegate.data}destroyNode(h){this.delegate.destroyNode?.(h)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(h,v){return this.delegate.createElement(h,v)}createComment(h){return this.delegate.createComment(h)}createText(h){return this.delegate.createText(h)}appendChild(h,v){this.delegate.appendChild(h,v),this.engine.onInsert(this.namespaceId,v,h,!1)}insertBefore(h,v,I,te=!0){this.delegate.insertBefore(h,v,I),this.engine.onInsert(this.namespaceId,v,h,te)}removeChild(h,v,I){this.engine.onRemove(this.namespaceId,v,this.delegate)}selectRootElement(h,v){return this.delegate.selectRootElement(h,v)}parentNode(h){return this.delegate.parentNode(h)}nextSibling(h){return this.delegate.nextSibling(h)}setAttribute(h,v,I,te){this.delegate.setAttribute(h,v,I,te)}removeAttribute(h,v,I){this.delegate.removeAttribute(h,v,I)}addClass(h,v){this.delegate.addClass(h,v)}removeClass(h,v){this.delegate.removeClass(h,v)}setStyle(h,v,I,te){this.delegate.setStyle(h,v,I,te)}removeStyle(h,v,I){this.delegate.removeStyle(h,v,I)}setProperty(h,v,I){"@"==v.charAt(0)&&v==Zo?this.disableAnimations(h,!!I):this.delegate.setProperty(h,v,I)}setValue(h,v){this.delegate.setValue(h,v)}listen(h,v,I){return this.delegate.listen(h,v,I)}disableAnimations(h,v){this.engine.disableAnimations(h,v)}}class ha extends _o{constructor(h,v,I,te,me){super(v,I,te,me),this.factory=h,this.namespaceId=v}setProperty(h,v,I){"@"==v.charAt(0)?"."==v.charAt(1)&&v==Zo?this.disableAnimations(h,I=void 0===I||!!I):this.engine.process(this.namespaceId,h,v.slice(1),I):this.delegate.setProperty(h,v,I)}listen(h,v,I){if("@"==v.charAt(0)){const te=function Ao(W){switch(W){case"body":return document.body;case"document":return document;case"window":return window;default:return W}}(h);let me=v.slice(1),Ne="";return"@"!=me.charAt(0)&&([me,Ne]=function Na(W){const h=W.indexOf(".");return[W.substring(0,h),W.slice(h+1)]}(me)),this.engine.listen(this.namespaceId,te,me,Ne,Fe=>{this.factory.scheduleListenerCallback(Fe._data||-1,I,Fe)})}return this.delegate.listen(h,v,I)}}const T=[{provide:Ee,useClass:fa},{provide:ht,useFactory:function oo(){return new Ot}},{provide:so,useClass:(()=>{class W extends so{constructor(v,I,te,me){super(v.body,I,te)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(w.K0),d.LFG(Hr),d.LFG(ht),d.LFG(d.z2F))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})()},{provide:d.FYo,useFactory:function xo(W,h,v){return new Ko(W,h,v)},deps:[t.se,so,d.R0b]}],le=[{provide:Hr,useFactory:()=>new da},{provide:d.QbO,useValue:"BrowserAnimations"},...T],U=[{provide:Hr,useClass:Ar},{provide:d.QbO,useValue:"NoopAnimations"},...T];let ee=(()=>{class W{static withConfig(v){return{ngModule:W,providers:v.disableAnimations?U:le}}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:le,imports:[t.b2]})}return W})();var Jt=a(1523),Bn=a(9515);class dr{http;prefix;suffix;constructor(h,v="/assets/i18n/",I=".json"){this.http=h,this.prefix=v,this.suffix=I}getTranslation(h){return this.http.get(`${this.prefix}${h}${this.suffix}`)}}function yr(W,h){if(1&W&&(d.TgZ(0,"li")(1,"h2")(2,"a",2),d._uU(3),d.ALo(4,"translate"),d.qZA()()()),2&W){const v=h.$implicit;let I;d.xp6(2),d.Q6J("routerLink","/"+v.path),d.xp6(1),d.hij(" ",d.lcZ(4,2,(null!==(I=v.name)&&void 0!==I?I:v.path)+".title")," ")}}let Kn=(()=>{class W{constructor(){this.sections=[{path:"dashboard"},{path:"presence-control"},{path:"open-absences"},{path:"edit-absences"},{path:"evaluate-absences"},{path:"events"},{path:"events/current",name:"events.current"},{path:"my-absences"},{path:"my-profile"},{path:"my-grades"},{path:"my-settings"}]}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-home"]],decls:2,vars:1,consts:[[1,"mt-3"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(I,te){1&I&&(d.TgZ(0,"ul",0),d.YNc(1,yr,5,4,"li",1),d.qZA()),2&I&&(d.xp6(1),d.Q6J("ngForOf",te.sections))},dependencies:[w.sg,Jt.rH,Bn.X$],changeDetection:0})}return W})();var Jr=a(813);function Jn(){return()=>{const W=(0,d.f3M)(Jr.e),h=(0,d.f3M)(Jt.F0);return!!W.isAuthenticated||(h.navigate(["/unauthenticated"]),!1)}}let ei=(()=>{class W{constructor(){}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-unauthenticated"]],decls:4,vars:3,consts:[[1,"erz-container"],[1,"alert","alert-danger","my-3"]],template:function(I,te){1&I&&(d.TgZ(0,"div",0)(1,"div",1),d._uU(2),d.ALo(3,"translate"),d.qZA()()),2&I&&(d.xp6(2),d.hij(" ",d.lcZ(3,1,"unauthenticated.message")," "))},dependencies:[Bn.X$],encapsulation:2})}return W})();const Ei=[{path:"dashboard",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(66)]).then(a.bind(a,66)).then(W=>W.DashboardModule)},{path:"presence-control",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(373)]).then(a.bind(a,3373)).then(W=>W.PresenceControlModule)},{path:"open-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(480)]).then(a.bind(a,4480)).then(W=>W.OpenAbsencesModule)},{path:"edit-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(403)]).then(a.bind(a,9403)).then(W=>W.EditAbsencesModule)},{path:"evaluate-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(162),a.e(592),a.e(685)]).then(a.bind(a,7685)).then(W=>W.EvaluateAbsencesModule)},{path:"events",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(218)]).then(a.bind(a,6218)).then(W=>W.EventsModule)},{path:"my-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(862)]).then(a.bind(a,862)).then(W=>W.MyAbsencesModule)},{path:"my-profile",canActivate:[Jn()],loadChildren:()=>a.e(958).then(a.bind(a,1958)).then(W=>W.MyProfileModule)},{path:"my-grades",canActivate:[Jn()],loadChildren:()=>a.e(232).then(a.bind(a,2150)).then(W=>W.MyGradesModule)},{path:"my-settings",canActivate:[Jn()],loadChildren:()=>a.e(269).then(a.bind(a,7269)).then(W=>W.MySettingsModule)},{path:"unauthenticated",component:ei},{path:"",component:Kn,pathMatch:"full"}];let Ai=(()=>{class W{static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({imports:[Jt.Bz.forRoot(Ei,{useHash:!0}),Jt.Bz]})}return W})();var Hi=a(6306),Fi=a(6232),ti=a(4141),cs=a(275);const Ts=new d.OlP("Navigator API",{providedIn:"root",factory:()=>navigator});var er=a(8299),ws=a(6869),li=a(253);function Di(W,h){if(1&W&&(d.TgZ(0,"i",4),d._uU(1),d.qZA()),2&W){const v=d.oxw().$implicit;d.xp6(1),d.Oqu(v.icon)}}function ga(W,h){if(1&W){const v=d.EpF();d.TgZ(0,"ngb-toast",1),d.NdJ("hidden",function(){const me=d.CHM(v).$implicit,Ne=d.oxw();return d.KtG(Ne.toastService.remove(me))}),d.TgZ(1,"div",2),d.YNc(2,Di,2,1,"i",3),d.TgZ(3,"span"),d._uU(4),d.qZA()()()}if(2&W){const v=h.$implicit;d.Tol(v.classname),d.Q6J("header",v.header)("autohide",!0),d.xp6(2),d.Q6J("ngIf",v.icon),d.xp6(2),d.Oqu(v.message)}}let Oo=(()=>{class W{constructor(v){this.toastService=v}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(ws.k))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-toast"]],decls:2,vars:3,consts:[[3,"header","class","autohide","hidden",4,"ngFor","ngForOf"],[3,"header","autohide","hidden"],[1,"d-flex","gap-2"],["class","material-icons",4,"ngIf"],[1,"material-icons"]],template:function(I,te){1&I&&(d.YNc(0,ga,5,6,"ngb-toast",0),d.ALo(1,"async")),2&I&&d.Q6J("ngForOf",d.lcZ(1,1,te.toastService.toasts$))},dependencies:[w.sg,w.O5,li.Iv,w.Ov],styles:["[_nghost-%COMP%]{position:fixed;top:0;right:0;margin:.5em;z-index:1200}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{font-size:medium}"]})}return W})(),Yi=(()=>{class W{constructor(v,I,te,me,Ne){this.router=v,this.toastService=te,this.settings=me,this.navigator=Ne,this.router.initialNavigation(),I.initialize(),this.checkSettings()}checkSettings(){(0,cs.Jx)(ti.Zr)(this.settings).pipe((0,Hi.K)(v=>(console.error(String(v)),this.toastService.error("Please check the contents of the settings.js file (see Console output for more details).","Invalid Settings"),Fi.E))).subscribe()}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(Jt.F0),d.Y36(er.D),d.Y36(ws.k),d.Y36(ti.L6),d.Y36(Ts))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(I,te){1&I&&d._UZ(0,"erz-toast",0)(1,"router-outlet")},dependencies:[Jt.lC,Oo],styles:["[_nghost-%COMP%]{width:100%}"],changeDetection:0})}return W})(),Vi=(()=>{class W{constructor(v,I,te){this.ngZone=v,this.translate=I,this.toastService=te}handleError(v){console.error(String(v)),v instanceof L.UA||this.notifyError()}notifyError(){this.ngZone.run(()=>{this.toastService.error(this.translate.instant("global.app-errors.exception-message"),this.translate.instant("global.app-errors.exception-title"))})}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.R0b),d.LFG(Bn.sK),d.LFG(ws.k))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();var gl=a(5619),Io=a(1687),$s=a(8645),us=a(8504),Po=a(7081),ma=a(7921),xi=a(9773),vo=a(2460),Fa=a(7938),ka=a(6567),Hn=a(4703),Yo=a(9410);const _a=["notificationspopup"];function Ro(W,h){if(1&W){const v=d.EpF();d.TgZ(0,"div",16)(1,"div",17),d._UZ(2,"div",18),d.ALo(3,"safe"),d.ALo(4,"xss"),d._UZ(5,"div",19),d.ALo(6,"safe"),d.ALo(7,"xss"),d.qZA(),d.TgZ(8,"div",20)(9,"button",21),d.NdJ("click",function(){const me=d.CHM(v).$implicit,Ne=d.oxw(3);return d.KtG(Ne.deleteNotification(me.id))}),d.O4$(),d.TgZ(10,"svg",22),d._UZ(11,"path",23)(12,"path",24),d.qZA()()()()}if(2&W){const v=h.$implicit,I=d.oxw(3);d.xp6(2),d.Q6J("innerHTML",d.xi3(3,2,d.xi3(4,5,v.subject,I.xssOptions),"html"),d.oJD),d.xp6(3),d.Q6J("innerHTML",d.xi3(6,8,d.xi3(7,11,v.body,I.xssOptions),"html"),d.oJD)}}function Ba(W,h){if(1&W&&(d.TgZ(0,"div",14),d.YNc(1,Ro,13,14,"div",15),d.qZA()),2&W){const v=d.oxw().erzLet;d.xp6(1),d.Q6J("ngForOf",v.notifications)}}function Ua(W,h){1&W&&(d.TgZ(0,"div",25),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&W&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"my-notifications.none")," "))}function Ws(W,h){if(1&W){const v=d.EpF();d.TgZ(0,"div",1)(1,"button",2),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.toggleNotificationsPopup())}),d.ALo(2,"translate"),d.TgZ(3,"span",3),d.O4$(),d.TgZ(4,"svg",4),d._UZ(5,"path",5),d.qZA()(),d.kcU(),d.TgZ(6,"span",6),d._uU(7),d.qZA()(),d.TgZ(8,"div",7,8)(10,"div")(11,"div",9)(12,"span",10),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"button",11),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.deleteAll())}),d._uU(16),d.ALo(17,"translate"),d.qZA()(),d.YNc(18,Ba,2,1,"div",12),d.YNc(19,Ua,3,3,"ng-template",null,13,d.W1O),d.qZA()()()}if(2&W){const v=h.erzLet,I=d.MAs(20);d.xp6(1),d.uIk("aria-label",d.lcZ(2,11,"my-notifications.title")),d.xp6(2),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(1),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(2),d.Q6J("hidden",v.notificationsCount<1)("ngClass",v.isAuthenticated?"notifications-bell-counter-visible":"notifications-bell-counter-hidden"),d.xp6(1),d.Oqu(v.notificationsCount),d.xp6(6),d.hij(" ",d.lcZ(14,13,"my-notifications.title")," "),d.xp6(2),d.Q6J("disabled",v.notificationsCount<1),d.xp6(1),d.hij(" ",d.lcZ(17,15,"my-notifications.deleteAll")," "),d.xp6(2),d.Q6J("ngIf",v.notificationsCount>0)("ngIfElse",I)}}const Ss=function(W,h,v){return{notifications:W,notificationsCount:h,isAuthenticated:v}};let ml=(()=>{class W{constructor(v,I,te){this.settings=I,this.userSettings=te,this.notifications$=this.loadNotifications().pipe((0,Po.d)()),this.isAuthenticated$=new gl.X(!1),this.refetchTimer$=(0,Io.F)(1e3*this.settings.notificationRefreshTime).pipe((0,ma.O)(null)),this.deleteAllNotifications$=new $s.x,this.deleteNotification$=new $s.x,this.toggleNotificationsPopup$=new $s.x,this.destroy$=new $s.x,this.xssOptions={whiteList:{br:[],div:["style"],span:["style"],a:["href"],ul:[],ol:[],li:[],sup:[],sub:[],code:[],cite:[]},css:!1},v.initialize(),this.notifications$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.isAuthenticated$.next(!0)),this.toggleNotificationsPopup$.pipe((0,vo.M)(this.isAuthenticated$),(0,xi.R)(this.destroy$)).subscribe(([me,Ne])=>{me&&!0===Ne&&(me.style.display="block"===me.style.display?"none":"block")}),this.refetchTimer$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.userSettings.refetch()),this.deleteNotification$.pipe((0,vo.M)(this.notifications$),(0,j.w)(([me,Ne])=>this.userSettings.saveNotificationData(this.deleteNotificationFromArray(me,Ne))),(0,xi.R)(this.destroy$)).subscribe(),this.deleteAllNotifications$.pipe((0,j.w)(()=>this.userSettings.saveNotificationData([])),(0,xi.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}toggleNotificationsPopup(){this.popup.nativeElement&&this.toggleNotificationsPopup$.next(this.popup.nativeElement)}deleteNotification(v){this.deleteNotification$.next(v)}deleteAll(){this.deleteAllNotifications$.next()}deleteNotificationFromArray(v,I){return I.filter(te=>te.id!==v)}loadNotifications(){return this.userSettings.getNotificationData().pipe((0,Hi.K)(v=>401===v.status?(this.isAuthenticated$.next(!1),[]):(0,us._)(()=>v)))}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(er.D),d.Y36(ti.L6),d.Y36(Fa.s))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],viewQuery:function(I,te){if(1&I&&d.Gf(_a,5),2&I){let me;d.iGM(me=d.CRH())&&(te.popup=me.first)}},decls:4,vars:11,consts:[["class","notifications-container",4,"erzLet"],[1,"notifications-container"],["type","button","id","notifications-button",1,"btn","btn-link","notifications-button","p-0","m-0",3,"click"],[1,"notifications-bell",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","height","32px","viewBox","0 0 24 24","width","32px","fill","#000000",1,"notifications-bell",3,"ngClass"],["d","M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"],["id","notifications-bell-counter",1,"notifications-bell-counter",3,"hidden","ngClass"],["id","notifications-popup",1,"notifications-popup","border"],["notificationspopup",""],[1,"d-flex","justify-content-between","border-bottom","p-3","align-items-center"],[1,"pe-3"],["type","button","id","notifications-delete-all",1,"btn","btn-primary",3,"disabled","click"],["class","notifications-popup-data",4,"ngIf","ngIfElse"],["noNotifications",""],[1,"notifications-popup-data"],["class","border-bottom p-3",4,"ngFor","ngForOf"],[1,"border-bottom","p-3"],[1,"d-flex","justify-content-between"],[1,"text-start","pe-3",3,"innerHTML"],[1,"text-end",3,"innerHTML"],[1,"pt-1","text-end"],["type","button",1,"btn","btn-link","p-0","notifications-delete-notification",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px"],["d","M0 0h24v24H0z","fill","none"],["d","M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"],[1,"d-flex","p-3","align-items-center","p-2"]],template:function(I,te){if(1&I&&(d.YNc(0,Ws,21,17,"div",0),d.ALo(1,"async"),d.ALo(2,"async"),d.ALo(3,"async")),2&I){let me;d.Q6J("erzLet",d.kEZ(7,Ss,d.lcZ(1,1,te.notifications$),(null==(me=d.lcZ(2,3,te.notifications$))?null:me.length)||0,d.lcZ(3,5,te.isAuthenticated$)))}},dependencies:[w.mk,w.sg,w.O5,ka.e,w.Ov,Bn.X$,Hn.y,Yo.Q],styles:['@charset "UTF-8";:host{--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;position:relative}:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(208, 16, 24);--bs-orange: rgb(239, 124, 0);--bs-yellow: rgb(255, 168, 20);--bs-green: rgb(61, 134, 8);--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: rgba(78, 78, 78, .95);--bs-secondary: rgb(222, 222, 222);--bs-success: rgb(61, 134, 8);--bs-info: #0dcaf0;--bs-warning: rgb(255, 168, 20);--bs-danger: rgb(208, 16, 24);--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 78, 78, 78;--bs-secondary-rgb: 222, 222, 222;--bs-success-rgb: 61, 134, 8;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 168, 20;--bs-danger-rgb: 208, 16, 24;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgba(29, 29, 29, .98);--bs-secondary-text-emphasis: #595959;--bs-success-text-emphasis: #183603;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664308;--bs-danger-text-emphasis: #53060a;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgba(222, 222, 222, .99);--bs-secondary-bg-subtle: #f8f8f8;--bs-success-bg-subtle: #d8e7ce;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #ffeed0;--bs-danger-bg-subtle: #f6cfd1;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgba(188, 188, 188, .98);--bs-secondary-border-subtle: #f2f2f2;--bs-success-border-subtle: #b1cf9c;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffdca1;--bs-danger-border-subtle: #ec9fa3;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: "Roboto", sans-serif;--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 300;--bs-body-line-height: 1.625;--bs-body-color: rgb(0, 0, 0);--bs-body-color-rgb: 0, 0, 0;--bs-body-bg: rgb(255, 255, 255);--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(0, 0, 0, .75);--bs-secondary-color-rgb: 0, 0, 0;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(0, 0, 0, .5);--bs-tertiary-color-rgb: 0, 0, 0;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: rgb(0, 0, 0);--bs-link-color-rgb: 0, 0, 0;--bs-link-decoration: underline;--bs-link-hover-color: rgb(234, 22, 31);--bs-link-hover-color-rgb: 234, 22, 31;--bs-code-color: #d63384;--bs-highlight-color: rgb(0, 0, 0);--bs-highlight-bg: #ffeed0;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width: .25rem;--bs-focus-ring-opacity: .25;--bs-focus-ring-color: rgba(78, 78, 78, .25);--bs-form-valid-color: rgb(61, 134, 8);--bs-form-valid-border-color: rgb(61, 134, 8);--bs-form-invalid-color: rgb(208, 16, 24);--bs-form-invalid-border-color: rgb(208, 16, 24)}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, .75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, .5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: rgba(153, 153, 153, .97);--bs-secondary-text-emphasis: #ebebeb;--bs-success-text-emphasis: #8bb66b;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffcb72;--bs-danger-text-emphasis: #e37074;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: rgba(14, 14, 14, .99);--bs-secondary-bg-subtle: #2c2c2c;--bs-success-bg-subtle: #0c1b02;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332204;--bs-danger-bg-subtle: #2a0305;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: rgba(45, 45, 45, .97);--bs-secondary-border-subtle: #858585;--bs-success-border-subtle: #255005;--bs-info-border-subtle: #087990;--bs-warning-border-subtle: #99650c;--bs-danger-border-subtle: #7d0a0e;--bs-light-border-subtle: #495057;--bs-dark-border-subtle: #343a40;--bs-heading-color: inherit;--bs-link-color: rgba(153, 153, 153, .97);--bs-link-hover-color: rgba(174, 174, 174, .976);--bs-link-color-rgb: 153, 153, 153;--bs-link-hover-color-rgb: 174, 174, 174;--bs-code-color: #e685b5;--bs-highlight-color: #dee2e6;--bs-highlight-bg: #664308;--bs-border-color: #495057;--bs-border-color-translucent: rgba(255, 255, 255, .15);--bs-form-valid-color: #8bb66b;--bs-form-valid-border-color: #8bb66b;--bs-form-invalid-color: #e37074;--bs-form-invalid-border-color: #e37074}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:300;line-height:1.2;color:var(--bs-heading-color)}h1,.h1{font-size:calc(1.4625rem + 2.55vw)}@media (min-width: 1200px){h1,.h1{font-size:3.375rem}}h2,.h2{font-size:calc(1.3125rem + .75vw)}@media (min-width: 1200px){h2,.h2{font-size:1.875rem}}h3,.h3{font-size:calc(1.2875rem + .45vw)}@media (min-width: 1200px){h3,.h3{font-size:1.625rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:calc(1.25625rem + .075vw)}@media (min-width: 1200px){h5,.h5{font-size:1.3125rem}}h6,.h6{font-size:1.125rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\\2014\\a0"}.btn{--bs-btn-padding-x: 1.5rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.625;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: 2.5rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .25;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(65, 65, 65, .9575);--bs-btn-hover-border-color: rgba(61, 61, 61, .96);--bs-btn-focus-shadow-rgb: 107, 107, 107;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(61, 61, 61, .96);--bs-btn-active-border-color: rgba(57, 57, 57, .9625);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgba(78, 78, 78, .95);--bs-btn-disabled-border-color: rgba(78, 78, 78, .95)}.btn-secondary{--bs-btn-color: #000;--bs-btn-bg: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #e3e3e3;--bs-btn-hover-border-color: #e1e1e1;--bs-btn-focus-shadow-rgb: 189, 189, 189;--bs-btn-active-color: #000;--bs-btn-active-bg: #e5e5e5;--bs-btn-active-border-color: #e1e1e1;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(222, 222, 222);--bs-btn-disabled-border-color: rgb(222, 222, 222)}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #347207;--bs-btn-hover-border-color: #316b06;--bs-btn-focus-shadow-rgb: 90, 152, 45;--bs-btn-active-color: #fff;--bs-btn-active-bg: #316b06;--bs-btn-active-border-color: #2e6506;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(61, 134, 8);--bs-btn-disabled-border-color: rgb(61, 134, 8)}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffb537;--bs-btn-hover-border-color: #ffb12c;--bs-btn-focus-shadow-rgb: 217, 143, 17;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffb943;--bs-btn-active-border-color: #ffb12c;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(255, 168, 20);--bs-btn-disabled-border-color: rgb(255, 168, 20)}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #b10e14;--bs-btn-hover-border-color: #a60d13;--bs-btn-focus-shadow-rgb: 215, 52, 59;--bs-btn-active-color: #fff;--bs-btn-active-bg: #a60d13;--bs-btn-active-border-color: #9c0c12;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(208, 16, 24);--bs-btn-disabled-border-color: rgb(208, 16, 24)}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(78, 78, 78, .95);--bs-btn-hover-border-color: rgba(78, 78, 78, .95);--bs-btn-focus-shadow-rgb: 78, 78, 78;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(78, 78, 78, .95);--bs-btn-active-border-color: rgba(78, 78, 78, .95);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgba(78, 78, 78, .95);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgba(78, 78, 78, .95);--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(222, 222, 222);--bs-btn-hover-border-color: rgb(222, 222, 222);--bs-btn-focus-shadow-rgb: 222, 222, 222;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(222, 222, 222);--bs-btn-active-border-color: rgb(222, 222, 222);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(222, 222, 222);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(222, 222, 222);--bs-gradient: none}.btn-outline-success{--bs-btn-color: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(61, 134, 8);--bs-btn-hover-border-color: rgb(61, 134, 8);--bs-btn-focus-shadow-rgb: 61, 134, 8;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(61, 134, 8);--bs-btn-active-border-color: rgb(61, 134, 8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(61, 134, 8);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(61, 134, 8);--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 168, 20);--bs-btn-hover-border-color: rgb(255, 168, 20);--bs-btn-focus-shadow-rgb: 255, 168, 20;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 168, 20);--bs-btn-active-border-color: rgb(255, 168, 20);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(255, 168, 20);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(255, 168, 20);--bs-gradient: none}.btn-outline-danger{--bs-btn-color: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(208, 16, 24);--bs-btn-hover-border-color: rgb(208, 16, 24);--bs-btn-focus-shadow-rgb: 208, 16, 24;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(208, 16, 24);--bs-btn-active-border-color: rgb(208, 16, 24);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(208, 16, 24);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(208, 16, 24);--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 38, 38, 38;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg)}.btn-sm{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: var(--bs-border-radius-sm)}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color: rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color: rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color: rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color: rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color: rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color: rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color: rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity: 1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.4625rem + 2.55vw)!important}.fs-2{font-size:calc(1.3125rem + .75vw)!important}.fs-3{font-size:calc(1.2875rem + .45vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:calc(1.25625rem + .075vw)!important}.fs-6{font-size:1.125rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium,.fw-semibold{font-weight:500!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.625!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity: 1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity: 1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:3.375rem!important}.fs-2{font-size:1.875rem!important}.fs-3{font-size:1.625rem!important}.fs-4{font-size:1.5rem!important}.fs-5{font-size:1.3125rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}.notifications-popup{position:absolute;margin-top:10px;right:0;z-index:1000;display:none;min-width:33vw;background-color:#fff}@media (max-width: 800px){.notifications-popup{position:fixed;min-width:auto;width:100vw;right:0}}.notifications-popup-data{max-height:calc(100vh - 145px);overflow:auto}.notifications-bell{color:#000}.notifications-bell-hidden{color:#ccc}.notifications-bell-counter{margin-left:-10px;color:#fff;font-weight:700;text-align:center;line-height:1;padding:1.25px 6px;background-color:#ea161f;border-radius:50%;box-shadow:0 0 0 2px #fff}.notifications-bell-counter-hidden{display:none}.notifications-bell-counter-visible{display:inline}.notifications-delete-notification{color:#4e4e4ef2}hr{margin:0}\n'],encapsulation:3})}return W})();var ja=a(6486),mc=a(363),_c=a(6223);function _l(W,h){return new dr(W,`${h.scriptsAndAssetsPath}/assets/locales/`,".json")}(0,w.qS)(R),(0,w.qS)(B);let Nt=(()=>{class W{constructor(v){this.injector=v;const I=_t(ml,{injector:this.injector});customElements.define("erz-notifications",I);const te=_t(Yi,{injector:this.injector});customElements.define("erz-app",te)}ngDoBootstrap(v){}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.zs3))};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:[{provide:d.qLn,useClass:Vi},{provide:d.soG,useFactory:v=>v.detectLanguage(),deps:[er.D]}],imports:[t.b2,Ai,Jt.Bz,L.JF,ee,Bn.aw.forRoot({loader:{provide:Bn.Zw,useFactory:_l,deps:[L.eN,ti.L6]}}),ja.m,mc.A0,_c.u5]})}return W})();a.p=window.schulverwaltung.settings.scriptsAndAssetsPath+"/",(0,d.G48)(),t.q6().bootstrapModule(Nt).catch(W=>console.error(W))},7482:(Pe,V,a)=>{var t=a(9698),d=a(8955);function L(R){return null==R}function O(R){(R=function p(R){var F={};for(var P in R)F[P]=R[P];return F}(R||{})).whiteList=R.whiteList||t.whiteList,R.onAttr=R.onAttr||t.onAttr,R.onIgnoreAttr=R.onIgnoreAttr||t.onIgnoreAttr,R.safeAttrValue=R.safeAttrValue||t.safeAttrValue,this.options=R}a(3034),O.prototype.process=function(R){if(!(R=(R=R||"").toString()))return"";var P=this.options,B=P.whiteList,$=P.onAttr,f=P.onIgnoreAttr,j=P.safeAttrValue;return d(R,function(q,ie,k,Te,Se){var ye=B[k],ce=!1;if(!0===ye?ce=ye:"function"==typeof ye?ce=ye(Te):ye instanceof RegExp&&(ce=ye.test(Te)),!0!==ce&&(ce=!1),Te=j(k,Te)){var ve,_e={position:ie,sourcePosition:q,source:Se,isWhite:ce};if(ce)return L(ve=$(k,Te,_e))?k+":"+Te:ve;if(!L(ve=f(k,Te,_e)))return ve}})},Pe.exports=O},9698:(Pe,V)=>{function a(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var w=/javascript\s*\:/gim;V.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},V.getDefaultWhiteList=a,V.onAttr=function t(p,O,R){},V.onIgnoreAttr=function d(p,O,R){},V.safeAttrValue=function L(p,O){return w.test(O)?"":O}},1474:(Pe,V,a)=>{var t=a(9698),d=a(7482);for(var L in(V=Pe.exports=function w(p,O){return new d(O).process(p)}).FilterCSS=d,t)V[L]=t[L];typeof window<"u"&&(window.filterCSS=Pe.exports)},8955:(Pe,V,a)=>{var t=a(3034);Pe.exports=function d(w,L){";"!==(w=t.trimRight(w))[w.length-1]&&(w+=";");var p=w.length,O=!1,R=0,F=0,P="";function B(){if(!O){var j=t.trim(w.slice(R,F)),M=j.indexOf(":");if(-1!==M){var q=t.trim(j.slice(0,M)),ie=t.trim(j.slice(M+1));if(q){var k=L(R,P.length,q,ie,j);k&&(P+=k+"; ")}}}R=F+1}for(;F{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{"use strict";a.d(V,{Z:()=>Xe});var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function L(tt){return function(){var wt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},It=wt.width?String(wt.width):tt.defaultWidth;return tt.formats[It]||tt.formats[tt.defaultWidth]}}var F={date:L({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:L({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:L({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},B={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function j(tt){return function(wt,It){var Tt;if("formatting"===(null!=It&&It.context?String(It.context):"standalone")&&tt.formattingValues){var et=tt.defaultFormattingWidth||tt.defaultWidth,Pt=null!=It&&It.width?String(It.width):et;Tt=tt.formattingValues[Pt]||tt.formattingValues[et]}else{var zt=tt.defaultWidth,dn=null!=It&&It.width?String(It.width):tt.defaultWidth;Tt=tt.values[dn]||tt.values[zt]}return Tt[tt.argumentCallback?tt.argumentCallback(wt):wt]}}function ve(tt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=It.width,et=wt.match(Je&&tt.matchPatterns[Je]||tt.matchPatterns[tt.defaultMatchWidth]);if(!et)return null;var Rn,Pt=et[0],zt=Je&&tt.parsePatterns[Je]||tt.parsePatterns[tt.defaultParseWidth],dn=Array.isArray(zt)?function be(tt,wt){for(var It=0;It0?"in "+Tt:Tt+" ago":Tt},formatLong:F,formatRelative:function(wt,It,Je,Tt){return B[wt]},localize:{ordinalNumber:function(wt,It){var Je=Number(wt),Tt=Je%100;if(Tt>20||Tt<10)switch(Tt%10){case 1:return Je+"st";case 2:return Je+"nd";case 3:return Je+"rd"}return Je+"th"},era:j({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:j({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(wt){return wt-1}}),month:j({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:j({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:j({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function ke(tt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=wt.match(tt.matchPattern);if(!Je)return null;var Tt=Je[0],et=wt.match(tt.parsePattern);if(!et)return null;var Pt=tt.valueCallback?tt.valueCallback(et[0]):et[0];return{value:Pt=It.valueCallback?It.valueCallback(Pt):Pt,rest:wt.slice(Tt.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(wt){return parseInt(wt,10)}}),era:ve({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ve({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(wt){return wt+1}}),month:ve({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ve({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ve({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},5227:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>d});var t={};function d(){return t}},3001:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=function(R,F){switch(R){case"P":return F.date({width:"short"});case"PP":return F.date({width:"medium"});case"PPP":return F.date({width:"long"});default:return F.date({width:"full"})}},d=function(R,F){switch(R){case"p":return F.time({width:"short"});case"pp":return F.time({width:"medium"});case"ppp":return F.time({width:"long"});default:return F.time({width:"full"})}};const p={p:d,P:function(R,F){var f,P=R.match(/(P+)(p+)?/)||[],B=P[1],$=P[2];if(!$)return t(R,F);switch(B){case"P":f=F.dateTime({width:"short"});break;case"PP":f=F.dateTime({width:"medium"});break;case"PPP":f=F.dateTime({width:"long"});break;default:f=F.dateTime({width:"full"})}return f.replace("{{date}}",t(B,F)).replace("{{time}}",d($,F))}}},5351:(Pe,V,a)=>{"use strict";function t(d){var w=new Date(Date.UTC(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()));return w.setUTCFullYear(d.getFullYear()),d.getTime()-w.getTime()}a.d(V,{Z:()=>t})},3606:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(581),d=a(9307),w=a(2603),L=a(2816),O=6048e5;function R(F){(0,L.Z)(1,arguments);var P=(0,t.Z)(F),B=(0,d.Z)(P).getTime()-function p(F){(0,L.Z)(1,arguments);var P=(0,w.Z)(F),B=new Date(0);return B.setUTCFullYear(P,0,4),B.setUTCHours(0,0,0,0),(0,d.Z)(B)}(P).getTime();return Math.round(B/O)+1}},2603:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(581),d=a(2816),w=a(9307);function L(p){(0,d.Z)(1,arguments);var O=(0,t.Z)(p),R=O.getUTCFullYear(),F=new Date(0);F.setUTCFullYear(R+1,0,4),F.setUTCHours(0,0,0,0);var P=(0,w.Z)(F),B=new Date(0);B.setUTCFullYear(R,0,4),B.setUTCHours(0,0,0,0);var $=(0,w.Z)(B);return O.getTime()>=P.getTime()?R+1:O.getTime()>=$.getTime()?R:R-1}},7356:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>P});var t=a(581),d=a(5163),w=a(3281),L=a(2816),p=a(6156),O=a(5227),F=6048e5;function P(B,$){(0,L.Z)(1,arguments);var f=(0,t.Z)(B),j=(0,d.Z)(f,$).getTime()-function R(B,$){var f,j,M,q,ie,k,Te,Se;(0,L.Z)(1,arguments);var ye=(0,O.j)(),ce=(0,p.Z)(null!==(f=null!==(j=null!==(M=null!==(q=$?.firstWeekContainsDate)&&void 0!==q?q:null==$||null===(ie=$.locale)||void 0===ie||null===(k=ie.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==M?M:ye.firstWeekContainsDate)&&void 0!==j?j:null===(Te=ye.locale)||void 0===Te||null===(Se=Te.options)||void 0===Se?void 0:Se.firstWeekContainsDate)&&void 0!==f?f:1),_e=(0,w.Z)(B,$),ve=new Date(0);return ve.setUTCFullYear(_e,0,ce),ve.setUTCHours(0,0,0,0),(0,d.Z)(ve,$)}(f,$).getTime();return Math.round(j/F)+1}},3281:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>O});var t=a(581),d=a(2816),w=a(5163),L=a(6156),p=a(5227);function O(R,F){var P,B,$,f,j,M,q,ie;(0,d.Z)(1,arguments);var k=(0,t.Z)(R),Te=k.getUTCFullYear(),Se=(0,p.j)(),ye=(0,L.Z)(null!==(P=null!==(B=null!==($=null!==(f=F?.firstWeekContainsDate)&&void 0!==f?f:null==F||null===(j=F.locale)||void 0===j||null===(M=j.options)||void 0===M?void 0:M.firstWeekContainsDate)&&void 0!==$?$:Se.firstWeekContainsDate)&&void 0!==B?B:null===(q=Se.locale)||void 0===q||null===(ie=q.options)||void 0===ie?void 0:ie.firstWeekContainsDate)&&void 0!==P?P:1);if(!(ye>=1&&ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ce=new Date(0);ce.setUTCFullYear(Te+1,0,ye),ce.setUTCHours(0,0,0,0);var _e=(0,w.Z)(ce,F),ve=new Date(0);ve.setUTCFullYear(Te,0,ye),ve.setUTCHours(0,0,0,0);var xe=(0,w.Z)(ve,F);return k.getTime()>=_e.getTime()?Te+1:k.getTime()>=xe.getTime()?Te:Te-1}},2566:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>L,Iu:()=>w,qp:()=>p});var t=["D","DD"],d=["YY","YYYY"];function w(O){return-1!==t.indexOf(O)}function L(O){return-1!==d.indexOf(O)}function p(O,R,F){if("YYYY"===O)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===O)throw new RangeError("Use `yy` instead of `YY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===O)throw new RangeError("Use `d` instead of `D` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===O)throw new RangeError("Use `dd` instead of `DD` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},2816:(Pe,V,a)=>{"use strict";function t(d,w){if(w.length1?"s":"")+" required, but only "+w.length+" present")}a.d(V,{Z:()=>t})},9307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var O=(0,t.Z)(L),R=O.getUTCDay(),F=(R<1?7:0)+R-1;return O.setUTCDate(O.getUTCDate()-F),O.setUTCHours(0,0,0,0),O}},5163:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(581),d=a(2816),w=a(6156),L=a(5227);function p(O,R){var F,P,B,$,f,j,M,q;(0,d.Z)(1,arguments);var ie=(0,L.j)(),k=(0,w.Z)(null!==(F=null!==(P=null!==(B=null!==($=R?.weekStartsOn)&&void 0!==$?$:null==R||null===(f=R.locale)||void 0===f||null===(j=f.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==B?B:ie.weekStartsOn)&&void 0!==P?P:null===(M=ie.locale)||void 0===M||null===(q=M.options)||void 0===q?void 0:q.weekStartsOn)&&void 0!==F?F:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Te=(0,t.Z)(O),Se=Te.getUTCDay(),ye=(Se{"use strict";function t(d){if(null===d||!0===d||!1===d)return NaN;var w=Number(d);return isNaN(w)?w:w<0?Math.ceil(w):Math.floor(w)}a.d(V,{Z:()=>t})},8584:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(6156),d=a(581),w=a(2816);function L(p,O){(0,w.Z)(2,arguments);var R=(0,d.Z)(p),F=(0,t.Z)(O);return isNaN(F)?new Date(NaN):(F&&R.setDate(R.getDate()+F),R)}},5301:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Ee});var t=a(1002),d=a(2816),L=a(581);var O=a(591),P=a(3606),B=a(2603),$=a(7356),f=a(3281);function j(J,Q){for(var oe=J<0?"-":"",se=Math.abs(J).toString();se.length0?se:1-se;return j("yy"===oe?ae%100:ae,oe.length)},q_M=function(Q,oe){var se=Q.getUTCMonth();return"M"===oe?String(se+1):j(se+1,2)},q_d=function(Q,oe){return j(Q.getUTCDate(),oe.length)},q_h=function(Q,oe){return j(Q.getUTCHours()%12||12,oe.length)},q_H=function(Q,oe){return j(Q.getUTCHours(),oe.length)},q_m=function(Q,oe){return j(Q.getUTCMinutes(),oe.length)},q_s=function(Q,oe){return j(Q.getUTCSeconds(),oe.length)},q_S=function(Q,oe){var se=oe.length,ae=Q.getUTCMilliseconds();return j(Math.floor(ae*Math.pow(10,se-3)),oe.length)};function Te(J,Q){var oe=J>0?"-":"+",se=Math.abs(J),ae=Math.floor(se/60),fe=se%60;if(0===fe)return oe+String(ae);var De=Q||"";return oe+String(ae)+De+j(fe,2)}function Se(J,Q){return J%60==0?(J>0?"-":"+")+j(Math.abs(J)/60,2):ye(J,Q)}function ye(J,Q){var oe=Q||"",se=J>0?"-":"+",ae=Math.abs(J);return se+j(Math.floor(ae/60),2)+oe+j(ae%60,2)}const ce={G:function(Q,oe,se){var ae=Q.getUTCFullYear()>0?1:0;switch(oe){case"G":case"GG":case"GGG":return se.era(ae,{width:"abbreviated"});case"GGGGG":return se.era(ae,{width:"narrow"});default:return se.era(ae,{width:"wide"})}},y:function(Q,oe,se){if("yo"===oe){var ae=Q.getUTCFullYear();return se.ordinalNumber(ae>0?ae:1-ae,{unit:"year"})}return q_y(Q,oe)},Y:function(Q,oe,se,ae){var fe=(0,f.Z)(Q,ae),De=fe>0?fe:1-fe;return"YY"===oe?j(De%100,2):"Yo"===oe?se.ordinalNumber(De,{unit:"year"}):j(De,oe.length)},R:function(Q,oe){return j((0,B.Z)(Q),oe.length)},u:function(Q,oe){return j(Q.getUTCFullYear(),oe.length)},Q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"Q":return String(ae);case"QQ":return j(ae,2);case"Qo":return se.ordinalNumber(ae,{unit:"quarter"});case"QQQ":return se.quarter(ae,{width:"abbreviated",context:"formatting"});case"QQQQQ":return se.quarter(ae,{width:"narrow",context:"formatting"});default:return se.quarter(ae,{width:"wide",context:"formatting"})}},q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"q":return String(ae);case"qq":return j(ae,2);case"qo":return se.ordinalNumber(ae,{unit:"quarter"});case"qqq":return se.quarter(ae,{width:"abbreviated",context:"standalone"});case"qqqqq":return se.quarter(ae,{width:"narrow",context:"standalone"});default:return se.quarter(ae,{width:"wide",context:"standalone"})}},M:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"M":case"MM":return q_M(Q,oe);case"Mo":return se.ordinalNumber(ae+1,{unit:"month"});case"MMM":return se.month(ae,{width:"abbreviated",context:"formatting"});case"MMMMM":return se.month(ae,{width:"narrow",context:"formatting"});default:return se.month(ae,{width:"wide",context:"formatting"})}},L:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"L":return String(ae+1);case"LL":return j(ae+1,2);case"Lo":return se.ordinalNumber(ae+1,{unit:"month"});case"LLL":return se.month(ae,{width:"abbreviated",context:"standalone"});case"LLLLL":return se.month(ae,{width:"narrow",context:"standalone"});default:return se.month(ae,{width:"wide",context:"standalone"})}},w:function(Q,oe,se,ae){var fe=(0,$.Z)(Q,ae);return"wo"===oe?se.ordinalNumber(fe,{unit:"week"}):j(fe,oe.length)},I:function(Q,oe,se){var ae=(0,P.Z)(Q);return"Io"===oe?se.ordinalNumber(ae,{unit:"week"}):j(ae,oe.length)},d:function(Q,oe,se){return"do"===oe?se.ordinalNumber(Q.getUTCDate(),{unit:"date"}):q_d(Q,oe)},D:function(Q,oe,se){var ae=function F(J){(0,d.Z)(1,arguments);var Q=(0,L.Z)(J),oe=Q.getTime();Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0);var se=Q.getTime();return Math.floor((oe-se)/864e5)+1}(Q);return"Do"===oe?se.ordinalNumber(ae,{unit:"dayOfYear"}):j(ae,oe.length)},E:function(Q,oe,se){var ae=Q.getUTCDay();switch(oe){case"E":case"EE":case"EEE":return se.day(ae,{width:"abbreviated",context:"formatting"});case"EEEEE":return se.day(ae,{width:"narrow",context:"formatting"});case"EEEEEE":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},e:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"e":return String(De);case"ee":return j(De,2);case"eo":return se.ordinalNumber(De,{unit:"day"});case"eee":return se.day(fe,{width:"abbreviated",context:"formatting"});case"eeeee":return se.day(fe,{width:"narrow",context:"formatting"});case"eeeeee":return se.day(fe,{width:"short",context:"formatting"});default:return se.day(fe,{width:"wide",context:"formatting"})}},c:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"c":return String(De);case"cc":return j(De,oe.length);case"co":return se.ordinalNumber(De,{unit:"day"});case"ccc":return se.day(fe,{width:"abbreviated",context:"standalone"});case"ccccc":return se.day(fe,{width:"narrow",context:"standalone"});case"cccccc":return se.day(fe,{width:"short",context:"standalone"});default:return se.day(fe,{width:"wide",context:"standalone"})}},i:function(Q,oe,se){var ae=Q.getUTCDay(),fe=0===ae?7:ae;switch(oe){case"i":return String(fe);case"ii":return j(fe,oe.length);case"io":return se.ordinalNumber(fe,{unit:"day"});case"iii":return se.day(ae,{width:"abbreviated",context:"formatting"});case"iiiii":return se.day(ae,{width:"narrow",context:"formatting"});case"iiiiii":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},a:function(Q,oe,se){var fe=Q.getUTCHours()/12>=1?"pm":"am";switch(oe){case"a":case"aa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"aaa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},b:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=12===ae?"noon":0===ae?"midnight":ae/12>=1?"pm":"am",oe){case"b":case"bb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"bbb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},B:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=ae>=17?"evening":ae>=12?"afternoon":ae>=4?"morning":"night",oe){case"B":case"BB":case"BBB":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"BBBBB":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},h:function(Q,oe,se){if("ho"===oe){var ae=Q.getUTCHours()%12;return 0===ae&&(ae=12),se.ordinalNumber(ae,{unit:"hour"})}return q_h(Q,oe)},H:function(Q,oe,se){return"Ho"===oe?se.ordinalNumber(Q.getUTCHours(),{unit:"hour"}):q_H(Q,oe)},K:function(Q,oe,se){var ae=Q.getUTCHours()%12;return"Ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},k:function(Q,oe,se){var ae=Q.getUTCHours();return 0===ae&&(ae=24),"ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},m:function(Q,oe,se){return"mo"===oe?se.ordinalNumber(Q.getUTCMinutes(),{unit:"minute"}):q_m(Q,oe)},s:function(Q,oe,se){return"so"===oe?se.ordinalNumber(Q.getUTCSeconds(),{unit:"second"}):q_s(Q,oe)},S:function(Q,oe){return q_S(Q,oe)},X:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();if(0===De)return"Z";switch(oe){case"X":return Se(De);case"XXXX":case"XX":return ye(De);default:return ye(De,":")}},x:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"x":return Se(De);case"xxxx":case"xx":return ye(De);default:return ye(De,":")}},O:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"O":case"OO":case"OOO":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},z:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"z":case"zz":case"zzz":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},t:function(Q,oe,se,ae){return j(Math.floor((ae._originalDate||Q).getTime()/1e3),oe.length)},T:function(Q,oe,se,ae){return j((ae._originalDate||Q).getTime(),oe.length)}};var _e=a(3001),ve=a(5351),xe=a(2566),be=a(6156),ke=a(5227),vt=a(6719),rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qe=/^'([^]*?)'?$/,_t=/''/g,$e=/[a-zA-Z]/;function Ee(J,Q,oe){var se,ae,fe,De,je,Xe,tt,wt,It,Je,Tt,et,Pt,zt,dn,Rn,We,Ye;(0,d.Z)(2,arguments);var At=String(Q),xt=(0,ke.j)(),nn=null!==(se=null!==(ae=oe?.locale)&&void 0!==ae?ae:xt.locale)&&void 0!==se?se:vt.Z,Et=(0,be.Z)(null!==(fe=null!==(De=null!==(je=null!==(Xe=oe?.firstWeekContainsDate)&&void 0!==Xe?Xe:null==oe||null===(tt=oe.locale)||void 0===tt||null===(wt=tt.options)||void 0===wt?void 0:wt.firstWeekContainsDate)&&void 0!==je?je:xt.firstWeekContainsDate)&&void 0!==De?De:null===(It=xt.locale)||void 0===It||null===(Je=It.options)||void 0===Je?void 0:Je.firstWeekContainsDate)&&void 0!==fe?fe:1);if(!(Et>=1&&Et<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ht=(0,be.Z)(null!==(Tt=null!==(et=null!==(Pt=null!==(zt=oe?.weekStartsOn)&&void 0!==zt?zt:null==oe||null===(dn=oe.locale)||void 0===dn||null===(Rn=dn.options)||void 0===Rn?void 0:Rn.weekStartsOn)&&void 0!==Pt?Pt:xt.weekStartsOn)&&void 0!==et?et:null===(We=xt.locale)||void 0===We||null===(Ye=We.options)||void 0===Ye?void 0:Ye.weekStartsOn)&&void 0!==Tt?Tt:0);if(!(Ht>=0&&Ht<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!nn.localize)throw new RangeError("locale must contain localize property");if(!nn.formatLong)throw new RangeError("locale must contain formatLong property");var Zt=(0,L.Z)(J);if(!function p(J){if((0,d.Z)(1,arguments),!function w(J){return(0,d.Z)(1,arguments),J instanceof Date||"object"===(0,t.Z)(J)&&"[object Date]"===Object.prototype.toString.call(J)}(J)&&"number"!=typeof J)return!1;var Q=(0,L.Z)(J);return!isNaN(Number(Q))}(Zt))throw new RangeError("Invalid time value");var fn=(0,ve.Z)(Zt),Sn=(0,O.Z)(Zt,fn),hn={firstWeekContainsDate:Et,weekStartsOn:Ht,locale:nn,_originalDate:Zt},en=At.match(Mt).map(function(Dn){var Wn=Dn[0];return"p"===Wn||"P"===Wn?(0,_e.Z[Wn])(Dn,nn.formatLong):Dn}).join("").match(rt).map(function(Dn){if("''"===Dn)return"'";var Wn=Dn[0];if("'"===Wn)return function ze(J){var Q=J.match(qe);return Q?Q[1].replace(_t,"'"):J}(Dn);var _n=ce[Wn];if(_n)return!(null!=oe&&oe.useAdditionalWeekYearTokens)&&(0,xe.Do)(Dn)&&(0,xe.qp)(Dn,Q,String(J)),!(null!=oe&&oe.useAdditionalDayOfYearTokens)&&(0,xe.Iu)(Dn)&&(0,xe.qp)(Dn,Q,String(J)),_n(Sn,Dn,nn.localize,hn);if(Wn.match($e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Wn+"`");return Dn}).join("");return en}},3166:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(9189),d=a(2816);function w(L,p){(0,d.Z)(2,arguments);var O=(0,t.Z)(L),R=(0,t.Z)(p);return O.getTime()===R.getTime()}},9189:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var p=(0,t.Z)(L);return p.setHours(0,0,0,0),p}},4307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(8584),d=a(2816),w=a(6156);function L(p,O){(0,d.Z)(2,arguments);var R=(0,w.Z)(O);return(0,t.Z)(p,-R)}},591:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(6156),d=a(581),w=a(2816);function p(O,R){return(0,w.Z)(2,arguments),function L(O,R){(0,w.Z)(2,arguments);var F=(0,d.Z)(O).getTime(),P=(0,t.Z)(R);return new Date(F+P)}(O,-(0,t.Z)(R))}},581:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(1002),d=a(2816);function w(L){(0,d.Z)(1,arguments);var p=Object.prototype.toString.call(L);return L instanceof Date||"object"===(0,t.Z)(L)&&"[object Date]"===p?new Date(L.getTime()):"number"==typeof L||"[object Number]"===p?new Date(L):(("string"==typeof L||"[object String]"===p)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},5803:(Pe,V,a)=>{"use strict";a.d(V,{tS:()=>wi,g_:()=>bt,nM:()=>ln,t$:()=>se,vx:()=>$t,F2:()=>ae});var p=a(5040);function $(Ze){return function(Ve,ct){return Ze.map(Ve,function(){return ct})}}var se=function(Ze){return{_tag:"Left",left:Ze}},ae=function(Ze){return{_tag:"Right",right:Ze}},fe=(0,p.OB)(2,function(Ze,Ve){return ln(Ze)?Ze:Ve(Ze.right)}),De=function(Ze,Ve){return(0,p.zG)(Ze,Zt(Ve))},Zt=function(Ze){return function(Ve){return ln(Ve)?Ve:ae(Ze(Ve.right))}},fn={URI:"Either",map:De},_n=((0,p.OB)(2,$(fn)),function f(Ze){var Ve=$(Ze)}(fn),function(Ze){return function(Ve){return ln(Ve)?Ve:ln(Ze)?Ze:ae(Ve.right(Ze.right))}}),ln=function(Ze){return"Left"===Ze._tag},bt=function(Ze,Ve){return function(ct){return ln(ct)?Ze(ct.left):Ve(ct.right)}},$t=(function d(Ze){return function(Ve,ct){return Ze.chain(Ve,function(Yt){return Ze.map(ct(Yt),function(){return Yt})})}}({URI:"Either",map:De,ap:function(Ze,Ve){return(0,p.zG)(Ze,_n(Ve))},chain:fe}),function(Ze){return function(Ve){return ln(Ve)?Ze(Ve.left):Ve}}),wi=fe},8706:(Pe,V,a)=>{"use strict";a.d(V,{ff:()=>B}),a(5040);var B=function(j){return function(M){return!j(M)}}},5040:(Pe,V,a)=>{"use strict";function F(qe){return qe}function k(qe,_t,$e,Ee,ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return function(){return _t(qe.apply(this,arguments))};case 3:return function(){return $e(_t(qe.apply(this,arguments)))};case 4:return function(){return Ee($e(_t(qe.apply(this,arguments))))};case 5:return function(){return ze(Ee($e(_t(qe.apply(this,arguments)))))};case 6:return function(){return J(ze(Ee($e(_t(qe.apply(this,arguments))))))};case 7:return function(){return Q(J(ze(Ee($e(_t(qe.apply(this,arguments)))))))};case 8:return function(){return oe(Q(J(ze(Ee($e(_t(qe.apply(this,arguments))))))))};case 9:return function(){return se(oe(Q(J(ze(Ee($e(_t(qe.apply(this,arguments)))))))))}}}function xe(qe,_t,$e,Ee,ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return _t(qe);case 3:return $e(_t(qe));case 4:return Ee($e(_t(qe)));case 5:return ze(Ee($e(_t(qe))));case 6:return J(ze(Ee($e(_t(qe)))));case 7:return Q(J(ze(Ee($e(_t(qe))))));case 8:return oe(Q(J(ze(Ee($e(_t(qe)))))));case 9:return se(oe(Q(J(ze(Ee($e(_t(qe))))))));default:for(var ae=arguments[0],fe=1;feMt,ls:()=>k,yR:()=>F,zG:()=>xe});var Mt=function(qe,_t){var $e="number"==typeof qe?function(Ee){return Ee.length>=qe}:qe;return function(){var Ee=Array.from(arguments);return $e(arguments)?_t.apply(this,Ee):function(ze){return _t.apply(void 0,function(qe,_t,$e){if($e||2===arguments.length)for(var J,Ee=0,ze=_t.length;Ee{"use strict";a.d(V,{$P:()=>B,Bk:()=>on,Dy:()=>F,G0:()=>dt,IM:()=>oi,IX:()=>nr,Ju:()=>Fr,O7:()=>Zt,OT:()=>Vt,Rn:()=>O,S1:()=>et,Vp:()=>R,Z_:()=>Ye,dt:()=>wr,i0:()=>Wn,jV:()=>we,lB:()=>Je,mM:()=>Er,pk:()=>xt,r$:()=>Ir,sH:()=>An});var pe,t=a(5803),d=(pe=function(z,K){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,X){D.__proto__=X}||function(D,X){for(var de in X)Object.prototype.hasOwnProperty.call(X,de)&&(D[de]=X[de])})(z,K)},function(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function D(){this.constructor=z}pe(z,K),z.prototype=null===K?Object.create(K):(D.prototype=K.prototype,new D)}),w=function(){return w=Object.assign||function(pe){for(var z,K=1,D=arguments.length;K")}function f(pe,z,K,D){for(var X=pe.length,de=Array(X+1),Oe=0;Oe0}var rt={};function Mt(pe,z){for(var K=[],D=0,X=pe;D")),new In(z,function(K){return Sn.is(K)&&K.every(pe.is)},function(K,D){var X=Sn.validate(K,D);if((0,t.nM)(X))return X;for(var de=X.right,Oe=de.length,Ae=de,mt=[],$t=0;$t0?p(mt):R(Ae)},pe.encode===P?P:function(K){return K.map(pe.encode)},pe)}var Dr=function(pe){function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="InterfaceType",Ae}return d(z,pe),z}(F);function wr(pe,z){void 0===z&&(z=k(pe));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Dr(z,function(de){if(en.is(de)){for(var Oe=0;Oe0?p(cn):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae")}(k(pe)));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Or(z,function(de){if(en.is(de)){for(var Oe=0;Oe0?p(cn):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae0?p(cn):R(vn||Object.keys(mt).length!==X?$t:mt)},K.encode===P?P:function(de){for(var Oe={},Ae=0;Ae0?p(Oe):R($t?de:D)}return $e(z)&&Array.isArray(D)?R(D):O(D,X)},pe.encode===P&&z.encode===P?P:function(D){for(var X={},de=Object.keys(D),Oe=de.length,Ae=0;Ae0){var D=K[0],X=K[1],de=X.length,Oe=function(Ae){for(var mt=0;mt0?p(Oe):R(ve(D,de))},0===pe.length?P:function(D){return ve(D,pe.map(function(X){return X.encode(D)}))},pe)}!function(pe){d(function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.types=Oe,Ae._tag="TupleType",Ae},pe)}(F);var Wt=function(pe){function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyType",Ae}return d(z,pe),z}(F);function Vt(pe,z){return void 0===z&&(z="Readonly<".concat(pe.name,">")),new Wt(z,pe.is,pe.validate,pe.encode,pe)}var Un=function(pe){function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyArrayType",Ae}return d(z,pe),z}(F);function on(pe,z){void 0===z&&(z="ReadonlyArray<".concat(pe.name,">"));var K=nr(pe);return new Un(z,K.is,K.validate,K.encode,pe)}!function(pe){d(function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ExactType",Ae},pe)}(F);var Qe=function(pe){function z(){var K=pe.call(this,"Function",function(D){return"function"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="FunctionType",K}return d(z,pe),z}(F),Ue=(new Qe,function(pe){function z(){var K=pe.call(this,"never",function(D){return!1},function(D,X){return O(D,X)},function(){throw new Error("cannot encode never")})||this;return K._tag="NeverType",K}return d(z,pe),z}(F)),Rt=(new Ue,function(pe){function z(){var K=pe.call(this,"any",function(D){return!0},R,P)||this;return K._tag="AnyType",K}return d(z,pe),z}(F));function Ft(pe,z,K){return void 0===K&&(K="(".concat(pe.name," | ").concat(B(z),")")),new it(K,function(D){return pe.is(D)&&z(D)},function(D,X){var de=pe.validate(D,X);if((0,t.nM)(de))return de;var Oe=de.right;return z(Oe)?R(Oe):O(Oe,X)},pe.encode,pe,z)}new Rt,Ft(xt,Number.isInteger,"Integer");var wn=function(pe){function z(K,D,X,de,Oe,Ae){var mt=pe.call(this,K,D,X,de,Oe)||this;return mt.tag=Ae,mt}return d(z,pe),z}(zn),Fr=function(pe){return[{key:"",type:pe}]},Hr=function(pe){function z(){var K=pe.call(this,"object",function(D){return null!==D&&"object"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="ObjectType",K}return d(z,pe),z}(F);new Hr,function(pe){d(function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="StrictType",Ae},pe)}(F)},5619:(Pe,V,a)=>{"use strict";a.d(V,{X:()=>d});var t=a(8645);class d extends t.x{constructor(L){super(),this._value=L}get value(){return this.getValue()}_subscribe(L){const p=super._subscribe(L);return!p.closed&&L.next(this._value),p}getValue(){const{hasError:L,thrownError:p,_value:O}=this;if(L)throw p;return this._throwIfClosed(),O}next(L){super.next(this._value=L)}}},5592:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>F});var t=a(305),d=a(7394),w=a(4850),L=a(8407),p=a(2653),O=a(4674),R=a(1441);let F=(()=>{class f{constructor(M){M&&(this._subscribe=M)}lift(M){const q=new f;return q.source=this,q.operator=M,q}subscribe(M,q,ie){const k=function $(f){return f&&f instanceof t.Lv||function B(f){return f&&(0,O.m)(f.next)&&(0,O.m)(f.error)&&(0,O.m)(f.complete)}(f)&&(0,d.Nn)(f)}(M)?M:new t.Hp(M,q,ie);return(0,R.x)(()=>{const{operator:Te,source:Se}=this;k.add(Te?Te.call(k,Se):Se?this._subscribe(k):this._trySubscribe(k))}),k}_trySubscribe(M){try{return this._subscribe(M)}catch(q){M.error(q)}}forEach(M,q){return new(q=P(q))((ie,k)=>{const Te=new t.Hp({next:Se=>{try{M(Se)}catch(ye){k(ye),Te.unsubscribe()}},error:k,complete:ie});this.subscribe(Te)})}_subscribe(M){var q;return null===(q=this.source)||void 0===q?void 0:q.subscribe(M)}[w.L](){return this}pipe(...M){return(0,L.U)(M)(this)}toPromise(M){return new(M=P(M))((q,ie)=>{let k;this.subscribe(Te=>k=Te,Te=>ie(Te),()=>q(k))})}}return f.create=j=>new f(j),f})();function P(f){var j;return null!==(j=f??p.config.Promise)&&void 0!==j?j:Promise}},7328:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>w});var t=a(8645),d=a(4552);class w extends t.x{constructor(p=1/0,O=1/0,R=d.l){super(),this._bufferSize=p,this._windowTime=O,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=O===1/0,this._bufferSize=Math.max(1,p),this._windowTime=Math.max(1,O)}next(p){const{isStopped:O,_buffer:R,_infiniteTimeWindow:F,_timestampProvider:P,_windowTime:B}=this;O||(R.push(p),!F&&R.push(P.now()+B)),this._trimBuffer(),super.next(p)}_subscribe(p){this._throwIfClosed(),this._trimBuffer();const O=this._innerSubscribe(p),{_infiniteTimeWindow:R,_buffer:F}=this,P=F.slice();for(let B=0;B{"use strict";a.d(V,{x:()=>R});var t=a(5592),d=a(7394);const L=(0,a(2306).d)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var p=a(9039),O=a(1441);let R=(()=>{class P extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift($){const f=new F(this,this);return f.operator=$,f}_throwIfClosed(){if(this.closed)throw new L}next($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const f of this.currentObservers)f.next($)}})}error($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=$;const{observers:f}=this;for(;f.length;)f.shift().error($)}})}complete(){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:$}=this;for(;$.length;)$.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var $;return(null===($=this.observers)||void 0===$?void 0:$.length)>0}_trySubscribe($){return this._throwIfClosed(),super._trySubscribe($)}_subscribe($){return this._throwIfClosed(),this._checkFinalizedStatuses($),this._innerSubscribe($)}_innerSubscribe($){const{hasError:f,isStopped:j,observers:M}=this;return f||j?d.Lc:(this.currentObservers=null,M.push($),new d.w0(()=>{this.currentObservers=null,(0,p.P)(M,$)}))}_checkFinalizedStatuses($){const{hasError:f,thrownError:j,isStopped:M}=this;f?$.error(j):M&&$.complete()}asObservable(){const $=new t.y;return $.source=this,$}}return P.create=(B,$)=>new F(B,$),P})();class F extends R{constructor(B,$){super(),this.destination=B,this.source=$}next(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.next)||void 0===f||f.call($,B)}error(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.error)||void 0===f||f.call($,B)}complete(){var B,$;null===($=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===$||$.call(B)}_subscribe(B){var $,f;return null!==(f=null===($=this.source)||void 0===$?void 0:$.subscribe(B))&&void 0!==f?f:d.Lc}}},305:(Pe,V,a)=>{"use strict";a.d(V,{Hp:()=>ie,Lv:()=>f});var t=a(4674),d=a(7394),w=a(2653),L=a(3894),p=a(2420);const O=P("C",void 0,void 0);function P(ce,_e,ve){return{kind:ce,value:_e,error:ve}}var B=a(7599),$=a(1441);class f extends d.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,d.Nn)(_e)&&_e.add(this)):this.destination=ye}static create(_e,ve,xe){return new ie(_e,ve,xe)}next(_e){this.isStopped?Se(function F(ce){return P("N",ce,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Se(function R(ce){return P("E",void 0,ce)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Se(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const j=Function.prototype.bind;function M(ce,_e){return j.call(ce,_e)}class q{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(xe){k(xe)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(xe){k(xe)}else k(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){k(ve)}}}class ie extends f{constructor(_e,ve,xe){let be;if(super(),(0,t.m)(_e)||!_e)be={next:_e??void 0,error:ve??void 0,complete:xe??void 0};else{let ke;this&&w.config.useDeprecatedNextContext?(ke=Object.create(_e),ke.unsubscribe=()=>this.unsubscribe(),be={next:_e.next&&M(_e.next,ke),error:_e.error&&M(_e.error,ke),complete:_e.complete&&M(_e.complete,ke)}):be=_e}this.destination=new q(be)}}function k(ce){w.config.useDeprecatedSynchronousErrorHandling?(0,$.O)(ce):(0,L.h)(ce)}function Se(ce,_e){const{onStoppedNotification:ve}=w.config;ve&&B.z.setTimeout(()=>ve(ce,_e))}const ye={closed:!0,next:p.Z,error:function Te(ce){throw ce},complete:p.Z}},7394:(Pe,V,a)=>{"use strict";a.d(V,{Lc:()=>O,w0:()=>p,Nn:()=>R});var t=a(4674);const w=(0,a(2306).d)(P=>function($){P(this),this.message=$?`${$.length} errors occurred during unsubscription:\n${$.map((f,j)=>`${j+1}) ${f.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=$});var L=a(9039);class p{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:$}=this;if($)if(this._parentage=null,Array.isArray($))for(const M of $)M.remove(this);else $.remove(this);const{initialTeardown:f}=this;if((0,t.m)(f))try{f()}catch(M){B=M instanceof w?M.errors:[M]}const{_finalizers:j}=this;if(j){this._finalizers=null;for(const M of j)try{F(M)}catch(q){B=B??[],q instanceof w?B=[...B,...q.errors]:B.push(q)}}if(B)throw new w(B)}}add(B){var $;if(B&&B!==this)if(this.closed)F(B);else{if(B instanceof p){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==($=this._finalizers)&&void 0!==$?$:[]).push(B)}}_hasParent(B){const{_parentage:$}=this;return $===B||Array.isArray($)&&$.includes(B)}_addParent(B){const{_parentage:$}=this;this._parentage=Array.isArray($)?($.push(B),$):$?[$,B]:B}_removeParent(B){const{_parentage:$}=this;$===B?this._parentage=null:Array.isArray($)&&(0,L.P)($,B)}remove(B){const{_finalizers:$}=this;$&&(0,L.P)($,B),B instanceof p&&B._removeParent(this)}}p.EMPTY=(()=>{const P=new p;return P.closed=!0,P})();const O=p.EMPTY;function R(P){return P instanceof p||P&&"closed"in P&&(0,t.m)(P.remove)&&(0,t.m)(P.add)&&(0,t.m)(P.unsubscribe)}function F(P){(0,t.m)(P)?P():P.unsubscribe()}},2653:(Pe,V,a)=>{"use strict";a.d(V,{config:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(Pe,V,a)=>{"use strict";a.d(V,{a:()=>B});var t=a(5592),d=a(7453),w=a(7715),L=a(2737),p=a(7400),O=a(9940),R=a(2714),F=a(8251),P=a(7103);function B(...j){const M=(0,O.yG)(j),q=(0,O.jO)(j),{args:ie,keys:k}=(0,d.D)(j);if(0===ie.length)return(0,w.D)([],M);const Te=new t.y(function $(j,M,q=L.y){return ie=>{f(M,()=>{const{length:k}=j,Te=new Array(k);let Se=k,ye=k;for(let ce=0;ce{const _e=(0,w.D)(j[ce],M);let ve=!1;_e.subscribe((0,F.x)(ie,xe=>{Te[ce]=xe,ve||(ve=!0,ye--),ye||ie.next(q(Te.slice()))},()=>{--Se||ie.complete()}))},ie)},ie)}}(ie,M,k?Se=>(0,R.n)(k,Se):L.y));return q?Te.pipe((0,p.Z)(q)):Te}function f(j,M,q){j?(0,P.f)(q,j,M):M()}},5211:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>p});var t=a(7537),w=a(9940),L=a(7715);function p(...O){return function d(){return(0,t.J)(1)}()((0,L.D)(O,(0,w.yG)(O)))}},7:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>p});var t=a(8645),d=a(5592),w=a(4911);const L={connector:()=>new t.x,resetOnDisconnect:!0};function p(O,R=L){let F=null;const{connector:P,resetOnDisconnect:B=!0}=R;let $=P();const f=new d.y(j=>$.subscribe(j));return f.connect=()=>((!F||F.closed)&&(F=(0,w.P)(()=>O).subscribe($),B&&F.add(()=>$=P())),F),f}},4911:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>w});var t=a(5592),d=a(4829);function w(L){return new t.y(p=>{(0,d.Xf)(L()).subscribe(p)})}},6232:(Pe,V,a)=>{"use strict";a.d(V,{E:()=>d});const d=new(a(5592).y)(p=>p.complete())},9315:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>F});var t=a(5592),d=a(7453),w=a(4829),L=a(9940),p=a(8251),O=a(7400),R=a(2714);function F(...P){const B=(0,L.jO)(P),{args:$,keys:f}=(0,d.D)(P),j=new t.y(M=>{const{length:q}=$;if(!q)return void M.complete();const ie=new Array(q);let k=q,Te=q;for(let Se=0;Se{ye||(ye=!0,Te--),ie[Se]=ce},()=>k--,void 0,()=>{(!k||!ye)&&(Te||M.next(f?(0,R.n)(f,ie):ie),M.complete())}))}});return B?j.pipe((0,O.Z)(B)):j}},7715:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>xe});var t=a(4829),d=a(7103),w=a(9360),L=a(8251);function p(be,ke=0){return(0,w.e)((vt,rt)=>{vt.subscribe((0,L.x)(rt,Mt=>(0,d.f)(rt,be,()=>rt.next(Mt),ke),()=>(0,d.f)(rt,be,()=>rt.complete(),ke),Mt=>(0,d.f)(rt,be,()=>rt.error(Mt),ke)))})}function O(be,ke=0){return(0,w.e)((vt,rt)=>{rt.add(be.schedule(()=>vt.subscribe(rt),ke))})}var P=a(5592),$=a(4971),f=a(4674);function M(be,ke){if(!be)throw new Error("Iterable cannot be null");return new P.y(vt=>{(0,d.f)(vt,ke,()=>{const rt=be[Symbol.asyncIterator]();(0,d.f)(vt,ke,()=>{rt.next().then(Mt=>{Mt.done?vt.complete():vt.next(Mt.value)})},0,!0)})})}var q=a(8382),ie=a(4026),k=a(4266),Te=a(3664),Se=a(5726),ye=a(9853),ce=a(541);function xe(be,ke){return ke?function ve(be,ke){if(null!=be){if((0,q.c)(be))return function R(be,ke){return(0,t.Xf)(be).pipe(O(ke),p(ke))}(be,ke);if((0,k.z)(be))return function B(be,ke){return new P.y(vt=>{let rt=0;return ke.schedule(function(){rt===be.length?vt.complete():(vt.next(be[rt++]),vt.closed||this.schedule())})})}(be,ke);if((0,ie.t)(be))return function F(be,ke){return(0,t.Xf)(be).pipe(O(ke),p(ke))}(be,ke);if((0,Se.D)(be))return M(be,ke);if((0,Te.T)(be))return function j(be,ke){return new P.y(vt=>{let rt;return(0,d.f)(vt,ke,()=>{rt=be[$.h](),(0,d.f)(vt,ke,()=>{let Mt,qe;try{({value:Mt,done:qe}=rt.next())}catch(_t){return void vt.error(_t)}qe?vt.complete():vt.next(Mt)},0,!0)}),()=>(0,f.m)(rt?.return)&&rt.return()})}(be,ke);if((0,ce.L)(be))return function _e(be,ke){return M((0,ce.Q)(be),ke)}(be,ke)}throw(0,ye.z)(be)}(be,ke):(0,t.Xf)(be)}},2438:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>B});var t=a(4829),d=a(5592),w=a(1631),L=a(4266),p=a(4674),O=a(7400);const R=["addListener","removeListener"],F=["addEventListener","removeEventListener"],P=["on","off"];function B(q,ie,k,Te){if((0,p.m)(k)&&(Te=k,k=void 0),Te)return B(q,ie,k).pipe((0,O.Z)(Te));const[Se,ye]=function M(q){return(0,p.m)(q.addEventListener)&&(0,p.m)(q.removeEventListener)}(q)?F.map(ce=>_e=>q[ce](ie,_e,k)):function f(q){return(0,p.m)(q.addListener)&&(0,p.m)(q.removeListener)}(q)?R.map($(q,ie)):function j(q){return(0,p.m)(q.on)&&(0,p.m)(q.off)}(q)?P.map($(q,ie)):[];if(!Se&&(0,L.z)(q))return(0,w.z)(ce=>B(ce,ie,k))((0,t.Xf)(q));if(!Se)throw new TypeError("Invalid event target");return new d.y(ce=>{const _e=(...ve)=>ce.next(1ye(_e)})}function $(q,ie){return k=>Te=>q[k](ie,Te)}},4829:(Pe,V,a)=>{"use strict";a.d(V,{Xf:()=>j});var t=a(7582),d=a(4266),w=a(4026),L=a(5592),p=a(8382),O=a(5726),R=a(9853),F=a(3664),P=a(541),B=a(4674),$=a(3894),f=a(4850);function j(ce){if(ce instanceof L.y)return ce;if(null!=ce){if((0,p.c)(ce))return function M(ce){return new L.y(_e=>{const ve=ce[f.L]();if((0,B.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ce);if((0,d.z)(ce))return function q(ce){return new L.y(_e=>{for(let ve=0;ve{ce.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,$.h)})}(ce);if((0,O.D)(ce))return Te(ce);if((0,F.T)(ce))return function k(ce){return new L.y(_e=>{for(const ve of ce)if(_e.next(ve),_e.closed)return;_e.complete()})}(ce);if((0,P.L)(ce))return function Se(ce){return Te((0,P.Q)(ce))}(ce)}throw(0,R.z)(ce)}function Te(ce){return new L.y(_e=>{(function ye(ce,_e){var ve,xe,be,ke;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ve=(0,t.KL)(ce);!(xe=yield ve.next()).done;)if(_e.next(xe.value),_e.closed)return}catch(vt){be={error:vt}}finally{try{xe&&!xe.done&&(ke=ve.return)&&(yield ke.call(ve))}finally{if(be)throw be.error}}_e.complete()})})(ce,_e).catch(ve=>_e.error(ve))})}},1687:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>w});var t=a(6321),d=a(4825);function w(L=0,p=t.z){return L<0&&(L=0),(0,d.H)(L,L,p)}},3019:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(7537),d=a(4829),w=a(6232),L=a(9940),p=a(7715);function O(...R){const F=(0,L.yG)(R),P=(0,L._6)(R,1/0),B=R;return B.length?1===B.length?(0,d.Xf)(B[0]):(0,t.J)(P)((0,p.D)(B,F)):w.E}},2096:(Pe,V,a)=>{"use strict";a.d(V,{of:()=>w});var t=a(9940),d=a(7715);function w(...L){const p=(0,t.yG)(L);return(0,d.D)(L,p)}},8504:(Pe,V,a)=>{"use strict";a.d(V,{_:()=>w});var t=a(5592),d=a(4674);function w(L,p){const O=(0,d.m)(L)?L:()=>L,R=F=>F.error(O());return new t.y(p?F=>p.schedule(R,0,F):R)}},4825:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>p});var t=a(5592),d=a(6321),w=a(671);function p(O=0,R,F=d.P){let P=-1;return null!=R&&((0,w.K)(R)?F=R:P=R),new t.y(B=>{let $=function L(O){return O instanceof Date&&!isNaN(O)}(O)?+O-F.now():O;$<0&&($=0);let f=0;return F.schedule(function(){B.closed||(B.next(f++),0<=P?this.schedule(void 0,P):B.complete())},$)})}},8251:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(305);function d(L,p,O,R,F){return new w(L,p,O,R,F)}class w extends t.Lv{constructor(p,O,R,F,P,B){super(p),this.onFinalize=P,this.shouldUnsubscribe=B,this._next=O?function($){try{O($)}catch(f){p.error(f)}}:super._next,this._error=F?function($){try{F($)}catch(f){p.error(f)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch($){p.error($)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var p;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:O}=this;super.unsubscribe(),!O&&(null===(p=this.onFinalize)||void 0===p||p.call(this))}}}},6306:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>L});var t=a(4829),d=a(8251),w=a(9360);function L(p){return(0,w.e)((O,R)=>{let B,F=null,P=!1;F=O.subscribe((0,d.x)(R,void 0,void 0,$=>{B=(0,t.Xf)(p($,L(p)(O))),F?(F.unsubscribe(),F=null,B.subscribe(R)):P=!0})),P&&(F.unsubscribe(),F=null,B.subscribe(R))})}},6328:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(1631),d=a(4674);function w(L,p){return(0,d.m)(p)?(0,t.z)(L,p,1):(0,t.z)(L,1)}},3620:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>L});var t=a(6321),d=a(9360),w=a(8251);function L(p,O=t.z){return(0,d.e)((R,F)=>{let P=null,B=null,$=null;const f=()=>{if(P){P.unsubscribe(),P=null;const M=B;B=null,F.next(M)}};function j(){const M=$+p,q=O.now();if(q{B=M,$=O.now(),P||(P=O.schedule(j,p),F.add(P))},()=>{f(),F.complete()},void 0,()=>{B=P=null}))})}},3572:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(9360),d=a(8251);function w(L){return(0,t.e)((p,O)=>{let R=!1;p.subscribe((0,d.x)(O,F=>{R=!0,O.next(F)},()=>{R||O.next(L),O.complete()}))})}},3997:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>L});var t=a(2737),d=a(9360),w=a(8251);function L(O,R=t.y){return O=O??p,(0,d.e)((F,P)=>{let B,$=!0;F.subscribe((0,w.x)(P,f=>{const j=R(f);($||!O(B,j))&&($=!1,B=j,P.next(f))}))})}function p(O,R){return O===R}},2181:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(9360),d=a(8251);function w(L,p){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>L.call(p,P,F++)&&R.next(P)))})}},4716:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(9360);function d(w){return(0,t.e)((L,p)=>{try{L.subscribe(p)}finally{p.add(w)}})}},7398:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w});var t=a(9360),d=a(8251);function w(L,p){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>{R.next(L.call(p,P,F++))}))})}},975:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});var t=a(7398);function d(w){return(0,t.U)(()=>w)}},7537:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>w});var t=a(1631),d=a(2737);function w(L=1/0){return(0,t.z)(d.y,L)}},1631:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>F});var t=a(7398),d=a(4829),w=a(9360),L=a(7103),p=a(8251),R=a(4674);function F(P,B,$=1/0){return(0,R.m)(B)?F((f,j)=>(0,t.U)((M,q)=>B(f,M,j,q))((0,d.Xf)(P(f,j))),$):("number"==typeof B&&($=B),(0,w.e)((f,j)=>function O(P,B,$,f,j,M,q,ie){const k=[];let Te=0,Se=0,ye=!1;const ce=()=>{ye&&!k.length&&!Te&&B.complete()},_e=xe=>Te{M&&B.next(xe),Te++;let be=!1;(0,d.Xf)($(xe,Se++)).subscribe((0,p.x)(B,ke=>{j?.(ke),M?_e(ke):B.next(ke)},()=>{be=!0},void 0,()=>{if(be)try{for(Te--;k.length&&Teve(ke)):ve(ke)}ce()}catch(ke){B.error(ke)}}))};return P.subscribe((0,p.x)(B,_e,()=>{ye=!0,ce()})),()=>{ie?.()}}(f,j,P,$)))}},6699:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>L});var t=a(9360),d=a(8251);function L(p,O){return(0,t.e)(function w(p,O,R,F,P){return(B,$)=>{let f=R,j=O,M=0;B.subscribe((0,d.x)($,q=>{const ie=M++;j=f?p(j,q,ie):(f=!0,q),F&&$.next(j)},P&&(()=>{f&&$.next(j),$.complete()})))}}(p,O,arguments.length>=2,!0))}},3020:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>p});var t=a(4829),d=a(8645),w=a(305),L=a(9360);function p(R={}){const{connector:F=(()=>new d.x),resetOnError:P=!0,resetOnComplete:B=!0,resetOnRefCountZero:$=!0}=R;return f=>{let j,M,q,ie=0,k=!1,Te=!1;const Se=()=>{M?.unsubscribe(),M=void 0},ye=()=>{Se(),j=q=void 0,k=Te=!1},ce=()=>{const _e=j;ye(),_e?.unsubscribe()};return(0,L.e)((_e,ve)=>{ie++,!Te&&!k&&Se();const xe=q=q??F();ve.add(()=>{ie--,0===ie&&!Te&&!k&&(M=O(ce,$))}),xe.subscribe(ve),!j&&ie>0&&(j=new w.Hp({next:be=>xe.next(be),error:be=>{Te=!0,Se(),M=O(ye,P,be),xe.error(be)},complete:()=>{k=!0,Se(),M=O(ye,B),xe.complete()}}),(0,t.Xf)(_e).subscribe(j))})(f)}}function O(R,F,...P){if(!0===F)return void R();if(!1===F)return;const B=new w.Hp({next:()=>{B.unsubscribe(),R()}});return(0,t.Xf)(F(...P)).subscribe(B)}},7081:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(7328),d=a(3020);function w(L,p,O){let R,F=!1;return L&&"object"==typeof L?({bufferSize:R=1/0,windowTime:p=1/0,refCount:F=!1,scheduler:O}=L):R=L??1/0,(0,d.B)({connector:()=>new t.t(R,p,O),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:F})}},836:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>d});var t=a(2181);function d(w){return(0,t.h)((L,p)=>w<=p)}},7921:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L});var t=a(5211),d=a(9940),w=a(9360);function L(...p){const O=(0,d.yG)(p);return(0,w.e)((R,F)=>{(O?(0,t.z)(p,R,O):(0,t.z)(p,R)).subscribe(F)})}},2689:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>w});var t=a(4664),d=a(2737);function w(){return(0,t.w)(d.y)}},4664:(Pe,V,a)=>{"use strict";a.d(V,{w:()=>L});var t=a(4829),d=a(9360),w=a(8251);function L(p,O){return(0,d.e)((R,F)=>{let P=null,B=0,$=!1;const f=()=>$&&!P&&F.complete();R.subscribe((0,w.x)(F,j=>{P?.unsubscribe();let M=0;const q=B++;(0,t.Xf)(p(j,q)).subscribe(P=(0,w.x)(F,ie=>F.next(O?O(j,ie,q,M++):ie),()=>{P=null,f()}))},()=>{$=!0,f()}))})}},8180:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(6232),d=a(9360),w=a(8251);function L(p){return p<=0?()=>t.E:(0,d.e)((O,R)=>{let F=0;O.subscribe((0,w.x)(R,P=>{++F<=p&&(R.next(P),p<=F&&R.complete())}))})}},9773:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>p});var t=a(9360),d=a(8251),w=a(4829),L=a(2420);function p(O){return(0,t.e)((R,F)=>{(0,w.Xf)(O).subscribe((0,d.x)(F,()=>F.complete(),L.Z)),!F.closed&&R.subscribe(F)})}},9397:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>p});var t=a(4674),d=a(9360),w=a(8251),L=a(2737);function p(O,R,F){const P=(0,t.m)(O)||R||F?{next:O,error:R,complete:F}:O;return P?(0,d.e)((B,$)=>{var f;null===(f=P.subscribe)||void 0===f||f.call(P);let j=!0;B.subscribe((0,w.x)($,M=>{var q;null===(q=P.next)||void 0===q||q.call(P,M),$.next(M)},()=>{var M;j=!1,null===(M=P.complete)||void 0===M||M.call(P),$.complete()},M=>{var q;j=!1,null===(q=P.error)||void 0===q||q.call(P,M),$.error(M)},()=>{var M,q;j&&(null===(M=P.unsubscribe)||void 0===M||M.call(P)),null===(q=P.finalize)||void 0===q||q.call(P)}))}):L.y}},2460:(Pe,V,a)=>{"use strict";a.d(V,{M:()=>R});var t=a(9360),d=a(8251),w=a(4829),L=a(2737),p=a(2420),O=a(9940);function R(...F){const P=(0,O.jO)(F);return(0,t.e)((B,$)=>{const f=F.length,j=new Array(f);let M=F.map(()=>!1),q=!1;for(let ie=0;ie{j[ie]=k,!q&&!M[ie]&&(M[ie]=!0,(q=M.every(L.y))&&(M=null))},p.Z));B.subscribe((0,d.x)($,ie=>{if(q){const k=[ie,...j];$.next(P?P(...k):k)}}))})}},1954:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>p});var t=a(7394);class d extends t.w0{constructor(R,F){super()}schedule(R,F=0){return this}}const w={setInterval(O,R,...F){const{delegate:P}=w;return P?.setInterval?P.setInterval(O,R,...F):setInterval(O,R,...F)},clearInterval(O){const{delegate:R}=w;return(R?.clearInterval||clearInterval)(O)},delegate:void 0};var L=a(9039);class p extends d{constructor(R,F){super(R,F),this.scheduler=R,this.work=F,this.pending=!1}schedule(R,F=0){var P;if(this.closed)return this;this.state=R;const B=this.id,$=this.scheduler;return null!=B&&(this.id=this.recycleAsyncId($,B,F)),this.pending=!0,this.delay=F,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId($,this.id,F),this}requestAsyncId(R,F,P=0){return w.setInterval(R.flush.bind(R,this),P)}recycleAsyncId(R,F,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return F;null!=F&&w.clearInterval(F)}execute(R,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(R,F);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,F){let B,P=!1;try{this.work(R)}catch($){P=!0,B=$||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:R,scheduler:F}=this,{actions:P}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,L.P)(P,this),null!=R&&(this.id=this.recycleAsyncId(F,R,null)),this.delay=null,super.unsubscribe()}}}},2631:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4552);class d{constructor(p,O=d.now){this.schedulerActionCtor=p,this.now=O}schedule(p,O=0,R){return new this.schedulerActionCtor(this,p).schedule(R,O)}}d.now=t.l.now;class w extends d{constructor(p,O=d.now){super(p,O),this.actions=[],this._active=!1}flush(p){const{actions:O}=this;if(this._active)return void O.push(p);let R;this._active=!0;do{if(R=p.execute(p.state,p.delay))break}while(p=O.shift());if(this._active=!1,R){for(;p=O.shift();)p.unsubscribe();throw R}}}},6321:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>L,z:()=>w});var t=a(1954);const w=new(a(2631).v)(t.o),L=w},4552:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},7599:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t={setTimeout(d,w,...L){const{delegate:p}=t;return p?.setTimeout?p.setTimeout(d,w,...L):setTimeout(d,w,...L)},clearTimeout(d){const{delegate:w}=t;return(w?.clearTimeout||clearTimeout)(d)},delegate:void 0}},4971:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});const d=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9940:(Pe,V,a)=>{"use strict";a.d(V,{_6:()=>O,jO:()=>L,yG:()=>p});var t=a(4674),d=a(671);function w(R){return R[R.length-1]}function L(R){return(0,t.m)(w(R))?R.pop():void 0}function p(R){return(0,d.K)(w(R))?R.pop():void 0}function O(R,F){return"number"==typeof w(R)?R.pop():F}},7453:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>p});const{isArray:t}=Array,{getPrototypeOf:d,prototype:w,keys:L}=Object;function p(R){if(1===R.length){const F=R[0];if(t(F))return{args:F,keys:null};if(function O(R){return R&&"object"==typeof R&&d(R)===w}(F)){const P=L(F);return{args:P.map(B=>F[B]),keys:P}}}return{args:R,keys:null}}},9039:(Pe,V,a)=>{"use strict";function t(d,w){if(d){const L=d.indexOf(w);0<=L&&d.splice(L,1)}}a.d(V,{P:()=>t})},2306:(Pe,V,a)=>{"use strict";function t(d){const L=d(p=>{Error.call(p),p.stack=(new Error).stack});return L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L}a.d(V,{d:()=>t})},2714:(Pe,V,a)=>{"use strict";function t(d,w){return d.reduce((L,p,O)=>(L[p]=w[O],L),{})}a.d(V,{n:()=>t})},1441:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L,x:()=>w});var t=a(2653);let d=null;function w(p){if(t.config.useDeprecatedSynchronousErrorHandling){const O=!d;if(O&&(d={errorThrown:!1,error:null}),p(),O){const{errorThrown:R,error:F}=d;if(d=null,R)throw F}}else p()}function L(p){t.config.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=p)}},7103:(Pe,V,a)=>{"use strict";function t(d,w,L,p=0,O=!1){const R=w.schedule(function(){L(),O?d.add(this.schedule(null,p)):this.unsubscribe()},p);if(d.add(R),!O)return R}a.d(V,{f:()=>t})},2737:(Pe,V,a)=>{"use strict";function t(d){return d}a.d(V,{y:()=>t})},4266:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t=d=>d&&"number"==typeof d.length&&"function"!=typeof d},5726:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>d});var t=a(4674);function d(w){return Symbol.asyncIterator&&(0,t.m)(w?.[Symbol.asyncIterator])}},4674:(Pe,V,a)=>{"use strict";function t(d){return"function"==typeof d}a.d(V,{m:()=>t})},8382:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>w});var t=a(4850),d=a(4674);function w(L){return(0,d.m)(L[t.L])}},3664:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>w});var t=a(4971),d=a(4674);function w(L){return(0,d.m)(L?.[t.h])}},2664:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(5592),d=a(4674);function w(L){return!!L&&(L instanceof t.y||(0,d.m)(L.lift)&&(0,d.m)(L.subscribe))}},4026:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>d});var t=a(4674);function d(w){return(0,t.m)(w?.then)}},541:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>L,Q:()=>w});var t=a(7582),d=a(4674);function w(p){return(0,t.FC)(this,arguments,function*(){const R=p.getReader();try{for(;;){const{value:F,done:P}=yield(0,t.qq)(R.read());if(P)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(F)}}finally{R.releaseLock()}})}function L(p){return(0,d.m)(p?.getReader)}},671:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>d});var t=a(4674);function d(w){return w&&(0,t.m)(w.schedule)}},9360:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>d,e:()=>w});var t=a(4674);function d(L){return(0,t.m)(L?.lift)}function w(L){return p=>{if(d(p))return p.lift(function(O){try{return L(O,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7398);const{isArray:d}=Array;function L(p){return(0,t.U)(O=>function w(p,O){return d(O)?p(...O):p(O)}(p,O))}},2420:(Pe,V,a)=>{"use strict";function t(){}a.d(V,{Z:()=>t})},8407:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w,z:()=>d});var t=a(2737);function d(...L){return w(L)}function w(L){return 0===L.length?t.y:1===L.length?L[0]:function(O){return L.reduce((R,F)=>F(R),O)}}},3894:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(2653),d=a(7599);function w(L){d.z.setTimeout(()=>{const{onUnhandledError:p}=t.config;if(!p)throw L;p(L)})}},9853:(Pe,V,a)=>{"use strict";function t(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(V,{z:()=>t})},5129:(Pe,V,a)=>{var t=a(1474).FilterCSS,d=a(1474).getDefaultWhiteList,w=a(8735);var p=new t;function B(Ee){return Ee.replace(f,"<").replace(j,">")}var f=//g,M=/"/g,q=/"/g,ie=/&#([a-zA-Z0-9]*);?/gim,k=/:?/gim,Te=/&newline;?/gim,Se=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ye=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ce=/u\s*r\s*l\s*\(.*/gi;function _e(Ee){return Ee.replace(M,""")}function ve(Ee){return Ee.replace(q,'"')}function xe(Ee){return Ee.replace(ie,function(J,Q){return String.fromCharCode("x"===Q[0]||"X"===Q[0]?parseInt(Q.substr(1),16):parseInt(Q,10))})}function be(Ee){return Ee.replace(k,":").replace(Te," ")}function ke(Ee){for(var ze="",J=0,Q=Ee.length;J{var t=a(5129),d=a(4469),w=a(9278);function L(O,R){return new w(R).process(O)}(V=Pe.exports=L).filterXSS=L,V.FilterXSS=w,function(){for(var O in t)V[O]=t[O];for(var R in d)V[R]=d[R]}(),typeof window<"u"&&(window.filterXSS=Pe.exports),function p(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=Pe.exports)},4469:(Pe,V,a)=>{var t=a(8735);function d(f){var M,j=t.spaceIndex(f);return M=f.slice(1,-1===j?-1:j+1),"/"===(M=t.trim(M).toLowerCase()).slice(0,1)&&(M=M.slice(1)),"/"===M.slice(-1)&&(M=M.slice(0,-1)),M}function w(f){return"0;j--){var M=f[j];if(" "!==M)return"="===M?j:-1}}function $(f){return function B(f){return'"'===f[0]&&'"'===f[f.length-1]||"'"===f[0]&&"'"===f[f.length-1]}(f)?f.substr(1,f.length-2):f}V.parseTag=function L(f,j,M){"use strict";var q="",ie=0,k=!1,Te=!1,Se=0,ye=f.length,ce="",_e="";e:for(Se=0;Se"===ve||Se===ye-1){q+=M(f.slice(ie,k)),ce=d(_e=f.slice(k,Se+1)),q+=j(k,q.length,ce,_e,w(_e)),ie=Se+1,k=!1;continue}if('"'===ve||"'"===ve)for(var xe=1,be=f.charAt(Se-xe);""===be.trim()||"="===be;){if("="===be){Te=ve;continue e}be=f.charAt(Se-++xe)}}else if(ve===Te){Te=!1;continue}}return ie{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{var t=a(1474).FilterCSS,d=a(5129),w=a(4469),L=w.parseTag,p=w.parseAttr,O=a(8735);function R(f){return null==f}function $(f){(f=function P(f){var j={};for(var M in f)j[M]=f[M];return j}(f||{})).stripIgnoreTag&&(f.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),f.onIgnoreTag=d.onIgnoreTagStripAll),f.whiteList=f.whiteList||f.allowList?function B(f){var j={};for(var M in f)Array.isArray(f[M])?j[M.toLowerCase()]=f[M].map(function(q){return q.toLowerCase()}):j[M.toLowerCase()]=f[M];return j}(f.whiteList||f.allowList):d.whiteList,f.onTag=f.onTag||d.onTag,f.onTagAttr=f.onTagAttr||d.onTagAttr,f.onIgnoreTag=f.onIgnoreTag||d.onIgnoreTag,f.onIgnoreTagAttr=f.onIgnoreTagAttr||d.onIgnoreTagAttr,f.safeAttrValue=f.safeAttrValue||d.safeAttrValue,f.escapeHtml=f.escapeHtml||d.escapeHtml,this.options=f,!1===f.css?this.cssFilter=!1:(f.css=f.css||{},this.cssFilter=new t(f.css))}$.prototype.process=function(f){if(!(f=(f=f||"").toString()))return"";var M=this.options,q=M.whiteList,ie=M.onTag,k=M.onIgnoreTag,Te=M.onTagAttr,Se=M.onIgnoreTagAttr,ye=M.safeAttrValue,ce=M.escapeHtml,_e=this.cssFilter;M.stripBlankChar&&(f=d.stripBlankChar(f)),M.allowCommentTag||(f=d.stripCommentTag(f));var ve=!1;M.stripIgnoreTagBody&&(ve=d.StripTagBody(M.stripIgnoreTagBody,k),k=ve.onIgnoreTag);var xe=L(f,function(be,ke,vt,rt,Mt){var qe={sourcePosition:be,position:ke,isClosing:Mt,isWhite:Object.prototype.hasOwnProperty.call(q,vt)},_t=ie(vt,rt,qe);if(!R(_t))return _t;if(qe.isWhite){if(qe.isClosing)return"";var $e=function F(f){var j=O.spaceIndex(f);if(-1===j)return{html:"",closing:"/"===f[f.length-2]};var M="/"===(f=O.trim(f.slice(j+1,-1)))[f.length-1];return M&&(f=O.trim(f.slice(0,-1))),{html:f,closing:M}}(rt),Ee=q[vt],ze=p($e.html,function(J,Q){var oe=-1!==O.indexOf(Ee,J),se=Te(vt,J,Q,oe);return R(se)?oe?(Q=ye(vt,J,Q,_e))?J+'="'+Q+'"':J:R(se=Se(vt,J,Q,oe))?void 0:se:se});return rt="<"+vt,ze&&(rt+=" "+ze),$e.closing&&(rt+=" /"),rt+">"}return R(_t=k(vt,rt,qe))?ce(rt):_t},ce);return ve&&(xe=ve.remove(xe)),xe},Pe.exports=$},6814:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>ie,EM:()=>di,HT:()=>L,JF:()=>Oi,JJ:()=>Kt,K0:()=>O,Mn:()=>$e,Mx:()=>Hr,O5:()=>X,Ov:()=>Wi,PC:()=>ir,PM:()=>Yn,S$:()=>j,Tn:()=>ke,UT:()=>Ee,V_:()=>F,Ye:()=>k,ax:()=>z,b0:()=>q,bD:()=>ct,ez:()=>Ve,mk:()=>qn,p6:()=>fn,q:()=>w,qS:()=>Ar,sg:()=>z,tP:()=>_r,uU:()=>vi,uf:()=>bt,w_:()=>p,x:()=>be});var t=a(5879);let d=null;function w(){return d}function L(T){d||(d=T)}class p{}const O=new t.OlP("DocumentToken");let R=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(P)},providedIn:"platform"})}return T})();const F=new t.OlP("Location Initialized");let P=(()=>{class T extends R{constructor(){super(),this._doc=(0,t.f3M)(O),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w().getBaseHref(this._doc)}onPopState(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("popstate",U,!1),()=>ee.removeEventListener("popstate",U)}onHashChange(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("hashchange",U,!1),()=>ee.removeEventListener("hashchange",U)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(U){this._location.pathname=U}pushState(U,ee,Ie){this._history.pushState(U,ee,Ie)}replaceState(U,ee,Ie){this._history.replaceState(U,ee,Ie)}forward(){this._history.forward()}back(){this._history.back()}historyGo(U=0){this._history.go(U)}getState(){return this._history.state}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return new T},providedIn:"platform"})}return T})();function B(T,le){if(0==T.length)return le;if(0==le.length)return T;let U=0;return T.endsWith("/")&&U++,le.startsWith("/")&&U++,2==U?T+le.substring(1):1==U?T+le:T+"/"+le}function $(T){const le=T.match(/#|\?|$/),U=le&&le.index||T.length;return T.slice(0,U-("/"===T[U-1]?1:0))+T.slice(U)}function f(T){return T&&"?"!==T[0]?"?"+T:T}let j=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(q)},providedIn:"root"})}return T})();const M=new t.OlP("appBaseHref");let q=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._removeListenerFns=[],this._baseHref=ee??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(O).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}prepareExternalUrl(U){return B(this._baseHref,U)}path(U=!1){const ee=this._platformLocation.pathname+f(this._platformLocation.search),Ie=this._platformLocation.hash;return Ie&&U?`${ee}${Ie}`:ee}pushState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(M,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),ie=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._baseHref="",this._removeListenerFns=[],null!=ee&&(this._baseHref=ee)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}path(U=!1){let ee=this._platformLocation.hash;return null==ee&&(ee="#"),ee.length>0?ee.substring(1):ee}prepareExternalUrl(U){const ee=B(this._baseHref,U);return ee.length>0?"#"+ee:ee}pushState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(M,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac})}return T})(),k=(()=>{class T{constructor(U){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=U;const ee=this._locationStrategy.getBaseHref();this._basePath=function ce(T){if(new RegExp("^(https?:)?//").test(T)){const[,U]=T.split(/\/\/[^\/]+/);return U}return T}($(ye(ee))),this._locationStrategy.onPopState(Ie=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ie.state,type:Ie.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(U=!1){return this.normalize(this._locationStrategy.path(U))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(U,ee=""){return this.path()==this.normalize(U+f(ee))}normalize(U){return T.stripTrailingSlash(function Se(T,le){if(!T||!le.startsWith(T))return le;const U=le.substring(T.length);return""===U||["/",";","?","#"].includes(U[0])?U:le}(this._basePath,ye(U)))}prepareExternalUrl(U){return U&&"/"!==U[0]&&(U="/"+U),this._locationStrategy.prepareExternalUrl(U)}go(U,ee="",Ie=null){this._locationStrategy.pushState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}replaceState(U,ee="",Ie=null){this._locationStrategy.replaceState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(U=0){this._locationStrategy.historyGo?.(U)}onUrlChange(U){return this._urlChangeListeners.push(U),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ee=>{this._notifyUrlChangeListeners(ee.url,ee.state)})),()=>{const ee=this._urlChangeListeners.indexOf(U);this._urlChangeListeners.splice(ee,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(U="",ee){this._urlChangeListeners.forEach(Ie=>Ie(U,ee))}subscribe(U,ee,Ie){return this._subject.subscribe({next:U,error:ee,complete:Ie})}static#e=this.normalizeQueryParams=f;static#t=this.joinWithSlash=B;static#n=this.stripTrailingSlash=$;static#r=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(j))};static#i=this.\u0275prov=t.Yz7({token:T,factory:function(){return function Te(){return new k((0,t.LFG)(j))}()},providedIn:"root"})}return T})();function ye(T){return T.replace(/\/index.html$/,"")}var ve=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(ve||{}),be=function(T){return T[T.Format=0]="Format",T[T.Standalone=1]="Standalone",T}(be||{}),ke=function(T){return T[T.Narrow=0]="Narrow",T[T.Abbreviated=1]="Abbreviated",T[T.Wide=2]="Wide",T[T.Short=3]="Short",T}(ke||{}),vt=function(T){return T[T.Short=0]="Short",T[T.Medium=1]="Medium",T[T.Long=2]="Long",T[T.Full=3]="Full",T}(vt||{}),rt=function(T){return T[T.Decimal=0]="Decimal",T[T.Group=1]="Group",T[T.List=2]="List",T[T.PercentSign=3]="PercentSign",T[T.PlusSign=4]="PlusSign",T[T.MinusSign=5]="MinusSign",T[T.Exponential=6]="Exponential",T[T.SuperscriptingExponent=7]="SuperscriptingExponent",T[T.PerMille=8]="PerMille",T[T.Infinity=9]="Infinity",T[T.NaN=10]="NaN",T[T.TimeSeparator=11]="TimeSeparator",T[T.CurrencyDecimal=12]="CurrencyDecimal",T[T.CurrencyGroup=13]="CurrencyGroup",T}(rt||{});function $e(T,le,U){const ee=(0,t.cg1)(T),gt=zt([ee[t.wAp.DaysFormat],ee[t.wAp.DaysStandalone]],le);return zt(gt,U)}function Ee(T,le,U){const ee=(0,t.cg1)(T),gt=zt([ee[t.wAp.MonthsFormat],ee[t.wAp.MonthsStandalone]],le);return zt(gt,U)}function oe(T,le){return zt((0,t.cg1)(T)[t.wAp.DateFormat],le)}function se(T,le){return zt((0,t.cg1)(T)[t.wAp.TimeFormat],le)}function ae(T,le){return zt((0,t.cg1)(T)[t.wAp.DateTimeFormat],le)}function fe(T,le){const U=(0,t.cg1)(T),ee=U[t.wAp.NumberSymbols][le];if(typeof ee>"u"){if(le===rt.CurrencyDecimal)return U[t.wAp.NumberSymbols][rt.Decimal];if(le===rt.CurrencyGroup)return U[t.wAp.NumberSymbols][rt.Group]}return ee}function Je(T){if(!T[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${T[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zt(T,le){for(let U=le;U>-1;U--)if(typeof T[U]<"u")return T[U];throw new Error("Locale data API: locale data undefined")}function dn(T){const[le,U]=T.split(":");return{hours:+le,minutes:+U}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xt={},nn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Et=function(T){return T[T.Short=0]="Short",T[T.ShortGMT=1]="ShortGMT",T[T.Long=2]="Long",T[T.Extended=3]="Extended",T}(Et||{}),Ht=function(T){return T[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T}(Ht||{}),Zt=function(T){return T[T.DayPeriods=0]="DayPeriods",T[T.Days=1]="Days",T[T.Months=2]="Months",T[T.Eras=3]="Eras",T}(Zt||{});function fn(T,le,U,ee){let Ie=function dt(T){if(we(T))return T;if("number"==typeof T&&!isNaN(T))return new Date(T);if("string"==typeof T){if(T=T.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(T)){const[Ie,gt=1,Ct=1]=T.split("-").map(Jt=>+Jt);return Sn(Ie,gt-1,Ct)}const U=parseFloat(T);if(!isNaN(T-U))return new Date(U);let ee;if(ee=T.match(At))return function ot(T){const le=new Date(0);let U=0,ee=0;const Ie=T[8]?le.setUTCFullYear:le.setFullYear,gt=T[8]?le.setUTCHours:le.setHours;T[9]&&(U=Number(T[9]+T[10]),ee=Number(T[9]+T[11])),Ie.call(le,Number(T[1]),Number(T[2])-1,Number(T[3]));const Ct=Number(T[4]||0)-U,Jt=Number(T[5]||0)-ee,Bn=Number(T[6]||0),dr=Math.floor(1e3*parseFloat("0."+(T[7]||0)));return gt.call(le,Ct,Jt,Bn,dr),le}(ee)}const le=new Date(T);if(!we(le))throw new Error(`Unable to convert "${T}" into a date`);return le}(T);le=hn(U,le)||le;let Jt,Ct=[];for(;le;){if(Jt=nn.exec(le),!Jt){Ct.push(le);break}{Ct=Ct.concat(Jt.slice(1));const yr=Ct.pop();if(!yr)break;le=yr}}let Bn=Ie.getTimezoneOffset();ee&&(Bn=Br(ee,Bn),Ie=function zn(T,le,U){const ee=U?-1:1,Ie=T.getTimezoneOffset();return function oi(T,le){return(T=new Date(T.getTime())).setMinutes(T.getMinutes()+le),T}(T,ee*(Br(le,Ie)-Ie))}(Ie,ee,!0));let dr="";return Ct.forEach(yr=>{const Kn=function Ir(T){if(Or[T])return Or[T];let le;switch(T){case"G":case"GG":case"GGG":le=it(Zt.Eras,ke.Abbreviated);break;case"GGGG":le=it(Zt.Eras,ke.Wide);break;case"GGGGG":le=it(Zt.Eras,ke.Narrow);break;case"y":le=_n(Ht.FullYear,1,0,!1,!0);break;case"yy":le=_n(Ht.FullYear,2,0,!0,!0);break;case"yyy":le=_n(Ht.FullYear,3,0,!1,!0);break;case"yyyy":le=_n(Ht.FullYear,4,0,!1,!0);break;case"Y":le=wr(1);break;case"YY":le=wr(2,!0);break;case"YYY":le=wr(3);break;case"YYYY":le=wr(4);break;case"M":case"L":le=_n(Ht.Month,1,1);break;case"MM":case"LL":le=_n(Ht.Month,2,1);break;case"MMM":le=it(Zt.Months,ke.Abbreviated);break;case"MMMM":le=it(Zt.Months,ke.Wide);break;case"MMMMM":le=it(Zt.Months,ke.Narrow);break;case"LLL":le=it(Zt.Months,ke.Abbreviated,be.Standalone);break;case"LLLL":le=it(Zt.Months,ke.Wide,be.Standalone);break;case"LLLLL":le=it(Zt.Months,ke.Narrow,be.Standalone);break;case"w":le=Dr(1);break;case"ww":le=Dr(2);break;case"W":le=Dr(1,!0);break;case"d":le=_n(Ht.Date,1);break;case"dd":le=_n(Ht.Date,2);break;case"c":case"cc":le=_n(Ht.Day,1);break;case"ccc":le=it(Zt.Days,ke.Abbreviated,be.Standalone);break;case"cccc":le=it(Zt.Days,ke.Wide,be.Standalone);break;case"ccccc":le=it(Zt.Days,ke.Narrow,be.Standalone);break;case"cccccc":le=it(Zt.Days,ke.Short,be.Standalone);break;case"E":case"EE":case"EEE":le=it(Zt.Days,ke.Abbreviated);break;case"EEEE":le=it(Zt.Days,ke.Wide);break;case"EEEEE":le=it(Zt.Days,ke.Narrow);break;case"EEEEEE":le=it(Zt.Days,ke.Short);break;case"a":case"aa":case"aaa":le=it(Zt.DayPeriods,ke.Abbreviated);break;case"aaaa":le=it(Zt.DayPeriods,ke.Wide);break;case"aaaaa":le=it(Zt.DayPeriods,ke.Narrow);break;case"b":case"bb":case"bbb":le=it(Zt.DayPeriods,ke.Abbreviated,be.Standalone,!0);break;case"bbbb":le=it(Zt.DayPeriods,ke.Wide,be.Standalone,!0);break;case"bbbbb":le=it(Zt.DayPeriods,ke.Narrow,be.Standalone,!0);break;case"B":case"BB":case"BBB":le=it(Zt.DayPeriods,ke.Abbreviated,be.Format,!0);break;case"BBBB":le=it(Zt.DayPeriods,ke.Wide,be.Format,!0);break;case"BBBBB":le=it(Zt.DayPeriods,ke.Narrow,be.Format,!0);break;case"h":le=_n(Ht.Hours,1,-12);break;case"hh":le=_n(Ht.Hours,2,-12);break;case"H":le=_n(Ht.Hours,1);break;case"HH":le=_n(Ht.Hours,2);break;case"m":le=_n(Ht.Minutes,1);break;case"mm":le=_n(Ht.Minutes,2);break;case"s":le=_n(Ht.Seconds,1);break;case"ss":le=_n(Ht.Seconds,2);break;case"S":le=_n(Ht.FractionalSeconds,1);break;case"SS":le=_n(Ht.FractionalSeconds,2);break;case"SSS":le=_n(Ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":le=Qt(Et.Short);break;case"ZZZZZ":le=Qt(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":le=Qt(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":le=Qt(Et.Long);break;default:return null}return Or[T]=le,le}(yr);dr+=Kn?Kn(Ie,U,Bn):"''"===yr?"'":yr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),dr}function Sn(T,le,U){const ee=new Date(0);return ee.setFullYear(T,le,U),ee.setHours(0,0,0),ee}function hn(T,le){const U=function qe(T){return(0,t.cg1)(T)[t.wAp.LocaleId]}(T);if(xt[U]=xt[U]||{},xt[U][le])return xt[U][le];let ee="";switch(le){case"shortDate":ee=oe(T,vt.Short);break;case"mediumDate":ee=oe(T,vt.Medium);break;case"longDate":ee=oe(T,vt.Long);break;case"fullDate":ee=oe(T,vt.Full);break;case"shortTime":ee=se(T,vt.Short);break;case"mediumTime":ee=se(T,vt.Medium);break;case"longTime":ee=se(T,vt.Long);break;case"fullTime":ee=se(T,vt.Full);break;case"short":const Ie=hn(T,"shortTime"),gt=hn(T,"shortDate");ee=en(ae(T,vt.Short),[Ie,gt]);break;case"medium":const Ct=hn(T,"mediumTime"),Jt=hn(T,"mediumDate");ee=en(ae(T,vt.Medium),[Ct,Jt]);break;case"long":const Bn=hn(T,"longTime"),dr=hn(T,"longDate");ee=en(ae(T,vt.Long),[Bn,dr]);break;case"full":const yr=hn(T,"fullTime"),Kn=hn(T,"fullDate");ee=en(ae(T,vt.Full),[yr,Kn])}return ee&&(xt[U][le]=ee),ee}function en(T,le){return le&&(T=T.replace(/\{([^}]+)}/g,function(U,ee){return null!=le&&ee in le?le[ee]:U})),T}function Dn(T,le,U="-",ee,Ie){let gt="";(T<0||Ie&&T<=0)&&(Ie?T=1-T:(T=-T,gt=U));let Ct=String(T);for(;Ct.length0||Jt>-U)&&(Jt+=U),T===Ht.Hours)0===Jt&&-12===U&&(Jt=12);else if(T===Ht.FractionalSeconds)return function Wn(T,le){return Dn(T,3).substring(0,le)}(Jt,le);const Bn=fe(Ct,rt.MinusSign);return Dn(Jt,le,Bn,ee,Ie)}}function it(T,le,U=be.Format,ee=!1){return function(Ie,gt){return function Ut(T,le,U,ee,Ie,gt){switch(U){case Zt.Months:return Ee(le,Ie,ee)[T.getMonth()];case Zt.Days:return $e(le,Ie,ee)[T.getDay()];case Zt.DayPeriods:const Ct=T.getHours(),Jt=T.getMinutes();if(gt){const dr=function Tt(T){const le=(0,t.cg1)(T);return Je(le),(le[t.wAp.ExtraData][2]||[]).map(ee=>"string"==typeof ee?dn(ee):[dn(ee[0]),dn(ee[1])])}(le),yr=function et(T,le,U){const ee=(0,t.cg1)(T);Je(ee);const gt=zt([ee[t.wAp.ExtraData][0],ee[t.wAp.ExtraData][1]],le)||[];return zt(gt,U)||[]}(le,Ie,ee),Kn=dr.findIndex(Jr=>{if(Array.isArray(Jr)){const[Jn,ei]=Jr,Ei=Ct>=Jn.hours&&Jt>=Jn.minutes,Ai=Ct0?Math.floor(Ie/60):Math.ceil(Ie/60);switch(T){case Et.Short:return(Ie>=0?"+":"")+Dn(Ct,2,gt)+Dn(Math.abs(Ie%60),2,gt);case Et.ShortGMT:return"GMT"+(Ie>=0?"+":"")+Dn(Ct,1,gt);case Et.Long:return"GMT"+(Ie>=0?"+":"")+Dn(Ct,2,gt)+":"+Dn(Math.abs(Ie%60),2,gt);case Et.Extended:return 0===ee?"Z":(Ie>=0?"+":"")+Dn(Ct,2,gt)+":"+Dn(Math.abs(Ie%60),2,gt);default:throw new Error(`Unknown zone width "${T}"`)}}}const Cn=0,An=4;function nr(T){return Sn(T.getFullYear(),T.getMonth(),T.getDate()+(An-T.getDay()))}function Dr(T,le=!1){return function(U,ee){let Ie;if(le){const gt=new Date(U.getFullYear(),U.getMonth(),1).getDay()-1,Ct=U.getDate();Ie=1+Math.floor((Ct+gt)/7)}else{const gt=nr(U),Ct=function In(T){const le=Sn(T,Cn,1).getDay();return Sn(T,0,1+(le<=An?An:An+7)-le)}(gt.getFullYear()),Jt=gt.getTime()-Ct.getTime();Ie=1+Math.round(Jt/6048e5)}return Dn(Ie,T,fe(ee,rt.MinusSign))}}function wr(T,le=!1){return function(U,ee){return Dn(nr(U).getFullYear(),T,fe(ee,rt.MinusSign),le)}}const Or={};function Br(T,le){T=T.replace(/:/g,"");const U=Date.parse("Jan 01, 1970 00:00:00 "+T)/6e4;return isNaN(U)?le:U}function we(T){return T instanceof Date&&!isNaN(T.valueOf())}const He=/^(\d+)?\.((\d+)(-(\d+))?)?$/,yt=22,Wt=".",Vt="0",Un=";",on=",",rr="#";function bt(T,le,U){return function Qe(T,le,U,ee,Ie,gt,Ct=!1){let Jt="",Bn=!1;if(isFinite(T)){let dr=function Ft(T){let ee,Ie,gt,Ct,Jt,le=Math.abs(T)+"",U=0;for((Ie=le.indexOf(Wt))>-1&&(le=le.replace(Wt,"")),(gt=le.search(/e/i))>0?(Ie<0&&(Ie=gt),Ie+=+le.slice(gt+1),le=le.substring(0,gt)):Ie<0&&(Ie=le.length),gt=0;le.charAt(gt)===Vt;gt++);if(gt===(Jt=le.length))ee=[0],Ie=1;else{for(Jt--;le.charAt(Jt)===Vt;)Jt--;for(Ie-=gt,ee=[],Ct=0;gt<=Jt;gt++,Ct++)ee[Ct]=Number(le.charAt(gt))}return Ie>yt&&(ee=ee.splice(0,yt-1),U=Ie-1,Ie=1),{digits:ee,exponent:U,integerLen:Ie}}(T);Ct&&(dr=function kt(T){if(0===T.digits[0])return T;const le=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===le?T.digits.push(0,0):1===le&&T.digits.push(0),T.integerLen+=2),T}(dr));let yr=le.minInt,Kn=le.minFrac,Jr=le.maxFrac;if(gt){const Fi=gt.match(He);if(null===Fi)throw new Error(`${gt} is not a valid digit info`);const ti=Fi[1],cs=Fi[3],Ts=Fi[5];null!=ti&&(yr=wn(ti)),null!=cs&&(Kn=wn(cs)),null!=Ts?Jr=wn(Ts):null!=cs&&Kn>Jr&&(Jr=Kn)}!function an(T,le,U){if(le>U)throw new Error(`The minimum number of digits after fraction (${le}) is higher than the maximum (${U}).`);let ee=T.digits,Ie=ee.length-T.integerLen;const gt=Math.min(Math.max(le,Ie),U);let Ct=gt+T.integerLen,Jt=ee[Ct];if(Ct>0){ee.splice(Math.max(T.integerLen,Ct));for(let Kn=Ct;Kn=5)if(Ct-1<0){for(let Kn=0;Kn>Ct;Kn--)ee.unshift(0),T.integerLen++;ee.unshift(1),T.integerLen++}else ee[Ct-1]++;for(;Ie=dr?ei.pop():Bn=!1),Jr>=10?1:0},0);yr&&(ee.unshift(yr),T.integerLen++)}(dr,Kn,Jr);let Jn=dr.digits,ei=dr.integerLen;const Ei=dr.exponent;let Ai=[];for(Bn=Jn.every(Fi=>!Fi);ei0?Ai=Jn.splice(ei,Jn.length):(Ai=Jn,Jn=[0]);const Hi=[];for(Jn.length>=le.lgSize&&Hi.unshift(Jn.splice(-le.lgSize,Jn.length).join(""));Jn.length>le.gSize;)Hi.unshift(Jn.splice(-le.gSize,Jn.length).join(""));Jn.length&&Hi.unshift(Jn.join("")),Jt=Hi.join(fe(U,ee)),Ai.length&&(Jt+=fe(U,Ie)+Ai.join("")),Ei&&(Jt+=fe(U,rt.Exponential)+"+"+Ei)}else Jt=fe(U,rt.Infinity);return Jt=T<0&&!Bn?le.negPre+Jt+le.negSuf:le.posPre+Jt+le.posSuf,Jt}(T,function Rt(T,le="-"){const U={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ee=T.split(Un),Ie=ee[0],gt=ee[1],Ct=-1!==Ie.indexOf(Wt)?Ie.split(Wt):[Ie.substring(0,Ie.lastIndexOf(Vt)+1),Ie.substring(Ie.lastIndexOf(Vt)+1)],Jt=Ct[0],Bn=Ct[1]||"";U.posPre=Jt.substring(0,Jt.indexOf(rr));for(let yr=0;yr{class T{constructor(U,ee,Ie,gt){this._iterableDiffers=U,this._keyValueDiffers=ee,this._ngEl=Ie,this._renderer=gt,this.initialClasses=Xn,this.stateMap=new Map}set klass(U){this.initialClasses=null!=U?U.trim().split(zr):Xn}set ngClass(U){this.rawClass="string"==typeof U?U.trim().split(zr):U}ngDoCheck(){for(const ee of this.initialClasses)this._updateState(ee,!0);const U=this.rawClass;if(Array.isArray(U)||U instanceof Set)for(const ee of U)this._updateState(ee,!0);else if(null!=U)for(const ee of Object.keys(U))this._updateState(ee,!!U[ee]);this._applyStateDiff()}_updateState(U,ee){const Ie=this.stateMap.get(U);void 0!==Ie?(Ie.enabled!==ee&&(Ie.changed=!0,Ie.enabled=ee),Ie.touched=!0):this.stateMap.set(U,{enabled:ee,changed:!0,touched:!0})}_applyStateDiff(){for(const U of this.stateMap){const ee=U[0],Ie=U[1];Ie.changed?(this._toggleClass(ee,Ie.enabled),Ie.changed=!1):Ie.touched||(Ie.enabled&&this._toggleClass(ee,!1),this.stateMap.delete(ee)),Ie.touched=!1}}_toggleClass(U,ee){(U=U.trim()).length>0&&U.split(zr).forEach(Ie=>{ee?this._renderer.addClass(this._ngEl.nativeElement,Ie):this._renderer.removeClass(this._ngEl.nativeElement,Ie)})}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return T})();class pe{constructor(le,U,ee,Ie){this.$implicit=le,this.ngForOf=U,this.index=ee,this.count=Ie}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let z=(()=>{class T{set ngForOf(U){this._ngForOf=U,this._ngForOfDirty=!0}set ngForTrackBy(U){this._trackByFn=U}get ngForTrackBy(){return this._trackByFn}constructor(U,ee,Ie){this._viewContainer=U,this._template=ee,this._differs=Ie,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(U){U&&(this._template=U)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const U=this._ngForOf;!this._differ&&U&&(this._differ=this._differs.find(U).create(this.ngForTrackBy))}if(this._differ){const U=this._differ.diff(this._ngForOf);U&&this._applyChanges(U)}}_applyChanges(U){const ee=this._viewContainer;U.forEachOperation((Ie,gt,Ct)=>{if(null==Ie.previousIndex)ee.createEmbeddedView(this._template,new pe(Ie.item,this._ngForOf,-1,-1),null===Ct?void 0:Ct);else if(null==Ct)ee.remove(null===gt?void 0:gt);else if(null!==gt){const Jt=ee.get(gt);ee.move(Jt,Ct),K(Jt,Ie)}});for(let Ie=0,gt=ee.length;Ie{K(ee.get(Ie.currentIndex),Ie)})}static ngTemplateContextGuard(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return T})();function K(T,le){T.context.$implicit=le.item}let X=(()=>{class T{constructor(U,ee){this._viewContainer=U,this._context=new de,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ee}set ngIf(U){this._context.$implicit=this._context.ngIf=U,this._updateView()}set ngIfThen(U){Oe("ngIfThen",U),this._thenTemplateRef=U,this._thenViewRef=null,this._updateView()}set ngIfElse(U){Oe("ngIfElse",U),this._elseTemplateRef=U,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return T})();class de{constructor(){this.$implicit=null,this.ngIf=null}}function Oe(T,le){if(le&&!le.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,t.AaK)(le)}'.`)}let ir=(()=>{class T{constructor(U,ee,Ie){this._ngEl=U,this._differs=ee,this._renderer=Ie,this._ngStyle=null,this._differ=null}set ngStyle(U){this._ngStyle=U,!this._differ&&U&&(this._differ=this._differs.find(U).create())}ngDoCheck(){if(this._differ){const U=this._differ.diff(this._ngStyle);U&&this._applyChanges(U)}}_setStyle(U,ee){const[Ie,gt]=U.split("."),Ct=-1===Ie.indexOf("-")?void 0:t.JOm.DashCase;null!=ee?this._renderer.setStyle(this._ngEl.nativeElement,Ie,gt?`${ee}${gt}`:ee,Ct):this._renderer.removeStyle(this._ngEl.nativeElement,Ie,Ct)}_applyChanges(U){U.forEachRemovedItem(ee=>this._setStyle(ee.key,null)),U.forEachAddedItem(ee=>this._setStyle(ee.key,ee.currentValue)),U.forEachChangedItem(ee=>this._setStyle(ee.key,ee.currentValue))}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return T})(),_r=(()=>{class T{constructor(U){this._viewContainerRef=U,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(U){if(U.ngTemplateOutlet||U.ngTemplateOutletInjector){const ee=this._viewContainerRef;if(this._viewRef&&ee.remove(ee.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ie,ngTemplateOutletContext:gt,ngTemplateOutletInjector:Ct}=this;this._viewRef=ee.createEmbeddedView(Ie,gt,Ct?{injector:Ct}:void 0)}else this._viewRef=null}else this._viewRef&&U.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]})}return T})();function Yr(T,le){return new t.vHH(2100,!1)}class es{createSubscription(le,U){return(0,t.rg0)(()=>le.subscribe({next:U,error:ee=>{throw ee}}))}dispose(le){(0,t.rg0)(()=>le.unsubscribe())}}class _i{createSubscription(le,U){return le.then(U,ee=>{throw ee})}dispose(le){}}const Ti=new _i,hs=new es;let Wi=(()=>{class T{constructor(U){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=U}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(U){return this._obj?U!==this._obj?(this._dispose(),this.transform(U)):this._latestValue:(U&&this._subscribe(U),this._latestValue)}_subscribe(U){this._obj=U,this._strategy=this._selectStrategy(U),this._subscription=this._strategy.createSubscription(U,ee=>this._updateLatestValue(U,ee))}_selectStrategy(U){if((0,t.QGY)(U))return Ti;if((0,t.F4k)(U))return hs;throw Yr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(U,ee){U===this._obj&&(this._latestValue=ee,this._ref.markForCheck())}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.sBO,16))};static#t=this.\u0275pipe=t.Yjl({name:"async",type:T,pure:!1,standalone:!0})}return T})();const vr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Sr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let vi=(()=>{class T{constructor(U,ee,Ie){this.locale=U,this.defaultTimezone=ee,this.defaultOptions=Ie}transform(U,ee,Ie,gt){if(null==U||""===U||U!=U)return null;try{return fn(U,ee??this.defaultOptions?.dateFormat??"mediumDate",gt||this.locale,Ie??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ct){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16),t.Y36(vr,24),t.Y36(Sr,24))};static#t=this.\u0275pipe=t.Yjl({name:"date",type:T,pure:!0,standalone:!0})}return T})(),Kt=(()=>{class T{constructor(U){this._locale=U}transform(U,ee,Ie){if(!function $r(T){return!(null==T||""===T||T!=T)}(U))return null;Ie=Ie||this._locale;try{return bt(function bi(T){if("string"==typeof T&&!isNaN(Number(T)-parseFloat(T)))return Number(T);if("number"!=typeof T)throw new Error(`${T} is not a number`);return T}(U),Ie,ee)}catch(gt){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16))};static#t=this.\u0275pipe=t.Yjl({name:"number",type:T,pure:!0,standalone:!0})}return T})();let Ve=(()=>{class T{static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275mod=t.oAB({type:T});static#n=this.\u0275inj=t.cJS({})}return T})();const ct="browser",Yt="server";function Yn(T){return T===Yt}let di=(()=>{class T{static#e=this.\u0275prov=(0,t.Yz7)({token:T,providedIn:"root",factory:()=>new ns((0,t.LFG)(O),window)})}return T})();class ns{constructor(le,U){this.document=le,this.window=U,this.offset=()=>[0,0]}setOffset(le){this.offset=Array.isArray(le)?()=>le:le}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(le){this.supportsScrolling()&&this.window.scrollTo(le[0],le[1])}scrollToAnchor(le){if(!this.supportsScrolling())return;const U=function bs(T,le){const U=T.getElementById(le)||T.getElementsByName(le)[0];if(U)return U;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const ee=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let Ie=ee.currentNode;for(;Ie;){const gt=Ie.shadowRoot;if(gt){const Ct=gt.getElementById(le)||gt.querySelector(`[name="${le}"]`);if(Ct)return Ct}Ie=ee.nextNode()}}return null}(this.document,le);U&&(this.scrollToElement(U),U.focus())}setHistoryScrollRestoration(le){this.supportsScrolling()&&(this.window.history.scrollRestoration=le)}scrollToElement(le){const U=le.getBoundingClientRect(),ee=U.left+this.window.pageXOffset,Ie=U.top+this.window.pageYOffset,gt=this.offset();this.window.scrollTo(ee-gt[0],Ie-gt[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Oi{}},9862:(Pe,V,a)=>{"use strict";a.d(V,{JF:()=>He,LE:()=>ce,TP:()=>Je,UA:()=>ze,WM:()=>j,eN:()=>Q});var t=a(5879),d=a(2096),w=a(7715),L=a(5592),p=a(6328),O=a(2181),R=a(7398),F=a(4716),P=a(4664),B=a(6814);class ${}class f{}class j{constructor(Le){this.normalizedNames=new Map,this.lazyUpdate=null,Le?"string"==typeof Le?this.lazyInit=()=>{this.headers=new Map,Le.split("\n").forEach(Ue=>{const bt=Ue.indexOf(":");if(bt>0){const Rt=Ue.slice(0,bt),kt=Rt.toLowerCase(),Ft=Ue.slice(bt+1).trim();this.maybeSetNormalizedName(Rt,kt),this.headers.has(kt)?this.headers.get(kt).push(Ft):this.headers.set(kt,[Ft])}})}:typeof Headers<"u"&&Le instanceof Headers?(this.headers=new Map,Le.forEach((Ue,bt)=>{this.setHeaderEntries(bt,Ue)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Le).forEach(([Ue,bt])=>{this.setHeaderEntries(Ue,bt)})}:this.headers=new Map}has(Le){return this.init(),this.headers.has(Le.toLowerCase())}get(Le){this.init();const Ue=this.headers.get(Le.toLowerCase());return Ue&&Ue.length>0?Ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Le){return this.init(),this.headers.get(Le.toLowerCase())||null}append(Le,Ue){return this.clone({name:Le,value:Ue,op:"a"})}set(Le,Ue){return this.clone({name:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({name:Le,value:Ue,op:"d"})}maybeSetNormalizedName(Le,Ue){this.normalizedNames.has(Ue)||this.normalizedNames.set(Ue,Le)}init(){this.lazyInit&&(this.lazyInit instanceof j?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Le=>this.applyUpdate(Le)),this.lazyUpdate=null))}copyFrom(Le){Le.init(),Array.from(Le.headers.keys()).forEach(Ue=>{this.headers.set(Ue,Le.headers.get(Ue)),this.normalizedNames.set(Ue,Le.normalizedNames.get(Ue))})}clone(Le){const Ue=new j;return Ue.lazyInit=this.lazyInit&&this.lazyInit instanceof j?this.lazyInit:this,Ue.lazyUpdate=(this.lazyUpdate||[]).concat([Le]),Ue}applyUpdate(Le){const Ue=Le.name.toLowerCase();switch(Le.op){case"a":case"s":let bt=Le.value;if("string"==typeof bt&&(bt=[bt]),0===bt.length)return;this.maybeSetNormalizedName(Le.name,Ue);const Rt=("a"===Le.op?this.headers.get(Ue):void 0)||[];Rt.push(...bt),this.headers.set(Ue,Rt);break;case"d":const kt=Le.value;if(kt){let Ft=this.headers.get(Ue);if(!Ft)return;Ft=Ft.filter(an=>-1===kt.indexOf(an)),0===Ft.length?(this.headers.delete(Ue),this.normalizedNames.delete(Ue)):this.headers.set(Ue,Ft)}else this.headers.delete(Ue),this.normalizedNames.delete(Ue)}}setHeaderEntries(Le,Ue){const bt=(Array.isArray(Ue)?Ue:[Ue]).map(kt=>kt.toString()),Rt=Le.toLowerCase();this.headers.set(Rt,bt),this.maybeSetNormalizedName(Le,Rt)}forEach(Le){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ue=>Le(this.normalizedNames.get(Ue),this.headers.get(Ue)))}}class q{encodeKey(Le){return Se(Le)}encodeValue(Le){return Se(Le)}decodeKey(Le){return decodeURIComponent(Le)}decodeValue(Le){return decodeURIComponent(Le)}}const k=/%(\d[a-f0-9])/gi,Te={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Se(Qe){return encodeURIComponent(Qe).replace(k,(Le,Ue)=>Te[Ue]??Le)}function ye(Qe){return`${Qe}`}class ce{constructor(Le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Le.encoder||new q,Le.fromString){if(Le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ie(Qe,Le){const Ue=new Map;return Qe.length>0&&Qe.replace(/^\?/,"").split("&").forEach(Rt=>{const kt=Rt.indexOf("="),[Ft,an]=-1==kt?[Le.decodeKey(Rt),""]:[Le.decodeKey(Rt.slice(0,kt)),Le.decodeValue(Rt.slice(kt+1))],wn=Ue.get(Ft)||[];wn.push(an),Ue.set(Ft,wn)}),Ue}(Le.fromString,this.encoder)}else Le.fromObject?(this.map=new Map,Object.keys(Le.fromObject).forEach(Ue=>{const bt=Le.fromObject[Ue],Rt=Array.isArray(bt)?bt.map(ye):[ye(bt)];this.map.set(Ue,Rt)})):this.map=null}has(Le){return this.init(),this.map.has(Le)}get(Le){this.init();const Ue=this.map.get(Le);return Ue?Ue[0]:null}getAll(Le){return this.init(),this.map.get(Le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Le,Ue){return this.clone({param:Le,value:Ue,op:"a"})}appendAll(Le){const Ue=[];return Object.keys(Le).forEach(bt=>{const Rt=Le[bt];Array.isArray(Rt)?Rt.forEach(kt=>{Ue.push({param:bt,value:kt,op:"a"})}):Ue.push({param:bt,value:Rt,op:"a"})}),this.clone(Ue)}set(Le,Ue){return this.clone({param:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({param:Le,value:Ue,op:"d"})}toString(){return this.init(),this.keys().map(Le=>{const Ue=this.encoder.encodeKey(Le);return this.map.get(Le).map(bt=>Ue+"="+this.encoder.encodeValue(bt)).join("&")}).filter(Le=>""!==Le).join("&")}clone(Le){const Ue=new ce({encoder:this.encoder});return Ue.cloneFrom=this.cloneFrom||this,Ue.updates=(this.updates||[]).concat(Le),Ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Le=>this.map.set(Le,this.cloneFrom.map.get(Le))),this.updates.forEach(Le=>{switch(Le.op){case"a":case"s":const Ue=("a"===Le.op?this.map.get(Le.param):void 0)||[];Ue.push(ye(Le.value)),this.map.set(Le.param,Ue);break;case"d":if(void 0===Le.value){this.map.delete(Le.param);break}{let bt=this.map.get(Le.param)||[];const Rt=bt.indexOf(ye(Le.value));-1!==Rt&&bt.splice(Rt,1),bt.length>0?this.map.set(Le.param,bt):this.map.delete(Le.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(Le,Ue){return this.map.set(Le,Ue),this}get(Le){return this.map.has(Le)||this.map.set(Le,Le.defaultValue()),this.map.get(Le)}delete(Le){return this.map.delete(Le),this}has(Le){return this.map.has(Le)}keys(){return this.map.keys()}}function be(Qe){return typeof ArrayBuffer<"u"&&Qe instanceof ArrayBuffer}function ke(Qe){return typeof Blob<"u"&&Qe instanceof Blob}function vt(Qe){return typeof FormData<"u"&&Qe instanceof FormData}class Mt{constructor(Le,Ue,bt,Rt){let kt;if(this.url=Ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Le.toUpperCase(),function xe(Qe){switch(Qe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Rt?(this.body=void 0!==bt?bt:null,kt=Rt):kt=bt,kt&&(this.reportProgress=!!kt.reportProgress,this.withCredentials=!!kt.withCredentials,kt.responseType&&(this.responseType=kt.responseType),kt.headers&&(this.headers=kt.headers),kt.context&&(this.context=kt.context),kt.params&&(this.params=kt.params)),this.headers||(this.headers=new j),this.context||(this.context=new ve),this.params){const Ft=this.params.toString();if(0===Ft.length)this.urlWithParams=Ue;else{const an=Ue.indexOf("?");this.urlWithParams=Ue+(-1===an?"?":anFr.set(Ar,Le.setHeaders[Ar]),wn)),Le.setParams&&(pr=Object.keys(Le.setParams).reduce((Fr,Ar)=>Fr.set(Ar,Le.setParams[Ar]),pr)),new Mt(Ue,bt,kt,{params:pr,headers:wn,context:jr,reportProgress:an,responseType:Rt,withCredentials:Ft})}}var qe=function(Qe){return Qe[Qe.Sent=0]="Sent",Qe[Qe.UploadProgress=1]="UploadProgress",Qe[Qe.ResponseHeader=2]="ResponseHeader",Qe[Qe.DownloadProgress=3]="DownloadProgress",Qe[Qe.Response=4]="Response",Qe[Qe.User=5]="User",Qe}(qe||{});class _t{constructor(Le,Ue=200,bt="OK"){this.headers=Le.headers||new j,this.status=void 0!==Le.status?Le.status:Ue,this.statusText=Le.statusText||bt,this.url=Le.url||null,this.ok=this.status>=200&&this.status<300}}class $e extends _t{constructor(Le={}){super(Le),this.type=qe.ResponseHeader}clone(Le={}){return new $e({headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class Ee extends _t{constructor(Le={}){super(Le),this.type=qe.Response,this.body=void 0!==Le.body?Le.body:null}clone(Le={}){return new Ee({body:void 0!==Le.body?Le.body:this.body,headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class ze extends _t{constructor(Le){super(Le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Le.url||"(unknown url)"}`:`Http failure response for ${Le.url||"(unknown url)"}: ${Le.status} ${Le.statusText}`,this.error=Le.error||null}}function J(Qe,Le){return{body:Le,headers:Qe.headers,context:Qe.context,observe:Qe.observe,params:Qe.params,reportProgress:Qe.reportProgress,responseType:Qe.responseType,withCredentials:Qe.withCredentials}}let Q=(()=>{class Qe{constructor(Ue){this.handler=Ue}request(Ue,bt,Rt={}){let kt;if(Ue instanceof Mt)kt=Ue;else{let wn,pr;wn=Rt.headers instanceof j?Rt.headers:new j(Rt.headers),Rt.params&&(pr=Rt.params instanceof ce?Rt.params:new ce({fromObject:Rt.params})),kt=new Mt(Ue,bt,void 0!==Rt.body?Rt.body:null,{headers:wn,context:Rt.context,params:pr,reportProgress:Rt.reportProgress,responseType:Rt.responseType||"json",withCredentials:Rt.withCredentials})}const Ft=(0,d.of)(kt).pipe((0,p.b)(wn=>this.handler.handle(wn)));if(Ue instanceof Mt||"events"===Rt.observe)return Ft;const an=Ft.pipe((0,O.h)(wn=>wn instanceof Ee));switch(Rt.observe||"body"){case"body":switch(kt.responseType){case"arraybuffer":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&!(wn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return wn.body}));case"blob":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&!(wn.body instanceof Blob))throw new Error("Response is not a Blob.");return wn.body}));case"text":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&"string"!=typeof wn.body)throw new Error("Response is not a string.");return wn.body}));default:return an.pipe((0,R.U)(wn=>wn.body))}case"response":return an;default:throw new Error(`Unreachable: unhandled observe type ${Rt.observe}}`)}}delete(Ue,bt={}){return this.request("DELETE",Ue,bt)}get(Ue,bt={}){return this.request("GET",Ue,bt)}head(Ue,bt={}){return this.request("HEAD",Ue,bt)}jsonp(Ue,bt){return this.request("JSONP",Ue,{params:(new ce).append(bt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ue,bt={}){return this.request("OPTIONS",Ue,bt)}patch(Ue,bt,Rt={}){return this.request("PATCH",Ue,J(Rt,bt))}post(Ue,bt,Rt={}){return this.request("POST",Ue,J(Rt,bt))}put(Ue,bt,Rt={}){return this.request("PUT",Ue,J(Rt,bt))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG($))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function tt(Qe,Le){return Le(Qe)}function wt(Qe,Le){return(Ue,bt)=>Le.intercept(Ue,{handle:Rt=>Qe(Rt,bt)})}const Je=new t.OlP(""),Tt=new t.OlP(""),et=new t.OlP("");function Pt(){let Qe=null;return(Le,Ue)=>{null===Qe&&(Qe=((0,t.f3M)(Je,{optional:!0})??[]).reduceRight(wt,tt));const bt=(0,t.f3M)(t.HDt),Rt=bt.add();return Qe(Le,Ue).pipe((0,F.x)(()=>bt.remove(Rt)))}}let zt=(()=>{class Qe extends ${constructor(Ue,bt){super(),this.backend=Ue,this.injector=bt,this.chain=null,this.pendingTasks=(0,t.f3M)(t.HDt)}handle(Ue){if(null===this.chain){const Rt=Array.from(new Set([...this.injector.get(Tt),...this.injector.get(et,[])]));this.chain=Rt.reduceRight((kt,Ft)=>function It(Qe,Le,Ue){return(bt,Rt)=>Ue.runInContext(()=>Le(bt,kt=>Qe(kt,Rt)))}(kt,Ft,this.injector),tt)}const bt=this.pendingTasks.add();return this.chain(Ue,Rt=>this.backend.handle(Rt)).pipe((0,F.x)(()=>this.pendingTasks.remove(bt)))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(f),t.LFG(t.lqb))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const Sn=/^\)\]\}',?\n/;let en=(()=>{class Qe{constructor(Ue){this.xhrFactory=Ue}handle(Ue){if("JSONP"===Ue.method)throw new t.vHH(-2800,!1);const bt=this.xhrFactory;return(bt.\u0275loadImpl?(0,w.D)(bt.\u0275loadImpl()):(0,d.of)(null)).pipe((0,P.w)(()=>new L.y(kt=>{const Ft=bt.build();if(Ft.open(Ue.method,Ue.urlWithParams),Ue.withCredentials&&(Ft.withCredentials=!0),Ue.headers.forEach((Xn,qn)=>Ft.setRequestHeader(Xn,qn.join(","))),Ue.headers.has("Accept")||Ft.setRequestHeader("Accept","application/json, text/plain, */*"),!Ue.headers.has("Content-Type")){const Xn=Ue.detectContentTypeHeader();null!==Xn&&Ft.setRequestHeader("Content-Type",Xn)}if(Ue.responseType){const Xn=Ue.responseType.toLowerCase();Ft.responseType="json"!==Xn?Xn:"text"}const an=Ue.serializeBody();let wn=null;const pr=()=>{if(null!==wn)return wn;const Xn=Ft.statusText||"OK",qn=new j(Ft.getAllResponseHeaders()),Ur=function hn(Qe){return"responseURL"in Qe&&Qe.responseURL?Qe.responseURL:/^X-Request-URL:/m.test(Qe.getAllResponseHeaders())?Qe.getResponseHeader("X-Request-URL"):null}(Ft)||Ue.url;return wn=new $e({headers:qn,status:Ft.status,statusText:Xn,url:Ur}),wn},jr=()=>{let{headers:Xn,status:qn,statusText:Ur,url:ai}=pr(),pe=null;204!==qn&&(pe=typeof Ft.response>"u"?Ft.responseText:Ft.response),0===qn&&(qn=pe?200:0);let z=qn>=200&&qn<300;if("json"===Ue.responseType&&"string"==typeof pe){const K=pe;pe=pe.replace(Sn,"");try{pe=""!==pe?JSON.parse(pe):null}catch(D){pe=K,z&&(z=!1,pe={error:D,text:pe})}}z?(kt.next(new Ee({body:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0})),kt.complete()):kt.error(new ze({error:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0}))},Fr=Xn=>{const{url:qn}=pr(),Ur=new ze({error:Xn,status:Ft.status||0,statusText:Ft.statusText||"Unknown Error",url:qn||void 0});kt.error(Ur)};let Ar=!1;const Hr=Xn=>{Ar||(kt.next(pr()),Ar=!0);let qn={type:qe.DownloadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),"text"===Ue.responseType&&Ft.responseText&&(qn.partialText=Ft.responseText),kt.next(qn)},zr=Xn=>{let qn={type:qe.UploadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),kt.next(qn)};return Ft.addEventListener("load",jr),Ft.addEventListener("error",Fr),Ft.addEventListener("timeout",Fr),Ft.addEventListener("abort",Fr),Ue.reportProgress&&(Ft.addEventListener("progress",Hr),null!==an&&Ft.upload&&Ft.upload.addEventListener("progress",zr)),Ft.send(an),kt.next({type:qe.Sent}),()=>{Ft.removeEventListener("error",Fr),Ft.removeEventListener("abort",Fr),Ft.removeEventListener("load",jr),Ft.removeEventListener("timeout",Fr),Ue.reportProgress&&(Ft.removeEventListener("progress",Hr),null!==an&&Ft.upload&&Ft.upload.removeEventListener("progress",zr)),Ft.readyState!==Ft.DONE&&Ft.abort()}})))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.JF))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const Dn=new t.OlP("XSRF_ENABLED"),_n=new t.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),it=new t.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ut{}let Qt=(()=>{class Qe{constructor(Ue,bt,Rt){this.doc=Ue,this.platform=bt,this.cookieName=Rt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ue=this.doc.cookie||"";return Ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,B.Mx)(Ue,this.cookieName),this.lastCookieString=Ue),this.lastToken}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.K0),t.LFG(t.Lbi),t.LFG(_n))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function Cn(Qe,Le){const Ue=Qe.url.toLowerCase();if(!(0,t.f3M)(Dn)||"GET"===Qe.method||"HEAD"===Qe.method||Ue.startsWith("http://")||Ue.startsWith("https://"))return Le(Qe);const bt=(0,t.f3M)(Ut).getToken(),Rt=(0,t.f3M)(it);return null!=bt&&!Qe.headers.has(Rt)&&(Qe=Qe.clone({headers:Qe.headers.set(Rt,bt)})),Le(Qe)}var In=function(Qe){return Qe[Qe.Interceptors=0]="Interceptors",Qe[Qe.LegacyInterceptors=1]="LegacyInterceptors",Qe[Qe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Qe[Qe.NoXsrfProtection=3]="NoXsrfProtection",Qe[Qe.JsonpSupport=4]="JsonpSupport",Qe[Qe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Qe[Qe.Fetch=6]="Fetch",Qe}(In||{});function Dr(...Qe){const Le=[Q,en,zt,{provide:$,useExisting:zt},{provide:f,useExisting:en},{provide:Tt,useValue:Cn,multi:!0},{provide:Dn,useValue:!0},{provide:Ut,useClass:Qt}];for(const Ue of Qe)Le.push(...Ue.\u0275providers);return(0,t.MR2)(Le)}const Or=new t.OlP("LEGACY_INTERCEPTOR_FN");function Ir(){return function nr(Qe,Le){return{\u0275kind:Qe,\u0275providers:Le}}(In.LegacyInterceptors,[{provide:Or,useFactory:Pt},{provide:Tt,useExisting:Or,multi:!0}])}let He=(()=>{class Qe{static#e=this.\u0275fac=function(bt){return new(bt||Qe)};static#t=this.\u0275mod=t.oAB({type:Qe});static#n=this.\u0275inj=t.cJS({providers:[Dr(Ir())]})}return Qe})()},5879:(Pe,V,a)=>{"use strict";a.d(V,{$8M:()=>Va,$WT:()=>vi,$Z:()=>pm,AFp:()=>Rg,ALo:()=>qv,AaK:()=>f,AsE:()=>Qp,B6R:()=>_i,BQk:()=>xd,CHM:()=>W,CRH:()=>v0,DdM:()=>Vv,Dn7:()=>n0,EJc:()=>iT,EiD:()=>Dg,EpF:()=>o_,F$t:()=>p_,F4k:()=>a_,FYo:()=>jg,FiY:()=>Lo,G48:()=>UT,Gf:()=>m0,GfV:()=>Hg,GkF:()=>Hp,Gpc:()=>q,Gre:()=>G_,HDt:()=>H0,Hsn:()=>h_,Ikx:()=>eh,JOm:()=>Il,JVY:()=>Sa,JZr:()=>ye,KtG:()=>h,L6k:()=>Bo,LAX:()=>Hl,LFG:()=>Vt,LMc:()=>gw,LSH:()=>Gf,Lbi:()=>ep,Lck:()=>QD,MAs:()=>r_,MGl:()=>Od,MMx:()=>Nv,MR2:()=>Zf,NdJ:()=>$p,O4$:()=>Ms,Ojb:()=>Yy,OlP:()=>Gr,Oqu:()=>Jp,P3R:()=>wg,PXZ:()=>IT,Q6J:()=>Bp,QGY:()=>Vp,QbO:()=>Ky,Qsj:()=>ub,R0b:()=>qi,RDi:()=>qr,Rgc:()=>gu,SBq:()=>Qc,SDv:()=>Av,Sil:()=>aT,Suo:()=>_0,TTD:()=>yr,TgZ:()=>Sd,Tol:()=>I_,VKq:()=>$v,VuI:()=>pw,W1O:()=>D0,WD2:()=>dr,WLB:()=>Wv,XFs:()=>Et,Xpm:()=>es,Xq5:()=>Hm,Xts:()=>Zc,Y36:()=>Ql,YKP:()=>Pv,YNc:()=>e_,Yjl:()=>Vr,Yz7:()=>Je,Z0I:()=>zt,ZZ4:()=>Nh,_Bn:()=>Iv,_UZ:()=>jp,_Vd:()=>Jc,_c5:()=>tw,_uU:()=>B_,aQg:()=>Lh,c2e:()=>j0,cJS:()=>et,cg1:()=>th,dDg:()=>MT,dqk:()=>en,dwT:()=>XE,eBb:()=>sl,eFA:()=>Q0,eJc:()=>vh,ekj:()=>Kp,eoX:()=>Z0,f3M:()=>on,g9A:()=>Ng,h0i:()=>fl,hGG:()=>nw,hij:()=>Rd,iGM:()=>g0,ifc:()=>kt,ip1:()=>U0,jDz:()=>Lv,kEZ:()=>Gv,kL8:()=>nv,kcU:()=>fr,l5B:()=>zv,lG2:()=>Gi,lcZ:()=>e0,lnq:()=>Xp,lqb:()=>Uo,lri:()=>G0,mCW:()=>$l,n5z:()=>Tc,oAB:()=>Wi,oJD:()=>Cg,oxw:()=>f_,pB0:()=>sa,pZz:()=>Ji,q3G:()=>al,qFp:()=>mw,qLn:()=>xa,qOj:()=>Op,qZA:()=>Md,qbA:()=>Zv,qzn:()=>uo,rWj:()=>z0,rg0:()=>Ie,s9C:()=>Wp,sBO:()=>jT,s_b:()=>jd,soG:()=>Vd,tb:()=>Ah,tp0:()=>Ja,uIk:()=>Pp,vHH:()=>ce,vpe:()=>jo,wAp:()=>uc,xDo:()=>qp,xi3:()=>t0,xp6:()=>dm,ynx:()=>Ad,z2F:()=>hc,z3N:()=>Js,zSh:()=>Jf,zW0:()=>km,zs3:()=>bo});var t=a(8645),d=a(7394),w=a(5592),L=a(3019),p=a(5619),O=a(2096),R=a(3020),F=a(4664),P=a(3997);function B(e){for(let n in e)if(e[n]===B)return n;throw Error("Could not find renamed property on target object.")}function $(e,n){for(const r in n)n.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=n[r])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)}function j(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const M=B({__forward_ref__:B});function q(e){return e.__forward_ref__=q,e.toString=function(){return f(this())},e}function ie(e){return k(e)?e():e}function k(e){return"function"==typeof e&&e.hasOwnProperty(M)&&e.__forward_ref__===q}function Te(e){return e&&!!e.\u0275providers}const ye="https://g.co/ng/security#xss";class ce extends Error{constructor(n,r){super(function _e(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,r)),this.code=n}}function ve(e){return"string"==typeof e?e:null==e?"":String(e)}function rt(e,n){throw new ce(-201,!1)}function Xe(e,n,r,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${r} ${i} ${n} <=Actual]`))}function Je(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function et(e){return{providers:e.providers||[],imports:e.imports||[]}}function Pt(e){return dn(e,Ye)||dn(e,xt)}function zt(e){return null!==Pt(e)}function dn(e,n){return e.hasOwnProperty(n)?e[n]:null}function We(e){return e&&(e.hasOwnProperty(At)||e.hasOwnProperty(nn))?e[At]:null}const Ye=B({\u0275prov:B}),At=B({\u0275inj:B}),xt=B({ngInjectableDef:B}),nn=B({ngInjectorDef:B});var Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Et||{});let Ht;function fn(e){const n=Ht;return Ht=e,n}function Sn(e,n,r){const i=Pt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:r&Et.Optional?null:void 0!==n?n:void rt(f(e))}const en=globalThis,Or={},Ir="__NG_DI_FLAG__",Br="ngTempTokenPath",zn=/\n/gm,ot="__source";let we;function yt(e){const n=we;return we=e,n}function Wt(e,n=Et.Default){if(void 0===we)throw new ce(-203,!1);return null===we?Sn(e,void 0,n):we.get(e,n&Et.Optional?null:void 0,n)}function Vt(e,n=Et.Default){return(function Zt(){return Ht}()||Wt)(ie(e),n)}function on(e,n=Et.Default){return Vt(e,rr(n))}function rr(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ln(e){const n=[];for(let r=0;rn){g=u-1;break}}}for(;uu?"":o[Ce+1].toLowerCase();const nt=8&i?Ke:null;if(nt&&-1!==Xn(nt,Z,0)||2&i&&Z!==Ke){if(Ae(i))return!1;g=!0}}}}else{if(!g&&!Ae(i)&&!Ae(A))return!1;if(g&&Ae(A))continue;g=!1,i=A|1&i}}return Ae(i)||g}function Ae(e){return 0==(1&e)}function mt(e,n,r,i){if(null===n)return-1;let o=0;if(i||!r){let u=!1;for(;o-1)for(r++;r0?'="'+b+'"':"")+"]"}else 8&i?o+="."+g:4&i&&(o+=" "+g);else""!==o&&!Ae(g)&&(n+=ir(u,o),o=""),i=g,u=u||!Ae(i);r++}return""!==o&&(n+=ir(u,o)),n}function es(e){return bt(()=>{const n=ts(e),r={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||an,_:null,schemas:e.schemas||null,tView:null,id:""};wi(r);const i=e.dependencies;return r.directiveDefs=ui(i,!1),r.pipeDefs=ui(i,!0),r.id=function Ui(e){let n=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of r)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(r),r})}function _i(e,n,r){const i=e.\u0275cmp;i.directiveDefs=ui(n,!1),i.pipeDefs=ui(r,!0)}function Ti(e){return jn(e)||vr(e)}function hs(e){return null!==e}function Wi(e){return bt(()=>({type:e.type,bootstrap:e.bootstrap||an,declarations:e.declarations||an,imports:e.imports||an,exports:e.exports||an,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bi(e,n){if(null==e)return Ft;const r={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],u=o;Array.isArray(o)&&(u=o[1],o=o[0]),r[o]=i,n&&(n[o]=u)}return r}function Gi(e){return bt(()=>{const n=ts(e);return wi(n),n})}function Vr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function jn(e){return e[wn]||null}function vr(e){return e[pr]||null}function Sr(e){return e[jr]||null}function vi(e){const n=jn(e)||vr(e)||Sr(e);return null!==n&&n.standalone}function ci(e,n){const r=e[Fr]||null;if(!r&&!0===n)throw new Error(`Type ${f(e)} does not have '\u0275mod' property.`);return r}function ts(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Ft,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||an,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bi(e.inputs,n),outputs:Bi(e.outputs)}}function wi(e){e.features?.forEach(n=>n(e))}function ui(e,n){if(!e)return null;const r=n?Sr:Ti;return()=>("function"==typeof e?e():e).map(i=>r(i)).filter(hs)}const xr=0,Kt=1,Mn=2,hr=3,$r=4,bi=5,Nr=6,Ze=7,Ve=8,ct=9,Yt=10,Bt=11,gr=12,Si=13,Yn=14,sr=15,Wr=16,Mi=17,di=18,ns=19,bs=20,zi=21,Oi=22,Ii=23,Pi=24,Gn=25,Zi=1,rs=2,Pr=7,Ri=9,pn=11;function Ot(e){return Array.isArray(e)&&"object"==typeof e[Zi]}function qt(e){return Array.isArray(e)&&!0===e[Zi]}function Kr(e){return 0!=(4&e.flags)}function ji(e){return e.componentOffset>-1}function ms(e){return 1==(1&e.flags)}function fi(e){return!!e.template}function Hs(e){return 0!=(512&e[Mn])}function os(e,n){return e.hasOwnProperty(Ar)?e[Ar]:null}let pi=null,ls=!1;function yi(e){const n=pi;return pi=e,n}const no={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Ps(e){if(!mo(e)||e.dirty){if(!e.producerMustRecompute(e)&&!so(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function go(e){e.dirty=!0,function ro(e){if(void 0===e.liveConsumerNode)return;const n=ls;ls=!0;try{for(const r of e.liveConsumerNode)r.dirty||go(r)}finally{ls=n}}(e),e.consumerMarkedDirty?.(e)}function wo(e){return e&&(e.nextProducerIndex=0),yi(e)}function So(e,n){if(yi(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(mo(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function so(e){Rs(e);for(let n=0;n0}function Rs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ko=null;function Ie(e){const n=yi(null);try{return e()}finally{yi(n)}}const Ct=()=>{},Jt=(()=>({...no,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Ct}))();class dr{constructor(n,r,i){this.previousValue=n,this.currentValue=r,this.firstChange=i}isFirstChange(){return this.firstChange}}function yr(){return Kn}function Kn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Jn),Jr}function Jr(){const e=Ei(this),n=e?.current;if(n){const r=e.previous;if(r===Ft)e.previous=n;else for(let i in n)r[i]=n[i];e.current=null,this.ngOnChanges(n)}}function Jn(e,n,r,i){const o=this.declaredInputs[r],u=Ei(e)||function Ai(e,n){return e[ei]=n}(e,{previous:Ft,current:null}),g=u.current||(u.current={}),b=u.previous,A=b[o];g[o]=new dr(A&&A.currentValue,n,b===Ft),e[i]=n}yr.ngInherit=!0;const ei="__ngSimpleChanges__";function Ei(e){return e[ei]||null}const ti=function(e,n,r){},cs="svg",Ts="math";function er(e){for(;Array.isArray(e);)e=e[xr];return e}function li(e,n){return er(n[e])}function Di(e,n){return er(n[e.index])}function Oo(e,n){return e.data[n]}function Yi(e,n){return e[n]}function Vi(e,n){const r=n[e];return Ot(r)?r:r[xr]}function us(e,n){return null==n?null:e[n]}function Po(e){e[Mi]=0}function ma(e){1024&e[Mn]||(e[Mn]|=1024,vo(e,1))}function xi(e){1024&e[Mn]&&(e[Mn]&=-1025,vo(e,-1))}function vo(e,n){let r=e[hr];if(null===r)return;r[bi]+=n;let i=r;for(r=r[hr];null!==r&&(1===n&&1===i[bi]||-1===n&&0===i[bi]);)r[bi]+=n,i=r,r=r[hr]}const Hn={lFrame:or(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ws(){return Hn.bindingsEnabled}function Ss(){return null!==Hn.skipHydrationRootTNode}function Nt(){return Hn.lFrame.lView}function mr(){return Hn.lFrame.tView}function W(e){return Hn.lFrame.contextLView=e,e[Ve]}function h(e){return Hn.lFrame.contextLView=null,e}function v(){let e=I();for(;null!==e&&64===e.type;)e=e.parent;return e}function I(){return Hn.lFrame.currentTNode}function te(){const e=Hn.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function me(e,n){const r=Hn.lFrame;r.currentTNode=e,r.isParent=n}function Ne(){return Hn.lFrame.isParent}function Fe(){Hn.lFrame.isParent=!1}function Xt(){const e=Hn.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Tn(){return Hn.lFrame.bindingIndex}function xn(){return Hn.lFrame.bindingIndex++}function Fn(e){const n=Hn.lFrame,r=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,r}function S(e){Hn.lFrame.inI18n=e}function y(e,n){const r=Hn.lFrame;r.bindingIndex=r.bindingRootIndex=e,G(n)}function G(e){Hn.lFrame.currentDirectiveIndex=e}function Me(){return Hn.lFrame.currentQueryIndex}function at(e){Hn.lFrame.currentQueryIndex=e}function ft(e){const n=e[Kt];return 2===n.type?n.declTNode:1===n.type?e[Nr]:null}function tn(e,n,r){if(r&Et.SkipSelf){let o=n,u=e;for(;!(o=o.parent,null!==o||r&Et.Host||(o=ft(u),null===o||(u=u[Yn],10&o.type))););if(null===o)return!1;n=o,e=u}const i=Hn.lFrame=Rr();return i.currentTNode=n,i.lView=e,!0}function kn(e){const n=Rr(),r=e[Kt];Hn.lFrame=n,n.currentTNode=r.firstChild,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex,n.inI18n=!1}function Rr(){const e=Hn.lFrame,n=null===e?null:e.child;return null===n?or(e):n}function or(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function hi(){const e=Hn.lFrame;return Hn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gs=hi;function Ns(){const e=hi();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bn(){return Hn.lFrame.selectedIndex}function tr(e){Hn.lFrame.selectedIndex=e}function ar(){const e=Hn.lFrame;return Oo(e.tView,e.selectedIndex)}function Ms(){Hn.lFrame.currentNamespace=cs}function Ji(){Hn.lFrame.currentNamespace=Ts}function fr(){!function ni(){Hn.lFrame.currentNamespace=null}()}let vl=!0;function ri(){return vl}function Qi(e){vl=e}function ao(e,n){for(let r=n.directiveStart,i=n.directiveEnd;r=i)break}else n[A]<0&&(e[Mi]+=65536),(b>13>16&&(3&e[Mn])===n&&(e[Mn]+=8192,yu(b,u)):yu(b,u)}const Xo=-1;class va{constructor(n,r,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=i}}function yc(e){return e!==Xo}function Ha(e){return 32767&e}function ya(e,n){let r=function Jd(e){return e>>16}(e),i=n;for(;r>0;)i=i[Yn],r--;return i}let El=!0;function qo(e){const n=El;return El=e,n}const Dl=255,Du=5;let bc=0;const co={};function Ec(e,n){const r=Qd(e,n);if(-1!==r)return r;const i=n[Kt];i.firstCreatePass&&(e.injectorIndex=n.length,Tu(i.data,e),Tu(n,null),Tu(i.blueprint,null));const o=Dc(e,n),u=e.injectorIndex;if(yc(o)){const g=Ha(o),b=ya(o,n),A=b[Kt].data;for(let Z=0;Z<8;Z++)n[u+Z]=b[g+Z]|A[g+Z]}return n[u+8]=o,u}function Tu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Qd(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,i=null,o=n;for(;null!==o;){if(i=ii(o),null===i)return Xo;if(r++,o=o[Yn],-1!==i.injectorIndex)return i.injectorIndex|r<<16}return Xo}function wu(e,n,r){!function Cu(e,n,r){let i;"string"==typeof r?i=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(i=r[Hr]),null==i&&(i=r[Hr]=bc++);const o=i&Dl;n.data[e+(o>>Du)]|=1<=0?n&Dl:Gh:n}(r);if("function"==typeof u){if(!tn(n,e,i))return i&Et.Host?Xd(o,0,i):qd(n,r,i,o);try{let g;if(g=u(i),null!=g||i&Et.Optional)return g;rt()}finally{Gs()}}else if("number"==typeof u){let g=null,b=Qd(e,n),A=Xo,Z=i&Et.Host?n[sr][Nr]:null;for((-1===b||i&Et.SkipSelf)&&(A=-1===b?Dc(e,n):n[b+8],A!==Xo&&sf(i,!1)?(g=n[Kt],b=Ha(A),n=ya(A,n)):b=-1);-1!==b;){const ue=n[Kt];if(rf(u,b,ue.data)){const Ce=$h(b,n,r,g,i,Z);if(Ce!==co)return Ce}A=n[b+8],A!==Xo&&sf(i,n[Kt].data[b+8]===Z)&&rf(u,b,n)?(g=ue,b=Ha(A),n=ya(A,n)):b=-1}}return o}function $h(e,n,r,i,o,u){const g=n[Kt],b=g.data[e+8],ue=Cc(b,g,r,null==i?ji(b)&&El:i!=g&&0!=(3&b.type),o&Et.Host&&u===b);return null!==ue?ba(n,g,ue,b):co}function Cc(e,n,r,i,o){const u=e.providerIndexes,g=n.data,b=1048575&u,A=e.directiveStart,ue=u>>20,Ke=o?b+ue:e.directiveEnd;for(let nt=i?b:b+ue;nt=A&&St.type===r)return nt}if(o){const nt=g[A];if(nt&&fi(nt)&&nt.type===r)return A}return null}function ba(e,n,r,i){let o=e[r];const u=n.data;if(function bu(e){return e instanceof va}(o)){const g=o;g.resolving&&function be(e,n){const r=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new ce(-200,`Circular dependency in DI detected for ${e}${r}`)}(function xe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ve(e)}(u[r]));const b=qo(g.canSeeViewProviders);g.resolving=!0;const Z=g.injectImpl?fn(g.injectImpl):null;tn(e,i,Et.Default);try{o=e[r]=g.factory(void 0,u,e,i),n.firstCreatePass&&r>=i.directiveStart&&function ds(e,n,r){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:u}=n.type.prototype;if(i){const g=Kn(n);(r.preOrderHooks??=[]).push(e,g),(r.preOrderCheckHooks??=[]).push(e,g)}o&&(r.preOrderHooks??=[]).push(0-e,o),u&&((r.preOrderHooks??=[]).push(e,u),(r.preOrderCheckHooks??=[]).push(e,u))}(r,u[r],n)}finally{null!==Z&&fn(Z),qo(b),g.resolving=!1,Gs()}}return o}function rf(e,n,r){return!!(r[n+(e>>Du)]&1<{const n=e.prototype.constructor,r=n[Ar]||Su(n),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const u=o[Ar]||Su(o);if(u&&u!==r)return u;o=Object.getPrototypeOf(o)}return u=>new u})}function Su(e){return k(e)?()=>{const n=Su(ie(e));return n&&n()}:os(e)}function ii(e){const n=e[Kt],r=n.type;return 2===r?n.declTNode:1===r?e[Nr]:null}function Va(e){return function Vh(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const r=e.attrs;if(r){const i=r.length;let o=0;for(;o{const i=function $a(e){return function(...r){if(e){const i=e(...r);for(const o in i)this[o]=i[o]}}}(n);function o(...u){if(this instanceof o)return i.apply(this,u),this;const g=new o(...u);return b.annotation=g,b;function b(A,Z,ue){const Ce=A.hasOwnProperty(No)?A[No]:Object.defineProperty(A,No,{value:[]})[No];for(;Ce.length<=ue;)Ce.push(null);return(Ce[ue]=Ce[ue]||[]).push(g),A}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Za(e,n){e.forEach(r=>Array.isArray(r)?Za(r,n):n(r))}function lf(e,n,r){n>=e.length?e.push(r):e.splice(n,0,r)}function wc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Al(e,n){const r=[];for(let i=0;i=0?e[1|i]=r:(i=~i,function Qh(e,n,r,i){let o=e.length;if(o==n)e.push(r,i);else if(1===o)e.push(i,e[0]),e[0]=r;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=r,e[n+1]=i}}(e,i,n,r)),i}function xu(e,n){const r=Ka(e,n);if(r>=0)return e[1|r]}function Ka(e,n){return function Ou(e,n,r){let i=0,o=e.length>>r;for(;o!==i;){const u=i+(o-i>>1),g=e[u<n?o=u:i=u+1}return~(o<|^->||--!>|)/g,og="\u200b$1\u200b";const Vu=new Map;let $u=0;const Gu="__ngContext__";function ps(e,n){Ot(n)?(e[Gu]=n[ns],function lg(e){Vu.set(e[ns],e)}(n)):e[Gu]=n}let Nc;function zu(e,n){return Nc(e,n)}function il(e){const n=e[hr];return qt(n)?n[hr]:n}function Lc(e){return Ku(e[gr])}function Zu(e){return Ku(e[$r])}function Ku(e){for(;null!==e&&!qt(e);)e=e[$r];return e}function Ta(e,n,r,i,o){if(null!=i){let u,g=!1;qt(i)?u=i:Ot(i)&&(g=!0,i=i[xr]);const b=er(i);0===e&&null!==r?null==o?kf(n,r,b):wa(n,r,b,o||null,!0):1===e&&null!==r?wa(n,r,b,o||null,!0):2===e?function H(e,n,r){const i=Uc(e,n);i&&function yg(e,n,r,i){e.removeChild(n,r,i)}(e,i,n,r)}(n,b,g):3===e&&n.destroyNode(b),null!=u&&function sn(e,n,r,i,o){const u=r[Pr];u!==er(r)&&Ta(n,e,i,u,o);for(let b=pn;bn.replace(sg,og))}(n))}function Ll(e,n,r){return e.createElement(n,r)}function Qu(e,n){const r=e[Ri],i=r.indexOf(n);xi(n),r.splice(i,1)}function Fl(e,n){if(e.length<=pn)return;const r=pn+n,i=e[r];if(i){const o=i[Wr];null!==o&&o!==e&&Qu(o,i),n>0&&(e[r-1][$r]=i[$r]);const u=wc(e,pn+n);!function Of(e,n){Ge(e,n,n[Bt],2,null,null),n[xr]=null,n[Nr]=null}(i[Kt],i);const g=u[di];null!==g&&g.detachView(u[Kt]),i[hr]=null,i[$r]=null,i[Mn]&=-129}return i}function Fc(e,n){if(!(256&n[Mn])){const r=n[Bt];n[Ii]&&ca(n[Ii]),n[Pi]&&ca(n[Pi]),r.destroyNode&&Ge(e,n,r,3,null,null),function Ju(e){let n=e[gr];if(!n)return kl(e[Kt],e);for(;n;){let r=null;if(Ot(n))r=n[gr];else{const i=n[pn];i&&(r=i)}if(!r){for(;n&&!n[$r]&&n!==e;)Ot(n)&&kl(n[Kt],n),n=n[hr];null===n&&(n=e),Ot(n)&&kl(n[Kt],n),r=n&&n[$r]}n=r}}(n)}}function kl(e,n){if(!(256&n[Mn])){n[Mn]&=-129,n[Mn]|=256,function Ff(e,n){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let i=0;i=0?i[g]():i[-g].unsubscribe(),u+=2}else r[u].call(i[r[u+1]]);null!==i&&(n[Ze]=null);const o=n[zi];if(null!==o){n[zi]=null;for(let u=0;u-1){const{encapsulation:u}=e.data[i.directiveStart+o];if(u===kt.None||u===kt.Emulated)return null}return Di(i,r)}}function wa(e,n,r,i,o){e.insertBefore(n,r,i,o)}function kf(e,n,r){e.appendChild(n,r)}function Xu(e,n,r,i,o){null!==i?wa(e,n,r,i,o):kf(e,n,r)}function Uc(e,n){return e.parentNode(n)}function Bf(e,n,r){return qu(e,n,r)}function jc(e,n,r){return 40&e.type?Di(e,r):null}let Hc,Pn,Qr,mi,qu=jc;function l(e,n){qu=e,Hc=n}function C(e,n,r,i){const o=kc(e,i,n),u=n[Bt],b=Bf(i.parent||n[Nr],i,n);if(null!=o)if(Array.isArray(r))for(let A=0;Ae,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pn}()?.createHTML(e)||e}function qr(e){Qr=e}function gi(){if(void 0!==Qr)return Qr;if(typeof document<"u")return document;throw new ce(210,!1)}function ki(){if(void 0===mi&&(mi=null,en.trustedTypes))try{mi=en.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mi}function ks(e){return ki()?.createHTML(e)||e}function ko(e){return ki()?.createScriptURL(e)||e}class As{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ye})`}}class xs extends As{getTypeName(){return"HTML"}}class Ys extends As{getTypeName(){return"Style"}}class Bl extends As{getTypeName(){return"Script"}}class ia extends As{getTypeName(){return"URL"}}class Ul extends As{getTypeName(){return"ResourceURL"}}function Js(e){return e instanceof As?e.changingThisBreaksApplicationSecurity:e}function uo(e,n){const r=function jl(e){return e instanceof As&&e.getTypeName()||null}(e);if(null!=r&&r!==n){if("ResourceURL"===r&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${r} (see ${ye})`)}return r===n}function Sa(e){return new xs(e)}function Bo(e){return new Ys(e)}function sl(e){return new Bl(e)}function Hl(e){return new ia(e)}function sa(e){return new Ul(e)}function Vl(e){const n=new Vc(e);return function jf(){try{return!!(new window.DOMParser).parseFromString(cr(""),"text/html")}catch{return!1}}()?new Uf(n):n}class Uf{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const r=(new window.DOMParser).parseFromString(cr(n),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(n):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vc{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const r=this.inertDocument.createElement("template");return r.innerHTML=cr(n),r}}const ed=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $l(e){return(e=String(e)).match(ed)?e:"unsafe:"+e}function yo(e){const n={};for(const r of e.split(","))n[r]=!0;return n}function Ma(...e){const n={};for(const r of e)for(const i in r)r.hasOwnProperty(i)&&(n[i]=!0);return n}const $c=yo("area,br,col,hr,img,wbr"),td=yo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nd=yo("rp,rt"),Wl=Ma($c,Ma(td,yo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ma(nd,yo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ma(nd,td)),ol=yo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gc=Ma(ol,yo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),yo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),rd=yo("script,style,template");class xy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let r=n.firstChild,i=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?i=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,i&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=this.checkClobberedElement(r,r.nextSibling);if(o){r=o;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(n){const r=n.nodeName.toLowerCase();if(!Wl.hasOwnProperty(r))return this.sanitizedSomething=!0,!rd.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const r=n.nodeName.toLowerCase();Wl.hasOwnProperty(r)&&!$c.hasOwnProperty(r)&&(this.buf.push(""))}chars(n){this.buf.push(Eg(n))}checkClobberedElement(n,r){if(r&&(n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return r}}const Oy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iy=/([^\#-~ |!])/g;function Eg(e){return e.replace(/&/g,"&").replace(Oy,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Iy,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let id;function Dg(e,n){let r=null;try{id=id||Vl(e);let i=n?String(n):"";r=id.getInertBodyElement(i);let o=5,u=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=u,u=r.innerHTML,r=id.getInertBodyElement(i)}while(i!==u);return cr((new xy).sanitizeChildren(Wf(r)||r))}finally{if(r){const i=Wf(r)||r;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wf(e){return"content"in e&&function Py(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var al=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(al||{});function Cg(e){const n=zc();return n?ks(n.sanitize(al.HTML,e)||""):uo(e,"HTML")?ks(Js(e)):Dg(gi(),ve(e))}function Gf(e){const n=zc();return n?n.sanitize(al.URL,e)||"":uo(e,"URL")?Js(e):$l(ve(e))}function Tg(e){const n=zc();if(n)return ko(n.sanitize(al.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return ko(Js(e));throw new ce(904,!1)}function wg(e,n,r){return function ky(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Tg:Gf}(n,r)(e)}function zc(){const e=Nt();return e&&e[Yt].sanitizer}class Gr{constructor(n,r){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Je({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Zc=new Gr("ENVIRONMENT_INITIALIZER"),Sg=new Gr("INJECTOR",-1),Mg=new Gr("INJECTOR_DEF_TYPES");class zf{get(n,r=Or){if(r===Or){const i=new Error(`NullInjectorError: No provider for ${f(n)}!`);throw i.name="NullInjectorError",i}return r}}function Zf(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:Ag(0,e),\u0275fromNgModule:!0}}function Ag(e,...n){const r=[],i=new Set;let o;const u=g=>{r.push(g)};return Za(n,g=>{const b=g;sd(b,u,[],i)&&(o||=[],o.push(b))}),void 0!==o&&xg(o,u),r}function xg(e,n){for(let r=0;r{n(u,i)})}}function sd(e,n,r,i){if(!(e=ie(e)))return!1;let o=null,u=We(e);const g=!u&&jn(e);if(u||g){if(g&&!g.standalone)return!1;o=e}else{const A=e.ngModule;if(u=We(A),!u)return!1;o=A}const b=i.has(o);if(g){if(b)return!1;if(i.add(o),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const Z of A)sd(Z,n,r,i)}}else{if(!u)return!1;{if(null!=u.imports&&!b){let Z;i.add(o);try{Za(u.imports,ue=>{sd(ue,n,r,i)&&(Z||=[],Z.push(ue))})}finally{}void 0!==Z&&xg(Z,n)}if(!b){const Z=os(o)||(()=>new o);n({provide:o,useFactory:Z,deps:an},o),n({provide:Mg,useValue:o,multi:!0},o),n({provide:Zc,useValue:()=>Vt(o),multi:!0},o)}const A=u.providers;if(null!=A&&!b){const Z=e;Kf(A,ue=>{n(ue,Z)})}}}return o!==e&&void 0!==e.providers}function Kf(e,n){for(let r of e)Te(r)&&(r=r.\u0275providers),Array.isArray(r)?Kf(r,n):n(r)}const Uy=B({provide:String,useValue:B});function Yf(e){return null!==e&&"object"==typeof e&&Uy in e}function ll(e){return"function"==typeof e}const Jf=new Gr("Set Injector scope."),od={},Hy={};let Qf;function ad(){return void 0===Qf&&(Qf=new zf),Qf}class Uo{}class ld extends Uo{get destroyed(){return this._destroyed}constructor(n,r,i,o){super(),this.parent=r,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qf(n,g=>this.processProvider(g)),this.records.set(Sg,Gl(void 0,this)),o.has("environment")&&this.records.set(Uo,Gl(void 0,this));const u=this.records.get(Jf);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(Mg.multi,an,Et.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const r=yt(this),i=fn(void 0);try{return n()}finally{yt(r),fn(i)}}get(n,r=Or,i=Et.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(zr))return n[zr](this);i=rr(i);const u=yt(this),g=fn(void 0);try{if(!(i&Et.SkipSelf)){let A=this.records.get(n);if(void 0===A){const Z=function zy(e){return"function"==typeof e||"object"==typeof e&&e instanceof Gr}(n)&&Pt(n);A=Z&&this.injectableDefInScope(Z)?Gl(Xf(n),od):null,this.records.set(n,A)}if(null!=A)return this.hydrate(n,A)}return(i&Et.Self?ad():this.parent).get(n,r=i&Et.Optional&&r===Or?null:r)}catch(b){if("NullInjectorError"===b.name){if((b[Br]=b[Br]||[]).unshift(f(n)),u)throw b;return function Le(e,n,r,i){const o=e[Br];throw n[ot]&&o.unshift(n[ot]),e.message=function Ue(e,n,r,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=f(n);if(Array.isArray(n))o=n.map(f).join(" -> ");else if("object"==typeof n){let u=[];for(let g in n)if(n.hasOwnProperty(g)){let b=n[g];u.push(g+":"+("string"==typeof b?JSON.stringify(b):f(b)))}o=`{${u.join(", ")}}`}return`${r}${i?"("+i+")":""}[${o}]: ${e.replace(zn,"\n ")}`}("\n"+e.message,o,r,i),e.ngTokenPath=o,e[Br]=null,e}(b,n,"R3InjectorError",this.source)}throw b}finally{fn(g),yt(u)}}resolveInjectorInitializers(){const n=yt(this),r=fn(void 0);try{const o=this.get(Zc.multi,an,Et.Self);for(const u of o)u()}finally{yt(n),fn(r)}}toString(){const n=[],r=this.records;for(const i of r.keys())n.push(f(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ce(205,!1)}processProvider(n){let r=ll(n=ie(n))?n:ie(n&&n.provide);const i=function $y(e){return Yf(e)?Gl(void 0,e.useValue):Gl(Pg(e),od)}(n);if(ll(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Gl(void 0,od,!0),o.factory=()=>ln(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,i)}hydrate(n,r){return r.value===od&&(r.value=Hy,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Gy(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(n){if(!n.providedIn)return!1;const r=ie(n.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(n){const r=this._onDestroyHooks.indexOf(n);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Xf(e){const n=Pt(e),r=null!==n?n.factory:os(e);if(null!==r)return r;if(e instanceof Gr)throw new ce(204,!1);if(e instanceof Function)return function Vy(e){const n=e.length;if(n>0)throw Al(n,"?"),new ce(204,!1);const r=function Rn(e){return e&&(e[Ye]||e[xt])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new ce(204,!1)}function Pg(e,n,r){let i;if(ll(e)){const o=ie(e);return os(o)||Xf(o)}if(Yf(e))i=()=>ie(e.useValue);else if(function Ig(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...ln(e.deps||[]));else if(function Og(e){return!(!e||!e.useExisting)}(e))i=()=>Vt(ie(e.useExisting));else{const o=ie(e&&(e.useClass||e.provide));if(!function Wy(e){return!!e.deps}(e))return os(o)||Xf(o);i=()=>new o(...ln(e.deps))}return i}function Gl(e,n,r=!1){return{factory:e,value:n,multi:r?[]:void 0}}function qf(e,n){for(const r of e)Array.isArray(r)?qf(r,n):r&&Te(r)?qf(r.\u0275providers,n):n(r)}const Rg=new Gr("AppId",{providedIn:"root",factory:()=>Zy}),Zy="ng",Ng=new Gr("Platform Initializer"),ep=new Gr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ky=new Gr("AnimationModuleType"),Yy=new Gr("CSP nonce",{providedIn:"root",factory:()=>gi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Lg=(e,n,r)=>null;function lp(e,n,r=!1){return Lg(e,n,r)}class sb{}class Bg{}class ab{resolveComponentFactory(n){throw function ob(e){const n=Error(`No component factory found for ${f(e)}.`);return n.ngComponent=e,n}(n)}}let Jc=(()=>{class e{static#e=this.NULL=new ab}return e})();function lb(){return Kl(v(),Nt())}function Kl(e,n){return new Qc(Di(e,n))}let Qc=(()=>{class e{constructor(r){this.nativeElement=r}static#e=this.__NG_ELEMENT_ID__=lb}return e})();function cb(e){return e instanceof Qc?e.nativeElement:e}class jg{}let ub=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function db(){const e=Nt(),r=Vi(v().index,e);return(Ot(r)?r:e)[Bt]}()}return e})(),fb=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>null})}return e})();class Hg{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const pb=new Hg("16.2.10"),dp={};function Gg(e,n=null,r=null,i){const o=zg(e,n,r,i);return o.resolveInjectorInitializers(),o}function zg(e,n=null,r=null,i,o=new Set){const u=[r||an,By(e)];return i=i||("object"==typeof e?void 0:f(e)),new ld(u,n||ad(),i||null,o)}let bo=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Or;static#t=this.NULL=new zf;static create(r,i){if(Array.isArray(r))return Gg({name:""},i,r,"");{const o=r.name??"";return Gg({name:o},r.parent,r.providers,o)}}static#n=this.\u0275prov=Je({token:e,providedIn:"any",factory:()=>Vt(Sg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function pp(e){return e.ngOriginalError}class xa{constructor(){this._console=console}handleError(n){const r=this._findOriginalError(n);this._console.error("ERROR",n),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(n){let r=n&&pp(n);for(;r&&pp(r);)r=pp(r);return r||null}}function gp(e){return n=>{setTimeout(e,void 0,n)}}const jo=class bb extends t.x{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,r,i){let o=n,u=r||(()=>null),g=i;if(n&&"object"==typeof n){const A=n;o=A.next?.bind(A),u=A.error?.bind(A),g=A.complete?.bind(A)}this.__isAsync&&(u=gp(u),o&&(o=gp(o)),g&&(g=gp(g)));const b=super.subscribe({next:o,error:u,complete:g});return n instanceof d.w0&&n.add(b),b}};function Kg(...e){}class qi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jo(!1),this.onMicrotaskEmpty=new jo(!1),this.onStable=new jo(!1),this.onError=new jo(!1),typeof Zone>"u")throw new ce(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Eb(){const e="function"==typeof en.requestAnimationFrame;let n=en[e?"requestAnimationFrame":"setTimeout"],r=en[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&r){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function Tb(e){const n=()=>{!function Cb(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(en,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_p(e),e.isCheckStableRunning=!0,mp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_p(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,i,o,u,g,b)=>{if(function Sb(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(b))return r.invokeTask(o,u,g,b);try{return Yg(e),r.invokeTask(o,u,g,b)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||e.shouldCoalesceRunChangeDetection)&&n(),Jg(e)}},onInvoke:(r,i,o,u,g,b,A)=>{try{return Yg(e),r.invoke(o,u,g,b,A)}finally{e.shouldCoalesceRunChangeDetection&&n(),Jg(e)}},onHasTask:(r,i,o,u)=>{r.hasTask(o,u),i===o&&("microTask"==u.change?(e._hasPendingMicrotasks=u.microTask,_p(e),mp(e)):"macroTask"==u.change&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(r,i,o,u)=>(r.handleError(o,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qi.isInAngularZone())throw new ce(909,!1)}static assertNotInAngularZone(){if(qi.isInAngularZone())throw new ce(909,!1)}run(n,r,i){return this._inner.run(n,r,i)}runTask(n,r,i,o){const u=this._inner,g=u.scheduleEventTask("NgZoneEvent: "+o,n,Db,Kg,Kg);try{return u.runTask(g,r,i)}finally{u.cancelTask(g)}}runGuarded(n,r,i){return this._inner.runGuarded(n,r,i)}runOutsideAngular(n){return this._outer.run(n)}}const Db={};function mp(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _p(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Yg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jg(e){e._nesting--,mp(e)}class wb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jo,this.onMicrotaskEmpty=new jo,this.onStable=new jo,this.onError=new jo}run(n,r,i){return n.apply(r,i)}runGuarded(n,r,i){return n.apply(r,i)}runOutsideAngular(n){return n()}runTask(n,r,i,o){return n.apply(r,i)}}const Qg=new Gr("",{providedIn:"root",factory:Xg});function Xg(){const e=on(qi);let n=!0;const r=new w.y(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),i=new w.y(o=>{let u;e.runOutsideAngular(()=>{u=e.onStable.subscribe(()=>{qi.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const g=e.onUnstable.subscribe(()=>{qi.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{u.unsubscribe(),g.unsubscribe()}});return(0,L.T)(r,i.pipe((0,R.B)()))}function oa(e){return e instanceof Function?e():e}let vp=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function Xc(e){for(;e;){e[Mn]|=64;const n=il(e);if(Hs(e)&&!n)return e;e=n}return null}const rm=new Gr("",{providedIn:"root",factory:()=>!1});let gd=null;function am(e,n){return e[n]??um()}function lm(e,n){const r=um();r.producerNode?.length&&(e[n]=gd,r.lView=e,gd=cm())}const Fb={...no,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Xc(e.lView)},lView:null};function cm(){return Object.create(Fb)}function um(){return gd??=cm(),gd}const ur={};function dm(e){fm(mr(),Nt(),bn()+e,!1)}function fm(e,n,r,i){if(!i)if(3==(3&n[Mn])){const u=e.preOrderCheckHooks;null!==u&&lo(n,u,r)}else{const u=e.preOrderHooks;null!==u&&Qo(n,u,0,r)}tr(r)}function Ql(e,n=Et.Default){const r=Nt();return null===r?Vt(e,n):ef(v(),r,ie(e),n)}function pm(){throw new Error("invalid")}function md(e,n,r,i,o,u,g,b,A,Z,ue){const Ce=n.blueprint.slice();return Ce[xr]=o,Ce[Mn]=140|i,(null!==Z||e&&2048&e[Mn])&&(Ce[Mn]|=2048),Po(Ce),Ce[hr]=Ce[Yn]=e,Ce[Ve]=r,Ce[Yt]=g||e&&e[Yt],Ce[Bt]=b||e&&e[Bt],Ce[ct]=A||e&&e[ct]||null,Ce[Nr]=u,Ce[ns]=function ag(){return $u++}(),Ce[Oi]=ue,Ce[bs]=Z,Ce[sr]=2==n.type?e[sr]:Ce,Ce}function Xl(e,n,r,i,o){let u=e.data[n];if(null===u)u=yp(e,n,r,i,o),function E(){return Hn.lFrame.inI18n}()&&(u.flags|=32);else if(64&u.type){u.type=r,u.value=i,u.attrs=o;const g=te();u.injectorIndex=null===g?-1:g.injectorIndex}return me(u,!0),u}function yp(e,n,r,i,o){const u=I(),g=Ne(),A=e.data[n]=function Wb(e,n,r,i,o,u){let g=n?n.injectorIndex:-1,b=0;return Ss()&&(b|=128),{type:r,index:i,insertBeforeIndex:null,injectorIndex:g,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:b,providerIndexes:0,value:o,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,g?u:u&&u.parent,r,n,i,o);return null===e.firstChild&&(e.firstChild=A),null!==u&&(g?null==u.child&&null!==A.parent&&(u.child=A):null===u.next&&(u.next=A,A.prev=u)),A}function qc(e,n,r,i){if(0===r)return-1;const o=n.length;for(let u=0;uGn&&fm(e,n,Gn,!1),ti(b?2:0,o);const Z=b?u:null,ue=wo(Z);try{null!==Z&&(Z.dirty=!1),r(i,o)}finally{So(Z,ue)}}finally{b&&null===n[Ii]&&lm(n,Ii),tr(g),ti(b?3:1,o)}}function bp(e,n,r){if(Kr(n)){const i=yi(null);try{const u=n.directiveEnd;for(let g=n.directiveStart;gnull;function _m(e,n,r,i){for(let o in e)if(e.hasOwnProperty(o)){r=null===r?{}:r;const u=e[o];null===i?vm(r,n,o,u):i.hasOwnProperty(o)&&vm(r,n,i[o],u)}return r}function vm(e,n,r,i){e.hasOwnProperty(r)?e[r].push(n,i):e[r]=[n,i]}function Qs(e,n,r,i,o,u,g,b){const A=Di(n,r);let ue,Z=n.inputs;!b&&null!=Z&&(ue=Z[i])?(Ap(e,r,ue,i,o),ji(n)&&function Zb(e,n){const r=Vi(n,e);16&r[Mn]||(r[Mn]|=64)}(r,n.index)):3&n.type&&(i=function zb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=g?g(o,n.value||"",i):o,u.setProperty(A,i,o))}function Tp(e,n,r,i){if(Ws()){const o=null===i?null:{"":-1},u=function qb(e,n){const r=e.directiveRegistry;let i=null,o=null;if(r)for(let u=0;u0;){const r=e[--n];if("number"==typeof r&&r<0)return r}return 0})(g)!=b&&g.push(b),g.push(r,i,u)}}(e,n,i,qc(e,r,o.hostVars,ur),o)}function Ho(e,n,r,i,o,u){const g=Di(e,n);!function Sp(e,n,r,i,o,u,g){if(null==u)e.removeAttribute(n,o,r);else{const b=null==g?ve(u):g(u,i||"",o);e.setAttribute(n,o,b,r)}}(n[Bt],g,u,e.value,r,i,o)}function s1(e,n,r,i,o,u){const g=u[n];if(null!==g)for(let b=0;b{class e{constructor(){this.all=new Set,this.queue=new Map}create(r,i,o){const u=typeof Zone>"u"?null:Zone.current,g=function gt(e,n,r){const i=Object.create(Jt);r&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const o=g=>{i.cleanupFn=g};return i.ref={notify:()=>go(i),run:()=>{if(i.dirty=!1,i.hasRun&&!so(i))return;i.hasRun=!0;const g=wo(i);try{i.cleanupFn(),i.cleanupFn=Ct,i.fn(o)}finally{So(i,g)}},cleanup:()=>i.cleanupFn()},i.ref}(r,Z=>{this.all.has(Z)&&this.queue.set(Z,u)},o);let b;this.all.add(g),g.notify();const A=()=>{g.cleanup(),b?.(),this.all.delete(g),this.queue.delete(g)};return b=i?.onDestroy(A),{destroy:A}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function vd(e,n,r){let i=r?e.styles:null,o=r?e.classes:null,u=0;if(null!==n)for(let g=0;g0){Im(e,1);const o=r.components;null!==o&&Rm(e,o,1)}}function Rm(e,n,r){for(let i=0;i-1&&(Fl(n,i),wc(r,i))}this._attachedToViewContainer=!1}Fc(this._lView[Kt],this._lView)}onDestroy(n){!function Fa(e,n){if(256==(256&e[Mn]))throw new ce(911,!1);null===e[zi]&&(e[zi]=[]),e[zi].push(n)}(this._lView,n)}markForCheck(){Xc(this._cdRefInjectingView||this._lView)}detach(){this._lView[Mn]&=-129}reattach(){this._lView[Mn]|=128}detectChanges(){yd(this._lView[Kt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pf(e,n){Ge(e,n,n[Bt],2,null,null)}(this._lView[Kt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ce(902,!1);this._appRef=n}}class h1 extends tu{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;yd(n[Kt],n,n[Ve],!1)}checkNoChanges(){}get context(){return null}}class Nm extends Jc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const r=jn(n);return new nu(r,this.ngModule)}}function Lm(e){const n=[];for(let r in e)e.hasOwnProperty(r)&&n.push({propName:e[r],templateName:r});return n}class m1{constructor(n,r){this.injector=n,this.parentInjector=r}get(n,r,i){i=rr(i);const o=this.injector.get(n,dp,i);return o!==dp||r===dp?o:this.parentInjector.get(n,r,i)}}class nu extends Bg{get inputs(){const n=this.componentDef,r=n.inputTransforms,i=Lm(n.inputs);if(null!==r)for(const o of i)r.hasOwnProperty(o.propName)&&(o.transform=r[o.propName]);return i}get outputs(){return Lm(this.componentDef.outputs)}constructor(n,r){super(),this.componentDef=n,this.ngModule=r,this.componentType=n.type,this.selector=function Zr(e){return e.map(_r).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!r}create(n,r,i,o){let u=(o=o||this.ngModule)instanceof Uo?o:o?.injector;u&&null!==this.componentDef.getStandaloneInjector&&(u=this.componentDef.getStandaloneInjector(u)||u);const g=u?new m1(n,u):n,b=g.get(jg,null);if(null===b)throw new ce(407,!1);const Ce={rendererFactory:b,sanitizer:g.get(fb,null),effectManager:g.get(Am,null),afterRenderEventManager:g.get(vp,null)},Ke=b.createRenderer(null,this.componentDef),nt=this.componentDef.selectors[0][0]||"div",St=i?function Ub(e,n,r,i){const u=i.get(rm,!1)||r===kt.ShadowDom,g=e.selectRootElement(n,u);return function jb(e){mm(e)}(g),g}(Ke,i,this.componentDef.encapsulation,g):Ll(Ke,nt,function g1(e){const n=e.toLowerCase();return"svg"===n?cs:"math"===n?Ts:null}(nt)),Ln=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Lt=null;null!==St&&(Lt=lp(St,g,!0));const Qn=Cp(0,null,null,1,0,null,null,null,null,null,null),Tr=md(null,Qn,null,Ln,null,null,Ce,Ke,g,null,Lt);let Xr,js;kn(Tr);try{const la=this.componentDef;let gc,kh=null;la.findHostDirectiveDefs?(gc=[],kh=new Map,la.findHostDirectiveDefs(la,gc,kh),gc.push(la)):gc=[la];const _w=function v1(e,n){const r=e[Kt],i=Gn;return e[i]=n,Xl(r,i,2,"#host",null)}(Tr,St),vw=function y1(e,n,r,i,o,u,g){const b=o[Kt];!function b1(e,n,r,i){for(const o of e)n.mergedAttrs=pe(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(vd(n,n.mergedAttrs,!0),null!==r&&lr(i,r,n))}(i,e,n,g);let A=null;null!==n&&(A=lp(n,o[ct]));const Z=u.rendererFactory.createRenderer(n,r);let ue=16;r.signals?ue=4096:r.onPush&&(ue=64);const Ce=md(o,gm(r),null,ue,o[e.index],e,u,Z,null,null,A);return b.firstCreatePass&&wp(b,e,i.length-1),_d(o,Ce),o[e.index]=Ce}(_w,St,la,gc,Tr,Ce,Ke);js=Oo(Qn,Gn),St&&function D1(e,n,r,i){if(i)qn(e,r,["ng-version",pb.full]);else{const{attrs:o,classes:u}=function Yr(e){const n=[],r=[];let i=1,o=2;for(;i0&&Mr(e,r,u.join(" "))}}(Ke,la,St,i),void 0!==r&&function C1(e,n,r){const i=e.projection=[];for(let o=0;o=0;i--){const o=e[i];o.hostVars=n+=o.hostVars,o.hostAttrs=pe(o.hostAttrs,r=pe(r,o.hostAttrs))}}(i)}function bd(e){return e===Ft?{}:e===an?[]:e}function S1(e,n){const r=e.viewQuery;e.viewQuery=r?(i,o)=>{n(i,o),r(i,o)}:n}function M1(e,n){const r=e.contentQueries;e.contentQueries=r?(i,o,u)=>{n(i,o,u),r(i,o,u)}:n}function A1(e,n){const r=e.hostBindings;e.hostBindings=r?(i,o)=>{n(i,o),r(i,o)}:n}function km(e){return n=>{n.findHostDirectiveDefs=Bm,n.hostDirectives=(Array.isArray(e)?e:e()).map(r=>"function"==typeof r?{directive:ie(r),inputs:Ft,outputs:Ft}:{directive:ie(r.directive),inputs:Um(r.inputs),outputs:Um(r.outputs)})}}function Bm(e,n,r){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const o=vr(i.directive);P1(o.declaredInputs,i.inputs),Bm(o,n,r),r.set(o,i),n.push(o)}}function Um(e){if(void 0===e||0===e.length)return Ft;const n={};for(let r=0;r(Qi(!0),Ll(i,o,function Jo(){return Hn.lFrame.currentNamespace}()));function Ad(e,n,r){const i=Nt(),o=mr(),u=e+Gn,g=o.firstCreatePass?function sE(e,n,r,i,o){const u=n.consts,g=us(u,i),b=Xl(n,e,8,"ng-container",g);return null!==g&&vd(b,g,!0),Tp(n,r,b,us(u,o)),null!==n.queries&&n.queries.elementStart(n,b),b}(u,o,i,n,r):o.data[u];me(g,!0);const b=s_(o,i,g,e);return i[u]=b,ri()&&C(o,i,b,g),ps(b,i),ms(g)&&(Ep(o,i,g),bp(o,g,i)),null!=r&&Dp(i,g),Ad}function xd(){let e=v();const n=mr();return Ne()?Fe():(e=e.parent,me(e,!1)),n.firstCreatePass&&(ao(n,e),Kr(e)&&n.queries.elementEnd(e)),xd}function Hp(e,n,r){return Ad(e,n,r),xd(),Hp}let s_=(e,n,r,i)=>(Qi(!0),Nl(n[Bt],""));function o_(){return Nt()}function Vp(e){return!!e&&"function"==typeof e.then}function a_(e){return!!e&&"function"==typeof e.subscribe}function $p(e,n,r,i){const o=Nt(),u=mr(),g=v();return function c_(e,n,r,i,o,u,g){const b=ms(i),Z=e.firstCreatePass&&wm(e),ue=n[Ve],Ce=Tm(n);let Ke=!0;if(3&i.type||g){const jt=Di(i,n),gn=g?g(jt):jt,Ln=Ce.length,Lt=g?Tr=>g(er(Tr[i.index])):i.index;let Qn=null;if(!g&&b&&(Qn=function lE(e,n,r,i){const o=e.cleanup;if(null!=o)for(let u=0;uA?b[A]:null}"string"==typeof g&&(u+=2)}return null}(e,n,o,i.index)),null!==Qn)(Qn.__ngLastListenerFn__||Qn).__ngNextListenerFn__=u,Qn.__ngLastListenerFn__=u,Ke=!1;else{u=d_(i,n,ue,u,!1);const Tr=r.listen(gn,o,u);Ce.push(u,Tr),Z&&Z.push(o,Lt,Ln,Ln+1)}}else u=d_(i,n,ue,u,!1);const nt=i.outputs;let St;if(Ke&&null!==nt&&(St=nt[o])){const jt=St.length;if(jt)for(let gn=0;gn-1?Vi(e.index,n):n);let A=u_(n,r,i,g),Z=u.__ngNextListenerFn__;for(;Z;)A=u_(n,r,Z,g)&&A,Z=Z.__ngNextListenerFn__;return o&&!1===A&&g.preventDefault(),A}}function f_(e=1){return function mn(e){return(Hn.lFrame.contextLView=function On(e,n){for(;e>0;)n=n[Yn],e--;return n}(e,Hn.lFrame.contextLView))[Ve]}(e)}function cE(e,n){let r=null;const i=function cn(e){const n=e.attrs;if(null!=n){const r=n.indexOf(5);if(!(1&r))return n[r+1]}return null}(e);for(let o=0;o>17&32767}function Gp(e){return 2|e}function ul(e){return(131068&e)>>2}function zp(e,n){return-131069&e|n<<2}function Zp(e){return 1|e}function C_(e,n,r,i,o){const u=e[r+1],g=null===n;let b=i?Oa(u):ul(u),A=!1;for(;0!==b&&(!1===A||g);){const ue=e[b+1];gE(e[b],n)&&(A=!0,e[b+1]=i?Zp(ue):Gp(ue)),b=i?Oa(ue):ul(ue)}A&&(e[r+1]=i?Gp(u):Zp(u))}function gE(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ka(e,n)>=0}const $i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T_(e){return e.substring($i.key,$i.keyEnd)}function w_(e,n){const r=$i.textEnd;return r===n?-1:(n=$i.keyEnd=function yE(e,n,r){for(;n32;)n++;return n}(e,$i.key=n,r),lc(e,n,r))}function lc(e,n,r){for(;n=0;r=w_(n,r))Fs(e,T_(n),!0)}function Do(e,n,r,i){const o=mr(),u=Fn(2);o.firstUpdatePass&&R_(o,null,u,i);const g=Nt();if(r!==ur&&vs(g,u,r)){const b=o.data[bn()];if(k_(b,i)&&!P_(o,u)){let A=i?b.classesWithoutHost:b.stylesWithoutHost;null!==A&&(r=j(A,r||"")),Up(o,b,g,r,i)}else!function xE(e,n,r,i,o,u,g,b){o===ur&&(o=an);let A=0,Z=0,ue=0=e.expandoStartIndex}function R_(e,n,r,i){const o=e.data;if(null===o[r+1]){const u=o[bn()],g=P_(e,r);k_(u,i)&&null===n&&!g&&(n=!1),n=function CE(e,n,r,i){const o=function he(e){const n=Hn.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let u=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(r=au(r=Yp(null,e,n,r,i),n.attrs,i),u=null);else{const g=n.directiveStylingLast;if(-1===g||e[g]!==o)if(r=Yp(o,e,n,r,i),null===u){let A=function TE(e,n,r){const i=r?n.classBindings:n.styleBindings;if(0!==ul(i))return e[Oa(i)]}(e,n,i);void 0!==A&&Array.isArray(A)&&(A=Yp(null,e,n,A[1],i),A=au(A,n.attrs,i),function wE(e,n,r,i){e[Oa(r?n.classBindings:n.styleBindings)]=i}(e,n,i,A))}else u=function SE(e,n,r){let i;const o=n.directiveEnd;for(let u=1+n.directiveStylingLast;u0)&&(Z=!0)):ue=r,o)if(0!==A){const Ke=Oa(e[b+1]);e[i+1]=Id(Ke,b),0!==Ke&&(e[Ke+1]=zp(e[Ke+1],i)),e[b+1]=function dE(e,n){return 131071&e|n<<17}(e[b+1],i)}else e[i+1]=Id(b,0),0!==b&&(e[b+1]=zp(e[b+1],i)),b=i;else e[i+1]=Id(A,0),0===b?b=i:e[A+1]=zp(e[A+1],i),A=i;Z&&(e[i+1]=Gp(e[i+1])),C_(e,ue,i,!0),C_(e,ue,i,!1),function hE(e,n,r,i,o){const u=o?e.residualClasses:e.residualStyles;null!=u&&"string"==typeof n&&Ka(u,n)>=0&&(r[i+1]=Zp(r[i+1]))}(n,ue,e,i,u),g=Id(b,A),u?n.classBindings=g:n.styleBindings=g}(o,u,n,r,g,i)}}function Yp(e,n,r,i,o){let u=null;const g=r.directiveEnd;let b=r.directiveStylingLast;for(-1===b?b=r.directiveStart:b++;b0;){const A=e[o],Z=Array.isArray(A),ue=Z?A[1]:A,Ce=null===ue;let Ke=r[o+1];Ke===ur&&(Ke=Ce?an:void 0);let nt=Ce?xu(Ke,i):ue===i?Ke:void 0;if(Z&&!Pd(nt)&&(nt=xu(A,i)),Pd(nt)&&(b=nt,g))return b;const St=e[o+1];o=g?Oa(St):ul(St)}if(null!==n){let A=u?n.residualClasses:n.residualStyles;null!=A&&(b=xu(A,i))}return b}function Pd(e){return void 0!==e}function k_(e,n){return 0!=(e.flags&(n?8:16))}function B_(e,n=""){const r=Nt(),i=mr(),o=e+Gn,u=i.firstCreatePass?Xl(i,o,1,n,null):i.data[o],g=U_(i,r,u,n,e);r[o]=g,ri()&&C(i,r,g,u),me(u,!1)}let U_=(e,n,r,i,o)=>(Qi(!0),Rl(n[Bt],i));function Jp(e){return Rd("",e,""),Jp}function Rd(e,n,r){const i=Nt(),o=ec(i,e,n,r);return o!==ur&&aa(i,bn(),o),Rd}function Qp(e,n,r,i,o){const u=Nt(),g=function tc(e,n,r,i,o,u){const b=cl(e,Tn(),r,o);return Fn(2),b?n+ve(r)+i+ve(o)+u:ur}(u,e,n,r,i,o);return g!==ur&&aa(u,bn(),g),Qp}function Xp(e,n,r,i,o,u,g){const b=Nt(),A=function nc(e,n,r,i,o,u,g,b){const Z=Dd(e,Tn(),r,o,g);return Fn(3),Z?n+ve(r)+i+ve(o)+u+ve(g)+b:ur}(b,e,n,r,i,o,u,g);return A!==ur&&aa(b,bn(),A),Xp}function qp(e,n,r,i,o,u,g,b,A,Z,ue){const Ce=Nt(),Ke=function ic(e,n,r,i,o,u,g,b,A,Z,ue,Ce){const Ke=Tn();let nt=fo(e,Ke,r,o,g,A);return nt=vs(e,Ke+4,ue)||nt,Fn(5),nt?n+ve(r)+i+ve(o)+u+ve(g)+b+ve(A)+Z+ve(ue)+Ce:ur}(Ce,e,n,r,i,o,u,g,b,A,Z,ue);return Ke!==ur&&aa(Ce,bn(),Ke),qp}function G_(e,n,r){Do(Fs,Wo,ec(Nt(),e,n,r),!0)}function eh(e,n,r){const i=Nt();return vs(i,xn(),n)&&Qs(mr(),ar(),i,e,n,i[Bt],r,!0),eh}const dl=void 0;var QE=["en",[["a","p"],["AM","PM"],dl],[["AM","PM"],dl,dl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],dl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],dl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",dl,"{1} 'at' {0}",dl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function JE(e){const r=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===i?1:5}];let cc={};function XE(e,n,r){"string"!=typeof n&&(r=n,n=e[uc.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),cc[n]=e,r&&(cc[n][uc.ExtraData]=r)}function th(e){const n=function qE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=rv(n);if(r)return r;const i=n.split("-")[0];if(r=rv(i),r)return r;if("en"===i)return QE;throw new ce(701,!1)}function nv(e){return th(e)[uc.PluralCase]}function rv(e){return e in cc||(cc[e]=en.ng&&en.ng.common&&en.ng.common.locales&&en.ng.common.locales[e]),cc[e]}var uc=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(uc||{});const dc="en-US",Nd={marker:"element"},Ld={marker:"ICU"};var Bs=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(Bs||{});let iv=dc;function sv(e){(function je(e,n){null==e&&Xe(n,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(iv=e.toLowerCase().replace(/_/g,"-"))}function ov(e,n,r){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?jc(e,0,r):er(r[o])}function av(e,n,r,i,o){const u=n.insertBeforeIndex;if(Array.isArray(u)){let g=i,b=null;if(3&n.type||(b=g,g=o),null!==g&&-1===n.componentOffset)for(let A=1;A1)for(let r=e.length-2;r>=0;r--){const i=e[r];cv(i)||iD(i,n)&&null===sD(i)&&oD(i,n.index)}}function cv(e){return!(64&e.type)}function iD(e,n){return cv(n)||e.index>n.index}function sD(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function oD(e,n){const r=e.insertBeforeIndex;Array.isArray(r)?r[0]=n:(l(ov,av),e.insertBeforeIndex=n)}function cD(e,n,r){const i=yp(e,r,64,null,null);return lv(n,i),i}function mD(){const e=[];let r,i,n=-1;function u(b,A){n=0;const Z=function Fd(e,n){const r=n[e.currentCaseLViewIndex];return null===r?r:r<0?~r:r}(b,A);i=null!==Z?b.remove[Z]:an}function g(){if(n0?r[b]:(e.push(n,i),u(r[Kt].data[~b],r),g())}return 0===e.length?null:(i=e.pop(),n=e.pop(),g())}return function o(b,A){for(r=A;e.length;)e.pop();return u(b.value,A),g}}const kd=/\ufffd(\d+):?\d*\ufffd/gi,vD=/\ufffd(\d+)\ufffd/,vv=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,du="\ufffd",yD=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,bD=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,ED=/\uE500/g;function yv(e,n,r,i,o,u,g){const b=qc(e,i,1,null);let A=b<r.length&&r.push(A)}return{type:i,mainBinding:o,cases:n,values:r}}function nh(e){if(!e)return[];let n=0;const r=[],i=[],o=/[{}]/g;let u;for(o.lastIndex=0;u=o.exec(e);){const b=u.index;if("}"==u[0]){if(r.pop(),0==r.length){const A=e.substring(n,b);vv.test(A)?i.push(xD(A)):i.push(A),n=b+1}}else{if(0==r.length){const A=e.substring(n,b);i.push(A),n=b+1}r.push("{")}}const g=e.substring(n);return i.push(g),i}function OD(e,n,r,i,o,u,g,b){const A=[],Z=[],ue=[];n.cases.push(u),n.create.push(A),n.remove.push(Z),n.update.push(ue);const Ke=Vl(gi()).getInertBodyElement(g),nt=Wf(Ke)||Ke;return nt?Cv(e,n,r,i,A,Z,ue,nt,o,b,0):0}function Cv(e,n,r,i,o,u,g,b,A,Z,ue){let Ce=0,Ke=b.firstChild;for(;Ke;){const nt=qc(e,r,1,null);switch(Ke.nodeType){case Node.ELEMENT_NODE:const St=Ke,jt=St.tagName.toLowerCase();if(Wl.hasOwnProperty(jt)){rh(o,Nd,jt,A,nt),e.data[nt]=jt;const Qn=St.attributes;for(let Tr=0;Tr>>Bs.SHIFT;let Ce=e[ue];null===Ce&&(Ce=e[ue]=(g&Bs.COMMENT)===Bs.COMMENT?o.createComment(b):Rl(o,b)),Z&&null!==r&&wa(o,r,Ce,i,!1)}})(o,A.create,ue,b&&8&b.type?o[b.index]:null),S(!0)}function Av(e,n,r){Sv(e,n,r),function Mv(){S(!1)}()}function ih(e,n,r,i,o){if(e=ie(e),Array.isArray(e))for(let u=0;u>20;if(ll(e)||!e.multi){const nt=new va(Z,o,Ql),St=oh(A,n,o?ue:ue+Ke,Ce);-1===St?(wu(Ec(b,g),u,A),sh(u,e,n.length),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(nt),g.push(nt)):(r[St]=nt,g[St]=nt)}else{const nt=oh(A,n,ue+Ke,Ce),St=oh(A,n,ue,ue+Ke),gn=St>=0&&r[St];if(o&&!gn||!o&&!(nt>=0&&r[nt])){wu(Ec(b,g),u,A);const Ln=function JD(e,n,r,i,o){const u=new va(e,r,Ql);return u.multi=[],u.index=n,u.componentProviders=0,Ov(u,o,i&&!r),u}(o?YD:KD,r.length,o,i,Z);!o&&gn&&(r[St].providerFactory=Ln),sh(u,e,n.length,0),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(Ln),g.push(Ln)}else sh(u,e,nt>-1?nt:St,Ov(r[o?St:nt],Z,!o&&i));!o&&i&&gn&&r[St].componentProviders++}}}function sh(e,n,r,i){const o=ll(n),u=function jy(e){return!!e.useClass}(n);if(o||u){const A=(u?ie(n.useClass):n).prototype.ngOnDestroy;if(A){const Z=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const ue=Z.indexOf(r);-1===ue?Z.push(r,[i,A]):Z[ue+1].push(i,A)}else Z.push(r,A)}}}function Ov(e,n,r){return r&&e.componentProviders++,e.multi.push(n)-1}function oh(e,n,r,i){for(let o=r;o{r.providersResolver=(i,o)=>function ZD(e,n,r){const i=mr();if(i.firstCreatePass){const o=fi(e);ih(r,i.data,i.blueprint,o,!0),ih(n,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,n)}}class fl{}class Pv{}function QD(e,n){return new lh(e,n??null,[])}class lh extends fl{constructor(n,r,i){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nm(this);const o=ci(n);this._bootstrapComponents=oa(o.bootstrap),this._r3Injector=zg(n,r,[{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver},...i],f(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ch extends Pv{constructor(n){super(),this.moduleType=n}create(n){return new lh(this.moduleType,n,[])}}class Rv extends fl{constructor(n){super(),this.componentFactoryResolver=new Nm(this),this.instance=null;const r=new ld([...n.providers,{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver}],n.parent||ad(),n.debugName,new Set(["environment"]));this.injector=r,n.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Nv(e,n,r=null){return new Rv({providers:e,parent:n,debugName:r,runEnvironmentInitializers:!0}).injector}let qD=(()=>{class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=Ag(0,r.type),o=i.length>0?Nv([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Je({token:e,providedIn:"environment",factory:()=>new e(Vt(Uo))})}return e})();function Lv(e){e.getStandaloneInjector=n=>n.get(qD).getOrCreateStandaloneInjector(e)}function Vv(e,n,r){const i=Xt()+e,o=Nt();return o[i]===ur?Vo(o,i,r?n.call(r):n()):ru(o,i)}function $v(e,n,r,i){return Kv(Nt(),Xt(),e,n,r,i)}function Wv(e,n,r,i,o){return Yv(Nt(),Xt(),e,n,r,i,o)}function Gv(e,n,r,i,o,u){return Jv(Nt(),Xt(),e,n,r,i,o,u)}function zv(e,n,r,i,o,u,g){return function Qv(e,n,r,i,o,u,g,b,A){const Z=n+r;return fo(e,Z,o,u,g,b)?Vo(e,Z+4,A?i.call(A,o,u,g,b):i(o,u,g,b)):pu(e,Z+4)}(Nt(),Xt(),e,n,r,i,o,u,g)}function Zv(e,n,r,i,o,u,g,b){const A=Xt()+e,Z=Nt(),ue=fo(Z,A,r,i,o,u);return vs(Z,A+4,g)||ue?Vo(Z,A+5,b?n.call(b,r,i,o,u,g):n(r,i,o,u,g)):ru(Z,A+5)}function pu(e,n){const r=e[n];return r===ur?void 0:r}function Kv(e,n,r,i,o,u){const g=n+r;return vs(e,g,o)?Vo(e,g+1,u?i.call(u,o):i(o)):pu(e,g+1)}function Yv(e,n,r,i,o,u,g){const b=n+r;return cl(e,b,o,u)?Vo(e,b+2,g?i.call(g,o,u):i(o,u)):pu(e,b+2)}function Jv(e,n,r,i,o,u,g,b){const A=n+r;return Dd(e,A,o,u,g)?Vo(e,A+3,b?i.call(b,o,u,g):i(o,u,g)):pu(e,A+3)}function qv(e,n){const r=mr();let i;const o=e+Gn;r.firstCreatePass?(i=function fC(e,n){if(n)for(let r=n.length-1;r>=0;r--){const i=n[r];if(e===i.name)return i}}(n,r.pipeRegistry),r.data[o]=i,i.onDestroy&&(r.destroyHooks??=[]).push(o,i.onDestroy)):i=r.data[o];const u=i.factory||(i.factory=os(i.type)),b=fn(Ql);try{const A=qo(!1),Z=u();return qo(A),function tE(e,n,r,i){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),n[r]=i}(r,Nt(),o,Z),Z}finally{fn(b)}}function e0(e,n,r){const i=e+Gn,o=Nt(),u=Yi(o,i);return hu(o,i)?Kv(o,Xt(),n,u.transform,r,u):u.transform(r)}function t0(e,n,r,i){const o=e+Gn,u=Nt(),g=Yi(u,o);return hu(u,o)?Yv(u,Xt(),n,g.transform,r,i,g):g.transform(r,i)}function n0(e,n,r,i,o){const u=e+Gn,g=Nt(),b=Yi(g,u);return hu(g,u)?Jv(g,Xt(),n,b.transform,r,i,o,b):b.transform(r,i,o)}function hu(e,n){return e[Kt].data[n].pure}function gC(){return this._results[Symbol.iterator]()}class dh{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new jo)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=dh.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=gC)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,r){return this._results.reduce(n,r)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,r){const i=this;i.dirty=!1;const o=function Ks(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Au(e,n,r){if(e.length!==n.length)return!1;for(let i=0;i0&&(r[o-1][$r]=n),i{class e{static#e=this.__NG_ELEMENT_ID__=bC}return e})();const vC=gu,yC=class extends vC{constructor(n,r,i){super(),this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){const o=function mC(e,n,r,i){const o=n.tView,b=md(e,o,r,4096&e[Mn]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);b[Wr]=e[n.index];const Z=e[di];return null!==Z&&(b[di]=Z.createEmbeddedView(o)),xp(o,b,r),b}(this._declarationLView,this._declarationTContainer,n,{injector:r,hydrationInfo:i});return new tu(o)}};function bC(){return Bd(v(),Nt())}function Bd(e,n){return 4&e.type?new yC(n,e,Kl(e,n)):null}let jd=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=SC}return e})();function SC(){return u0(v(),Nt())}const MC=jd,l0=class extends MC{constructor(n,r,i){super(),this._lContainer=n,this._hostTNode=r,this._hostLView=i}get element(){return Kl(this._hostTNode,this._hostLView)}get injector(){return new _s(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dc(this._hostTNode,this._hostLView);if(yc(n)){const r=ya(n,this._hostLView),i=Ha(n);return new _s(r[Kt].data[i+8],r)}return new _s(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const r=c0(this._lContainer);return null!==r&&r[n]||null}get length(){return this._lContainer.length-pn}createEmbeddedView(n,r,i){let o,u;"number"==typeof i?o=i:null!=i&&(o=i.index,u=i.injector);const b=n.createEmbeddedViewImpl(r||{},u,null);return this.insertImpl(b,o,false),b}createComponent(n,r,i,o,u){const g=n&&!function Zs(e){return"function"==typeof e}(n);let b;if(g)b=r;else{const jt=r||{};b=jt.index,i=jt.injector,o=jt.projectableNodes,u=jt.environmentInjector||jt.ngModuleRef}const A=g?n:new nu(jn(n)),Z=i||this.parentInjector;if(!u&&null==A.ngModule){const gn=(g?Z:this.parentInjector).get(Uo,null);gn&&(u=gn)}jn(A.componentType??{});const nt=A.create(Z,o,null,u);return this.insertImpl(nt.hostView,b,false),nt}insert(n,r){return this.insertImpl(n,r,!1)}insertImpl(n,r,i){const o=n._lView;if(function $s(e){return qt(e[hr])}(o)){const A=this.indexOf(n);if(-1!==A)this.detach(A);else{const Z=o[hr],ue=new l0(Z,Z[Nr],Z[hr]);ue.detach(ue.indexOf(n))}}const g=this._adjustIndex(r),b=this._lContainer;return _C(b,o,g,!i),n.attachToViewContainerRef(),lf(fh(b),g,n),n}move(n,r){return this.insert(n,r)}indexOf(n){const r=c0(this._lContainer);return null!==r?r.indexOf(n):-1}remove(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);i&&(wc(fh(this._lContainer),r),Fc(i[Kt],i))}detach(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);return i&&null!=wc(fh(this._lContainer),r)?new tu(i):null}_adjustIndex(n,r=0){return n??this.length+r}};function c0(e){return e[8]}function fh(e){return e[8]||(e[8]=[])}function u0(e,n){let r;const i=n[e.index];return qt(i)?r=i:(r=Dm(i,n,null,e),n[e.index]=r,_d(n,r)),d0(r,n,e,i),new l0(r,e,n)}let d0=function f0(e,n,r,i){if(e[Pr])return;let o;o=8&r.type?er(i):function AC(e,n){const r=e[Bt],i=r.createComment(""),o=Di(n,e);return wa(r,Uc(r,o),i,function bg(e,n){return e.nextSibling(n)}(r,o),!1),i}(n,r),e[Pr]=o};class ph{constructor(n){this.queryList=n,this.matches=null}clone(){return new ph(this.queryList)}setDirty(){this.queryList.setDirty()}}class hh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const r=n.queries;if(null!==r){const i=null!==n.contentQueries?n.contentQueries[0]:r.length,o=[];for(let u=0;u0)i.push(g[b/2]);else{const Z=u[b+1],ue=n[-A];for(let Ce=pn;Ce{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=on(U0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const o of this.appInits){const u=o();if(Vp(u))r.push(u);else if(a_(u)){const g=new Promise((b,A)=>{u.subscribe({complete:b,error:A})});r.push(g)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),0===r.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),j0=(()=>{class e{log(r){console.log(r)}warn(r){console.warn(r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Vd=new Gr("LocaleId",{providedIn:"root",factory:()=>on(Vd,Et.Optional|Et.SkipSelf)||function rT(){return typeof $localize<"u"&&$localize.locale||dc}()}),iT=new Gr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let H0=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new p.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class oT{constructor(n,r){this.ngModuleFactory=n,this.componentFactories=r}}let aT=(()=>{class e{compileModuleSync(r){return new ch(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const i=this.compileModuleSync(r),u=oa(ci(r).declarations).reduce((g,b)=>{const A=jn(b);return A&&g.push(new nu(A)),g},[]);return new oT(i,u)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const G0=new Gr(""),z0=new Gr("");let Sh,MT=(()=>{class e{constructor(r,i,o){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Sh||(function AT(e){Sh=e}(o),o.addToWindow(i)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{qi.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let u=-1;i&&i>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==u),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:o})}whenStable(r,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(qi),Vt(Z0),Vt(z0))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac})}return e})(),Z0=(()=>{class e{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return Sh?.findTestabilityInTree(this,r,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ia=null;const K0=new Gr("AllowMultipleToken"),Mh=new Gr("PlatformDestroyListeners"),Ah=new Gr("appBootstrapListener");class IT{constructor(n,r){this.name=n,this.token=r}}function Q0(e,n,r=[]){const i=`Platform: ${n}`,o=new Gr(i);return(u=[])=>{let g=xh();if(!g||g.injector.get(K0,!1)){const b=[...r,...u,{provide:o,useValue:!0}];e?e(b):function PT(e){if(Ia&&!Ia.get(K0,!1))throw new ce(400,!1);(function Y0(){!function ha(e){Ko=e}(()=>{throw new ce(600,!1)})})(),Ia=e;const n=e.get(q0);(function J0(e){e.get(Ng,null)?.forEach(r=>r())})(e)}(function X0(e=[],n){return bo.create({name:n,providers:[{provide:Jf,useValue:"platform"},{provide:Mh,useValue:new Set([()=>Ia=null])},...e]})}(b,i))}return function NT(e){const n=xh();if(!n)throw new ce(401,!1);return n}()}}function xh(){return Ia?.get(q0)??null}let q0=(()=>{class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const o=function LT(e="zone.js",n){return"noop"===e?new wb:"zone.js"===e?new qi(n):e}(i?.ngZone,function ey(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const u=function XD(e,n,r){return new lh(e,n,r)}(r.moduleType,this.injector,function sy(e){return[{provide:qi,useFactory:e},{provide:Zc,multi:!0,useFactory:()=>{const n=on(kT,{optional:!0});return()=>n.initialize()}},{provide:iy,useFactory:FT},{provide:Qg,useFactory:Xg}]}(()=>o)),g=u.injector.get(xa,null);return o.runOutsideAngular(()=>{const b=o.onError.subscribe({next:A=>{g.handleError(A)}});u.onDestroy(()=>{Wd(this._modules,u),b.unsubscribe()})}),function ty(e,n,r){try{const i=r();return Vp(i)?i.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(g,o,()=>{const b=u.injector.get(Ch);return b.runInitializers(),b.donePromise.then(()=>(sv(u.injector.get(Vd,dc)||dc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(r,i=[]){const o=ny({},i);return function xT(e,n,r){const i=new ch(r);return Promise.resolve(i)}(0,0,r).then(u=>this.bootstrapModuleFactory(u,o))}_moduleDoBootstrap(r){const i=r.injector.get(hc);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!r.instance.ngDoBootstrap)throw new ce(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(Mh,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(bo))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ny(e,n){return Array.isArray(n)?n.reduce(ny,e):{...e,...n}}let hc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=on(iy),this.zoneIsStable=on(Qg),this.componentTypes=[],this.components=[],this.isStable=on(H0).hasPendingTasks.pipe((0,F.w)(r=>r?(0,O.of)(!1):this.zoneIsStable),(0,P.x)(),(0,R.B)()),this._injector=on(Uo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const o=r instanceof Bg;if(!this._injector.get(Ch).done)throw!o&&vi(r),new ce(405,!1);let g;g=o?r:this._injector.get(Jc).resolveComponentFactory(r),this.componentTypes.push(g.componentType);const b=function OT(e){return e.isBoundToModule}(g)?void 0:this._injector.get(fl),Z=g.create(bo.NULL,[],i||g.selector,b),ue=Z.location.nativeElement,Ce=Z.injector.get(G0,null);return Ce?.registerApplication(ue),Z.onDestroy(()=>{this.detachView(Z.hostView),Wd(this.components,Z),Ce?.unregisterApplication(ue)}),this._loadComponent(Z),Z}tick(){if(this._runningTick)throw new ce(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;Wd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(Ah,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Wd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new ce(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wd(e,n){const r=e.indexOf(n);r>-1&&e.splice(r,1)}const iy=new Gr("",{providedIn:"root",factory:()=>on(xa).handleError.bind(void 0)});function FT(){const e=on(qi),n=on(xa);return r=>e.runOutsideAngular(()=>n.handleError(r))}let kT=(()=>{class e{constructor(){this.zone=on(qi),this.applicationRef=on(hc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function UT(){}let jT=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HT}return e})();function HT(e){return function VT(e,n,r){if(ji(e)&&!r){const i=Vi(e.index,n);return new tu(i,i)}return 47&e.type?new tu(n[sr],n):null}(v(),Nt(),16==(16&e))}class cy{constructor(){}supports(n){return Ed(n)}create(n){return new KT(n)}}const ZT=(e,n)=>n;class KT{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||ZT}forEachItem(n){let r;for(r=this._itHead;null!==r;r=r._next)n(r)}forEachOperation(n){let r=this._itHead,i=this._removalsHead,o=0,u=null;for(;r||i;){const g=!i||r&&r.currentIndex{g=this._trackByFn(o,b),null!==r&&Object.is(r.trackById,g)?(i&&(r=this._verifyReinsertion(r,b,g,o)),Object.is(r.item,b)||this._addIdentityChange(r,b)):(r=this._mismatch(r,b,g,o),i=!0),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,r,i,o){let u;return null===n?u=this._itTail:(u=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._reinsertAfter(n,u,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._moveAfter(n,u,o)):n=this._addAfter(new YT(r,i),u,o),n}_verifyReinsertion(n,r,i,o){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==u?n=this._reinsertAfter(u,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const r=n._next;this._addToRemovals(this._unlink(n)),n=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,r,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,u=n._nextRemoved;return null===o?this._removalsHead=u:o._nextRemoved=u,null===u?this._removalsTail=o:u._prevRemoved=o,this._insertAfter(n,r,i),this._addToMoves(n,i),n}_moveAfter(n,r,i){return this._unlink(n),this._insertAfter(n,r,i),this._addToMoves(n,i),n}_addAfter(n,r,i){return this._insertAfter(n,r,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,r,i){const o=null===r?this._itHead:r._next;return n._next=o,n._prev=r,null===o?this._itTail=n:o._prev=n,null===r?this._itHead=n:r._next=n,null===this._linkedRecords&&(this._linkedRecords=new uy),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const r=n._prev,i=n._next;return null===r?this._itHead=i:r._next=i,null===i?this._itTail=r:i._prev=r,n}_addToMoves(n,r){return n.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uy),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,r){return n.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class YT{constructor(n,r){this.item=n,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class JT{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,r){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===r||r<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const r=n._prevDup,i=n._nextDup;return null===r?this._head=i:r._nextDup=i,null===i?this._tail=r:i._prevDup=r,null===this._head}}class uy{constructor(){this.map=new Map}put(n){const r=n.trackById;let i=this.map.get(r);i||(i=new JT,this.map.set(r,i)),i.add(n)}get(n,r){const o=this.map.get(n);return o?o.get(n,r):null}remove(n){const r=n.trackById;return this.map.get(r).remove(n)&&this.map.delete(r),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dy(e,n,r){const i=e.previousIndex;if(null===i)return i;let o=0;return r&&i{if(r&&r.key===o)this._maybeAddToChanges(r,i),this._appendAfter=r,r=r._next;else{const u=this._getOrCreateRecordForKey(o,i);r=this._insertBeforeOrAppend(r,u)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let i=r;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,r){if(n){const i=n._prev;return r._next=n,r._prev=i,n._prev=r,i&&(i._next=r),n===this._mapHead&&(this._mapHead=r),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(n,r){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,r);const u=o._prev,g=o._next;return u&&(u._next=g),g&&(g._prev=u),o._next=null,o._prev=null,o}const i=new XT(n);return this._records.set(n,i),i.currentValue=r,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,r){Object.is(r,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=r,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,r){n instanceof Map?n.forEach(r):Object.keys(n).forEach(i=>r(n[i],i))}}class XT{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function py(){return new Nh([new cy])}let Nh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:py});constructor(r){this.factories=r}static create(r,i){if(null!=i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||py()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(null!=i)return i;throw new ce(901,!1)}}return e})();function hy(){return new Lh([new fy])}let Lh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:hy});constructor(r){this.factories=r}static create(r,i){if(i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||hy()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(i)return i;throw new ce(901,!1)}}return e})();const tw=Q0(null,"core",[]);let nw=(()=>{class e{constructor(r){}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(hc))};static#t=this.\u0275mod=Wi({type:e});static#n=this.\u0275inj=et({})}return e})();function pw(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function gw(e,n){const r=jn(e),i=n.elementInjector||ad();return new nu(r).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}function mw(e){const n=jn(e);if(!n)return null;const r=new nu(n);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}},6223:(Pe,V,a)=>{"use strict";a.d(V,{Cf:()=>k,EJ:()=>Nr,F:()=>K,Fd:()=>di,Fj:()=>M,JJ:()=>Rn,JL:()=>We,JU:()=>F,Kr:()=>Si,On:()=>Yr,Q7:()=>Ii,QS:()=>Ds,UX:()=>qs,Wl:()=>B,YN:()=>Ze,_:()=>Gi,_Y:()=>es,kI:()=>ye,oH:()=>vi,p4:()=>Oe,qQ:()=>bs,sg:()=>ts,u:()=>Mn,u5:()=>Co,wV:()=>Ti});var t=a(5879),d=a(6814),w=a(7715),L=a(9315),p=a(7398);let O=(()=>{class Y{constructor(N,ge){this._renderer=N,this._elementRef=ge,this.onChange=Re=>{},this.onTouched=()=>{}}setProperty(N,ge){this._renderer.setProperty(this._elementRef.nativeElement,N,ge)}registerOnTouched(N){this.onTouched=N}registerOnChange(N){this.onChange=N}setDisabledState(N){this.setProperty("disabled",N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:Y})}return Y})(),R=(()=>{class Y extends O{static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,features:[t.qOj]})}return Y})();const F=new t.OlP("NgValueAccessor"),P={provide:F,useExisting:(0,t.Gpc)(()=>B),multi:!0};let B=(()=>{class Y extends R{writeValue(N){this.setProperty("checked",N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(Zn){return Re.onChange(Zn.target.checked)})("blur",function(){return Re.onTouched()})},features:[t._Bn([P]),t.qOj]})}return Y})();const $={provide:F,useExisting:(0,t.Gpc)(()=>M),multi:!0},j=new t.OlP("CompositionEventMode");let M=(()=>{class Y extends O{constructor(N,ge,Re){super(N,ge),this._compositionMode=Re,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function f(){const Y=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(Y.toLowerCase())}())}writeValue(N){this.setProperty("value",N??"")}_handleInput(N){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(N)}_compositionStart(){this._composing=!0}_compositionEnd(N){this._composing=!1,this._compositionMode&&this.onChange(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(j,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("input",function(Zn){return Re._handleInput(Zn.target.value)})("blur",function(){return Re.onTouched()})("compositionstart",function(){return Re._compositionStart()})("compositionend",function(Zn){return Re._compositionEnd(Zn.target.value)})},features:[t._Bn([$]),t.qOj]})}return Y})();function q(Y){return null==Y||("string"==typeof Y||Array.isArray(Y))&&0===Y.length}function ie(Y){return null!=Y&&"number"==typeof Y.length}const k=new t.OlP("NgValidators"),Te=new t.OlP("NgAsyncValidators"),Se=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ye{static min(re){return ce(re)}static max(re){return _e(re)}static required(re){return ve(re)}static requiredTrue(re){return function xe(Y){return!0===Y.value?null:{required:!0}}(re)}static email(re){return function be(Y){return q(Y.value)||Se.test(Y.value)?null:{email:!0}}(re)}static minLength(re){return function ke(Y){return re=>q(re.value)||!ie(re.value)?null:re.value.lengthie(re.value)&&re.value.length>Y?{maxlength:{requiredLength:Y,actualLength:re.value.length}}:null}(re)}static pattern(re){return function rt(Y){if(!Y)return Mt;let re,N;return"string"==typeof Y?(N="","^"!==Y.charAt(0)&&(N+="^"),N+=Y,"$"!==Y.charAt(Y.length-1)&&(N+="$"),re=new RegExp(N)):(N=Y.toString(),re=Y),ge=>{if(q(ge.value))return null;const Re=ge.value;return re.test(Re)?null:{pattern:{requiredPattern:N,actualValue:Re}}}}(re)}static nullValidator(re){return null}static compose(re){return Q(re)}static composeAsync(re){return se(re)}}function ce(Y){return re=>{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N>Y?{max:{max:Y,actual:re.value}}:null}}function ve(Y){return q(Y.value)?{required:!0}:null}function Mt(Y){return null}function qe(Y){return null!=Y}function _t(Y){return(0,t.QGY)(Y)?(0,w.D)(Y):Y}function $e(Y){let re={};return Y.forEach(N=>{re=null!=N?{...re,...N}:re}),0===Object.keys(re).length?null:re}function Ee(Y,re){return re.map(N=>N(Y))}function J(Y){return Y.map(re=>function ze(Y){return!Y.validate}(re)?re:N=>re.validate(N))}function Q(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){return $e(Ee(N,re))}}function oe(Y){return null!=Y?Q(J(Y)):null}function se(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){const ge=Ee(N,re).map(_t);return(0,L.D)(ge).pipe((0,p.U)($e))}}function ae(Y){return null!=Y?se(J(Y)):null}function fe(Y,re){return null===Y?[re]:Array.isArray(Y)?[...Y,re]:[Y,re]}function De(Y){return Y._rawValidators}function je(Y){return Y._rawAsyncValidators}function Xe(Y){return Y?Array.isArray(Y)?Y:[Y]:[]}function tt(Y,re){return Array.isArray(Y)?Y.includes(re):Y===re}function wt(Y,re){const N=Xe(re);return Xe(Y).forEach(Re=>{tt(N,Re)||N.push(Re)}),N}function It(Y,re){return Xe(re).filter(N=>!tt(Y,N))}class Je{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(re){this._rawValidators=re||[],this._composedValidatorFn=oe(this._rawValidators)}_setAsyncValidators(re){this._rawAsyncValidators=re||[],this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(re){this._onDestroyCallbacks.push(re)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(re=>re()),this._onDestroyCallbacks=[]}reset(re=void 0){this.control&&this.control.reset(re)}hasError(re,N){return!!this.control&&this.control.hasError(re,N)}getError(re,N){return this.control?this.control.getError(re,N):null}}class Tt extends Je{get formDirective(){return null}get path(){return null}}class et extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pt{constructor(re){this._cd=re}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Rn=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(et,2))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)},features:[t.qOj]})}return Y})(),We=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,10))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)("ng-submitted",Re.isSubmitted)},features:[t.qOj]})}return Y})();const Qt="VALID",Cn="INVALID",An="PENDING",In="DISABLED";function nr(Y){return(Ir(Y)?Y.validators:Y)||null}function wr(Y,re){return(Ir(re)?re.asyncValidators:Y)||null}function Ir(Y){return null!=Y&&!Array.isArray(Y)&&"object"==typeof Y}function Br(Y,re,N){const ge=Y.controls;if(!(re?Object.keys(ge):ge).length)throw new t.vHH(1e3,"");if(!ge[N])throw new t.vHH(1001,"")}function oi(Y,re,N){Y._forEachChild((ge,Re)=>{if(void 0===N[Re])throw new t.vHH(1002,"")})}class zn{constructor(re,N){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(re),this._assignAsyncValidators(N)}get validator(){return this._composedValidatorFn}set validator(re){this._rawValidators=this._composedValidatorFn=re}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(re){this._rawAsyncValidators=this._composedAsyncValidatorFn=re}get parent(){return this._parent}get valid(){return this.status===Qt}get invalid(){return this.status===Cn}get pending(){return this.status==An}get disabled(){return this.status===In}get enabled(){return this.status!==In}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(re){this._assignValidators(re)}setAsyncValidators(re){this._assignAsyncValidators(re)}addValidators(re){this.setValidators(wt(re,this._rawValidators))}addAsyncValidators(re){this.setAsyncValidators(wt(re,this._rawAsyncValidators))}removeValidators(re){this.setValidators(It(re,this._rawValidators))}removeAsyncValidators(re){this.setAsyncValidators(It(re,this._rawAsyncValidators))}hasValidator(re){return tt(this._rawValidators,re)}hasAsyncValidator(re){return tt(this._rawAsyncValidators,re)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(re={}){this.touched=!0,this._parent&&!re.onlySelf&&this._parent.markAsTouched(re)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(re=>re.markAllAsTouched())}markAsUntouched(re={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(N=>{N.markAsUntouched({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}markAsDirty(re={}){this.pristine=!1,this._parent&&!re.onlySelf&&this._parent.markAsDirty(re)}markAsPristine(re={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(N=>{N.markAsPristine({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}markAsPending(re={}){this.status=An,!1!==re.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!re.onlySelf&&this._parent.markAsPending(re)}disable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=In,this.errors=null,this._forEachChild(ge=>{ge.disable({...re,onlySelf:!0})}),this._updateValue(),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!0))}enable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=Qt,this._forEachChild(ge=>{ge.enable({...re,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent}),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!1))}_updateAncestors(re){this._parent&&!re.onlySelf&&(this._parent.updateValueAndValidity(re),re.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(re){this._parent=re}getRawValue(){return this.value}updateValueAndValidity(re={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qt||this.status===An)&&this._runAsyncValidator(re.emitEvent)),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!re.onlySelf&&this._parent.updateValueAndValidity(re)}_updateTreeValidity(re={emitEvent:!0}){this._forEachChild(N=>N._updateTreeValidity(re)),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?In:Qt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(re){if(this.asyncValidator){this.status=An,this._hasOwnPendingAsyncValidator=!0;const N=_t(this.asyncValidator(this));this._asyncValidationSubscription=N.subscribe(ge=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ge,{emitEvent:re})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(re,N={}){this.errors=re,this._updateControlsErrors(!1!==N.emitEvent)}get(re){let N=re;return null==N||(Array.isArray(N)||(N=N.split(".")),0===N.length)?null:N.reduce((ge,Re)=>ge&&ge._find(Re),this)}getError(re,N){const ge=N?this.get(N):this;return ge&&ge.errors?ge.errors[re]:null}hasError(re,N){return!!this.getError(re,N)}get root(){let re=this;for(;re._parent;)re=re._parent;return re}_updateControlsErrors(re){this.status=this._calculateStatus(),re&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(re)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?In:this.errors?Cn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(An)?An:this._anyControlsHaveStatus(Cn)?Cn:Qt}_anyControlsHaveStatus(re){return this._anyControls(N=>N.status===re)}_anyControlsDirty(){return this._anyControls(re=>re.dirty)}_anyControlsTouched(){return this._anyControls(re=>re.touched)}_updatePristine(re={}){this.pristine=!this._anyControlsDirty(),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}_updateTouched(re={}){this.touched=this._anyControlsTouched(),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}_registerOnCollectionChange(re){this._onCollectionChange=re}_setUpdateStrategy(re){Ir(re)&&null!=re.updateOn&&(this._updateOn=re.updateOn)}_parentMarkedDirty(re){return!re&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(re){return null}_assignValidators(re){this._rawValidators=Array.isArray(re)?re.slice():re,this._composedValidatorFn=function Dr(Y){return Array.isArray(Y)?oe(Y):Y||null}(this._rawValidators)}_assignAsyncValidators(re){this._rawAsyncValidators=Array.isArray(re)?re.slice():re,this._composedAsyncValidatorFn=function Or(Y){return Array.isArray(Y)?ae(Y):Y||null}(this._rawAsyncValidators)}}class dt extends zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(re,N){return this.controls[re]?this.controls[re]:(this.controls[re]=N,N.setParent(this),N._registerOnCollectionChange(this._onCollectionChange),N)}addControl(re,N,ge={}){this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}removeControl(re,N={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}setControl(re,N,ge={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],N&&this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}contains(re){return this.controls.hasOwnProperty(re)&&this.controls[re].enabled}setValue(re,N={}){oi(this,0,re),Object.keys(re).forEach(ge=>{Br(this,!0,ge),this.controls[ge].setValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(Object.keys(re).forEach(ge=>{const Re=this.controls[ge];Re&&Re.patchValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re={},N={}){this._forEachChild((ge,Re)=>{ge.reset(re?re[Re]:null,{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this._reduceChildren({},(re,N,ge)=>(re[ge]=N.getRawValue(),re))}_syncPendingControls(){let re=this._reduceChildren(!1,(N,ge)=>!!ge._syncPendingControls()||N);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){Object.keys(this.controls).forEach(N=>{const ge=this.controls[N];ge&&re(ge,N)})}_setUpControls(){this._forEachChild(re=>{re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(re){for(const[N,ge]of Object.entries(this.controls))if(this.contains(N)&&re(ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},(N,ge,Re)=>((ge.enabled||this.disabled)&&(N[Re]=ge.value),N))}_reduceChildren(re,N){let ge=re;return this._forEachChild((Re,yn)=>{ge=N(ge,Re,yn)}),ge}_allControlsDisabled(){for(const re of Object.keys(this.controls))if(this.controls[re].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(re){return this.controls.hasOwnProperty(re)?this.controls[re]:null}}class He extends dt{}const Wt=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Vt}),Vt="always";function Un(Y,re){return[...re.path,Y]}function on(Y,re,N=Vt){Qe(Y,re),re.valueAccessor.writeValue(Y.value),(Y.disabled||"always"===N)&&re.valueAccessor.setDisabledState?.(Y.disabled),function Ue(Y,re){re.valueAccessor.registerOnChange(N=>{Y._pendingValue=N,Y._pendingChange=!0,Y._pendingDirty=!0,"change"===Y.updateOn&&Rt(Y,re)})}(Y,re),function kt(Y,re){const N=(ge,Re)=>{re.valueAccessor.writeValue(ge),Re&&re.viewToModelUpdate(ge)};Y.registerOnChange(N),re._registerOnDestroy(()=>{Y._unregisterOnChange(N)})}(Y,re),function bt(Y,re){re.valueAccessor.registerOnTouched(()=>{Y._pendingTouched=!0,"blur"===Y.updateOn&&Y._pendingChange&&Rt(Y,re),"submit"!==Y.updateOn&&Y.markAsTouched()})}(Y,re),function $n(Y,re){if(re.valueAccessor.setDisabledState){const N=ge=>{re.valueAccessor.setDisabledState(ge)};Y.registerOnDisabledChange(N),re._registerOnDestroy(()=>{Y._unregisterOnDisabledChange(N)})}}(Y,re)}function rr(Y,re,N=!0){const ge=()=>{};re.valueAccessor&&(re.valueAccessor.registerOnChange(ge),re.valueAccessor.registerOnTouched(ge)),Le(Y,re),Y&&(re._invokeOnDestroyCallbacks(),Y._registerOnCollectionChange(()=>{}))}function ln(Y,re){Y.forEach(N=>{N.registerOnValidatorChange&&N.registerOnValidatorChange(re)})}function Qe(Y,re){const N=De(Y);null!==re.validator?Y.setValidators(fe(N,re.validator)):"function"==typeof N&&Y.setValidators([N]);const ge=je(Y);null!==re.asyncValidator?Y.setAsyncValidators(fe(ge,re.asyncValidator)):"function"==typeof ge&&Y.setAsyncValidators([ge]);const Re=()=>Y.updateValueAndValidity();ln(re._rawValidators,Re),ln(re._rawAsyncValidators,Re)}function Le(Y,re){let N=!1;if(null!==Y){if(null!==re.validator){const Re=De(Y);if(Array.isArray(Re)&&Re.length>0){const yn=Re.filter(Zn=>Zn!==re.validator);yn.length!==Re.length&&(N=!0,Y.setValidators(yn))}}if(null!==re.asyncValidator){const Re=je(Y);if(Array.isArray(Re)&&Re.length>0){const yn=Re.filter(Zn=>Zn!==re.asyncValidator);yn.length!==Re.length&&(N=!0,Y.setAsyncValidators(yn))}}}const ge=()=>{};return ln(re._rawValidators,ge),ln(re._rawAsyncValidators,ge),N}function Rt(Y,re){Y._pendingDirty&&Y.markAsDirty(),Y.setValue(Y._pendingValue,{emitModelToViewChange:!1}),re.viewToModelUpdate(Y._pendingValue),Y._pendingChange=!1}function Ft(Y,re){Qe(Y,re)}function Hr(Y,re){if(!Y.hasOwnProperty("model"))return!1;const N=Y.model;return!!N.isFirstChange()||!Object.is(re,N.currentValue)}function Xn(Y,re){Y._syncPendingControls(),re.forEach(N=>{const ge=N.control;"submit"===ge.updateOn&&ge._pendingChange&&(N.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1)})}function qn(Y,re){if(!re)return null;let N,ge,Re;return Array.isArray(re),re.forEach(yn=>{yn.constructor===M?N=yn:function zr(Y){return Object.getPrototypeOf(Y.constructor)===R}(yn)?ge=yn:Re=yn}),Re||ge||N||null}const pe={provide:Tt,useExisting:(0,t.Gpc)(()=>K)},z=(()=>Promise.resolve())();let K=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new dt({},oe(N),ae(ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(N){z.then(()=>{const ge=this._findContainer(N.path);N.control=ge.registerControl(N.name,N.control),on(N.control,N,this.callSetDisabledState),N.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(N)})}getControl(N){return this.form.get(N.path)}removeControl(N){z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name),this._directives.delete(N)})}addFormGroup(N){z.then(()=>{const ge=this._findContainer(N.path),Re=new dt({});Ft(Re,N),ge.registerControl(N.name,Re),Re.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(N){z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name)})}getFormGroup(N){return this.form.get(N.path)}updateModel(N,ge){z.then(()=>{this.form.get(N.path).setValue(ge)})}setValue(N){this.control.setValue(N)}onSubmit(N){return this.submitted=!0,Xn(this.form,this._directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(N){return N.pop(),N.length?this.form.get(N):this.form}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(Zn){return Re.onSubmit(Zn)})("reset",function(){return Re.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([pe]),t.qOj]})}return Y})();function D(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}function X(Y){return"object"==typeof Y&&null!==Y&&2===Object.keys(Y).length&&"value"in Y&&"disabled"in Y}const de=class extends zn{constructor(re=null,N,ge){super(nr(N),wr(ge,N)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(re),this._setUpdateStrategy(N),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ir(N)&&(N.nonNullable||N.initialValueIsDefault)&&(this.defaultValue=X(re)?re.value:re)}setValue(re,N={}){this.value=this._pendingValue=re,this._onChange.length&&!1!==N.emitModelToViewChange&&this._onChange.forEach(ge=>ge(this.value,!1!==N.emitViewToModelChange)),this.updateValueAndValidity(N)}patchValue(re,N={}){this.setValue(re,N)}reset(re=this.defaultValue,N={}){this._applyFormState(re),this.markAsPristine(N),this.markAsUntouched(N),this.setValue(this.value,N),this._pendingChange=!1}_updateValue(){}_anyControls(re){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(re){this._onChange.push(re)}_unregisterOnChange(re){D(this._onChange,re)}registerOnDisabledChange(re){this._onDisabledChange.push(re)}_unregisterOnDisabledChange(re){D(this._onDisabledChange,re)}_forEachChild(re){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(re){X(re)?(this.value=this._pendingValue=re.value,re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=re}},Oe=de,_r={provide:et,useExisting:(0,t.Gpc)(()=>Yr)},Zr=(()=>Promise.resolve())();let Yr=(()=>{class Y extends et{constructor(N,ge,Re,yn,Zn,Ni){super(),this._changeDetectorRef=Zn,this.callSetDisabledState=Ni,this.control=new de,this._registered=!1,this.name="",this.update=new t.vpe,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,yn)}ngOnChanges(N){if(this._checkForErrors(),!this._registered||"name"in N){if(this._registered&&(this._checkName(),this.formDirective)){const ge=N.name.previousValue;this.formDirective.removeControl({name:ge,path:this._getPath(ge)})}this._setUpControl()}"isDisabled"in N&&this._updateDisabled(N),Hr(N,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){on(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(N){Zr.then(()=>{this.control.setValue(N,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(N){const ge=N.isDisabled.currentValue,Re=0!==ge&&(0,t.VuI)(ge);Zr.then(()=>{Re&&!this.control.disabled?this.control.disable():!Re&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(N){return this._parent?Un(N,this._parent):[N]}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,9),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(t.sBO,8),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([_r]),t.qOj,t.TTD]})}return Y})(),es=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Y})();const _i={provide:F,useExisting:(0,t.Gpc)(()=>Ti),multi:!0};let Ti=(()=>{class Y extends R{writeValue(N){this.setProperty("value",N??"")}registerOnChange(N){this.onChange=ge=>{N(""==ge?null:parseFloat(ge))}}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("input",function(Zn){return Re.onChange(Zn.target.value)})("blur",function(){return Re.onTouched()})},features:[t._Bn([_i]),t.qOj]})}return Y})();const hs={provide:F,useExisting:(0,t.Gpc)(()=>Gi),multi:!0};let Is=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({})}return Y})(),Bi=(()=>{class Y{constructor(){this._accessors=[]}add(N,ge){this._accessors.push([N,ge])}remove(N){for(let ge=this._accessors.length-1;ge>=0;--ge)if(this._accessors[ge][1]===N)return void this._accessors.splice(ge,1)}select(N){this._accessors.forEach(ge=>{this._isSameGroup(ge,N)&&ge[1]!==N&&ge[1].fireUncheck(N.value)})}_isSameGroup(N,ge){return!!N[0].control&&N[0]._parent===ge._control._parent&&N[1].name===ge.name}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:Is})}return Y})(),Gi=(()=>{class Y extends R{constructor(N,ge,Re,yn){super(N,ge),this._registry=Re,this._injector=yn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,t.f3M)(Wt,{optional:!0})??Vt}ngOnInit(){this._control=this._injector.get(et),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(N){this._state=N===this.value,this.setProperty("checked",this._state)}registerOnChange(N){this._fn=N,this.onChange=()=>{N(this.value),this._registry.select(this)}}setDisabledState(N){(this.setDisabledStateFired||N||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",N),this.setDisabledStateFired=!0}fireUncheck(N){this.writeValue(N)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(Bi),t.Y36(t.zs3))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(){return Re.onChange()})("blur",function(){return Re.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t._Bn([hs]),t.qOj]})}return Y})();const vr=new t.OlP("NgModelWithFormControlWarning"),Sr={provide:et,useExisting:(0,t.Gpc)(()=>vi)};let vi=(()=>{class Y extends et{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,yn,Zn){super(),this._ngModelWarningConfig=yn,this.callSetDisabledState=Zn,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(N),this._setAsyncValidators(ge),this.valueAccessor=qn(0,Re)}ngOnChanges(N){if(this._isControlChanged(N)){const ge=N.form.previousValue;ge&&rr(ge,this,!1),on(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Hr(N,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}_isControlChanged(N){return N.hasOwnProperty("form")}static#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8),t.Y36(Wt,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Sr]),t.qOj,t.TTD]})}return Y})();const ci={provide:Tt,useExisting:(0,t.Gpc)(()=>ts)};let ts=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(N),this._setAsyncValidators(ge)}ngOnChanges(N){this._checkFormPresent(),N.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Le(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(N){const ge=this.form.get(N.path);return on(ge,N,this.callSetDisabledState),ge.updateValueAndValidity({emitEvent:!1}),this.directives.push(N),ge}getControl(N){return this.form.get(N.path)}removeControl(N){rr(N.control||null,N,!1),function Ur(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}(this.directives,N)}addFormGroup(N){this._setUpFormContainer(N)}removeFormGroup(N){this._cleanUpFormContainer(N)}getFormGroup(N){return this.form.get(N.path)}addFormArray(N){this._setUpFormContainer(N)}removeFormArray(N){this._cleanUpFormContainer(N)}getFormArray(N){return this.form.get(N.path)}updateModel(N,ge){this.form.get(N.path).setValue(ge)}onSubmit(N){return this.submitted=!0,Xn(this.form,this.directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_updateDomValue(){this.directives.forEach(N=>{const ge=N.control,Re=this.form.get(N.path);ge!==Re&&(rr(ge||null,N),(Y=>Y instanceof de)(Re)&&(on(Re,N,this.callSetDisabledState),N.control=Re))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(N){const ge=this.form.get(N.path);Ft(ge,N),ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(N){if(this.form){const ge=this.form.get(N.path);ge&&function an(Y,re){return Le(Y,re)}(ge,N)&&ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qe(this.form,this),this._oldForm&&Le(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroup",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(Zn){return Re.onSubmit(Zn)})("reset",function(){return Re.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ci]),t.qOj,t.TTD]})}return Y})();const Kt={provide:et,useExisting:(0,t.Gpc)(()=>Mn)};let Mn=(()=>{class Y extends et{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,yn,Zn){super(),this._ngModelWarningConfig=Zn,this._added=!1,this.name=null,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,yn)}ngOnChanges(N){this._added||this._setUpControl(),Hr(N,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}get path(){return Un(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,13),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Kt]),t.qOj,t.TTD]})}return Y})();const hr={provide:F,useExisting:(0,t.Gpc)(()=>Nr),multi:!0};function $r(Y,re){return null==Y?`${re}`:(re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let Nr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){this.value=N;const Re=$r(this._getOptionId(N),N);this.setProperty("value",Re)}registerOnChange(N){this.onChange=ge=>{this.value=this._getOptionValue(ge),N(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(N){for(const ge of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ge),N))return ge;return null}_getOptionValue(N){const ge=function bi(Y){return Y.split(":")[0]}(N);return this._optionMap.has(ge)?this._optionMap.get(ge):N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(Zn){return Re.onChange(Zn.target.value)})("blur",function(){return Re.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([hr]),t.qOj]})}return Y})(),Ze=(()=>{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption())}set ngValue(N){null!=this._select&&(this._select._optionMap.set(this.id,N),this._setElementValue($r(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._setElementValue(N),this._select&&this._select.writeValue(this._select.value)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Nr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();const Ve={provide:F,useExisting:(0,t.Gpc)(()=>gr),multi:!0};function ct(Y,re){return null==Y?`${re}`:("string"==typeof re&&(re=`'${re}'`),re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let gr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){let ge;if(this.value=N,Array.isArray(N)){const Re=N.map(yn=>this._getOptionId(yn));ge=(yn,Zn)=>{yn._setSelected(Re.indexOf(Zn.toString())>-1)}}else ge=(Re,yn)=>{Re._setSelected(!1)};this._optionMap.forEach(ge)}registerOnChange(N){this.onChange=ge=>{const Re=[],yn=ge.selectedOptions;if(void 0!==yn){const Zn=yn;for(let Ni=0;Ni{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption(this))}set ngValue(N){null!=this._select&&(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._select?(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value)):this._setElementValue(N)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}_setSelected(N){this._renderer.setProperty(this._element.nativeElement,"selected",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(gr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();function sr(Y){return"number"==typeof Y?Y:parseFloat(Y)}let Wr=(()=>{class Y{constructor(){this._validator=Mt}ngOnChanges(N){if(this.inputName in N){const ge=this.normalizeInput(N[this.inputName].currentValue);this._enabled=this.enabled(ge),this._validator=this._enabled?this.createValidator(ge):Mt,this._onChange&&this._onChange()}}validate(N){return this._validator(N)}registerOnValidatorChange(N){this._onChange=N}enabled(N){return null!=N}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,features:[t.TTD]})}return Y})();const Mi={provide:k,useExisting:(0,t.Gpc)(()=>di),multi:!0};let di=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=N=>sr(N),this.createValidator=N=>_e(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("max",Re._enabled?Re.max:null)},inputs:{max:"max"},features:[t._Bn([Mi]),t.qOj]})}return Y})();const ns={provide:k,useExisting:(0,t.Gpc)(()=>bs),multi:!0};let bs=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=N=>sr(N),this.createValidator=N=>ce(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("min",Re._enabled?Re.min:null)},inputs:{min:"min"},features:[t._Bn([ns]),t.qOj]})}return Y})();const zi={provide:k,useExisting:(0,t.Gpc)(()=>Ii),multi:!0};let Ii=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.VuI,this.createValidator=N=>ve}enabled(N){return N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("required",Re._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([zi]),t.qOj]})}return Y})(),qt=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[Is]})}return Y})();class Kr extends zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(re){return this.controls[this._adjustIndex(re)]}push(re,N={}){this.controls.push(re),this._registerControl(re),this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}insert(re,N,ge={}){this.controls.splice(re,0,N),this._registerControl(N),this.updateValueAndValidity({emitEvent:ge.emitEvent})}removeAt(re,N={}){let ge=this._adjustIndex(re);ge<0&&(ge=0),this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),this.controls.splice(ge,1),this.updateValueAndValidity({emitEvent:N.emitEvent})}setControl(re,N,ge={}){let Re=this._adjustIndex(re);Re<0&&(Re=0),this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),this.controls.splice(Re,1),N&&(this.controls.splice(Re,0,N),this._registerControl(N)),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(re,N={}){oi(this,0,re),re.forEach((ge,Re)=>{Br(this,!1,Re),this.at(Re).setValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(re.forEach((ge,Re)=>{this.at(Re)&&this.at(Re).patchValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re=[],N={}){this._forEachChild((ge,Re)=>{ge.reset(re[Re],{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this.controls.map(re=>re.getRawValue())}clear(re={}){this.controls.length<1||(this._forEachChild(N=>N._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:re.emitEvent}))}_adjustIndex(re){return re<0?re+this.length:re}_syncPendingControls(){let re=this.controls.reduce((N,ge)=>!!ge._syncPendingControls()||N,!1);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){this.controls.forEach((N,ge)=>{re(N,ge)})}_updateValue(){this.value=this.controls.filter(re=>re.enabled||this.disabled).map(re=>re.value)}_anyControls(re){return this.controls.some(N=>N.enabled&&re(N))}_setUpControls(){this._forEachChild(re=>this._registerControl(re))}_allControlsDisabled(){for(const re of this.controls)if(re.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(re){re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)}_find(re){return this.at(re)??null}}function fi(Y){return!!Y&&(void 0!==Y.asyncValidators||void 0!==Y.validators||void 0!==Y.updateOn)}let Hs=(()=>{class Y{constructor(){this.useNonNullable=!1}get nonNullable(){const N=new Y;return N.useNonNullable=!0,N}group(N,ge=null){const Re=this._reduceControls(N);let yn={};return fi(ge)?yn=ge:null!==ge&&(yn.validators=ge.validator,yn.asyncValidators=ge.asyncValidator),new dt(Re,yn)}record(N,ge=null){const Re=this._reduceControls(N);return new He(Re,ge)}control(N,ge,Re){let yn={};return this.useNonNullable?(fi(ge)?yn=ge:(yn.validators=ge,yn.asyncValidators=Re),new de(N,{...yn,nonNullable:!0})):new de(N,ge,Re)}array(N,ge,Re){const yn=N.map(Zn=>this._createControl(Zn));return new Kr(yn,ge,Re)}_reduceControls(N){const ge={};return Object.keys(N).forEach(Re=>{ge[Re]=this._createControl(N[Re])}),ge}_createControl(N){return N instanceof de||N instanceof zn?N:Array.isArray(N)?this.control(N[0],N.length>1?N[1]:null,N.length>2?N[2]:null):this.control(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Ds=(()=>{class Y extends Hs{group(N,ge=null){return super.group(N,ge)}control(N,ge,Re){return super.control(N,ge,Re)}array(N,ge,Re){return super.array(N,ge,Re)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Co=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[qt]})}return Y})(),qs=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:vr,useValue:N.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[qt]})}return Y})()},6593:(Pe,V,a)=>{"use strict";a.d(V,{Dx:()=>At,H7:()=>Cn,b2:()=>zt,q6:()=>Je,se:()=>ke});var t=a(5879),d=a(6814);class w extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends w{static makeCurrent(){(0,d.HT)(new L)}onAndCancel(ot,we,He){return ot.addEventListener(we,He),()=>{ot.removeEventListener(we,He)}}dispatchEvent(ot,we){ot.dispatchEvent(we)}remove(ot){ot.parentNode&&ot.parentNode.removeChild(ot)}createElement(ot,we){return(we=we||this.getDefaultDocument()).createElement(ot)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ot){return ot.nodeType===Node.ELEMENT_NODE}isShadowRoot(ot){return ot instanceof DocumentFragment}getGlobalEventTarget(ot,we){return"window"===we?window:"document"===we?ot:"body"===we?ot.body:null}getBaseHref(ot){const we=function O(){return p=p||document.querySelector("base"),p?p.getAttribute("href"):null}();return null==we?null:function F(dt){R=R||document.createElement("a"),R.setAttribute("href",dt);const ot=R.pathname;return"/"===ot.charAt(0)?ot:`/${ot}`}(we)}resetBaseElement(){p=null}getUserAgent(){return window.navigator.userAgent}getCookie(ot){return(0,d.Mx)(document.cookie,ot)}}let R,p=null,B=(()=>{class dt{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const $=new t.OlP("EventManagerPlugins");let f=(()=>{class dt{constructor(we,He){this._zone=He,this._eventNameToPlugin=new Map,we.forEach(yt=>{yt.manager=this}),this._plugins=we.slice().reverse()}addEventListener(we,He,yt){return this._findPluginFor(He).addEventListener(we,He,yt)}getZone(){return this._zone}_findPluginFor(we){let He=this._eventNameToPlugin.get(we);if(He)return He;if(He=this._plugins.find(Wt=>Wt.supports(we)),!He)throw new t.vHH(5101,!1);return this._eventNameToPlugin.set(we,He),He}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG($),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class j{constructor(ot){this._doc=ot}}const M="ng-app-id";let q=(()=>{class dt{constructor(we,He,yt,Wt={}){this.doc=we,this.appId=He,this.nonce=yt,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.PM)(Wt),this.resetHostNodes()}addStyles(we){for(const He of we)1===this.changeUsageCount(He,1)&&this.onStyleAdded(He)}removeStyles(we){for(const He of we)this.changeUsageCount(He,-1)<=0&&this.onStyleRemoved(He)}ngOnDestroy(){const we=this.styleNodesInDOM;we&&(we.forEach(He=>He.remove()),we.clear());for(const He of this.getAllStyles())this.onStyleRemoved(He);this.resetHostNodes()}addHost(we){this.hostNodes.add(we);for(const He of this.getAllStyles())this.addStyleToHost(we,He)}removeHost(we){this.hostNodes.delete(we)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(we){for(const He of this.hostNodes)this.addStyleToHost(He,we)}onStyleRemoved(we){const He=this.styleRef;He.get(we)?.elements?.forEach(yt=>yt.remove()),He.delete(we)}collectServerRenderedStyles(){const we=this.doc.head?.querySelectorAll(`style[${M}="${this.appId}"]`);if(we?.length){const He=new Map;return we.forEach(yt=>{null!=yt.textContent&&He.set(yt.textContent,yt)}),He}return null}changeUsageCount(we,He){const yt=this.styleRef;if(yt.has(we)){const Wt=yt.get(we);return Wt.usage+=He,Wt.usage}return yt.set(we,{usage:He,elements:[]}),He}getStyleElement(we,He){const yt=this.styleNodesInDOM,Wt=yt?.get(He);if(Wt?.parentNode===we)return yt.delete(He),Wt.removeAttribute(M),Wt;{const Vt=this.doc.createElement("style");return this.nonce&&Vt.setAttribute("nonce",this.nonce),Vt.textContent=He,this.platformIsServer&&Vt.setAttribute(M,this.appId),Vt}}addStyleToHost(we,He){const yt=this.getStyleElement(we,He);we.appendChild(yt);const Wt=this.styleRef,Vt=Wt.get(He)?.elements;Vt?Vt.push(yt):Wt.set(He,{elements:[yt],usage:1})}resetHostNodes(){const we=this.hostNodes;we.clear(),we.add(this.doc.head)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0),t.LFG(t.AFp),t.LFG(t.Ojb,8),t.LFG(t.Lbi))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const ie={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},k=/%COMP%/g,_e=new t.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function be(dt,ot){return ot.map(we=>we.replace(k,dt))}let ke=(()=>{class dt{constructor(we,He,yt,Wt,Vt,Un,on,rr=null){this.eventManager=we,this.sharedStylesHost=He,this.appId=yt,this.removeStylesOnCompDestroy=Wt,this.doc=Vt,this.platformId=Un,this.ngZone=on,this.nonce=rr,this.rendererByCompId=new Map,this.platformIsServer=(0,d.PM)(Un),this.defaultRenderer=new vt(we,Vt,on,this.platformIsServer)}createRenderer(we,He){if(!we||!He)return this.defaultRenderer;this.platformIsServer&&He.encapsulation===t.ifc.ShadowDom&&(He={...He,encapsulation:t.ifc.Emulated});const yt=this.getOrCreateRenderer(we,He);return yt instanceof Ee?yt.applyToHost(we):yt instanceof $e&&yt.applyStyles(),yt}getOrCreateRenderer(we,He){const yt=this.rendererByCompId;let Wt=yt.get(He.id);if(!Wt){const Vt=this.doc,Un=this.ngZone,on=this.eventManager,rr=this.sharedStylesHost,ln=this.removeStylesOnCompDestroy,$n=this.platformIsServer;switch(He.encapsulation){case t.ifc.Emulated:Wt=new Ee(on,rr,He,this.appId,ln,Vt,Un,$n);break;case t.ifc.ShadowDom:return new _t(on,rr,we,He,Vt,Un,this.nonce,$n);default:Wt=new $e(on,rr,He,ln,Vt,Un,$n)}yt.set(He.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(f),t.LFG(q),t.LFG(t.AFp),t.LFG(_e),t.LFG(d.K0),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(t.Ojb))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class vt{constructor(ot,we,He,yt){this.eventManager=ot,this.doc=we,this.ngZone=He,this.platformIsServer=yt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ot,we){return we?this.doc.createElementNS(ie[we]||we,ot):this.doc.createElement(ot)}createComment(ot){return this.doc.createComment(ot)}createText(ot){return this.doc.createTextNode(ot)}appendChild(ot,we){(qe(ot)?ot.content:ot).appendChild(we)}insertBefore(ot,we,He){ot&&(qe(ot)?ot.content:ot).insertBefore(we,He)}removeChild(ot,we){ot&&ot.removeChild(we)}selectRootElement(ot,we){let He="string"==typeof ot?this.doc.querySelector(ot):ot;if(!He)throw new t.vHH(-5104,!1);return we||(He.textContent=""),He}parentNode(ot){return ot.parentNode}nextSibling(ot){return ot.nextSibling}setAttribute(ot,we,He,yt){if(yt){we=yt+":"+we;const Wt=ie[yt];Wt?ot.setAttributeNS(Wt,we,He):ot.setAttribute(we,He)}else ot.setAttribute(we,He)}removeAttribute(ot,we,He){if(He){const yt=ie[He];yt?ot.removeAttributeNS(yt,we):ot.removeAttribute(`${He}:${we}`)}else ot.removeAttribute(we)}addClass(ot,we){ot.classList.add(we)}removeClass(ot,we){ot.classList.remove(we)}setStyle(ot,we,He,yt){yt&(t.JOm.DashCase|t.JOm.Important)?ot.style.setProperty(we,He,yt&t.JOm.Important?"important":""):ot.style[we]=He}removeStyle(ot,we,He){He&t.JOm.DashCase?ot.style.removeProperty(we):ot.style[we]=""}setProperty(ot,we,He){ot[we]=He}setValue(ot,we){ot.nodeValue=we}listen(ot,we,He){if("string"==typeof ot&&!(ot=(0,d.q)().getGlobalEventTarget(this.doc,ot)))throw new Error(`Unsupported event target ${ot} for event ${we}`);return this.eventManager.addEventListener(ot,we,this.decoratePreventDefault(He))}decoratePreventDefault(ot){return we=>{if("__ngUnwrap__"===we)return ot;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ot(we)):ot(we))&&we.preventDefault()}}}function qe(dt){return"TEMPLATE"===dt.tagName&&void 0!==dt.content}class _t extends vt{constructor(ot,we,He,yt,Wt,Vt,Un,on){super(ot,Wt,Vt,on),this.sharedStylesHost=we,this.hostEl=He,this.shadowRoot=He.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const rr=be(yt.id,yt.styles);for(const ln of rr){const $n=document.createElement("style");Un&&$n.setAttribute("nonce",Un),$n.textContent=ln,this.shadowRoot.appendChild($n)}}nodeOrShadowRoot(ot){return ot===this.hostEl?this.shadowRoot:ot}appendChild(ot,we){return super.appendChild(this.nodeOrShadowRoot(ot),we)}insertBefore(ot,we,He){return super.insertBefore(this.nodeOrShadowRoot(ot),we,He)}removeChild(ot,we){return super.removeChild(this.nodeOrShadowRoot(ot),we)}parentNode(ot){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ot)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class $e extends vt{constructor(ot,we,He,yt,Wt,Vt,Un,on){super(ot,Wt,Vt,Un),this.sharedStylesHost=we,this.removeStylesOnCompDestroy=yt,this.styles=on?be(on,He.styles):He.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ee extends $e{constructor(ot,we,He,yt,Wt,Vt,Un,on){const rr=yt+"-"+He.id;super(ot,we,He,Wt,Vt,Un,on,rr),this.contentAttr=function ve(dt){return"_ngcontent-%COMP%".replace(k,dt)}(rr),this.hostAttr=function xe(dt){return"_nghost-%COMP%".replace(k,dt)}(rr)}applyToHost(ot){this.applyStyles(),this.setAttribute(ot,this.hostAttr,"")}createElement(ot,we){const He=super.createElement(ot,we);return super.setAttribute(He,this.contentAttr,""),He}}let ze=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return!0}addEventListener(we,He,yt){return we.addEventListener(He,yt,!1),()=>this.removeEventListener(we,He,yt)}removeEventListener(we,He,yt){return we.removeEventListener(He,yt)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const J=["alt","control","meta","shift"],Q={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},oe={alt:dt=>dt.altKey,control:dt=>dt.ctrlKey,meta:dt=>dt.metaKey,shift:dt=>dt.shiftKey};let se=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return null!=dt.parseEventName(we)}addEventListener(we,He,yt){const Wt=dt.parseEventName(He),Vt=dt.eventCallback(Wt.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(we,Wt.domEventName,Vt))}static parseEventName(we){const He=we.toLowerCase().split("."),yt=He.shift();if(0===He.length||"keydown"!==yt&&"keyup"!==yt)return null;const Wt=dt._normalizeKey(He.pop());let Vt="",Un=He.indexOf("code");if(Un>-1&&(He.splice(Un,1),Vt="code."),J.forEach(rr=>{const ln=He.indexOf(rr);ln>-1&&(He.splice(ln,1),Vt+=rr+".")}),Vt+=Wt,0!=He.length||0===Wt.length)return null;const on={};return on.domEventName=yt,on.fullKey=Vt,on}static matchEventFullKeyCode(we,He){let yt=Q[we.key]||we.key,Wt="";return He.indexOf("code.")>-1&&(yt=we.code,Wt="code."),!(null==yt||!yt)&&(yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),J.forEach(Vt=>{Vt!==yt&&(0,oe[Vt])(we)&&(Wt+=Vt+".")}),Wt+=yt,Wt===He)}static eventCallback(we,He,yt){return Wt=>{dt.matchEventFullKeyCode(Wt,we)&&yt.runGuarded(()=>He(Wt))}}static _normalizeKey(we){return"esc"===we?"escape":we}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const Je=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:d.bD},{provide:t.g9A,useValue:function Xe(){L.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function wt(){return(0,t.RDi)(document),document},deps:[]}]),Tt=new t.OlP(""),et=[{provide:t.rWj,useClass:class P{addToWindow(ot){t.dqk.getAngularTestability=(He,yt=!0)=>{const Wt=ot.findTestabilityInTree(He,yt);if(null==Wt)throw new t.vHH(5103,!1);return Wt},t.dqk.getAllAngularTestabilities=()=>ot.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>ot.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(He=>{const yt=t.dqk.getAllAngularTestabilities();let Wt=yt.length,Vt=!1;const Un=function(on){Vt=Vt||on,Wt--,0==Wt&&He(Vt)};yt.forEach(on=>{on.whenStable(Un)})})}findTestabilityInTree(ot,we,He){return null==we?null:ot.getTestability(we)??(He?(0,d.q)().isShadowRoot(we)?this.findTestabilityInTree(ot,we.host,!0):this.findTestabilityInTree(ot,we.parentElement,!0):null)}},deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],Pt=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function tt(){return new t.qLn},deps:[]},{provide:$,useClass:ze,multi:!0,deps:[d.K0,t.R0b,t.Lbi]},{provide:$,useClass:se,multi:!0,deps:[d.K0]},ke,q,f,{provide:t.FYo,useExisting:ke},{provide:d.JF,useClass:B,deps:[]},[]];let zt=(()=>{class dt{constructor(we){}static withServerTransition(we){return{ngModule:dt,providers:[{provide:t.AFp,useValue:we.appId}]}}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(Tt,12))};static#t=this.\u0275mod=t.oAB({type:dt});static#n=this.\u0275inj=t.cJS({providers:[...Pt,...et],imports:[d.ez,t.hGG]})}return dt})(),At=(()=>{class dt{constructor(we){this._doc=we}getTitle(){return this._doc.title}setTitle(we){this._doc.title=we||""}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function Ye(){return new At((0,t.LFG)(d.K0))}(),yt},providedIn:"root"})}return dt})();typeof window<"u"&&window;let Cn=(()=>{class dt{static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new(He||dt):t.LFG(In),yt},providedIn:"root"})}return dt})(),In=(()=>{class dt extends Cn{constructor(we){super(),this._doc=we}sanitize(we,He){if(null==He)return null;switch(we){case t.q3G.NONE:return He;case t.q3G.HTML:return(0,t.qzn)(He,"HTML")?(0,t.z3N)(He):(0,t.EiD)(this._doc,String(He)).toString();case t.q3G.STYLE:return(0,t.qzn)(He,"Style")?(0,t.z3N)(He):He;case t.q3G.SCRIPT:if((0,t.qzn)(He,"Script"))return(0,t.z3N)(He);throw new t.vHH(5200,!1);case t.q3G.URL:return(0,t.qzn)(He,"URL")?(0,t.z3N)(He):(0,t.mCW)(String(He));case t.q3G.RESOURCE_URL:if((0,t.qzn)(He,"ResourceURL"))return(0,t.z3N)(He);throw new t.vHH(5201,!1);default:throw new t.vHH(5202,!1)}}bypassSecurityTrustHtml(we){return(0,t.JVY)(we)}bypassSecurityTrustStyle(we){return(0,t.L6k)(we)}bypassSecurityTrustScript(we){return(0,t.eBb)(we)}bypassSecurityTrustUrl(we){return(0,t.LAX)(we)}bypassSecurityTrustResourceUrl(we){return(0,t.pB0)(we)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function An(dt){return new In(dt.get(d.K0))}(t.LFG(t.zs3)),yt},providedIn:"root"})}return dt})()},1523:(Pe,V,a)=>{"use strict";a.d(V,{gz:()=>wi,jw:()=>es,sz:()=>it,m2:()=>X,OD:()=>D,eC:()=>tt,F0:()=>er,rH:()=>Di,Od:()=>ga,Bz:()=>v,lC:()=>bi});var t=a(5879),d=a(2664),w=a(7715),L=a(2096),p=a(5619),O=a(2572);const F=(0,a(2306).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"});var P=a(5211),B=a(4911),$=a(8407),f=a(8504),j=a(6232),M=a(5592),q=a(7394),ie=a(9360),k=a(8251);function Te(){return(0,ie.e)((E,S)=>{let y=null;E._refCount++;const x=(0,k.x)(S,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(y=null);const G=E._connection,he=y;y=null,G&&(!he||G===he)&&G.unsubscribe(),S.unsubscribe()});E.subscribe(x),x.closed||(y=E.connect())})}class Se extends M.y{constructor(S,y){super(),this.source=S,this.subjectFactory=y,this._subject=null,this._refCount=0,this._connection=null,(0,ie.A)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new q.w0;const y=this.getSubject();S.add(this.source.subscribe((0,k.x)(y,void 0,()=>{this._teardown(),y.complete()},x=>{this._teardown(),y.error(x)},()=>this._teardown()))),S.closed&&(this._connection=null,S=q.w0.EMPTY)}return S}refCount(){return Te()(this)}}var ye=a(8645),ce=a(6814),_e=a(7398),ve=a(4664),xe=a(8180),be=a(7921),ke=a(2181),vt=a(1631),rt=a(3572);function Mt(E=qe){return(0,ie.e)((S,y)=>{let x=!1;S.subscribe((0,k.x)(y,G=>{x=!0,y.next(G)},()=>x?y.complete():y.error(E())))})}function qe(){return new F}var _t=a(2737);function $e(E,S){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,(0,xe.q)(1),y?(0,rt.d)(S):Mt(()=>new F))}var Ee=a(6328),ze=a(9397),J=a(6306),Q=a(6699);function oe(E){return E<=0?()=>j.E:(0,ie.e)((S,y)=>{let x=[];S.subscribe((0,k.x)(y,G=>{x.push(G),E{for(const G of x)y.next(G);y.complete()},void 0,()=>{x=null}))})}var ae=a(975),fe=a(4716),De=a(9773),je=a(7537),Xe=a(6593);const tt="primary",wt=Symbol("RouteTitle");class It{constructor(S){this.params=S||{}}has(S){return Object.prototype.hasOwnProperty.call(this.params,S)}get(S){if(this.has(S)){const y=this.params[S];return Array.isArray(y)?y[0]:y}return null}getAll(S){if(this.has(S)){const y=this.params[S];return Array.isArray(y)?y:[y]}return[]}get keys(){return Object.keys(this.params)}}function Je(E){return new It(E)}function Tt(E,S,y){const x=y.path.split("/");if(x.length>E.length||"full"===y.pathMatch&&(S.hasChildren()||x.lengthx[he]===G)}return E===S}function dn(E){return E.length>0?E[E.length-1]:null}function Rn(E){return(0,d.b)(E)?E:(0,t.QGY)(E)?(0,w.D)(Promise.resolve(E)):(0,L.of)(E)}const We={exact:function nn(E,S,y){if(!Wn(E.segments,S.segments)||!fn(E.segments,S.segments,y)||E.numberOfChildren!==S.numberOfChildren)return!1;for(const x in S.children)if(!E.children[x]||!nn(E.children[x],S.children[x],y))return!1;return!0},subset:Ht},Ye={exact:function xt(E,S){return Pt(E,S)},subset:function Et(E,S){return Object.keys(S).length<=Object.keys(E).length&&Object.keys(S).every(y=>zt(E[y],S[y]))},ignored:()=>!0};function At(E,S,y){return We[y.paths](E.root,S.root,y.matrixParams)&&Ye[y.queryParams](E.queryParams,S.queryParams)&&!("exact"===y.fragment&&E.fragment!==S.fragment)}function Ht(E,S,y){return Zt(E,S,S.segments,y)}function Zt(E,S,y,x){if(E.segments.length>y.length){const G=E.segments.slice(0,y.length);return!(!Wn(G,y)||S.hasChildren()||!fn(G,y,x))}if(E.segments.length===y.length){if(!Wn(E.segments,y)||!fn(E.segments,y,x))return!1;for(const G in S.children)if(!E.children[G]||!Ht(E.children[G],S.children[G],x))return!1;return!0}{const G=y.slice(0,E.segments.length),he=y.slice(E.segments.length);return!!(Wn(E.segments,G)&&fn(E.segments,G,x)&&E.children[tt])&&Zt(E.children[tt],S,he,x)}}function fn(E,S,y){return S.every((x,G)=>Ye[y](E[G].parameters,x.parameters))}class Sn{constructor(S=new hn([],{}),y={},x=null){this.root=S,this.queryParams=y,this.fragment=x}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return Ut.serialize(this)}}class hn{constructor(S,y){this.segments=S,this.children=y,this.parent=null,Object.values(y).forEach(x=>x.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qt(this)}}class en{constructor(S,y){this.path=S,this.parameters=y}get parameterMap(){return this._parameterMap||(this._parameterMap=Je(this.parameters)),this._parameterMap}toString(){return Ir(this)}}function Wn(E,S){return E.length===S.length&&E.every((y,x)=>y.path===S[x].path)}let Er=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return new it},providedIn:"root"})}return E})();class it{parse(S){const y=new Un(S);return new Sn(y.parseRootSegment(),y.parseQueryParams(),y.parseFragment())}serialize(S){const y=`/${Cn(S.root,!0)}`,x=function oi(E){const S=Object.keys(E).map(y=>{const x=E[y];return Array.isArray(x)?x.map(G=>`${In(y)}=${In(G)}`).join("&"):`${In(y)}=${In(x)}`}).filter(y=>!!y);return S.length?`?${S.join("&")}`:""}(S.queryParams);return`${y}${x}${"string"==typeof S.fragment?`#${function nr(E){return encodeURI(E)}(S.fragment)}`:""}`}}const Ut=new it;function Qt(E){return E.segments.map(S=>Ir(S)).join("/")}function Cn(E,S){if(!E.hasChildren())return Qt(E);if(S){const y=E.children[tt]?Cn(E.children[tt],!1):"",x=[];return Object.entries(E.children).forEach(([G,he])=>{G!==tt&&x.push(`${G}:${Cn(he,!1)}`)}),x.length>0?`${y}(${x.join("//")})`:y}{const y=function _n(E,S){let y=[];return Object.entries(E.children).forEach(([x,G])=>{x===tt&&(y=y.concat(S(G,x)))}),Object.entries(E.children).forEach(([x,G])=>{x!==tt&&(y=y.concat(S(G,x)))}),y}(E,(x,G)=>G===tt?[Cn(E.children[tt],!1)]:[`${G}:${Cn(x,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[tt]?`${Qt(E)}/${y[0]}`:`${Qt(E)}/(${y.join("//")})`}}function An(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function In(E){return An(E).replace(/%3B/gi,";")}function Dr(E){return An(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wr(E){return decodeURIComponent(E)}function Or(E){return wr(E.replace(/\+/g,"%20"))}function Ir(E){return`${Dr(E.path)}${function Br(E){return Object.keys(E).map(S=>`;${Dr(S)}=${Dr(E[S])}`).join("")}(E.parameters)}`}const zn=/^[^\/()?;#]+/;function dt(E){const S=E.match(zn);return S?S[0]:""}const ot=/^[^\/()?;=#]+/,He=/^[^=?&#]+/,Wt=/^[^&#]+/;class Un{constructor(S){this.url=S,this.remaining=S}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hn([],{}):new hn([],this.parseChildren())}parseQueryParams(){const S={};if(this.consumeOptional("?"))do{this.parseQueryParam(S)}while(this.consumeOptional("&"));return S}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const S=[];for(this.peekStartsWith("(")||S.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),S.push(this.parseSegment());let y={};this.peekStartsWith("/(")&&(this.capture("/"),y=this.parseParens(!0));let x={};return this.peekStartsWith("(")&&(x=this.parseParens(!1)),(S.length>0||Object.keys(y).length>0)&&(x[tt]=new hn(S,y)),x}parseSegment(){const S=dt(this.remaining);if(""===S&&this.peekStartsWith(";"))throw new t.vHH(4009,!1);return this.capture(S),new en(wr(S),this.parseMatrixParams())}parseMatrixParams(){const S={};for(;this.consumeOptional(";");)this.parseParam(S);return S}parseParam(S){const y=function we(E){const S=E.match(ot);return S?S[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const G=dt(this.remaining);G&&(x=G,this.capture(x))}S[wr(y)]=wr(x)}parseQueryParam(S){const y=function yt(E){const S=E.match(He);return S?S[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const Me=function Vt(E){const S=E.match(Wt);return S?S[0]:""}(this.remaining);Me&&(x=Me,this.capture(x))}const G=Or(y),he=Or(x);if(S.hasOwnProperty(G)){let Me=S[G];Array.isArray(Me)||(Me=[Me],S[G]=Me),Me.push(he)}else S[G]=he}parseParens(S){const y={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const x=dt(this.remaining),G=this.remaining[x.length];if("/"!==G&&")"!==G&&";"!==G)throw new t.vHH(4010,!1);let he;x.indexOf(":")>-1?(he=x.slice(0,x.indexOf(":")),this.capture(he),this.capture(":")):S&&(he=tt);const Me=this.parseChildren();y[he]=1===Object.keys(Me).length?Me[tt]:new hn([],Me),this.consumeOptional("//")}return y}peekStartsWith(S){return this.remaining.startsWith(S)}consumeOptional(S){return!!this.peekStartsWith(S)&&(this.remaining=this.remaining.substring(S.length),!0)}capture(S){if(!this.consumeOptional(S))throw new t.vHH(4011,!1)}}function on(E){return E.segments.length>0?new hn([],{[tt]:E}):E}function rr(E){const S={};for(const x of Object.keys(E.children)){const he=rr(E.children[x]);if(x===tt&&0===he.segments.length&&he.hasChildren())for(const[Me,at]of Object.entries(he.children))S[Me]=at;else(he.segments.length>0||he.hasChildren())&&(S[x]=he)}return function ln(E){if(1===E.numberOfChildren&&E.children[tt]){const S=E.children[tt];return new hn(E.segments.concat(S.segments),S.children)}return E}(new hn(E.segments,S))}function $n(E){return E instanceof Sn}function Le(E){let S;const G=on(function y(he){const Me={};for(const ft of he.children){const tn=y(ft);Me[ft.outlet]=tn}const at=new hn(he.url,Me);return he===E&&(S=at),at}(E.root));return S??G}function Ue(E,S,y,x){let G=E;for(;G.parent;)G=G.parent;if(0===S.length)return kt(G,G,G,y,x);const he=function wn(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new an(!0,0,E);let S=0,y=!1;const x=E.reduce((G,he,Me)=>{if("object"==typeof he&&null!=he){if(he.outlets){const at={};return Object.entries(he.outlets).forEach(([ft,tn])=>{at[ft]="string"==typeof tn?tn.split("/"):tn}),[...G,{outlets:at}]}if(he.segmentPath)return[...G,he.segmentPath]}return"string"!=typeof he?[...G,he]:0===Me?(he.split("/").forEach((at,ft)=>{0==ft&&"."===at||(0==ft&&""===at?y=!0:".."===at?S++:""!=at&&G.push(at))}),G):[...G,he]},[]);return new an(y,S,x)}(S);if(he.toRoot())return kt(G,G,new hn([],{}),y,x);const Me=function jr(E,S,y){if(E.isAbsolute)return new pr(S,!0,0);if(!y)return new pr(S,!1,NaN);if(null===y.parent)return new pr(y,!0,0);const x=bt(E.commands[0])?0:1;return function Fr(E,S,y){let x=E,G=S,he=y;for(;he>G;){if(he-=G,x=x.parent,!x)throw new t.vHH(4005,!1);G=x.segments.length}return new pr(x,!1,G-he)}(y,y.segments.length-1+x,E.numberOfDoubleDots)}(he,G,E),at=Me.processChildren?zr(Me.segmentGroup,Me.index,he.commands):Hr(Me.segmentGroup,Me.index,he.commands);return kt(G,Me.segmentGroup,at,y,x)}function bt(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Rt(E){return"object"==typeof E&&null!=E&&E.outlets}function kt(E,S,y,x,G){let Me,he={};x&&Object.entries(x).forEach(([ft,tn])=>{he[ft]=Array.isArray(tn)?tn.map(kn=>`${kn}`):`${tn}`}),Me=E===S?y:Ft(E,S,y);const at=on(rr(Me));return new Sn(at,he,G)}function Ft(E,S,y){const x={};return Object.entries(E.children).forEach(([G,he])=>{x[G]=he===S?y:Ft(he,S,y)}),new hn(E.segments,x)}class an{constructor(S,y,x){if(this.isAbsolute=S,this.numberOfDoubleDots=y,this.commands=x,S&&x.length>0&&bt(x[0]))throw new t.vHH(4003,!1);const G=x.find(Rt);if(G&&G!==dn(x))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(S,y,x){this.segmentGroup=S,this.processChildren=y,this.index=x}}function Hr(E,S,y){if(E||(E=new hn([],{})),0===E.segments.length&&E.hasChildren())return zr(E,S,y);const x=function Xn(E,S,y){let x=0,G=S;const he={match:!1,pathIndex:0,commandIndex:0};for(;G=y.length)return he;const Me=E.segments[G],at=y[x];if(Rt(at))break;const ft=`${at}`,tn=x0&&void 0===ft)break;if(ft&&tn&&"object"==typeof tn&&void 0===tn.outlets){if(!pe(ft,tn,Me))return he;x+=2}else{if(!pe(ft,{},Me))return he;x++}G++}return{match:!0,pathIndex:G,commandIndex:x}}(E,S,y),G=y.slice(x.commandIndex);if(x.match&&x.pathIndexhe!==tt)&&E.children[tt]&&1===E.numberOfChildren&&0===E.children[tt].segments.length){const he=zr(E.children[tt],S,y);return new hn(E.segments,he.children)}return Object.entries(x).forEach(([he,Me])=>{"string"==typeof Me&&(Me=[Me]),null!==Me&&(G[he]=Hr(E.children[he],S,Me))}),Object.entries(E.children).forEach(([he,Me])=>{void 0===x[he]&&(G[he]=Me)}),new hn(E.segments,G)}}function qn(E,S,y){const x=E.segments.slice(0,S);let G=0;for(;G{"string"==typeof x&&(x=[x]),null!==x&&(S[y]=qn(new hn([],{}),0,x))}),S}function ai(E){const S={};return Object.entries(E).forEach(([y,x])=>S[y]=`${x}`),S}function pe(E,S,y){return E==y.path&&Pt(S,y.parameters)}const z="imperative";class K{constructor(S,y){this.id=S,this.url=y}}class D extends K{constructor(S,y,x="imperative",G=null){super(S,y),this.type=0,this.navigationTrigger=x,this.restoredState=G}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class X extends K{constructor(S,y,x){super(S,y),this.urlAfterRedirects=x,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class de extends K{constructor(S,y,x,G){super(S,y),this.reason=x,this.code=G,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Oe extends K{constructor(S,y,x,G){super(S,y),this.reason=x,this.code=G,this.type=16}}class Ae extends K{constructor(S,y,x,G){super(S,y),this.error=x,this.target=G,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mt extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $t extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cn extends K{constructor(S,y,x,G,he){super(S,y),this.urlAfterRedirects=x,this.state=G,this.shouldActivate=he,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vn extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class En extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nn{constructor(S){this.route=S,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ir{constructor(S){this.route=S,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _r{constructor(S){this.snapshot=S,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zr{constructor(S){this.snapshot=S,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yr{constructor(S){this.snapshot=S,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class es{constructor(S){this.snapshot=S,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(S,y,x){this.routerEvent=S,this.position=y,this.anchor=x,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ti{}class hs{constructor(S){this.url=S}}class Is{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Bi,this.attachRef=null}}let Bi=(()=>{class E{constructor(){this.contexts=new Map}onChildOutletCreated(y,x){const G=this.getOrCreateContext(y);G.outlet=x,this.contexts.set(y,G)}onChildOutletDestroyed(y){const x=this.getContext(y);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const y=this.contexts;return this.contexts=new Map,y}onOutletReAttached(y){this.contexts=y}getOrCreateContext(y){let x=this.getContext(y);return x||(x=new Is,this.contexts.set(y,x)),x}getContext(y){return this.contexts.get(y)||null}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Gi{constructor(S){this._root=S}get root(){return this._root.value}parent(S){const y=this.pathFromRoot(S);return y.length>1?y[y.length-2]:null}children(S){const y=Vr(S,this._root);return y?y.children.map(x=>x.value):[]}firstChild(S){const y=Vr(S,this._root);return y&&y.children.length>0?y.children[0].value:null}siblings(S){const y=jn(S,this._root);return y.length<2?[]:y[y.length-2].children.map(G=>G.value).filter(G=>G!==S)}pathFromRoot(S){return jn(S,this._root).map(y=>y.value)}}function Vr(E,S){if(E===S.value)return S;for(const y of S.children){const x=Vr(E,y);if(x)return x}return null}function jn(E,S){if(E===S.value)return[S];for(const y of S.children){const x=jn(E,y);if(x.length)return x.unshift(S),x}return[]}class vr{constructor(S,y){this.value=S,this.children=y}toString(){return`TreeNode(${this.value})`}}function Sr(E){const S={};return E&&E.children.forEach(y=>S[y.value.outlet]=y),S}class vi extends Gi{constructor(S,y){super(S),this.snapshot=y,Kt(this,S)}toString(){return this.snapshot.toString()}}function ci(E,S){const y=function ts(E,S){const Me=new Ui([],{},{},"",{},tt,S,null,{});return new xr("",new vr(Me,[]))}(0,S),x=new p.X([new en("",{})]),G=new p.X({}),he=new p.X({}),Me=new p.X({}),at=new p.X(""),ft=new wi(x,G,Me,at,he,tt,S,y.root);return ft.snapshot=y.root,new vi(new vr(ft,[]),y)}class wi{constructor(S,y,x,G,he,Me,at,ft){this.urlSubject=S,this.paramsSubject=y,this.queryParamsSubject=x,this.fragmentSubject=G,this.dataSubject=he,this.outlet=Me,this.component=at,this._futureSnapshot=ft,this.title=this.dataSubject?.pipe((0,_e.U)(tn=>tn[wt]))??(0,L.of)(void 0),this.url=S,this.params=y,this.queryParams=x,this.fragment=G,this.data=he}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,_e.U)(S=>Je(S)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,_e.U)(S=>Je(S)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ui(E,S="emptyOnly"){const y=E.pathFromRoot;let x=0;if("always"!==S)for(x=y.length-1;x>=1;){const G=y[x],he=y[x-1];if(G.routeConfig&&""===G.routeConfig.path)x--;else{if(he.component)break;x--}}return function ys(E){return E.reduce((S,y)=>({params:{...S.params,...y.params},data:{...S.data,...y.data},resolve:{...y.data,...S.resolve,...y.routeConfig?.data,...y._resolvedData}}),{params:{},data:{},resolve:{}})}(y.slice(x))}class Ui{get title(){return this.data?.[wt]}constructor(S,y,x,G,he,Me,at,ft,tn){this.url=S,this.params=y,this.queryParams=x,this.fragment=G,this.data=he,this.outlet=Me,this.component=at,this.routeConfig=ft,this._resolve=tn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Je(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(x=>x.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xr extends Gi{constructor(S,y){super(y),this.url=S,Kt(this,y)}toString(){return Mn(this._root)}}function Kt(E,S){S.value._routerState=E,S.children.forEach(y=>Kt(E,y))}function Mn(E){const S=E.children.length>0?` { ${E.children.map(Mn).join(", ")} } `:"";return`${E.value}${S}`}function hr(E){if(E.snapshot){const S=E.snapshot,y=E._futureSnapshot;E.snapshot=y,Pt(S.queryParams,y.queryParams)||E.queryParamsSubject.next(y.queryParams),S.fragment!==y.fragment&&E.fragmentSubject.next(y.fragment),Pt(S.params,y.params)||E.paramsSubject.next(y.params),function et(E,S){if(E.length!==S.length)return!1;for(let y=0;yPt(y.parameters,S[x].parameters))}(E.url,S.url);return y&&!(!E.parent!=!S.parent)&&(!E.parent||$r(E.parent,S.parent))}let bi=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=tt,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(Bi),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb),this.inputBinder=(0,t.f3M)(Ze,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(y){if(y.name){const{firstChange:x,previousValue:G}=y.name;if(x)return;this.isTrackedInParentContexts(G)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(G)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(y){return this.parentContexts.getContext(y)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const y=this.parentContexts.getContext(this.name);y?.route&&(y.attachRef?this.attach(y.attachRef,y.route):this.activateWith(y.route,y.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,!1);this.location.detach();const y=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(y.instance),y}attach(y,x){this.activated=y,this._activatedRoute=x,this.location.insert(y.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(y.instance)}deactivate(){if(this.activated){const y=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(y)}}activateWith(y,x){if(this.isActivated)throw new t.vHH(4013,!1);this._activatedRoute=y;const G=this.location,Me=y.snapshot.component,at=this.parentContexts.getOrCreateContext(this.name).children,ft=new Nr(y,at,G.injector);this.activated=G.createComponent(Me,{index:G.length,injector:ft,environmentInjector:x??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]})}return E})();class Nr{constructor(S,y,x){this.route=S,this.childContexts=y,this.parent=x}get(S,y){return S===wi?this.route:S===Bi?this.childContexts:this.parent.get(S,y)}}const Ze=new t.OlP("");let Ve=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(y){this.unsubscribeFromRouteData(y),this.subscribeToRouteData(y)}unsubscribeFromRouteData(y){this.outletDataSubscriptions.get(y)?.unsubscribe(),this.outletDataSubscriptions.delete(y)}subscribeToRouteData(y){const{activatedRoute:x}=y,G=(0,O.a)([x.queryParams,x.params,x.data]).pipe((0,ve.w)(([he,Me,at],ft)=>(at={...he,...Me,...at},0===ft?(0,L.of)(at):Promise.resolve(at)))).subscribe(he=>{if(!y.isActivated||!y.activatedComponentRef||y.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(y);const Me=(0,t.qFp)(x.component);if(Me)for(const{templateName:at}of Me.inputs)y.activatedComponentRef.setInput(at,he[at]);else this.unsubscribeFromRouteData(y)});this.outletDataSubscriptions.set(y,G)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function Yt(E,S,y){if(y&&E.shouldReuseRoute(S.value,y.value.snapshot)){const x=y.value;x._futureSnapshot=S.value;const G=function Bt(E,S,y){return S.children.map(x=>{for(const G of y.children)if(E.shouldReuseRoute(x.value,G.value.snapshot))return Yt(E,x,G);return Yt(E,x)})}(E,S,y);return new vr(x,G)}{if(E.shouldAttach(S.value)){const he=E.retrieve(S.value);if(null!==he){const Me=he.route;return Me.value._futureSnapshot=S.value,Me.children=S.children.map(at=>Yt(E,at)),Me}}const x=function gr(E){return new wi(new p.X(E.url),new p.X(E.params),new p.X(E.queryParams),new p.X(E.fragment),new p.X(E.data),E.outlet,E.component,E)}(S.value),G=S.children.map(he=>Yt(E,he));return new vr(x,G)}}const Si="ngNavigationCancelingError";function Yn(E,S){const{redirectTo:y,navigationBehaviorOptions:x}=$n(S)?{redirectTo:S,navigationBehaviorOptions:void 0}:S,G=sr(!1,0,S);return G.url=y,G.navigationBehaviorOptions=x,G}function sr(E,S,y){const x=new Error("NavigationCancelingError: "+(E||""));return x[Si]=!0,x.cancellationCode=S,y&&(x.url=y),x}function Mi(E){return E&&E[Si]}let di=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275cmp=t.Xpm({type:E,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(x,G){1&x&&t._UZ(0,"router-outlet")},dependencies:[bi],encapsulation:2})}return E})();function rs(E){const S=E.children&&E.children.map(rs),y=S?{...E,children:S}:{...E};return!y.component&&!y.loadComponent&&(S||y.loadChildren)&&y.outlet&&y.outlet!==tt&&(y.component=di),y}function Pr(E){return E.outlet||tt}function Ri(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let S=E.parent;S;S=S.parent){const y=S.routeConfig;if(y?._loadedInjector)return y._loadedInjector;if(y?._injector)return y._injector}return null}class lt{constructor(S,y,x,G,he){this.routeReuseStrategy=S,this.futureState=y,this.currState=x,this.forwardEvent=G,this.inputBindingEnabled=he}activate(S){const y=this.futureState._root,x=this.currState?this.currState._root:null;this.deactivateChildRoutes(y,x,S),hr(this.futureState.root),this.activateChildRoutes(y,x,S)}deactivateChildRoutes(S,y,x){const G=Sr(y);S.children.forEach(he=>{const Me=he.value.outlet;this.deactivateRoutes(he,G[Me],x),delete G[Me]}),Object.values(G).forEach(he=>{this.deactivateRouteAndItsChildren(he,x)})}deactivateRoutes(S,y,x){const G=S.value,he=y?y.value:null;if(G===he)if(G.component){const Me=x.getContext(G.outlet);Me&&this.deactivateChildRoutes(S,y,Me.children)}else this.deactivateChildRoutes(S,y,x);else he&&this.deactivateRouteAndItsChildren(y,x)}deactivateRouteAndItsChildren(S,y){S.value.component&&this.routeReuseStrategy.shouldDetach(S.value.snapshot)?this.detachAndStoreRouteSubtree(S,y):this.deactivateRouteAndOutlet(S,y)}detachAndStoreRouteSubtree(S,y){const x=y.getContext(S.value.outlet),G=x&&S.value.component?x.children:y,he=Sr(S);for(const Me of Object.keys(he))this.deactivateRouteAndItsChildren(he[Me],G);if(x&&x.outlet){const Me=x.outlet.detach(),at=x.children.onOutletDeactivated();this.routeReuseStrategy.store(S.value.snapshot,{componentRef:Me,route:S,contexts:at})}}deactivateRouteAndOutlet(S,y){const x=y.getContext(S.value.outlet),G=x&&S.value.component?x.children:y,he=Sr(S);for(const Me of Object.keys(he))this.deactivateRouteAndItsChildren(he[Me],G);x&&(x.outlet&&(x.outlet.deactivate(),x.children.onOutletDeactivated()),x.attachRef=null,x.route=null)}activateChildRoutes(S,y,x){const G=Sr(y);S.children.forEach(he=>{this.activateRoutes(he,G[he.value.outlet],x),this.forwardEvent(new es(he.value.snapshot))}),S.children.length&&this.forwardEvent(new Zr(S.value.snapshot))}activateRoutes(S,y,x){const G=S.value,he=y?y.value:null;if(hr(G),G===he)if(G.component){const Me=x.getOrCreateContext(G.outlet);this.activateChildRoutes(S,y,Me.children)}else this.activateChildRoutes(S,y,x);else if(G.component){const Me=x.getOrCreateContext(G.outlet);if(this.routeReuseStrategy.shouldAttach(G.snapshot)){const at=this.routeReuseStrategy.retrieve(G.snapshot);this.routeReuseStrategy.store(G.snapshot,null),Me.children.onOutletReAttached(at.contexts),Me.attachRef=at.componentRef,Me.route=at.route.value,Me.outlet&&Me.outlet.attach(at.componentRef,at.route.value),hr(at.route.value),this.activateChildRoutes(S,null,Me.children)}else{const at=Ri(G.snapshot);Me.attachRef=null,Me.route=G,Me.injector=at,Me.outlet&&Me.outlet.activateWith(G,Me.injector),this.activateChildRoutes(S,null,Me.children)}}else this.activateChildRoutes(S,null,x)}}class Ot{constructor(S){this.path=S,this.route=this.path[this.path.length-1]}}class qt{constructor(S,y){this.component=S,this.route=y}}function Kr(E,S,y){const x=E._root;return fi(x,S?S._root:null,y,[x.value])}function ms(E,S){const y=Symbol(),x=S.get(E,y);return x===y?"function"!=typeof E||(0,t.Z0I)(E)?S.get(E):E:x}function fi(E,S,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=Sr(S);return E.children.forEach(Me=>{(function Hs(E,S,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=E.value,Me=S?S.value:null,at=y?y.getContext(E.value.outlet):null;if(Me&&he.routeConfig===Me.routeConfig){const ft=function po(E,S,y){if("function"==typeof y)return y(E,S);switch(y){case"pathParamsChange":return!Wn(E.url,S.url);case"pathParamsOrQueryParamsChange":return!Wn(E.url,S.url)||!Pt(E.queryParams,S.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$r(E,S)||!Pt(E.queryParams,S.queryParams);default:return!$r(E,S)}}(Me,he,he.routeConfig.runGuardsAndResolvers);ft?G.canActivateChecks.push(new Ot(x)):(he.data=Me.data,he._resolvedData=Me._resolvedData),fi(E,S,he.component?at?at.children:null:y,x,G),ft&&at&&at.outlet&&at.outlet.isActivated&&G.canDeactivateChecks.push(new qt(at.outlet.component,Me))}else Me&&Ds(S,at,G),G.canActivateChecks.push(new Ot(x)),fi(E,null,he.component?at?at.children:null:y,x,G)})(Me,he[Me.value.outlet],y,x.concat([Me.value]),G),delete he[Me.value.outlet]}),Object.entries(he).forEach(([Me,at])=>Ds(at,y.getContext(Me),G)),G}function Ds(E,S,y){const x=Sr(E),G=E.value;Object.entries(x).forEach(([he,Me])=>{Ds(Me,G.component?S?S.children.getContext(he):null:S,y)}),y.canDeactivateChecks.push(new qt(G.component&&S&&S.outlet&&S.outlet.isActivated?S.outlet.component:null,G))}function Xs(E){return"function"==typeof E}function Zn(E){return E instanceof F||"EmptyError"===E?.name}const Ni=Symbol("INITIAL_VALUE");function is(){return(0,ve.w)(E=>(0,O.a)(E.map(S=>S.pipe((0,xe.q)(1),(0,be.O)(Ni)))).pipe((0,_e.U)(S=>{for(const y of S)if(!0!==y){if(y===Ni)return Ni;if(!1===y||y instanceof Sn)return y}return!0}),(0,ke.h)(S=>S!==Ni),(0,xe.q)(1)))}function as(E){return(0,$.z)((0,ze.b)(S=>{if($n(S))throw Yn(0,S)}),(0,_e.U)(S=>!0===S))}class Ki{constructor(S){this.segmentGroup=S||null}}class pi{constructor(S){this.urlTree=S}}function ls(E){return(0,f._)(new Ki(E))}function yi(E){return(0,f._)(new pi(E))}class Ps{constructor(S,y){this.urlSerializer=S,this.urlTree=y}noMatchError(S){return new t.vHH(4002,!1)}lineralizeSegments(S,y){let x=[],G=y.root;for(;;){if(x=x.concat(G.segments),0===G.numberOfChildren)return(0,L.of)(x);if(G.numberOfChildren>1||!G.children[tt])return(0,f._)(new t.vHH(4e3,!1));G=G.children[tt]}}applyRedirectCommands(S,y,x){return this.applyRedirectCreateUrlTree(y,this.urlSerializer.parse(y),S,x)}applyRedirectCreateUrlTree(S,y,x,G){const he=this.createSegmentGroup(S,y.root,x,G);return new Sn(he,this.createQueryParams(y.queryParams,this.urlTree.queryParams),y.fragment)}createQueryParams(S,y){const x={};return Object.entries(S).forEach(([G,he])=>{if("string"==typeof he&&he.startsWith(":")){const at=he.substring(1);x[G]=y[at]}else x[G]=he}),x}createSegmentGroup(S,y,x,G){const he=this.createSegments(S,y.segments,x,G);let Me={};return Object.entries(y.children).forEach(([at,ft])=>{Me[at]=this.createSegmentGroup(S,ft,x,G)}),new hn(he,Me)}createSegments(S,y,x,G){return y.map(he=>he.path.startsWith(":")?this.findPosParam(S,he,G):this.findOrReturn(he,x))}findPosParam(S,y,x){const G=x[y.path.substring(1)];if(!G)throw new t.vHH(4001,!1);return G}findOrReturn(S,y){let x=0;for(const G of y){if(G.path===S.path)return y.splice(x),G;x++}return S}}const ro={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function io(E,S,y,x,G){const he=go(E,S,y);return he.matched?(x=function ns(E,S){return E.providers&&!E._injector&&(E._injector=(0,t.MMx)(E.providers,S,`Route: ${E.path}`)),E._injector??S}(S,x),function To(E,S,y,x){const G=S.canMatch;if(!G||0===G.length)return(0,L.of)(!0);const he=G.map(Me=>{const at=ms(Me,E);return Rn(function ge(E){return E&&Xs(E.canMatch)}(at)?at.canMatch(S,y):E.runInContext(()=>at(S,y)))});return(0,L.of)(he).pipe(is(),as())}(x,S,y).pipe((0,_e.U)(Me=>!0===Me?he:{...ro}))):(0,L.of)(he)}function go(E,S,y){if(""===S.path)return"full"===S.pathMatch&&(E.hasChildren()||y.length>0)?{...ro}:{matched:!0,consumedSegments:[],remainingSegments:y,parameters:{},positionalParamSegments:{}};const G=(S.matcher||Tt)(y,E,S);if(!G)return{...ro};const he={};Object.entries(G.posParams??{}).forEach(([at,ft])=>{he[at]=ft.path});const Me=G.consumed.length>0?{...he,...G.consumed[G.consumed.length-1].parameters}:he;return{matched:!0,consumedSegments:G.consumed,remainingSegments:y.slice(G.consumed.length),parameters:Me,positionalParamSegments:G.posParams??{}}}function wo(E,S,y,x){return y.length>0&&function ca(E,S,y){return y.some(x=>Cs(E,S,x)&&Pr(x)!==tt)}(E,y,x)?{segmentGroup:new hn(S,so(x,new hn(y,E.children))),slicedSegments:[]}:0===y.length&&function ua(E,S,y){return y.some(x=>Cs(E,S,x))}(E,y,x)?{segmentGroup:new hn(E.segments,So(E,0,y,x,E.children)),slicedSegments:y}:{segmentGroup:new hn(E.segments,E.children),slicedSegments:y}}function So(E,S,y,x,G){const he={};for(const Me of x)if(Cs(E,y,Me)&&!G[Pr(Me)]){const at=new hn([],{});he[Pr(Me)]=at}return{...G,...he}}function so(E,S){const y={};y[tt]=S;for(const x of E)if(""===x.path&&Pr(x)!==tt){const G=new hn([],{});y[Pr(x)]=G}return y}function Cs(E,S,y){return(!(E.hasChildren()||S.length>0)||"full"!==y.pathMatch)&&""===y.path}class fa{constructor(S,y,x,G,he,Me,at){this.injector=S,this.configLoader=y,this.rootComponentType=x,this.config=G,this.urlTree=he,this.paramsInheritanceStrategy=Me,this.urlSerializer=at,this.allowRedirects=!0,this.applyRedirects=new Ps(this.urlSerializer,this.urlTree)}noMatchError(S){return new t.vHH(4002,!1)}recognize(){const S=wo(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,S,tt).pipe((0,J.K)(y=>{if(y instanceof pi)return this.allowRedirects=!1,this.urlTree=y.urlTree,this.match(y.urlTree);throw y instanceof Ki?this.noMatchError(y):y}),(0,_e.U)(y=>{const x=new Ui([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,{}),G=new vr(x,y),he=new xr("",G),Me=function Qe(E,S,y=null,x=null){return Ue(Le(E),S,y,x)}(x,[],this.urlTree.queryParams,this.urlTree.fragment);return Me.queryParams=this.urlTree.queryParams,he.url=this.urlSerializer.serialize(Me),this.inheritParamsAndData(he._root),{state:he,tree:Me}}))}match(S){return this.processSegmentGroup(this.injector,this.config,S.root,tt).pipe((0,J.K)(x=>{throw x instanceof Ki?this.noMatchError(x):x}))}inheritParamsAndData(S){const y=S.value,x=ui(y,this.paramsInheritanceStrategy);y.params=Object.freeze(x.params),y.data=Object.freeze(x.data),S.children.forEach(G=>this.inheritParamsAndData(G))}processSegmentGroup(S,y,x,G){return 0===x.segments.length&&x.hasChildren()?this.processChildren(S,y,x):this.processSegment(S,y,x,x.segments,G,!0)}processChildren(S,y,x){const G=[];for(const he of Object.keys(x.children))"primary"===he?G.unshift(he):G.push(he);return(0,w.D)(G).pipe((0,Ee.b)(he=>{const Me=x.children[he],at=function gs(E,S){const y=E.filter(x=>Pr(x)===S);return y.push(...E.filter(x=>Pr(x)!==S)),y}(y,he);return this.processSegmentGroup(S,at,Me,he)}),(0,Q.R)((he,Me)=>(he.push(...Me),he)),(0,rt.d)(null),function se(E,S){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,oe(1),y?(0,rt.d)(S):Mt(()=>new F))}(),(0,vt.z)(he=>{if(null===he)return ls(x);const Me=zo(he);return function pa(E){E.sort((S,y)=>S.value.outlet===tt?-1:y.value.outlet===tt?1:S.value.outlet.localeCompare(y.value.outlet))}(Me),(0,L.of)(Me)}))}processSegment(S,y,x,G,he,Me){return(0,w.D)(y).pipe((0,Ee.b)(at=>this.processSegmentAgainstRoute(at._injector??S,y,at,x,G,he,Me).pipe((0,J.K)(ft=>{if(ft instanceof Ki)return(0,L.of)(null);throw ft}))),$e(at=>!!at),(0,J.K)(at=>{if(Zn(at))return function Rs(E,S,y){return 0===S.length&&!E.children[y]}(x,G,he)?(0,L.of)([]):ls(x);throw at}))}processSegmentAgainstRoute(S,y,x,G,he,Me,at){return function mo(E,S,y,x){return!!(Pr(E)===x||x!==tt&&Cs(S,y,E))&&("**"===E.path||go(S,E,y).matched)}(x,G,he,Me)?void 0===x.redirectTo?this.matchSegmentAgainstRoute(S,G,x,he,Me,at):at&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(S,G,y,x,he,Me):ls(G):ls(G)}expandSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me){return"**"===G.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(S,x,G,Me):this.expandRegularSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me)}expandWildCardWithParamsAgainstRouteUsingRedirect(S,y,x,G){const he=this.applyRedirects.applyRedirectCommands([],x.redirectTo,{});return x.redirectTo.startsWith("/")?yi(he):this.applyRedirects.lineralizeSegments(x,he).pipe((0,vt.z)(Me=>{const at=new hn(Me,{});return this.processSegment(S,y,at,Me,G,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me){const{matched:at,consumedSegments:ft,remainingSegments:tn,positionalParamSegments:kn}=go(y,G,he);if(!at)return ls(y);const Rr=this.applyRedirects.applyRedirectCommands(ft,G.redirectTo,kn);return G.redirectTo.startsWith("/")?yi(Rr):this.applyRedirects.lineralizeSegments(G,Rr).pipe((0,vt.z)(or=>this.processSegment(S,x,y,or.concat(tn),Me,!1)))}matchSegmentAgainstRoute(S,y,x,G,he,Me){let at;if("**"===x.path){const ft=G.length>0?dn(G).parameters:{},tn=new Ui(G,ft,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x));at=(0,L.of)({snapshot:tn,consumedSegments:[],remainingSegments:[]}),y.children={}}else at=io(y,x,G,S).pipe((0,_e.U)(({matched:ft,consumedSegments:tn,remainingSegments:kn,parameters:Rr})=>ft?{snapshot:new Ui(tn,Rr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x)),consumedSegments:tn,remainingSegments:kn}:null));return at.pipe((0,ve.w)(ft=>null===ft?ls(y):this.getChildConfig(S=x._injector??S,x,G).pipe((0,ve.w)(({routes:tn})=>{const kn=x._loadedInjector??S,{snapshot:Rr,consumedSegments:or,remainingSegments:hi}=ft,{segmentGroup:Gs,slicedSegments:Ns}=wo(y,or,hi,tn);if(0===Ns.length&&Gs.hasChildren())return this.processChildren(kn,tn,Gs).pipe((0,_e.U)(On=>null===On?null:[new vr(Rr,On)]));if(0===tn.length&&0===Ns.length)return(0,L.of)([new vr(Rr,[])]);const mn=Pr(x)===he;return this.processSegment(kn,tn,Gs,Ns,mn?tt:he,!0).pipe((0,_e.U)(On=>[new vr(Rr,On)]))}))))}getChildConfig(S,y,x){return y.children?(0,L.of)({routes:y.children,injector:S}):y.loadChildren?void 0!==y._loadedRoutes?(0,L.of)({routes:y._loadedRoutes,injector:y._loadedInjector}):function os(E,S,y,x){const G=S.canLoad;if(void 0===G||0===G.length)return(0,L.of)(!0);const he=G.map(Me=>{const at=ms(Me,E);return Rn(function qs(E){return E&&Xs(E.canLoad)}(at)?at.canLoad(S,y):E.runInContext(()=>at(S,y)))});return(0,L.of)(he).pipe(is(),as())}(S,y,x).pipe((0,vt.z)(G=>G?this.configLoader.loadChildren(S,y).pipe((0,ze.b)(he=>{y._loadedRoutes=he.routes,y._loadedInjector=he.injector})):function Li(E){return(0,f._)(sr(!1,3))}())):(0,L.of)({routes:[],injector:S})}}function hl(E){const S=E.value.routeConfig;return S&&""===S.path}function zo(E){const S=[],y=new Set;for(const x of E){if(!hl(x)){S.push(x);continue}const G=S.find(he=>x.value.routeConfig===he.value.routeConfig);void 0!==G?(G.children.push(...x.children),y.add(G)):S.push(x)}for(const x of y){const G=zo(x.children);S.push(new vr(x.value,G))}return S.filter(x=>!y.has(x))}function Zo(E){return E.data||{}}function Ko(E){return E.resolve||{}}function xo(E){return"string"==typeof E.title||null===E.title}function T(E){return(0,ve.w)(S=>{const y=E(S);return y?(0,w.D)(y).pipe((0,_e.U)(()=>S)):(0,L.of)(S)})}const le=new t.OlP("ROUTES");let U=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(y){if(this.componentLoaders.get(y))return this.componentLoaders.get(y);if(y._loadedComponent)return(0,L.of)(y._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(y);const x=Rn(y.loadComponent()).pipe((0,_e.U)(gt),(0,ze.b)(he=>{this.onLoadEndListener&&this.onLoadEndListener(y),y._loadedComponent=he}),(0,fe.x)(()=>{this.componentLoaders.delete(y)})),G=new Se(x,()=>new ye.x).pipe(Te());return this.componentLoaders.set(y,G),G}loadChildren(y,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,L.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const he=function ee(E,S,y,x){return Rn(E.loadChildren()).pipe((0,_e.U)(gt),(0,vt.z)(G=>G instanceof t.YKP||Array.isArray(G)?(0,L.of)(G):(0,w.D)(S.compileModuleAsync(G))),(0,_e.U)(G=>{x&&x(E);let he,Me,at=!1;return Array.isArray(G)?(Me=G,!0):(he=G.create(y).injector,Me=he.get(le,[],{optional:!0,self:!0}).flat()),{routes:Me.map(rs),injector:he}}))}(x,this.compiler,y,this.onLoadEndListener).pipe((0,fe.x)(()=>{this.childrenLoaders.delete(x)})),Me=new Se(he,()=>new ye.x).pipe(Te());return this.childrenLoaders.set(x,Me),Me}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function gt(E){return function Ie(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let Ct=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye.x,this.transitionAbortSubject=new ye.x,this.configLoader=(0,t.f3M)(U),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(Er),this.rootContexts=(0,t.f3M)(Bi),this.inputBindingEnabled=null!==(0,t.f3M)(Ze,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=G=>this.events.next(new ir(G)),this.configLoader.onLoadStartListener=G=>this.events.next(new Nn(G))}complete(){this.transitions?.complete()}handleNavigationRequest(y){const x=++this.navigationId;this.transitions?.next({...this.transitions.value,...y,id:x})}setupNavigations(y,x,G){return this.transitions=new p.X({id:0,currentUrlTree:x,currentRawUrl:x,currentBrowserUrl:x,extractedUrl:y.urlHandlingStrategy.extract(x),urlAfterRedirects:y.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:z,restoredState:null,currentSnapshot:G.snapshot,targetSnapshot:null,currentRouterState:G,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ke.h)(he=>0!==he.id),(0,_e.U)(he=>({...he,extractedUrl:y.urlHandlingStrategy.extract(he.rawUrl)})),(0,ve.w)(he=>{this.currentTransition=he;let Me=!1,at=!1;return(0,L.of)(he).pipe((0,ze.b)(ft=>{this.currentNavigation={id:ft.id,initialUrl:ft.rawUrl,extractedUrl:ft.extractedUrl,trigger:ft.source,extras:ft.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(ft=>{const tn=ft.currentBrowserUrl.toString(),kn=!y.navigated||ft.extractedUrl.toString()!==tn||tn!==ft.currentUrlTree.toString();if(!kn&&"reload"!==(ft.extras.onSameUrlNavigation??y.onSameUrlNavigation)){const or="";return this.events.next(new Oe(ft.id,this.urlSerializer.serialize(ft.rawUrl),or,0)),ft.resolve(null),j.E}if(y.urlHandlingStrategy.shouldProcessUrl(ft.rawUrl))return(0,L.of)(ft).pipe((0,ve.w)(or=>{const hi=this.transitions?.getValue();return this.events.next(new D(or.id,this.urlSerializer.serialize(or.extractedUrl),or.source,or.restoredState)),hi!==this.transitions?.getValue()?j.E:Promise.resolve(or)}),function _o(E,S,y,x,G,he){return(0,vt.z)(Me=>function da(E,S,y,x,G,he,Me="emptyOnly"){return new fa(E,S,y,x,G,Me,he).recognize()}(E,S,y,x,Me.extractedUrl,G,he).pipe((0,_e.U)(({state:at,tree:ft})=>({...Me,targetSnapshot:at,urlAfterRedirects:ft}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,y.config,this.urlSerializer,y.paramsInheritanceStrategy),(0,ze.b)(or=>{he.targetSnapshot=or.targetSnapshot,he.urlAfterRedirects=or.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:or.urlAfterRedirects};const hi=new mt(or.id,this.urlSerializer.serialize(or.extractedUrl),this.urlSerializer.serialize(or.urlAfterRedirects),or.targetSnapshot);this.events.next(hi)}));if(kn&&y.urlHandlingStrategy.shouldProcessUrl(ft.currentRawUrl)){const{id:or,extractedUrl:hi,source:Gs,restoredState:Ns,extras:mn}=ft,On=new D(or,this.urlSerializer.serialize(hi),Gs,Ns);this.events.next(On);const bn=ci(0,this.rootComponentType).snapshot;return this.currentTransition=he={...ft,targetSnapshot:bn,urlAfterRedirects:hi,extras:{...mn,skipLocationChange:!1,replaceUrl:!1}},(0,L.of)(he)}{const or="";return this.events.next(new Oe(ft.id,this.urlSerializer.serialize(ft.extractedUrl),or,1)),ft.resolve(null),j.E}}),(0,ze.b)(ft=>{const tn=new $t(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects),ft.targetSnapshot);this.events.next(tn)}),(0,_e.U)(ft=>(this.currentTransition=he={...ft,guards:Kr(ft.targetSnapshot,ft.currentSnapshot,this.rootContexts)},he)),function eo(E,S){return(0,vt.z)(y=>{const{targetSnapshot:x,currentSnapshot:G,guards:{canActivateChecks:he,canDeactivateChecks:Me}}=y;return 0===Me.length&&0===he.length?(0,L.of)({...y,guardsResult:!0}):function Pa(E,S,y,x){return(0,w.D)(E).pipe((0,vt.z)(G=>function ho(E,S,y,x,G){const he=S&&S.routeConfig?S.routeConfig.canDeactivate:null;if(!he||0===he.length)return(0,L.of)(!0);const Me=he.map(at=>{const ft=Ri(S)??G,tn=ms(at,ft);return Rn(function N(E){return E&&Xs(E.canDeactivate)}(tn)?tn.canDeactivate(E,S,y,x):ft.runInContext(()=>tn(E,S,y,x))).pipe($e())});return(0,L.of)(Me).pipe(is())}(G.component,G.route,y,S,x)),$e(G=>!0!==G,!0))}(Me,x,G,E).pipe((0,vt.z)(at=>at&&function Co(E){return"boolean"==typeof E}(at)?function ss(E,S,y,x){return(0,w.D)(S).pipe((0,Ee.b)(G=>(0,P.z)(function Vs(E,S){return null!==E&&S&&S(new _r(E)),(0,L.of)(!0)}(G.route.parent,x),function to(E,S){return null!==E&&S&&S(new Yr(E)),(0,L.of)(!0)}(G.route,x),function Ra(E,S,y){const x=S[S.length-1],he=S.slice(0,S.length-1).reverse().map(Me=>function ji(E){const S=E.routeConfig?E.routeConfig.canActivateChild:null;return S&&0!==S.length?{node:E,guards:S}:null}(Me)).filter(Me=>null!==Me).map(Me=>(0,B.P)(()=>{const at=Me.guards.map(ft=>{const tn=Ri(Me.node)??y,kn=ms(ft,tn);return Rn(function re(E){return E&&Xs(E.canActivateChild)}(kn)?kn.canActivateChild(x,E):tn.runInContext(()=>kn(x,E))).pipe($e())});return(0,L.of)(at).pipe(is())}));return(0,L.of)(he).pipe(is())}(E,G.path,y),function Go(E,S,y){const x=S.routeConfig?S.routeConfig.canActivate:null;if(!x||0===x.length)return(0,L.of)(!0);const G=x.map(he=>(0,B.P)(()=>{const Me=Ri(S)??y,at=ms(he,Me);return Rn(function Y(E){return E&&Xs(E.canActivate)}(at)?at.canActivate(S,E):Me.runInContext(()=>at(S,E))).pipe($e())}));return(0,L.of)(G).pipe(is())}(E,G.route,y))),$e(G=>!0!==G,!0))}(x,he,E,S):(0,L.of)(at)),(0,_e.U)(at=>({...y,guardsResult:at})))})}(this.environmentInjector,ft=>this.events.next(ft)),(0,ze.b)(ft=>{if(he.guardsResult=ft.guardsResult,$n(ft.guardsResult))throw Yn(0,ft.guardsResult);const tn=new cn(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects),ft.targetSnapshot,!!ft.guardsResult);this.events.next(tn)}),(0,ke.h)(ft=>!!ft.guardsResult||(this.cancelNavigationTransition(ft,"",3),!1)),T(ft=>{if(ft.guards.canActivateChecks.length)return(0,L.of)(ft).pipe((0,ze.b)(tn=>{const kn=new vn(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(kn)}),(0,ve.w)(tn=>{let kn=!1;return(0,L.of)(tn).pipe(function ha(E,S){return(0,vt.z)(y=>{const{targetSnapshot:x,guards:{canActivateChecks:G}}=y;if(!G.length)return(0,L.of)(y);let he=0;return(0,w.D)(G).pipe((0,Ee.b)(Me=>function Ao(E,S,y,x){const G=E.routeConfig,he=E._resolve;return void 0!==G?.title&&!xo(G)&&(he[wt]=G.title),function Na(E,S,y,x){const G=function La(E){return[...Object.keys(E),...Object.getOwnPropertySymbols(E)]}(E);if(0===G.length)return(0,L.of)({});const he={};return(0,w.D)(G).pipe((0,vt.z)(Me=>function oo(E,S,y,x){const G=Ri(S)??x,he=ms(E,G);return Rn(he.resolve?he.resolve(S,y):G.runInContext(()=>he(S,y)))}(E[Me],S,y,x).pipe($e(),(0,ze.b)(at=>{he[Me]=at}))),oe(1),(0,ae.h)(he),(0,J.K)(Me=>Zn(Me)?j.E:(0,f._)(Me)))}(he,E,S,x).pipe((0,_e.U)(Me=>(E._resolvedData=Me,E.data=ui(E,y).resolve,G&&xo(G)&&(E.data[wt]=G.title),null)))}(Me.route,x,E,S)),(0,ze.b)(()=>he++),oe(1),(0,vt.z)(Me=>he===G.length?(0,L.of)(y):j.E))})}(y.paramsInheritanceStrategy,this.environmentInjector),(0,ze.b)({next:()=>kn=!0,complete:()=>{kn||this.cancelNavigationTransition(tn,"",2)}}))}),(0,ze.b)(tn=>{const kn=new En(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(kn)}))}),T(ft=>{const tn=kn=>{const Rr=[];kn.routeConfig?.loadComponent&&!kn.routeConfig._loadedComponent&&Rr.push(this.configLoader.loadComponent(kn.routeConfig).pipe((0,ze.b)(or=>{kn.component=or}),(0,_e.U)(()=>{})));for(const or of kn.children)Rr.push(...tn(or));return Rr};return(0,O.a)(tn(ft.targetSnapshot.root)).pipe((0,rt.d)(),(0,xe.q)(1))}),T(()=>this.afterPreactivation()),(0,_e.U)(ft=>{const tn=function ct(E,S,y){const x=Yt(E,S._root,y?y._root:void 0);return new vi(x,S)}(y.routeReuseStrategy,ft.targetSnapshot,ft.currentRouterState);return this.currentTransition=he={...ft,targetRouterState:tn},he}),(0,ze.b)(()=>{this.events.next(new Ti)}),((E,S,y,x)=>(0,_e.U)(G=>(new lt(S,G.targetRouterState,G.currentRouterState,y,x).activate(E),G)))(this.rootContexts,y.routeReuseStrategy,ft=>this.events.next(ft),this.inputBindingEnabled),(0,xe.q)(1),(0,ze.b)({next:ft=>{Me=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects))),y.titleStrategy?.updateTitle(ft.targetRouterState.snapshot),ft.resolve(!0)},complete:()=>{Me=!0}}),(0,De.R)(this.transitionAbortSubject.pipe((0,ze.b)(ft=>{throw ft}))),(0,fe.x)(()=>{Me||at||this.cancelNavigationTransition(he,"",1),this.currentNavigation?.id===he.id&&(this.currentNavigation=null)}),(0,J.K)(ft=>{if(at=!0,Mi(ft))this.events.next(new de(he.id,this.urlSerializer.serialize(he.extractedUrl),ft.message,ft.cancellationCode)),function Wr(E){return Mi(E)&&$n(E.url)}(ft)?this.events.next(new hs(ft.url)):he.resolve(!1);else{this.events.next(new Ae(he.id,this.urlSerializer.serialize(he.extractedUrl),ft,he.targetSnapshot??void 0));try{he.resolve(y.errorHandler(ft))}catch(tn){he.reject(tn)}}return j.E}))}))}cancelNavigationTransition(y,x,G){const he=new de(y.id,this.urlSerializer.serialize(y.extractedUrl),x,G);this.events.next(he),y.resolve(!1)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Jt(E){return E!==z}let Bn=(()=>{class E{buildTitle(y){let x,G=y.root;for(;void 0!==G;)x=this.getResolvedTitleForRoute(G)??x,G=G.children.find(he=>he.outlet===tt);return x}getResolvedTitleForRoute(y){return y.data[wt]}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(dr)},providedIn:"root"})}return E})(),dr=(()=>{class E extends Bn{constructor(y){super(),this.title=y}updateTitle(y){const x=this.buildTitle(y);void 0!==x&&this.title.setTitle(x)}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(Xe.Dx))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),yr=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Jr)},providedIn:"root"})}return E})();class Kn{shouldDetach(S){return!1}store(S,y){}shouldAttach(S){return!1}retrieve(S){return null}shouldReuseRoute(S,y){return S.routeConfig===y.routeConfig}}let Jr=(()=>{class E extends Kn{static#e=this.\u0275fac=function(){let y;return function(G){return(y||(y=t.n5z(E)))(G||E)}}();static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const Jn=new t.OlP("",{providedIn:"root",factory:()=>({})});let ei=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Ei)},providedIn:"root"})}return E})(),Ei=(()=>{class E{shouldProcessUrl(y){return!0}extract(y){return y}merge(y,x){return y}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var Ai=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(Ai||{});function Hi(E,S){E.events.pipe((0,ke.h)(y=>y instanceof X||y instanceof de||y instanceof Ae||y instanceof Oe),(0,_e.U)(y=>y instanceof X||y instanceof Oe?Ai.COMPLETE:y instanceof de&&(0===y.code||1===y.code)?Ai.REDIRECTING:Ai.FAILED),(0,ke.h)(y=>y!==Ai.REDIRECTING),(0,xe.q)(1)).subscribe(()=>{S()})}function Fi(E){throw E}function ti(E,S,y){return S.parse("/")}const cs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ts={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let er=(()=>{class E{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this._events=new ye.x,this.options=(0,t.f3M)(Jn,{optional:!0})||{},this.pendingTasks=(0,t.f3M)(t.HDt),this.errorHandler=this.options.errorHandler||Fi,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ti,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(ei),this.routeReuseStrategy=(0,t.f3M)(yr),this.titleStrategy=(0,t.f3M)(Bn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,t.f3M)(le,{optional:!0})?.flat()??[],this.navigationTransitions=(0,t.f3M)(Ct),this.urlSerializer=(0,t.f3M)(Er),this.location=(0,t.f3M)(ce.Ye),this.componentInputBindingEnabled=!!(0,t.f3M)(Ze,{optional:!0}),this.eventsSubscription=new q.w0,this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Sn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ci(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(y=>{this.lastSuccessfulId=y.id,this.currentPageId=this.browserPageId},y=>{this.console.warn(`Unhandled Navigation Error: ${y}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const y=this.navigationTransitions.events.subscribe(x=>{try{const{currentTransition:G}=this.navigationTransitions;if(null===G)return void(li(x)&&this._events.next(x));if(x instanceof D)Jt(G.source)&&(this.browserUrlTree=G.extractedUrl);else if(x instanceof Oe)this.rawUrlTree=G.rawUrl;else if(x instanceof mt){if("eager"===this.urlUpdateStrategy){if(!G.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl);this.setBrowserUrl(he,G)}this.browserUrlTree=G.urlAfterRedirects}}else if(x instanceof Ti)this.currentUrlTree=G.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl),this.routerState=G.targetRouterState,"deferred"===this.urlUpdateStrategy&&(G.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,G),this.browserUrlTree=G.urlAfterRedirects);else if(x instanceof de)0!==x.code&&1!==x.code&&(this.navigated=!0),(3===x.code||2===x.code)&&this.restoreHistory(G);else if(x instanceof hs){const he=this.urlHandlingStrategy.merge(x.url,G.currentRawUrl),Me={skipLocationChange:G.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Jt(G.source)};this.scheduleNavigation(he,z,null,Me,{resolve:G.resolve,reject:G.reject,promise:G.promise})}x instanceof Ae&&this.restoreHistory(G,!0),x instanceof X&&(this.navigated=!0),li(x)&&this._events.next(x)}catch(G){this.navigationTransitions.transitionAbortSubject.next(G)}});this.eventsSubscription.add(y)}resetRootComponentType(y){this.routerState.root.component=y,this.navigationTransitions.rootComponentType=y}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const y=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),z,y)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(y=>{const x="popstate"===y.type?"popstate":"hashchange";"popstate"===x&&setTimeout(()=>{this.navigateToSyncWithBrowser(y.url,x,y.state)},0)}))}navigateToSyncWithBrowser(y,x,G){const he={replaceUrl:!0},Me=G?.navigationId?G:null;if(G){const ft={...G};delete ft.navigationId,delete ft.\u0275routerPageId,0!==Object.keys(ft).length&&(he.state=ft)}const at=this.parseUrl(y);this.scheduleNavigation(at,x,Me,he)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(y){this.config=y.map(rs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(y,x={}){const{relativeTo:G,queryParams:he,fragment:Me,queryParamsHandling:at,preserveFragment:ft}=x,tn=ft?this.currentUrlTree.fragment:Me;let Rr,kn=null;switch(at){case"merge":kn={...this.currentUrlTree.queryParams,...he};break;case"preserve":kn=this.currentUrlTree.queryParams;break;default:kn=he||null}null!==kn&&(kn=this.removeEmptyProps(kn));try{Rr=Le(G?G.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof y[0]||!y[0].startsWith("/"))&&(y=[]),Rr=this.currentUrlTree.root}return Ue(Rr,y,kn,tn??null)}navigateByUrl(y,x={skipLocationChange:!1}){const G=$n(y)?y:this.parseUrl(y),he=this.urlHandlingStrategy.merge(G,this.rawUrlTree);return this.scheduleNavigation(he,z,null,x)}navigate(y,x={skipLocationChange:!1}){return function ws(E){for(let S=0;S{const he=y[G];return null!=he&&(x[G]=he),x},{})}scheduleNavigation(y,x,G,he,Me){if(this.disposed)return Promise.resolve(!1);let at,ft,tn;Me?(at=Me.resolve,ft=Me.reject,tn=Me.promise):tn=new Promise((Rr,or)=>{at=Rr,ft=or});const kn=this.pendingTasks.add();return Hi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(kn))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:G,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:y,extras:he,resolve:at,reject:ft,promise:tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),tn.catch(Rr=>Promise.reject(Rr))}setBrowserUrl(y,x){const G=this.urlSerializer.serialize(y);if(this.location.isCurrentPathEqualTo(G)||x.extras.replaceUrl){const Me={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(G,"",Me)}else{const he={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(G,"",he)}}restoreHistory(y,x=!1){if("computed"===this.canceledNavigationResolution){const he=this.currentPageId-this.browserPageId;0!==he?this.location.historyGo(he):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===he&&(this.resetState(y),this.browserUrlTree=y.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(y),this.resetUrlToCurrentUrlTree())}resetState(y){this.routerState=y.currentRouterState,this.currentUrlTree=y.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,y.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(y,x){return"computed"===this.canceledNavigationResolution?{navigationId:y,\u0275routerPageId:x}:{navigationId:y}}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function li(E){return!(E instanceof Ti||E instanceof hs)}let Di=(()=>{class E{constructor(y,x,G,he,Me,at){this.router=y,this.route=x,this.tabIndexAttribute=G,this.renderer=he,this.el=Me,this.locationStrategy=at,this.href=null,this.commands=null,this.onChanges=new ye.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const ft=Me.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ft||"area"===ft,this.isAnchorElement?this.subscription=y.events.subscribe(tn=>{tn instanceof X&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(y){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",y)}ngOnChanges(y){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(y){null!=y?(this.commands=Array.isArray(y)?y:[y],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(y,x,G,he,Me){return!!(null===this.urlTree||this.isAnchorElement&&(0!==y||x||G||he||Me||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const y=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",y)}applyAttributeValue(y,x){const G=this.renderer,he=this.el.nativeElement;null!==x?G.setAttribute(he,y,x):G.removeAttribute(he,y)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(wi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(ce.S$))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(x,G){1&x&&t.NdJ("click",function(Me){return G.onClick(Me.button,Me.ctrlKey,Me.shiftKey,Me.altKey,Me.metaKey)}),2&x&&t.uIk("target",G.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",t.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",t.VuI],replaceUrl:["replaceUrl","replaceUrl",t.VuI],routerLink:"routerLink"},standalone:!0,features:[t.Xq5,t.TTD]})}return E})(),ga=(()=>{class E{get isActive(){return this._isActive}constructor(y,x,G,he,Me){this.router=y,this.element=x,this.renderer=G,this.cdr=he,this.link=Me,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=y.events.subscribe(at=>{at instanceof X&&this.update()})}ngAfterContentInit(){(0,L.of)(this.links.changes,(0,L.of)(null)).pipe((0,je.J)()).subscribe(y=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const y=[...this.links.toArray(),this.link].filter(x=>!!x).map(x=>x.onChanges);this.linkInputChangesSubscription=(0,w.D)(y).pipe((0,je.J)()).subscribe(x=>{this._isActive!==this.isLinkActive(this.router)(x)&&this.update()})}set routerLinkActive(y){const x=Array.isArray(y)?y:y.split(" ");this.classes=x.filter(G=>!!G)}ngOnChanges(y){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const y=this.hasActiveLinks();this._isActive!==y&&(this._isActive=y,this.cdr.markForCheck(),this.classes.forEach(x=>{y?this.renderer.addClass(this.element.nativeElement,x):this.renderer.removeClass(this.element.nativeElement,x)}),y&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(y))})}isLinkActive(y){const x=function Oo(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return G=>!!G.urlTree&&y.isActive(G.urlTree,x)}hasActiveLinks(){const y=this.isLinkActive(this.router);return this.link&&y(this.link)||this.links.some(y)}static#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Di,8))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(x,G,he){if(1&x&&t.Suo(he,Di,5),2&x){let Me;t.iGM(Me=t.CRH())&&(G.links=Me)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]})}return E})();class Yi{}let Io=(()=>{class E{constructor(y,x,G,he,Me){this.router=y,this.injector=G,this.preloadingStrategy=he,this.loader=Me}setUpPreloading(){this.subscription=this.router.events.pipe((0,ke.h)(y=>y instanceof X),(0,Ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(y,x){const G=[];for(const he of x){he.providers&&!he._injector&&(he._injector=(0,t.MMx)(he.providers,y,`Route: ${he.path}`));const Me=he._injector??y,at=he._loadedInjector??Me;(he.loadChildren&&!he._loadedRoutes&&void 0===he.canLoad||he.loadComponent&&!he._loadedComponent)&&G.push(this.preloadConfig(Me,he)),(he.children||he._loadedRoutes)&&G.push(this.processRoutes(at,he.children??he._loadedRoutes))}return(0,w.D)(G).pipe((0,je.J)())}preloadConfig(y,x){return this.preloadingStrategy.preload(x,()=>{let G;G=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(y,x):(0,L.of)(null);const he=G.pipe((0,vt.z)(Me=>null===Me?(0,L.of)(void 0):(x._loadedRoutes=Me.routes,x._loadedInjector=Me.injector,this.processRoutes(Me.injector??y,Me.routes))));if(x.loadComponent&&!x._loadedComponent){const Me=this.loader.loadComponent(x);return(0,w.D)([he,Me]).pipe((0,je.J)())}return he})}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(er),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Yi),t.LFG(U))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const $s=new t.OlP("");let us=(()=>{class E{constructor(y,x,G,he,Me={}){this.urlSerializer=y,this.transitions=x,this.viewportScroller=G,this.zone=he,this.options=Me,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Me.scrollPositionRestoration=Me.scrollPositionRestoration||"disabled",Me.anchorScrolling=Me.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(y=>{y instanceof D?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=y.navigationTrigger,this.restoredId=y.restoredState?y.restoredState.navigationId:0):y instanceof X?(this.lastId=y.id,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.urlAfterRedirects).fragment)):y instanceof Oe&&0===y.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(y=>{y instanceof _i&&(y.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(y.position):y.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(y.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(y,x){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _i(y,"popstate"===this.lastSource?this.store[this.restoredId]:null,x))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(x){t.$Z()};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function xi(E,S){return{\u0275kind:E,\u0275providers:S}}function Yo(){const E=(0,t.f3M)(t.zs3);return S=>{const y=E.get(t.z2F);if(S!==y.components[0])return;const x=E.get(er),G=E.get(_a);1===E.get(Ro)&&x.initialNavigation(),E.get(Ss,null,t.XFs.Optional)?.setUpPreloading(),E.get($s,null,t.XFs.Optional)?.init(),x.resetRootComponentType(y.componentTypes[0]),G.closed||(G.next(),G.complete(),G.unsubscribe())}}const _a=new t.OlP("",{factory:()=>new ye.x}),Ro=new t.OlP("",{providedIn:"root",factory:()=>1}),Ss=new t.OlP("");function ml(E){return xi(0,[{provide:Ss,useExisting:Io},{provide:Yi,useExisting:E}])}const mr=new t.OlP("ROUTER_FORROOT_GUARD"),W=[ce.Ye,{provide:Er,useClass:it},er,Bi,{provide:wi,useFactory:function ma(E){return E.routerState.root},deps:[er]},U,[]];function h(){return new t.PXZ("Router",er)}let v=(()=>{class E{constructor(y){}static forRoot(y,x){return{ngModule:E,providers:[W,[],{provide:le,multi:!0,useValue:y},{provide:mr,useFactory:Ne,deps:[[er,new t.FiY,new t.tp0]]},{provide:Jn,useValue:x||{}},x?.useHash?{provide:ce.S$,useClass:ce.Do}:{provide:ce.S$,useClass:ce.b0},{provide:$s,useFactory:()=>{const E=(0,t.f3M)(ce.EM),S=(0,t.f3M)(t.R0b),y=(0,t.f3M)(Jn),x=(0,t.f3M)(Ct),G=(0,t.f3M)(Er);return y.scrollOffset&&E.setOffset(y.scrollOffset),new us(G,x,E,S,y)}},x?.preloadingStrategy?ml(x.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:h},x?.initialNavigation?Fe(x):[],x?.bindToComponentInputs?xi(8,[Ve,{provide:Ze,useExisting:Ve}]).\u0275providers:[],[{provide:st,useFactory:Yo},{provide:t.tb,multi:!0,useExisting:st}]]}}static forChild(y){return{ngModule:E,providers:[{provide:le,multi:!0,useValue:y}]}}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(mr,8))};static#t=this.\u0275mod=t.oAB({type:E});static#n=this.\u0275inj=t.cJS({})}return E})();function Ne(E){return"guarded"}function Fe(E){return["disabled"===E.initialNavigation?xi(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const S=(0,t.f3M)(er);return()=>{S.setUpLocationChangeListener()}}},{provide:Ro,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?xi(2,[{provide:Ro,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:S=>{const y=S.get(ce.V_,Promise.resolve());return()=>y.then(()=>new Promise(x=>{const G=S.get(er),he=S.get(_a);Hi(G,()=>{x(!0)}),S.get(Ct).afterPreactivation=()=>(x(!0),he.closed?(0,L.of)(void 0):he),G.initialNavigation()}))}}]).\u0275providers:[]]}const st=new t.OlP("")},253:(Pe,V,a)=>{"use strict";a.d(V,{gY:()=>vo,Kz:()=>Da,DO:()=>ri,s5:()=>Ou,NG:()=>bc,jt:()=>Lo,TH:()=>Sc,Vi:()=>Ya,iD:()=>Pu,J4:()=>Cu,Be:()=>Eu,FF:()=>Lu,IJ:()=>Hc,Gk:()=>Po,gW:()=>us,k9:()=>Io,Iv:()=>Yu,_L:()=>Pf,dR:()=>kc});var t=a(5879),d=a(5592),w=a(6232),L=a(2096),p=a(8645),O=a(2438),R=a(4825),F=a(4829);const{isArray:P}=Array;function B(l){return 1===l.length&&P(l[0])?l[0]:l}var $=a(8251);function f(...l){return 1===(l=B(l)).length?(0,F.Xf)(l[0]):new d.y(function j(l){return C=>{let s=[];for(let c=0;s&&!C.closed&&c{if(s){for(let H=0;H{let m=s.map(()=>[]),H=s.map(()=>!1);c.add(()=>{m=H=null});for(let ne=0;!c.closed&&ne{if(m[ne].push(Be),m.every(Ge=>Ge.length)){const Ge=m.map(ut=>ut.shift());c.next(C?C(...Ge):Ge),m.some((ut,pt)=>!ut.length&&H[pt])&&c.complete()}},()=>{H[ne]=!0,!m[ne].length&&c.complete()}));return()=>{m=H=null}}):w.E}var k=a(5619),Te=a(5211),ye=a(9773),ce=a(2181),_e=a(8180),ve=a(9397),xe=a(7398),be=a(2460),ke=a(6321),vt=a(9360),rt=a(2420),qe=a(975),_t=a(1631);function $e(l,C){return C?s=>(0,Te.z)(C.pipe((0,_e.q)(1),function Mt(){return(0,vt.e)((l,C)=>{l.subscribe((0,$.x)(C,rt.Z))})}()),s.pipe($e(l))):(0,_t.z)((s,c)=>(0,F.Xf)(l(s,c)).pipe((0,_e.q)(1),(0,qe.h)(s)))}function Ee(l,C=ke.z){const s=(0,R.H)(l,C);return $e(()=>s)}var ze=a(4664),se=(a(7921),a(3997),a(836),a(3020)),ae=a(6814),fe=a(6223),De={left:"right",right:"left",bottom:"top",top:"bottom"};function je(l){return l.replace(/left|right|bottom|top/g,function(C){return De[C]})}function Xe(l){return l.split("-")[0]}var tt={start:"end",end:"start"};function wt(l){return l.replace(/start|end/g,function(C){return tt[C]})}var It="top",Je="bottom",Tt="right",et="left",Pt="auto",zt=[It,Je,Tt,et],dn="start",Rn="end",Ye="viewport",At="popper",nn=zt.reduce(function(l,C){return l.concat([C+"-"+dn,C+"-"+Rn])},[]),Et=[].concat(zt,[Pt]).reduce(function(l,C){return l.concat([C,C+"-"+dn,C+"-"+Rn])},[]),Er=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function it(l){if(null==l)return window;if("[object Window]"!==l.toString()){var C=l.ownerDocument;return C&&C.defaultView||window}return l}function Ut(l){return l instanceof it(l).Element||l instanceof Element}function Qt(l){return l instanceof it(l).HTMLElement||l instanceof HTMLElement}function Cn(l){return!(typeof ShadowRoot>"u")&&(l instanceof it(l).ShadowRoot||l instanceof ShadowRoot)}function An(l){return((Ut(l)?l.ownerDocument:l.document)||window.document).documentElement}var In=Math.max,nr=Math.min,Dr=Math.round;function wr(){var l=navigator.userAgentData;return null!=l&&l.brands&&Array.isArray(l.brands)?l.brands.map(function(C){return C.brand+"/"+C.version}).join(" "):navigator.userAgent}function Or(){return!/^((?!chrome|android).)*safari/i.test(wr())}function Ir(l,C,s){void 0===C&&(C=!1),void 0===s&&(s=!1);var c=l.getBoundingClientRect(),m=1,H=1;C&&Qt(l)&&(m=l.offsetWidth>0&&Dr(c.width)/l.offsetWidth||1,H=l.offsetHeight>0&&Dr(c.height)/l.offsetHeight||1);var Be=(Ut(l)?it(l):window).visualViewport,Ge=!Or()&&s,ut=(c.left+(Ge&&Be?Be.offsetLeft:0))/m,pt=(c.top+(Ge&&Be?Be.offsetTop:0))/H,sn=c.width/m,Gt=c.height/H;return{width:sn,height:Gt,top:pt,right:ut+sn,bottom:pt+Gt,left:ut,x:ut,y:pt}}function Br(l){var C=it(l);return{scrollLeft:C.pageXOffset,scrollTop:C.pageYOffset}}function oi(l){return Ir(An(l)).left+Br(l).scrollLeft}function dt(l){return it(l).getComputedStyle(l)}function we(l){return l?(l.nodeName||"").toLowerCase():null}function He(l){return"html"===we(l)?l:l.assignedSlot||l.parentNode||(Cn(l)?l.host:null)||An(l)}function yt(l){var C=dt(l);return/auto|scroll|overlay|hidden/.test(C.overflow+C.overflowY+C.overflowX)}function Wt(l){return["html","body","#document"].indexOf(we(l))>=0?l.ownerDocument.body:Qt(l)&&yt(l)?l:Wt(He(l))}function Vt(l,C){var s;void 0===C&&(C=[]);var c=Wt(l),m=c===(null==(s=l.ownerDocument)?void 0:s.body),H=it(c),ne=m?[H].concat(H.visualViewport||[],yt(c)?c:[]):c,Be=C.concat(ne);return m?Be:Be.concat(Vt(He(ne)))}function Un(l){return["table","td","th"].indexOf(we(l))>=0}function on(l){return Qt(l)&&"fixed"!==dt(l).position?l.offsetParent:null}function ln(l){for(var C=it(l),s=on(l);s&&Un(s)&&"static"===dt(s).position;)s=on(s);return s&&("html"===we(s)||"body"===we(s)&&"static"===dt(s).position)?C:s||function rr(l){var C=/firefox/i.test(wr());if(/Trident/i.test(wr())&&Qt(l)&&"fixed"===dt(l).position)return null;var m=He(l);for(Cn(m)&&(m=m.host);Qt(m)&&["html","body"].indexOf(we(m))<0;){var H=dt(m);if("none"!==H.transform||"none"!==H.perspective||"paint"===H.contain||-1!==["transform","perspective"].indexOf(H.willChange)||C&&"filter"===H.willChange||C&&H.filter&&"none"!==H.filter)return m;m=m.parentNode}return null}(l)||C}function $n(l,C){var s=C.getRootNode&&C.getRootNode();if(l.contains(C))return!0;if(s&&Cn(s)){var c=C;do{if(c&&l.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function Qe(l){return Object.assign({},l,{left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height})}function Ue(l,C,s){return C===Ye?Qe(function zn(l,C){var s=it(l),c=An(l),m=s.visualViewport,H=c.clientWidth,ne=c.clientHeight,Be=0,Ge=0;if(m){H=m.width,ne=m.height;var ut=Or();(ut||!ut&&"fixed"===C)&&(Be=m.offsetLeft,Ge=m.offsetTop)}return{width:H,height:ne,x:Be+oi(l),y:Ge}}(l,s)):Ut(C)?function Le(l,C){var s=Ir(l,!1,"fixed"===C);return s.top=s.top+l.clientTop,s.left=s.left+l.clientLeft,s.bottom=s.top+l.clientHeight,s.right=s.left+l.clientWidth,s.width=l.clientWidth,s.height=l.clientHeight,s.x=s.left,s.y=s.top,s}(C,s):Qe(function ot(l){var C,s=An(l),c=Br(l),m=null==(C=l.ownerDocument)?void 0:C.body,H=In(s.scrollWidth,s.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),ne=In(s.scrollHeight,s.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),Be=-c.scrollLeft+oi(l),Ge=-c.scrollTop;return"rtl"===dt(m||s).direction&&(Be+=In(s.clientWidth,m?m.clientWidth:0)-H),{width:H,height:ne,x:Be,y:Ge}}(An(l)))}function kt(l){return l.split("-")[1]}function Ft(l){return["top","bottom"].indexOf(l)>=0?"x":"y"}function an(l){var Ge,C=l.reference,s=l.element,c=l.placement,m=c?Xe(c):null,H=c?kt(c):null,ne=C.x+C.width/2-s.width/2,Be=C.y+C.height/2-s.height/2;switch(m){case It:Ge={x:ne,y:C.y-s.height};break;case Je:Ge={x:ne,y:C.y+C.height};break;case Tt:Ge={x:C.x+C.width,y:Be};break;case et:Ge={x:C.x-s.width,y:Be};break;default:Ge={x:C.x,y:C.y}}var ut=m?Ft(m):null;if(null!=ut){var pt="y"===ut?"height":"width";switch(H){case dn:Ge[ut]=Ge[ut]-(C[pt]/2-s[pt]/2);break;case Rn:Ge[ut]=Ge[ut]+(C[pt]/2-s[pt]/2)}}return Ge}function pr(l){return Object.assign({},{top:0,right:0,bottom:0,left:0},l)}function jr(l,C){return C.reduce(function(s,c){return s[c]=l,s},{})}function Fr(l,C){void 0===C&&(C={});var c=C.placement,m=void 0===c?l.placement:c,H=C.strategy,ne=void 0===H?l.strategy:H,Be=C.boundary,Ge=void 0===Be?"clippingParents":Be,ut=C.rootBoundary,pt=void 0===ut?Ye:ut,sn=C.elementContext,Gt=void 0===sn?At:sn,un=C.altBoundary,Mr=void 0!==un&&un,lr=C.padding,Pn=void 0===lr?0:lr,Cr=pr("number"!=typeof Pn?Pn:jr(Pn,zt)),si=l.rects.popper,br=l.elements[Mr?Gt===At?"reference":At:Gt],Lr=function Rt(l,C,s,c){var m="clippingParents"===C?function bt(l){var C=Vt(He(l)),c=["absolute","fixed"].indexOf(dt(l).position)>=0&&Qt(l)?ln(l):l;return Ut(c)?C.filter(function(m){return Ut(m)&&$n(m,c)&&"body"!==we(m)}):[]}(l):[].concat(C),H=[].concat(m,[s]),Be=H.reduce(function(Ge,ut){var pt=Ue(l,ut,c);return Ge.top=In(pt.top,Ge.top),Ge.right=nr(pt.right,Ge.right),Ge.bottom=nr(pt.bottom,Ge.bottom),Ge.left=In(pt.left,Ge.left),Ge},Ue(l,H[0],c));return Be.width=Be.right-Be.left,Be.height=Be.bottom-Be.top,Be.x=Be.left,Be.y=Be.top,Be}(Ut(br)?br:br.contextElement||An(l.elements.popper),Ge,pt,ne),kr=Ir(l.elements.reference),Qr=an({reference:kr,element:si,strategy:"absolute",placement:m}),qr=Qe(Object.assign({},si,Qr)),gi=Gt===At?qr:kr,mi={top:Lr.top-gi.top+Cr.top,bottom:gi.bottom-Lr.bottom+Cr.bottom,left:Lr.left-gi.left+Cr.left,right:gi.right-Lr.right+Cr.right},ki=l.modifiersData.offset;if(Gt===At&&ki){var ks=ki[m];Object.keys(mi).forEach(function(Xi){var ko=[Tt,Je].indexOf(Xi)>=0?1:-1,As=[It,Je].indexOf(Xi)>=0?"y":"x";mi[Xi]+=ks[As]*ko})}return mi}const Xn={name:"flip",enabled:!0,phase:"main",fn:function zr(l){var C=l.state,s=l.options,c=l.name;if(!C.modifiersData[c]._skip){for(var m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0===ne||ne,Ge=s.fallbackPlacements,ut=s.padding,pt=s.boundary,sn=s.rootBoundary,Gt=s.altBoundary,un=s.flipVariations,Mr=void 0===un||un,lr=s.allowedAutoPlacements,Pn=C.options.placement,Cr=Xe(Pn),si=Ge||(Cr!==Pn&&Mr?function Hr(l){if(Xe(l)===Pt)return[];var C=je(l);return[wt(l),C,wt(C)]}(Pn):[je(Pn)]),br=[Pn].concat(si).reduce(function(Sa,Bo){return Sa.concat(Xe(Bo)===Pt?function Ar(l,C){void 0===C&&(C={});var m=C.boundary,H=C.rootBoundary,ne=C.padding,Be=C.flipVariations,Ge=C.allowedAutoPlacements,ut=void 0===Ge?Et:Ge,pt=kt(C.placement),sn=pt?Be?nn:nn.filter(function(Mr){return kt(Mr)===pt}):zt,Gt=sn.filter(function(Mr){return ut.indexOf(Mr)>=0});0===Gt.length&&(Gt=sn);var un=Gt.reduce(function(Mr,lr){return Mr[lr]=Fr(l,{placement:lr,boundary:m,rootBoundary:H,padding:ne})[Xe(lr)],Mr},{});return Object.keys(un).sort(function(Mr,lr){return un[Mr]-un[lr]})}(C,{placement:Bo,boundary:pt,rootBoundary:sn,padding:ut,flipVariations:Mr,allowedAutoPlacements:lr}):Bo)},[]),Lr=C.rects.reference,kr=C.rects.popper,Qr=new Map,qr=!0,gi=br[0],mi=0;mi=0,As=ko?"width":"height",xs=Fr(C,{placement:ki,boundary:pt,rootBoundary:sn,altBoundary:Gt,padding:ut}),Ys=ko?Xi?Tt:et:Xi?Je:It;Lr[As]>kr[As]&&(Ys=je(Ys));var Bl=je(Ys),ia=[];if(H&&ia.push(xs[ks]<=0),Be&&ia.push(xs[Ys]<=0,xs[Bl]<=0),ia.every(function(Sa){return Sa})){gi=ki,qr=!1;break}Qr.set(ki,ia)}if(qr)for(var Js=function(Bo){var sl=br.find(function(Hl){var sa=Qr.get(Hl);if(sa)return sa.slice(0,Bo).every(function(Vl){return Vl})});if(sl)return gi=sl,"break"},uo=Mr?3:1;uo>0&&"break"!==Js(uo);uo--);C.placement!==gi&&(C.modifiersData[c]._skip=!0,C.placement=gi,C.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ur(l,C,s){return In(l,nr(C,s))}function pe(l){var C=Ir(l),s=l.offsetWidth,c=l.offsetHeight;return Math.abs(C.width-s)<=1&&(s=C.width),Math.abs(C.height-c)<=1&&(c=C.height),{x:l.offsetLeft,y:l.offsetTop,width:s,height:c}}const K={name:"preventOverflow",enabled:!0,phase:"main",fn:function z(l){var C=l.state,s=l.options,c=l.name,m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0!==ne&&ne,Gt=s.tether,un=void 0===Gt||Gt,Mr=s.tetherOffset,lr=void 0===Mr?0:Mr,Pn=Fr(C,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),Cr=Xe(C.placement),cr=kt(C.placement),si=!cr,br=Ft(Cr),Lr=function qn(l){return"x"===l?"y":"x"}(br),kr=C.modifiersData.popperOffsets,Qr=C.rects.reference,qr=C.rects.popper,gi="function"==typeof lr?lr(Object.assign({},C.rects,{placement:C.placement})):lr,mi="number"==typeof gi?{mainAxis:gi,altAxis:gi}:Object.assign({mainAxis:0,altAxis:0},gi),ki=C.modifiersData.offset?C.modifiersData.offset[C.placement]:null,ks={x:0,y:0};if(kr){if(H){var Xi,ko="y"===br?It:et,As="y"===br?Je:Tt,xs="y"===br?"height":"width",Ys=kr[br],Bl=Ys+Pn[ko],ia=Ys-Pn[As],Ul=un?-qr[xs]/2:0,Js=cr===dn?Qr[xs]:qr[xs],uo=cr===dn?-qr[xs]:-Qr[xs],jl=C.elements.arrow,Sa=un&&jl?pe(jl):{width:0,height:0},Bo=C.modifiersData["arrow#persistent"]?C.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sl=Bo[ko],Hl=Bo[As],sa=Ur(0,Qr[xs],Sa[xs]),Vl=si?Qr[xs]/2-Ul-sa-sl-mi.mainAxis:Js-sa-sl-mi.mainAxis,Uf=si?-Qr[xs]/2+Ul+sa+Hl+mi.mainAxis:uo+sa+Hl+mi.mainAxis,Vc=C.elements.arrow&&ln(C.elements.arrow),jf=Vc?"y"===br?Vc.clientTop||0:Vc.clientLeft||0:0,ed=null!=(Xi=ki?.[br])?Xi:0,yo=Ys+Uf-ed,Ma=Ur(un?nr(Bl,Ys+Vl-ed-jf):Bl,Ys,un?In(ia,yo):ia);kr[br]=Ma,ks[br]=Ma-Ys}if(Be){var $c,Aa=kr[Lr],Wc="y"===Lr?"height":"width",Hf=Aa+Pn["x"===br?It:et],Wl=Aa-Pn["x"===br?Je:Tt],ol=-1!==[It,et].indexOf(Cr),Vf=null!=($c=ki?.[Lr])?$c:0,$f=ol?Hf:Aa-Qr[Wc]-qr[Wc]-Vf+mi.altAxis,Gc=ol?Aa+Qr[Wc]+qr[Wc]-Vf-mi.altAxis:Wl,rd=un&&ol?function ai(l,C,s){var c=Ur(l,C,s);return c>s?s:c}($f,Aa,Gc):Ur(un?$f:Hf,Aa,un?Gc:Wl);kr[Lr]=rd,ks[Lr]=rd-Aa}C.modifiersData[c]=ks}},requiresIfExists:["offset"]},Oe={name:"arrow",enabled:!0,phase:"main",fn:function X(l){var C,s=l.state,c=l.name,m=l.options,H=s.elements.arrow,ne=s.modifiersData.popperOffsets,Be=Xe(s.placement),Ge=Ft(Be),pt=[et,Tt].indexOf(Be)>=0?"height":"width";if(H&&ne){var sn=function(C,s){return pr("number"!=typeof(C="function"==typeof C?C(Object.assign({},s.rects,{placement:s.placement})):C)?C:jr(C,zt))}(m.padding,s),Gt=pe(H),un="y"===Ge?It:et,Mr="y"===Ge?Je:Tt,lr=s.rects.reference[pt]+s.rects.reference[Ge]-ne[Ge]-s.rects.popper[pt],Pn=ne[Ge]-s.rects.reference[Ge],Cr=ln(H),cr=Cr?"y"===Ge?Cr.clientHeight||0:Cr.clientWidth||0:0,kr=cr/2-Gt[pt]/2+(lr/2-Pn/2),Qr=Ur(sn[un],kr,cr-Gt[pt]-sn[Mr]);s.modifiersData[c]=((C={})[Ge]=Qr,C.centerOffset=Qr-kr,C)}},effect:function de(l){var C=l.state,c=l.options.element,m=void 0===c?"[data-popper-arrow]":c;null!=m&&("string"==typeof m&&!(m=C.elements.popper.querySelector(m))||$n(C.elements.popper,m)&&(C.elements.arrow=m))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cn(l,C,s){void 0===s&&(s=!1);var c=Qt(C),m=Qt(C)&&function $t(l){var C=l.getBoundingClientRect(),s=Dr(C.width)/l.offsetWidth||1,c=Dr(C.height)/l.offsetHeight||1;return 1!==s||1!==c}(C),H=An(C),ne=Ir(l,m,s),Be={scrollLeft:0,scrollTop:0},Ge={x:0,y:0};return(c||!c&&!s)&&(("body"!==we(C)||yt(H))&&(Be=function mt(l){return l!==it(l)&&Qt(l)?function Ae(l){return{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}}(l):Br(l)}(C)),Qt(C)?((Ge=Ir(C,!0)).x+=C.clientLeft,Ge.y+=C.clientTop):H&&(Ge.x=oi(H))),{x:ne.left+Be.scrollLeft-Ge.x,y:ne.top+Be.scrollTop-Ge.y,width:ne.width,height:ne.height}}function vn(l){var C=new Map,s=new Set,c=[];function m(H){s.add(H.name),[].concat(H.requires||[],H.requiresIfExists||[]).forEach(function(Be){if(!s.has(Be)){var Ge=C.get(Be);Ge&&m(Ge)}}),c.push(H)}return l.forEach(function(H){C.set(H.name,H)}),l.forEach(function(H){s.has(H.name)||m(H)}),c}function Nn(l){var C;return function(){return C||(C=new Promise(function(s){Promise.resolve().then(function(){C=void 0,s(l())})})),C}}var _r={placement:"bottom",modifiers:[],strategy:"absolute"};function Zr(){for(var l=arguments.length,C=new Array(l),s=0;s=0?-1:1,H="function"==typeof s?s(Object.assign({},C,{placement:l})):s,ne=H[0],Be=H[1];return ne=ne||0,Be=(Be||0)*m,[et,Tt].indexOf(c)>=0?{x:Be,y:ne}:{x:ne,y:Be}}(sn,C.rects,H),pt},{}),Be=ne[C.placement],ut=Be.y;null!=C.modifiersData.popperOffsets&&(C.modifiersData.popperOffsets.x+=Be.x,C.modifiersData.popperOffsets.y+=ut),C.modifiersData[c]=ne}};function xr(l,C){}function Kt(l,C){if(1&l&&(t.TgZ(0,"button",3),t._uU(1),t.YNc(2,xr,0,0,"ng-template",4),t.qZA()),2&l){const s=C.$implicit;t.Q6J("ngbPanelToggle",s),t.xp6(1),t.hij(" ",s.title," "),t.xp6(1),t.Q6J("ngTemplateOutlet",null==s.titleTpl?null:s.titleTpl.templateRef)}}function Mn(l,C){}function hr(l,C){}function $r(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",8),t.NdJ("ngbRef",function(m){t.CHM(s);const H=t.oxw().$implicit;return t.KtG(H.panelDiv=m)}),t.TgZ(1,"div",9),t.YNc(2,hr,0,0,"ng-template",4),t.qZA()()}if(2&l){const s=t.oxw().$implicit;t.s9C("id",s.id),t.uIk("aria-labelledby",s.id+"-header"),t.xp6(2),t.Q6J("ngTemplateOutlet",(null==s.contentTpl?null:s.contentTpl.templateRef)||null)}}const bi=function(l,C){return{$implicit:l,opened:C}};function Nr(l,C){if(1&l&&(t.TgZ(0,"div")(1,"div",5),t.YNc(2,Mn,0,0,"ng-template",6),t.qZA(),t.YNc(3,$r,3,3,"div",7),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(),m=t.MAs(1);t.Tol("accordion-item "+(s.cardClass||"")),t.xp6(1),t.Tol("accordion-header "+(s.type?"bg-"+s.type:c.type?"bg-"+c.type:"")),t.MGl("id","",s.id,"-header"),t.xp6(1),t.Q6J("ngTemplateOutlet",(null==s.headerTpl?null:s.headerTpl.templateRef)||m)("ngTemplateOutletContext",t.WLB(8,bi,s,s.isOpen)),t.xp6(1),t.Q6J("ngIf",!c.destroyOnHide||s.isOpen||s.transitionRunning)}}const Ve=["*"],Yn=["ngbDatepickerDayView",""],sr=["month"],Wr=["year"];function Mi(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.uIk("aria-label",c.i18n.getMonthFullName(s,c.date.year)),t.xp6(1),t.Oqu(c.i18n.getMonthShortName(s,c.date.year))}}function di(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.xp6(1),t.Oqu(c.i18n.getYearNumerals(s))}}function ns(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation-select",7),t.NdJ("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.select.emit(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.date)("disabled",s.disabled)("months",s.selectBoxes.months)("years",s.selectBoxes.years)}}function bs(l,C){1&l&&t._UZ(0,"div",11)}function zi(l,C){1&l&&t._UZ(0,"div",11)}function Oi(l,C){if(1&l&&(t.YNc(0,bs,1,0,"div",9),t.TgZ(1,"div",10),t._uU(2),t.qZA(),t.YNc(3,zi,1,0,"div",9)),2&l){const s=C.$implicit,c=C.index,m=t.oxw(2);t.Q6J("ngIf",c>0),t.xp6(2),t.hij(" ",m.i18n.getMonthLabel(s.firstDate)," "),t.xp6(1),t.Q6J("ngIf",c!==m.months.length-1)}}function Ii(l,C){if(1&l&&t.YNc(0,Oi,4,3,"ng-template",8),2&l){const s=t.oxw();t.Q6J("ngForOf",s.months)}}function Pi(l,C){if(1&l&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&l){const s=t.oxw(2);t.xp6(1),t.Oqu(s.i18n.getWeekLabel())}}function Gn(l,C){if(1&l&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&l){const s=C.$implicit;t.xp6(1),t.Oqu(s)}}function Es(l,C){if(1&l&&(t.TgZ(0,"div",2),t.YNc(1,Pi,2,1,"div",3),t.YNc(2,Gn,2,1,"div",4),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Q6J("ngIf",s.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.viewModel.weekdays)}}function Zi(l,C){if(1&l&&(t.TgZ(0,"div",11),t._uU(1),t.qZA()),2&l){const s=t.oxw(2).$implicit,c=t.oxw();t.xp6(1),t.Oqu(c.i18n.getWeekNumerals(s.number))}}function rs(l,C){}function Pr(l,C){if(1&l&&t.YNc(0,rs,0,0,"ng-template",14),2&l){const s=t.oxw().$implicit,c=t.oxw(3);t.Q6J("ngTemplateOutlet",c.datepicker.dayTemplate)("ngTemplateOutletContext",s.context)}}function gs(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(m){const ne=t.CHM(s).$implicit;return t.oxw(3).doSelect(ne),t.KtG(m.preventDefault())}),t.YNc(1,Pr,1,2,"ng-template",13),t.qZA()}if(2&l){const s=C.$implicit;t.ekj("disabled",s.context.disabled)("hidden",s.hidden)("ngb-dp-today",s.context.today),t.Q6J("tabindex",s.tabindex),t.uIk("aria-label",s.ariaLabel),t.xp6(1),t.Q6J("ngIf",!s.hidden)}}function Ri(l,C){if(1&l&&(t.TgZ(0,"div",8),t.YNc(1,Zi,2,1,"div",9),t.YNc(2,gs,2,9,"div",10),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.xp6(1),t.Q6J("ngIf",c.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.days)}}function ht(l,C){1&l&&t.YNc(0,Ri,3,2,"div",7),2&l&&t.Q6J("ngIf",!C.$implicit.collapsed)}const pn=["defaultDayTemplate"],lt=["content"];function Ot(l,C){if(1&l&&t._UZ(0,"div",8),2&l){const c=C.currentMonth,m=C.selected,H=C.disabled,ne=C.focused;t.Q6J("date",C.date)("currentMonth",c)("selected",m)("disabled",H)("focused",ne)}}function qt(l,C){if(1&l&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw(2);t.xp6(1),t.hij(" ",c.i18n.getMonthLabel(s.firstDate)," ")}}function Kr(l,C){if(1&l&&(t.TgZ(0,"div",10),t.YNc(1,qt,2,1,"div",11),t._UZ(2,"ngb-datepicker-month",12),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(2);t.xp6(1),t.Q6J("ngIf","none"===c.navigation||c.displayMonths>1&&"select"===c.navigation),t.xp6(1),t.Q6J("month",s.firstDate)}}function ji(l,C){if(1&l&&t.YNc(0,Kr,3,2,"div",9),2&l){const s=t.oxw();t.Q6J("ngForOf",s.model.months)}}function ms(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation",14),t.NdJ("navigate",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateEvent(m))})("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateDateSelect(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.model.firstDate)("months",s.model.months)("disabled",s.model.disabled)("showSelect","select"===s.model.navigation)("prevDisabled",s.model.prevDisabled)("nextDisabled",s.model.nextDisabled)("selectBoxes",s.model.selectBoxes)}}function fi(l,C){}function Hs(l,C){}const po=function(l){return{$implicit:l}},Ds=["dialog"];function _o(l,C){if(1&l&&(t.TgZ(0,"strong",3),t._uU(1),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Oqu(s.header)}}function ha(l,C){}function Ao(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",4),t.YNc(1,ha,0,0,"ng-template",5),t.TgZ(2,"button",6),t.NdJ("click",function(){t.CHM(s);const m=t.oxw();return t.KtG(m.hide())}),t.qZA()()}if(2&l){const s=t.oxw(),c=t.MAs(1);t.xp6(1),t.Q6J("ngTemplateOutlet",s.contentHeaderTpl||c)}}function Na(l,C){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.Tol(c.highlightClass),t.xp6(1),t.Oqu(s)}}function La(l,C){if(1&l&&t._uU(0),2&l){const s=t.oxw().$implicit;t.Oqu(s)}}function oo(l,C){if(1&l&&(t.YNc(0,Na,2,3,"span",1),t.YNc(1,La,1,1,"ng-template",null,2,t.W1O)),2&l){const s=C.odd,c=t.MAs(2);t.Q6J("ngIf",s)("ngIfElse",c)}}function xo(l,C){if(1&l&&t._UZ(0,"ngb-highlight",2),2&l){const c=C.term;t.Q6J("result",(0,C.formatter)(C.result))("term",c)}}function T(l,C){}const le=function(l,C,s){return{result:l,term:C,formatter:s}};function U(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"button",3),t.NdJ("mouseenter",function(){const H=t.CHM(s).index,ne=t.oxw();return t.KtG(ne.markActive(H))})("click",function(){const H=t.CHM(s).$implicit,ne=t.oxw();return t.KtG(ne.select(H))}),t.YNc(1,T,0,0,"ng-template",4),t.qZA()}if(2&l){const s=C.$implicit,c=C.index,m=t.oxw(),H=t.MAs(1);t.ekj("active",c===m.activeIdx),t.Q6J("id",m.id+"-"+c),t.xp6(1),t.Q6J("ngTemplateOutlet",m.resultTemplate||H)("ngTemplateOutletContext",t.kEZ(5,le,s,m.term,m.formatter))}}function ee(l){return parseInt(`${l}`,10)}function Ie(l){return null!=l?`${l}`:""}function Ct(l){return"string"==typeof l}function Jt(l){return!isNaN(ee(l))}function Bn(l){return"number"==typeof l&&isFinite(l)&&Math.floor(l)===l}function dr(l){return null!=l}function Kn(l){return Jt(l)?`0${l}`.slice(-2):""}function Jn(l,C){return l&&l.className&&l.className.split&&l.className.split(/\s+/).indexOf(C)>=0}function Ei(l){return(l||document.body).getBoundingClientRect()}function Hi(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Fi(l=document){const C=l?.activeElement;return C?C.shadowRoot?Fi(C.shadowRoot):C:null}const cs={animation:!0,transitionTimerDelayMs:5},Ts=()=>{},{transitionTimerDelayMs:er}=cs,ws=new Map,li=(l,C,s,c)=>{let m=c.context||{};const H=ws.get(C);if(H)switch(c.runningTransition){case"continue":return w.E;case"stop":l.run(()=>H.transition$.complete()),m=Object.assign(H.context,m),ws.delete(C)}const ne=s(C,c.animation,m)||Ts;if(!c.animation||"none"===window.getComputedStyle(C).transitionProperty)return l.run(()=>ne()),(0,L.of)(void 0).pipe(function Ai(l){return C=>new d.y(s=>C.subscribe({next:ne=>l.run(()=>s.next(ne)),error:ne=>l.run(()=>s.error(ne)),complete:()=>l.run(()=>s.complete())}))}(l));const Be=new p.x,Ge=new p.x,ut=Be.pipe(function Se(...l){return C=>(0,Te.z)(C,(0,L.of)(...l))}(!0));ws.set(C,{transition$:Be,complete:()=>{Ge.next(),Ge.complete()},context:m});const pt=function ti(l){const{transitionDelay:C,transitionDuration:s}=window.getComputedStyle(l);return 1e3*(parseFloat(C)+parseFloat(s))}(C);return l.runOutsideAngular(()=>{const sn=(0,O.R)(C,"transitionend").pipe((0,ye.R)(ut),(0,ce.h)(({target:un})=>un===C));f((0,R.H)(pt+er).pipe((0,ye.R)(ut)),sn,Ge).pipe((0,ye.R)(ut)).subscribe(()=>{ws.delete(C),l.run(()=>{ne(),Be.next(),Be.complete()})})}),Be.asObservable()},Oo=(l,C,s)=>{let{direction:c,maxSize:m,dimension:H}=s;const{classList:ne}=l;function Be(){ne.add("collapse"),"show"===c?ne.add("show"):ne.remove("show")}if(C)return m||(m=function ga(l,C){if(typeof navigator>"u")return"0px";const{classList:s}=l,c=s.contains("show");c||s.add("show"),l.style[C]="";const m=l.getBoundingClientRect()[C]+"px";return c||s.remove("show"),m}(l,H),s.maxSize=m,l.style[H]="show"!==c?m:"0px",ne.remove("collapse"),ne.remove("collapsing"),ne.remove("show"),Ei(l),ne.add("collapsing")),l.style[H]="show"===c?m:"0px",()=>{Be(),ne.remove("collapsing"),l.style[H]=""};Be()};let Yi=(()=>{class l{constructor(){this.animation=cs.animation}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Vi=(()=>{class l{constructor(s){this._ngbConfig=s,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),gl=0,Io=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0})}return l})(),$s=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0})}return l})(),us=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0})}return l})(),Po=(()=>{class l{constructor(){this.disabled=!1,this.id="ngb-panel-"+gl++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new t.vpe,this.hidden=new t.vpe}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ngb-panel"]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,$s,4),t.Suo(H,Io,4),t.Suo(H,us,4)),2&c){let ne;t.iGM(ne=t.CRH())&&(m.titleTpls=ne),t.iGM(ne=t.CRH())&&(m.headerTpls=ne),t.iGM(ne=t.CRH())&&(m.contentTpls=ne)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0})}return l})(),ma=(()=>{class l{constructor(s){this._El=s,this.ngbRef=new t.vpe}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0})}return l})(),xi=(()=>{class l{set ngbPanelToggle(s){s&&(this.panel=s)}constructor(s,c){this.accordion=s,this.panel=c}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>vo)),t.Y36(Po,9))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.accordion.toggle(m.panel.id)}),2&c&&(t.Ikx("disabled",m.panel.disabled),t.uIk("aria-expanded",m.panel.isOpen)("aria-controls",m.panel.id),t.ekj("collapsed",!m.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0})}return l})(),vo=(()=>{class l{constructor(s,c,m){this._ngZone=c,this._changeDetector=m,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new t.vpe,this.shown=new t.vpe,this.hidden=new t.vpe,this.animation=s.animation,this.type=s.type,this.closeOtherPanels=s.closeOthers}isExpanded(s){return this.activeIds.indexOf(s)>-1}expand(s){this._changeOpenState(this._findPanelById(s),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(s=>this._changeOpenState(s,!0))}collapse(s){this._changeOpenState(this._findPanelById(s),!1)}collapseAll(){this.panels.forEach(s=>{this._changeOpenState(s,!1)})}toggle(s){const c=this._findPanelById(s);c&&this._changeOpenState(c,!c.isOpen)}ngAfterContentChecked(){Ct(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(s=>{s.isOpen=!s.disabled&&this.activeIds.indexOf(s.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this.panels.forEach(s=>{const c=s.panelDiv;c?s.initClassDone||(s.initClassDone=!0,li(this._ngZone,c,Oo,{animation:!1,runningTransition:"continue",context:{direction:s.isOpen?"show":"hide",dimension:"height"}})):s.initClassDone=!1})})}_changeOpenState(s,c){if(null!=s&&!s.disabled&&s.isOpen!==c){let m=!1;this.panelChange.emit({panelId:s.id,nextState:c,preventDefault:()=>{m=!0}}),m||(s.isOpen=c,s.transitionRunning=!0,c&&this.closeOtherPanels&&this._closeOthers(s.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(s,c=!0){this.panels.forEach(m=>{m.id!==s&&m.isOpen&&(m.isOpen=!1,m.transitionRunning=c)})}_findPanelById(s){return this.panels.find(c=>c.id===s)||null}_updateActiveIds(){this.activeIds=this.panels.filter(s=>s.isOpen&&!s.disabled).map(s=>s.id)}_runTransitions(s){this._changeDetector.detectChanges(),this.panels.forEach(c=>{c.transitionRunning&&li(this._ngZone,c.panelDiv,Oo,{animation:s,runningTransition:"stop",context:{direction:c.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{c.transitionRunning=!1;const{id:H}=c;c.isOpen?(c.shown.emit(),this.shown.emit(H)):(c.hidden.emit(),this.hidden.emit(H))})})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(Vi),t.Y36(t.R0b),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-accordion"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Po,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.panels=ne)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-multiselectable",!m.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(c,m){1&c&&(t.YNc(0,Kt,3,3,"ng-template",0,1,t.W1O),t.YNc(2,Nr,4,11,"ng-template",2)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.panels))},dependencies:[ae.ax,ae.tP,xi,ma,Io,ae.O5],encapsulation:2})}return l})(),ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Nt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),rn=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Xt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Tn{static from(C){return C instanceof Tn?C:C?new Tn(C.year,C.month,C.day):null}constructor(C,s,c){this.year=Bn(C)?C:null,this.month=Bn(s)?s:null,this.day=Bn(c)?c:null}equals(C){return null!=C&&this.year===C.year&&this.month===C.month&&this.day===C.day}before(C){return!!C&&(this.year===C.year?this.month===C.month?this.day!==C.day&&this.dayC.day:this.month>C.month:this.year>C.year)}}function Vn(l,C){return!function Fn(l,C){return!l&&!C||!!l&&!!C&&l.equals(C)}(l,C)}function xn(l,C){return!(!l&&!C||l&&C&&l.year===C.year&&l.month===C.month)}function S(l,C,s){return l&&C&&l.before(C)?C:l&&s&&l.after(s)?s:l||null}function y(l,C){const{minDate:s,maxDate:c,disabled:m,markDisabled:H}=C;return!(null==l||m||H&&H(l,{year:l.year,month:l.month})||s&&l.before(s)||c&&l.after(c))}function kn(l){return new Tn(l.getFullYear(),l.getMonth()+1,l.getDate())}function Rr(l){const C=new Date(l.year,l.month-1,l.day,12);return isNaN(C.getTime())||C.setFullYear(l.year),C}let hi=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function or(){return new Gs}()},providedIn:"root"})}return l})(),Gs=(()=>{class l extends hi{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(s,c="d",m=1){let H=Rr(s),ne=!0,Be=H.getMonth();switch(c){case"y":H.setFullYear(H.getFullYear()+m);break;case"m":Be+=m,H.setMonth(Be),Be%=12,Be<0&&(Be+=12);break;case"d":H.setDate(H.getDate()+m),ne=!1;break;default:return s}return ne&&H.getMonth()!==Be&&H.setDate(0),kn(H)}getPrev(s,c="d",m=1){return this.getNext(s,c,-m)}getWeekday(s){let m=Rr(s).getDay();return 0===m?7:m}getWeekNumber(s,c){7===c&&(c=0);const ne=Rr(s[(11-c)%7]);ne.setDate(ne.getDate()+4-(ne.getDay()||7));const Be=ne.getTime();return ne.setMonth(0),ne.setDate(1),Math.floor(Math.round((Be-ne.getTime())/864e5)/7)+1}getToday(){return kn(new Date)}isValid(s){if(!(s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)&&0!==s.year))return!1;const c=Rr(s);return!isNaN(c.getTime())&&c.getFullYear()===s.year&&c.getMonth()+1===s.month&&c.getDate()===s.day}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),mn=(()=>{class l{getMonthLabel(s){return`${this.getMonthFullName(s.month,s.year)} ${this.getYearNumerals(s.year)}`}getDayNumerals(s){return`${s.day}`}getWeekNumerals(s){return`${s}`}getYearNumerals(s){return`${s}`}getWeekLabel(){return""}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(c){let m=null;return m=c?new c:function Ns(l){return new On(l)}(t.LFG(t.soG)),m},providedIn:"root"})}return l})(),On=(()=>{class l extends mn{constructor(s){super(),this._locale=s,this._monthsShort=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Abbreviated),this._monthsFull=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Wide)}getWeekdayLabel(s,c){const m=(0,ae.Mn)(this._locale,ae.x.Standalone,void 0===c?ae.Tn.Short:c);return m.map((ne,Be)=>m[(Be+1)%7])[s-1]||""}getMonthShortName(s){return this._monthsShort[s-1]||""}getMonthFullName(s){return this._monthsFull[s-1]||""}getDayAriaLabel(s){const c=new Date(s.year,s.month-1,s.day);return(0,ae.p6)(c,"fullDate",this._locale)}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.soG))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),bn=(()=>{class l{get model$(){return this._model$.pipe((0,ce.h)(s=>s.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,ce.h)(s=>null!==s))}set(s){let c=Object.keys(s).map(m=>this._VALIDATORS[m](s[m])).reduce((m,H)=>({...m,...H}),{});Object.keys(c).length>0&&this._nextState(c)}constructor(s,c){this._calendar=s,this._i18n=c,this._VALIDATORS={dayTemplateData:m=>{if(this._state.dayTemplateData!==m)return{dayTemplateData:m}},displayMonths:m=>{if(Bn(m=ee(m))&&m>0&&this._state.displayMonths!==m)return{displayMonths:m}},disabled:m=>{if(this._state.disabled!==m)return{disabled:m}},firstDayOfWeek:m=>{if(Bn(m=ee(m))&&m>=0&&this._state.firstDayOfWeek!==m)return{firstDayOfWeek:m}},focusVisible:m=>{if(this._state.focusVisible!==m&&!this._state.disabled)return{focusVisible:m}},markDisabled:m=>{if(this._state.markDisabled!==m)return{markDisabled:m}},maxDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.maxDate,H))return{maxDate:H}},minDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.minDate,H))return{minDate:H}},navigation:m=>{if(this._state.navigation!==m)return{navigation:m}},outsideDays:m=>{if(this._state.outsideDays!==m)return{outsideDays:m}},weekdays:m=>{const H=!0===m||!1===m?ae.Tn.Short:m,ne=!0!==m&&!1!==m||m;if(this._state.weekdayWidth!==H||this._state.weekdaysVisible!==ne)return{weekdayWidth:H,weekdaysVisible:ne}}},this._model$=new p.x,this._dateSelect$=new p.x,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:ae.Tn.Short,weekdaysVisible:!0}}focus(s){const c=this.toValidDate(s,null);null!=c&&!this._state.disabled&&Vn(this._state.focusDate,c)&&this._nextState({focusDate:s})}focusSelect(){y(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(s){const c=this.toValidDate(s,this._calendar.getToday());null!=c&&!this._state.disabled&&(!this._state.firstDate||xn(this._state.firstDate,c))&&this._nextState({firstDate:c})}select(s,c={}){const m=this.toValidDate(s,null);null!=m&&!this._state.disabled&&(Vn(this._state.selectedDate,m)&&this._nextState({selectedDate:m}),c.emitEvent&&y(m,this._state)&&this._dateSelect$.next(m))}toValidDate(s,c){const m=Tn.from(s);return void 0===c&&(c=this._calendar.getToday()),this._calendar.isValid(m)?m:c}getMonth(s){for(let c of this._state.months)if(s.month===c.number&&s.year===c.year)return c;throw new Error(`month ${s.month} of year ${s.year} not found`)}_nextState(s){const c=this._updateState(s);this._patchContexts(c),this._state=c,this._model$.next(this._state)}_patchContexts(s){const{months:c,displayMonths:m,selectedDate:H,focusDate:ne,focusVisible:Be,disabled:Ge,outsideDays:ut}=s;s.months.forEach(pt=>{pt.weeks.forEach(sn=>{sn.days.forEach(Gt=>{ne&&(Gt.context.focused=ne.equals(Gt.date)&&Be),Gt.tabindex=!Ge&&ne&&Gt.date.equals(ne)&&ne.month===pt.number?0:-1,!0===Ge&&(Gt.context.disabled=!0),void 0!==H&&(Gt.context.selected=null!==H&&H.equals(Gt.date)),pt.number!==Gt.date.month&&(Gt.hidden="hidden"===ut||"collapsed"===ut||m>1&&Gt.date.after(c[0].firstDate)&&Gt.date.before(c[m-1].lastDate))})})})}_updateState(s){const c=Object.assign({},this._state,s);let m=c.firstDate;if(("minDate"in s||"maxDate"in s)&&(function E(l,C){if(C&&l&&C.before(l))throw new Error(`'maxDate' ${C} should be greater than 'minDate' ${l}`)}(c.minDate,c.maxDate),c.focusDate=S(c.focusDate,c.minDate,c.maxDate),c.firstDate=S(c.firstDate,c.minDate,c.maxDate),m=c.focusDate),"disabled"in s&&(c.focusVisible=!1),"selectedDate"in s&&0===this._state.months.length&&(m=c.selectedDate),"focusVisible"in s||"focusDate"in s&&(c.focusDate=S(c.focusDate,c.minDate,c.maxDate),m=c.focusDate,0!==c.months.length&&c.focusDate&&!c.focusDate.before(c.firstDate)&&!c.focusDate.after(c.lastDate)))return c;if("firstDate"in s&&(c.firstDate=S(c.firstDate,c.minDate,c.maxDate),m=c.firstDate),m){const ne=function at(l,C,s,c,m){const{displayMonths:H,months:ne}=s,Be=ne.splice(0,ne.length);return Array.from({length:H},(ut,pt)=>{const sn=Object.assign(l.getNext(C,"m",pt),{day:1});if(ne[pt]=null,!m){const Gt=Be.findIndex(un=>un.firstDate.equals(sn));-1!==Gt&&(ne[pt]=Be.splice(Gt,1)[0])}return sn}).forEach((ut,pt)=>{null===ne[pt]&&(ne[pt]=function ft(l,C,s,c,m={}){const{dayTemplateData:H,minDate:ne,maxDate:Be,firstDayOfWeek:Ge,markDisabled:ut,outsideDays:pt,weekdayWidth:sn,weekdaysVisible:Gt}=s,un=l.getToday();m.firstDate=null,m.lastDate=null,m.number=C.month,m.year=C.year,m.weeks=m.weeks||[],m.weekdays=m.weekdays||[],C=function tn(l,C,s){const c=l.getDaysPerWeek(),m=new Tn(C.year,C.month,1),H=l.getWeekday(m)%c;return l.getPrev(m,"d",(c+H-s)%c)}(l,C,Ge),Gt||(m.weekdays.length=0);for(let Mr=0;MrCr.date),Ge),lr.collapsed="collapsed"===pt&&Pn[0].date.month!==m.number&&Pn[Pn.length-1].date.month!==m.number}return m}(l,ut,s,c,Be.shift()||{}))}),ne}(this._calendar,m,c,this._i18n,"dayTemplateData"in s||"firstDayOfWeek"in s||"markDisabled"in s||"minDate"in s||"maxDate"in s||"disabled"in s||"outsideDays"in s||"weekdaysVisible"in s);c.months=ne,c.firstDate=ne[0].firstDate,c.lastDate=ne[ne.length-1].lastDate,"selectedDate"in s&&!y(c.selectedDate,c)&&(c.selectedDate=null),"firstDate"in s&&(!c.focusDate||c.focusDate.before(c.firstDate)||c.focusDate.after(c.lastDate))&&(c.focusDate=m);const Be=!this._state.firstDate||this._state.firstDate.year!==c.firstDate.year,Ge=!this._state.firstDate||this._state.firstDate.month!==c.firstDate.month;"select"===c.navigation?(("minDate"in s||"maxDate"in s||0===c.selectBoxes.years.length||Be)&&(c.selectBoxes.years=function G(l,C,s){if(!l)return[];const c=C?Math.max(C.year,l.year-500):l.year-10,H=(s?Math.min(s.year,l.year+500):l.year+10)-c+1,ne=Array(H);for(let Be=0;Bene===s.month);m=m.slice(H)}if(c&&C.year===c.year){const H=m.findIndex(ne=>ne===c.month);m=m.slice(0,H+1)}return m}(this._calendar,c.firstDate,c.minDate,c.maxDate))):c.selectBoxes={years:[],months:[]},("arrows"===c.navigation||"select"===c.navigation)&&(Ge||Be||"minDate"in s||"maxDate"in s||"disabled"in s)&&(c.prevDisabled=c.disabled||function Me(l,C,s){const c=Object.assign(l.getPrev(C,"m"),{day:1});return null!=s&&(c.year===s.year&&c.month{class l{constructor(s){this.i18n=s}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(c,m){2&c&&t.ekj("bg-primary",m.selected)("text-white",m.selected)("text-muted",m.isMuted())("outside",m.isMuted())("active",m.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[t.jDz],attrs:Yn,decls:1,vars:1,template:function(c,m){1&c&&t._uU(0),2&c&&t.Oqu(m.i18n.getDayNumerals(m.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0})}return l})(),Ms=(()=>{class l{constructor(s,c){this.i18n=s,this._renderer=c,this.select=new t.vpe,this._month=-1,this._year=-1}changeMonth(s){this.select.emit(new Tn(this.date.year,ee(s),1))}changeYear(s){this.select.emit(new Tn(ee(s),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn),t.Y36(t.Qsj))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(c,m){if(1&c&&(t.Gf(sr,7,t.SBq),t.Gf(Wr,7,t.SBq)),2&c){let H;t.iGM(H=t.CRH())&&(m.monthSelect=H.first),t.iGM(H=t.CRH())&&(m.yearSelect=H.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[t.jDz],decls:6,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.select-month:Select month`,c=$localize`:@@ngb.datepicker.select-month:Select month`,m=$localize`:@@ngb.datepicker.select-year:Select year`,H=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",s,"title",c,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",m,"title",H,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(c,m){1&c&&(t.TgZ(0,"select",0,1),t.NdJ("change",function(ne){return m.changeMonth(ne.target.value)}),t.YNc(2,Mi,2,3,"option",2),t.qZA(),t.TgZ(3,"select",3,4),t.NdJ("change",function(ne){return m.changeYear(ne.target.value)}),t.YNc(5,di,2,2,"option",2),t.qZA()),2&c&&(t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.months),t.xp6(1),t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.years))},dependencies:[ae.ax],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0})}return l})(),Ji=(()=>{class l{constructor(s){this.i18n=s,this.navigation=tr,this.months=[],this.navigate=new t.vpe,this.select=new t.vpe}onClickPrev(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[t.jDz],decls:8,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.previous-month:Previous month`,c=$localize`:@@ngb.datepicker.previous-month:Previous month`,m=$localize`:@@ngb.datepicker.next-month:Next month`,H=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",s,"title",c,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",m,"title",H,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"],[1,"ngb-dp-arrow"]]},template:function(c,m){1&c&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(ne){return m.onClickPrev(ne)}),t._UZ(2,"span",2),t.qZA()(),t.YNc(3,ns,1,4,"ngb-datepicker-navigation-select",3),t.YNc(4,Ii,1,1,null,4),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(ne){return m.onClickNext(ne)}),t._UZ(7,"span",2),t.qZA()()),2&c&&(t.xp6(1),t.Q6J("disabled",m.prevDisabled),t.xp6(2),t.Q6J("ngIf",m.showSelect),t.xp6(1),t.Q6J("ngIf",!m.showSelect),t.xp6(2),t.Q6J("disabled",m.nextDisabled))},dependencies:[ae.O5,ae.ax,Ms],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0})}return l})();var fr=function(l){return l[l.Tab=9]="Tab",l[l.Enter=13]="Enter",l[l.Escape=27]="Escape",l[l.Space=32]="Space",l[l.PageUp=33]="PageUp",l[l.PageDown=34]="PageDown",l[l.End=35]="End",l[l.Home=36]="Home",l[l.ArrowLeft=37]="ArrowLeft",l[l.ArrowUp=38]="ArrowUp",l[l.ArrowRight=39]="ArrowRight",l[l.ArrowDown=40]="ArrowDown",l}(fr||{});let ni=(()=>{class l{processKey(s,c){const{state:m,calendar:H}=c;switch(s.which){case fr.PageUp:c.focusDate(H.getPrev(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.PageDown:c.focusDate(H.getNext(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.End:c.focusDate(s.shiftKey?m.maxDate:m.lastDate);break;case fr.Home:c.focusDate(s.shiftKey?m.minDate:m.firstDate);break;case fr.ArrowLeft:c.focusDate(H.getPrev(m.focusedDate,"d",1));break;case fr.ArrowUp:c.focusDate(H.getPrev(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.ArrowRight:c.focusDate(H.getNext(m.focusedDate,"d",1));break;case fr.ArrowDown:c.focusDate(H.getNext(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.Enter:case fr.Space:c.focusSelect();break;default:return}s.preventDefault(),s.stopPropagation()}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Jo=(()=>{class l{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=ae.Tn.Short}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ri=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function vl(){return new Qi}()},providedIn:"root"})}return l})(),Qi=(()=>{class l extends ri{fromModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),ds=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}return l})(),ao=(()=>{class l{set month(s){this.viewModel=this._service.getMonth(s)}constructor(s,c,m,H){this.i18n=s,this.datepicker=c,this._keyboardService=m,this._service=H}onKeyDown(s){this._keyboardService.processKey(s,this.datepicker)}doSelect(s){!s.context.disabled&&!s.hidden&&this.datepicker.onDateSelect(s.date)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn),t.Y36((0,t.Gpc)(()=>lo)),t.Y36(ni),t.Y36(bn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(c,m){1&c&&t.NdJ("keydown",function(ne){return m.onKeyDown(ne)})},inputs:{month:"month"},standalone:!0,features:[t.jDz],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,Es,3,2,"div",0),t.YNc(1,ht,1,1,"ng-template",1)),2&c&&(t.Q6J("ngIf",m.viewModel.weekdays.length>0),t.xp6(1),t.Q6J("ngForOf",m.viewModel.weeks))},dependencies:[ae.O5,ae.ax,ae.tP],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2})}return l})(),lo=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut){this._service=s,this._calendar=c,this._i18n=m,this._elementRef=Be,this._ngbDateAdapter=Ge,this._ngZone=ut,this.injector=(0,t.f3M)(t.zs3),this._controlValue=null,this._destroyed$=new p.x,this._publicState={},this.navigate=new t.vpe,this.dateSelect=new t.vpe,this.onChange=pt=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(pt=>this[pt]=H[pt]),s.dateSelect$.pipe((0,ye.R)(this._destroyed$)).subscribe(pt=>{this.dateSelect.emit(pt)}),s.model$.pipe((0,ye.R)(this._destroyed$)).subscribe(pt=>{const sn=pt.firstDate,Gt=this.model?this.model.firstDate:null;this._publicState={maxDate:pt.maxDate,minDate:pt.minDate,firstDate:pt.firstDate,lastDate:pt.lastDate,focusedDate:pt.focusDate,months:pt.months.map(Cr=>Cr.firstDate)};let un=!1;if(!sn.equals(Gt)&&(this.navigate.emit({current:Gt?{year:Gt.year,month:Gt.month}:null,next:{year:sn.year,month:sn.month},preventDefault:()=>un=!0}),un&&null!==Gt))return void this._service.open(Gt);const Mr=pt.selectedDate,lr=pt.focusDate,Pn=this.model?this.model.focusDate:null;this.model=pt,Vn(Mr,this._controlValue)&&(this._controlValue=Mr,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(Mr))),Vn(lr,Pn)&&Pn&&pt.focusVisible&&this.focus(),ne.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(s){this._service.focus(Tn.from(s))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{const s=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');s&&s.focus()})}navigateTo(s){this._service.open(Tn.from(s?s.day?s:{...s,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const s=(0,O.R)(this._contentEl.nativeElement,"focusin"),c=(0,O.R)(this._contentEl.nativeElement,"focusout"),{nativeElement:m}=this._elementRef;(0,M.T)(s,c).pipe((0,ce.h)(({target:H,relatedTarget:ne})=>!(Jn(H,"ngb-dp-day")&&Jn(ne,"ngb-dp-day")&&m.contains(H)&&m.contains(ne))),(0,ye.R)(this._destroyed$)).subscribe(({type:H})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===H})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const s={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(c=>s[c]=this[c]),this._service.set(s),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(s){const c={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(m=>m in s).forEach(m=>c[m]=this[m]),this._service.set(c),"startDate"in s){const{currentValue:m,previousValue:H}=s.startDate;xn(H,m)&&this.navigateTo(this.startDate)}}onDateSelect(s){this._service.focus(s),this._service.select(s,{emitEvent:!0})}onNavigateDateSelect(s){this._service.open(s)}onNavigateEvent(s){switch(s){case tr.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case tr.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this._service.set({disabled:s})}writeValue(s){this._controlValue=Tn.from(this._ngbDateAdapter.fromModel(s)),this._service.select(this._controlValue)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(bn),t.Y36(hi),t.Y36(mn),t.Y36(Jo),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ri),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,ds,7),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentTemplateFromContent=ne.first)}},viewQuery:function(c,m){if(1&c&&(t.Gf(pn,7),t.Gf(lt,7)),2&c){let H;t.iGM(H=t.CRH())&&(m._defaultDayTemplate=H.first),t.iGM(H=t.CRH())&&(m._contentEl=H.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("disabled",m.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},bn]),t.TTD,t.jDz],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(c,m){if(1&c&&(t.YNc(0,Ot,1,5,"ng-template",null,0,t.W1O),t.YNc(2,ji,1,1,"ng-template",null,1,t.W1O),t.TgZ(4,"div",2),t.YNc(5,ms,1,7,"ngb-datepicker-navigation",3),t.qZA(),t.TgZ(6,"div",4,5),t.YNc(8,fi,0,0,"ng-template",6),t.qZA(),t.YNc(9,Hs,0,0,"ng-template",7)),2&c){const H=t.MAs(3);t.xp6(5),t.Q6J("ngIf","none"!==m.navigation),t.xp6(1),t.ekj("ngb-dp-months",!m.contentTemplate),t.xp6(2),t.Q6J("ngTemplateOutlet",m.contentTemplate||(null==m.contentTemplateFromContent?null:m.contentTemplateFromContent.templateRef)||H)("ngTemplateOutletContext",t.VKq(7,po,m))("ngTemplateOutletInjector",m.injector),t.xp6(1),t.Q6J("ngTemplateOutlet",m.footerTemplate)}},dependencies:[ae.O5,ae.ax,ae.tP,ar,ao,Ji],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0})}return l})();const Qo=(l,C)=>!!C&&C.some(s=>s.contains(l)),yl=(l,C)=>!C||null!=function ei(l,C){return!C||typeof l.closest>"u"?null:l.closest(C)}(l,C),vu=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function bl(l,C,s,c,m,H,ne,Be){s&&l.runOutsideAngular((l=>vu?()=>setTimeout(()=>l(),100):l)(()=>{const ut=(0,O.R)(C,"keydown").pipe((0,ye.R)(m),(0,ce.h)(Gt=>Gt.which===fr.Escape),(0,ve.b)(Gt=>Gt.preventDefault())),pt=(0,O.R)(C,"mousedown").pipe((0,xe.U)(Gt=>{const un=Gt.target;return 2!==Gt.button&&!Qo(un,ne)&&("inside"===s?Qo(un,H)&&yl(un,Be):"outside"===s?!Qo(un,H):yl(un,Be)||!Qo(un,H))}),(0,ye.R)(m)),sn=(0,O.R)(C,"mouseup").pipe((0,be.M)(pt),(0,ce.h)(([Gt,un])=>un),Ee(0),(0,ye.R)(m));f([ut.pipe((0,xe.U)(Gt=>0)),sn.pipe((0,xe.U)(Gt=>1))]).subscribe(Gt=>l.run(()=>c(Gt)))}))}const Xo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function va(l){const C=Array.from(l.querySelectorAll(Xo)).filter(s=>-1!==s.tabIndex);return[C[0],C[C.length-1]]}const bu=(l,C,s,c=!1)=>{l.runOutsideAngular(()=>{const m=(0,O.R)(C,"focusin").pipe((0,ye.R)(s),(0,xe.U)(H=>H.target));(0,O.R)(C,"keydown").pipe((0,ye.R)(s),(0,ce.h)(H=>H.which===fr.Tab),(0,be.M)(m)).subscribe(([H,ne])=>{const[Be,Ge]=va(C);(ne===Be||ne===C)&&H.shiftKey&&(Ge.focus(),H.preventDefault()),ne===Ge&&!H.shiftKey&&(Be.focus(),H.preventDefault())}),c&&(0,O.R)(C,"click").pipe((0,ye.R)(s),(0,be.M)(m),(0,xe.U)(H=>H[1])).subscribe(H=>H.focus())})};let Bh=(()=>{class l{constructor(s){this._element=s.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const vc=/\s+/,Uh=/ +/gi,Kd={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},jh=/^left/,Hh=/^right/,yc=/^start/,Ha=/^end/;function ya({placement:l,baseClass:C},s){let c=Array.isArray(l)?l:l.split(vc),H=c.findIndex(ut=>"auto"===ut);H>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(ut){null==c.find(pt=>-1!==pt.search("^"+ut))&&c.splice(H++,1,ut)});const ne=c.map(ut=>function Yd(l,C){const[s,c]=Kd[l];return C&&c||s}(ut,s.isRTL()));return{placement:ne.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!C,phase:"write",fn({state:ut}){const pt=new RegExp(C+"(-[a-z]+)*","gi"),sn=ut.elements.popper,Gt=ut.placement;let un=sn.className;un=un.replace(pt,""),un+=` ${function Jd(l,C){let[s,c]=C.split("-");const m=s.replace(jh,"start").replace(Hh,"end");let H=[m];if(c){let ne=c;("left"===s||"right"===s)&&(ne=ne.replace(yc,"top").replace(Ha,"bottom")),H.push(`${m}-${ne}`)}return l&&(H=H.map(ne=>`${l}-${ne}`)),H.join(" ")}(C,Gt)}`,un=un.trim().replace(Uh," "),sn.className=un}},Xn,K,Oe,{enabled:!0,name:"flip",options:{fallbackPlacements:ne}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function El(l){return l}function qo(){const l=(0,t.f3M)(Bh);let C=null;return{createPopper(s){if(!C){let m=(s.updatePopperOptions||El)(ya(s,l));C=wi(s.hostElement,s.targetElement,m)}},update(){C&&C.update()},setOptions(s){if(C){let m=(s.updatePopperOptions||El)(ya(s,l));C.setOptions(m)}},destroy(){C&&(C.destroy(),C=null)}}}let Eu=(()=>{class l extends Jo{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s,this.restoreFocus=!0}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function Dl(l){return C=>(C.modifiers.push(Ui,{name:"offset",options:{offset:()=>l}}),C)}let bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function Du(){return new co}()},providedIn:"root"})}return l})(),co=(()=>{class l extends bc{parse(s){if(null!=s){const c=s.trim().split("-");if(1===c.length&&Jt(c[0]))return{year:ee(c[0]),month:null,day:null};if(2===c.length&&Jt(c[0])&&Jt(c[1]))return{year:ee(c[0]),month:ee(c[1]),day:null};if(3===c.length&&Jt(c[0])&&Jt(c[1])&&Jt(c[2]))return{year:ee(c[0]),month:ee(c[1]),day:ee(c[2])}}return null}format(s){return s?`${s.year}-${Jt(s.month)?Kn(s.month):""}-${Jt(s.day)?Kn(s.day):""}`:""}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Cu=(()=>{class l{get disabled(){return this._disabled}set disabled(s){this._disabled=""===s||s&&"false"!==s,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}constructor(s,c,m,H,ne,Be,Ge,ut,pt,sn){this._parserFormatter=s,this._elRef=c,this._vcRef=m,this._renderer=H,this._ngZone=ne,this._calendar=Be,this._dateAdapter=Ge,this._document=ut,this._changeDetector=pt,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._destroyCloseHandlers$=new p.x,this.dateSelect=new t.vpe,this.navigate=new t.vpe,this.closed=new t.vpe,this._onChange=Gt=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement","popperOptions"].forEach(Gt=>this[Gt]=sn[Gt]),this._positioning=qo()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}registerOnValidatorChange(s){this._validatorChange=s}setDisabledState(s){this.disabled=s}validate(s){const{value:c}=s;if(null!=c){const m=this._fromDateStruct(this._dateAdapter.fromModel(c));if(!m)return{ngbDate:{invalid:c}};if(this.minDate&&m.before(Tn.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:c}}};if(this.maxDate&&m.after(Tn.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:c}}}}return null}writeValue(s){this._model=this._fromDateStruct(this._dateAdapter.fromModel(s)),this._writeModelValue(this._model)}manualDateChange(s,c=!1){const m=s!==this._inputValue;m&&(this._inputValue=s,this._model=this._fromDateStruct(this._parserFormatter.parse(s))),(m||!c)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===s?null:s),c&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){let s;if(this._cRef=this._vcRef.createComponent(lo),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(c=>{this.writeValue(c),this._onChange(c),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,bu(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus()),s=Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this._ngZone.runOutsideAngular(()=>{this._cRef&&(this._positioning.createPopper({hostElement:s,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this.positionTarget&&!s)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._setCloseHandlers()}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let s=this._elWithFocus;Ct(this.restoreFocus)?s=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(s=this.restoreFocus),s&&s.focus?s.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(s){this.isOpen()&&this._cRef.instance.navigateTo(s)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(s){if((s.minDate||s.maxDate)&&(this._validatorChange(),this.isOpen()&&(s.minDate&&(this._cRef.instance.minDate=this.minDate),s.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(s))),s.datepickerClass){const{currentValue:c,previousValue:m}=s.datepickerClass;this._applyPopupClass(c,m)}s.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(s){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(c=>{void 0!==this[c]&&s.setInput(c,this[c])}),s.setInput("startDate",this.startDate||this._model)}_applyPopupClass(s,c){const m=this._cRef?.location.nativeElement;m&&(s&&this._renderer.addClass(m,s),c&&this._renderer.removeClass(m,c))}_applyPopupStyling(s){this._renderer.addClass(s,"dropdown-menu"),this._renderer.addClass(s,"show"),"body"===this.container&&this._renderer.addClass(s,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(s){s.navigate.subscribe(c=>this.navigate.emit(c)),s.dateSelect.subscribe(c=>{this.dateSelect.emit(c),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(s){const c=this._parserFormatter.format(s);this._inputValue=c,this._renderer.setProperty(this._elRef.nativeElement,"value",c),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(s)),this._onTouched())}_fromDateStruct(s){const c=s?new Tn(s.year,s.month,s.day):null;return this._calendar.isValid(c)?c:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(bc),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(hi),t.Y36(ri),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(Eu))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("input",function(ne){return m.manualDateChange(ne.target.value)})("change",function(ne){return m.manualDateChange(ne.target.value,!0)})("focus",function(){return m.onFocus()})("blur",function(){return m.onBlur()}),2&c&&t.Ikx("disabled",m.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:fe.Cf,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:Jo,useExisting:Eu}]),t.TTD]})}return l})();new Date(1882,10,12),new Date(2174,10,25);let Ou=(()=>{class l extends ri{fromModel(s){return s instanceof Date&&!isNaN(s.getTime())?this._fromNativeDate(s):null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?this._toNativeDate(s):null}_fromNativeDate(s){return{year:s.getFullYear(),month:s.getMonth()+1,day:s.getDate()}}_toNativeDate(s){const c=new Date(s.year,s.month-1,s.day,12);return c.setFullYear(s.year),c}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Iu=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),cf=(()=>{class l{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Sc=(()=>{class l{set disabled(s){this._disabled=""===s||!0===s,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}constructor(s,c){this.elementRef=s,this._renderer=c,this._disabled=!1}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(c,m){2&c&&(t.Ikx("tabIndex",m.disabled?-1:0),t.ekj("disabled",m.disabled))},inputs:{disabled:"disabled"},standalone:!0})}return l})(),Ya=(()=>{class l{constructor(s,c){this.dropdown=s,this.placement="bottom",this.isOpen=!1,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Sc,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.menuItems=ne)}},hostVars:4,hostBindings:function(c,m){1&c&&t.NdJ("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Enter",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Space",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.ekj("dropdown-menu",!0)("show",m.dropdown.isOpen())},standalone:!0})}return l})(),ta=(()=>{class l{constructor(s,c){this.dropdown=s,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0})}return l})(),Pu=(()=>{class l extends ta{constructor(s,c){super(s,c)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.dropdown.toggle()})("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0,features:[t._Bn([{provide:ta,useExisting:(0,t.Gpc)(()=>l)}]),t.qOj]})}return l})(),Lo=(()=>{class l{constructor(s,c,m,H,ne,Be){this._changeDetector=s,this._document=m,this._ngZone=H,this._elementRef=ne,this._renderer=Be,this._destroyCloseHandlers$=new p.x,this._bodyContainer=null,this._open=!1,this.openChange=new t.vpe,this.placement=c.placement,this.popperOptions=c.popperOptions,this.container=c.container,this.autoClose=c.autoClose,this._positioning=qo()}ngOnInit(){this.display||(this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(s){if(s.container&&this._open&&this._applyContainer(this.container),s.placement&&!s.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),s.dropdownClass){const{currentValue:c,previousValue:m}=s.dropdownClass;this._applyCustomDropdownClass(c,m)}s.autoClose&&this._open&&(this.autoClose=s.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:s=>this.popperOptions(Dl([0,2])(s))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,s=>{this.close(),0===s&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(s){const c=s.which,m=this._getMenuElements();let H=-1,ne=null;const Be=this._isEventFromToggle(s);if(!Be&&m.length&&m.forEach((Ge,ut)=>{Ge.contains(s.target)&&(ne=Ge),Ge===Fi(this._document)&&(H=ut)}),c!==fr.Space&&c!==fr.Enter){if(c!==fr.Tab){if(Be||ne){if(this.open(),m.length){switch(c){case fr.ArrowDown:H=Math.min(H+1,m.length-1);break;case fr.ArrowUp:if(this._isDropup()&&-1===H){H=m.length-1;break}H=Math.max(H-1,0);break;case fr.Home:H=0;break;case fr.End:H=m.length-1}m[H].focus()}s.preventDefault()}}else if(s.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===s.target)return void("body"!==this.container||s.shiftKey?s.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const Ge=this._menu.nativeElement.querySelectorAll(Xo);s.shiftKey&&s.target===Ge[0]?(this._anchor.nativeElement.focus(),s.preventDefault()):!s.shiftKey&&s.target===Ge[Ge.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,O.R)(s.target,"focusout").pipe((0,_e.q)(1)).subscribe(({relatedTarget:Ge})=>{this._elementRef.nativeElement.contains(Ge)||this.close()})}}else ne&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,O.R)(ne,"click").pipe((0,_e.q)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(s){return this._anchor.nativeElement.contains(s.target)}_getMenuElements(){const s=this._menu;return null==s?[]:s.menuItems.filter(c=>!c.disabled).map(c=>c.elementRef.nativeElement)}_positionMenu(){const s=this._menu;this.isOpen()&&s&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(s){return Array.isArray(s)?s[0]:s.split(" ")[0]}_resetContainer(){const s=this._renderer;this._menu&&s.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(s.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(s=null){if(this._resetContainer(),"body"===s){const c=this._renderer,m=this._menu.nativeElement,H=this._bodyContainer=this._bodyContainer||c.createElement("div");c.setStyle(H,"position","absolute"),c.setStyle(m,"position","static"),c.setStyle(H,"z-index","1055"),c.appendChild(H,m),c.appendChild(this._document.body,H)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(s,c){const m="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;m&&(c&&this._renderer.removeClass(m,c),s&&this._renderer.addClass(m,s))}_applyPlacementClasses(s){const c=this._menu;if(c){s||(s=this._getFirstPlacement(this.placement));const m=this._renderer,H=this._elementRef.nativeElement;m.removeClass(H,"dropup"),m.removeClass(H,"dropdown");const{nativeElement:ne}=c;"static"===this.display?(c.placement=null,m.setAttribute(ne,"data-bs-popper","static")):(c.placement=s,m.removeAttribute(ne,"data-bs-popper"));const Be=-1!==s.search("^top")?"dropup":"dropdown";m.addClass(H,Be);const Ge=this._bodyContainer;Ge&&(m.removeClass(Ge,"dropup"),m.removeClass(Ge,"dropdown"),m.addClass(Ge,Be))}}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.sBO),t.Y36(cf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdown",""]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,Ya,5),t.Suo(H,ta,5)),2&c){let ne;t.iGM(ne=t.CRH())&&(m._menu=ne.first),t.iGM(ne=t.CRH())&&(m._anchor=ne.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("show",m.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[t.TTD]})}return l})(),Ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class na{constructor(C,s,c){this.nodes=C,this.viewRef=s,this.componentRef=c}}class Mc{constructor(C,s,c,m,H,ne){this._componentType=C,this._injector=s,this._viewContainerRef=c,this._renderer=m,this._ngZone=H,this._applicationRef=ne,this._windowRef=null,this._contentRef=null}open(C,s,c=!1){this._windowRef||(this._contentRef=this._getContentRef(C,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:m}=this._windowRef.location,H=this._ngZone.onStable.pipe((0,_e.q)(1),(0,_t.z)(()=>li(this._ngZone,m,({classList:ne})=>ne.add("show"),{animation:c,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:H}}close(C=!1){return this._windowRef?li(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:C,runningTransition:"stop"}).pipe((0,ve.b)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,L.of)(void 0)}_getContentRef(C,s){if(C){if(C instanceof t.Rgc){const c=C.createEmbeddedView(s);return this._applicationRef.attachView(c),new na([c.rootNodes],c)}return new na([[this._renderer.createText(`${C}`)]])}return new na([])}}let Ac=(()=>{class l{constructor(s,c){this._el=s,this._zone=c}ngOnInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{li(this._zone,this._el.nativeElement,(s,c)=>{c&&Ei(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return li(this._zone,this._el.nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(c,m){2&c&&(t.Tol("modal-backdrop"+(m.backdropClass?" "+m.backdropClass:"")),t.ekj("show",!m.animation)("fade",m.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[t.jDz],decls:0,vars:0,template:function(c,m){},encapsulation:2})}return l})();class Da{update(C){}close(C){}dismiss(C){}}const Ru=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],uf=["animation","backdropClass"];class df{_applyWindowOptions(C,s){Ru.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}_applyBackdropOptions(C,s){uf.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}update(C){this._applyWindowOptions(this._windowCmptRef.instance,C),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,C)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,ye.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,ye.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(C,s,c,m){this._windowCmptRef=C,this._contentRef=s,this._backdropCmptRef=c,this._beforeDismiss=m,this._closed=new p.x,this._dismissed=new p.x,this._hidden=new p.x,C.instance.dismissEvent.subscribe(H=>{this.dismiss(H)}),this.result=new Promise((H,ne)=>{this._resolve=H,this._reject=ne}),this.result.then(null,()=>{})}close(C){this._windowCmptRef&&(this._closed.next(C),this._resolve(C),this._removeModalElements())}_dismiss(C){this._dismissed.next(C),this._reject(C),this._removeModalElements()}dismiss(C){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();!function yr(l){return l&&l.then}(s)?!1!==s&&this._dismiss(C):s.then(c=>{!1!==c&&this._dismiss(C)},()=>{})}else this._dismiss(C)}_removeModalElements(){const C=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,L.of)(void 0);C.subscribe(()=>{const{nativeElement:c}=this._windowCmptRef.location;c.parentNode.removeChild(c),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:c}=this._backdropCmptRef.location;c.parentNode.removeChild(c),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ie(C,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Fo=function(l){return l[l.BACKDROP_CLICK=0]="BACKDROP_CLICK",l[l.ESC=1]="ESC",l}(Fo||{});let Qa=(()=>{class l{constructor(s,c,m){this._document=s,this._elRef=c,this._zone=m,this._closed$=new p.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new t.vpe,this.shown=new p.x,this.hidden=new p.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Ct(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,c={animation:this.animation,runningTransition:"stop"},ne=ie(li(this._zone,s,()=>s.classList.remove("show"),c),li(this._zone,this._dialogEl.nativeElement,()=>{},c));return ne.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),ne}_show(){const s={animation:this.animation,runningTransition:"continue"};ie(li(this._zone,this._elRef.nativeElement,(H,ne)=>{ne&&Ei(H),H.classList.add("show")},s),li(this._zone,this._dialogEl.nativeElement,()=>{},s)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{(0,O.R)(s,"keydown").pipe((0,ye.R)(this._closed$),(0,ce.h)(m=>m.which===fr.Escape)).subscribe(m=>{this.keyboard?requestAnimationFrame(()=>{m.defaultPrevented||this._zone.run(()=>this.dismiss(Fo.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let c=!1;(0,O.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,ye.R)(this._closed$),(0,ve.b)(()=>c=!1),(0,ze.w)(()=>(0,O.R)(s,"mouseup").pipe((0,ye.R)(this._closed$),(0,_e.q)(1))),(0,ce.h)(({target:m})=>s===m)).subscribe(()=>{c=!0}),(0,O.R)(s,"click").pipe((0,ye.R)(this._closed$)).subscribe(({target:m})=>{s===m&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!c&&this._zone.run(()=>this.dismiss(Fo.BACKDROP_CLICK))),c=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const c=s.querySelector("[ngbAutofocus]"),m=va(s)[0];(c||m||s).focus()}}_restoreFocus(){const s=this._document.body,c=this._elWithFocus;let m;m=c&&c.focus&&s.contains(c)?c:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>m.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&li(this._zone,this._elRef.nativeElement,({classList:s})=>(s.add("modal-static"),()=>s.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(ae.K0),t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-window"]],viewQuery:function(c,m){if(1&c&&t.Gf(Ds,7),2&c){let H;t.iGM(H=t.CRH())&&(m._dialogEl=H.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(c,m){2&c&&(t.uIk("aria-modal",!0)("aria-labelledby",m.ariaLabelledBy)("aria-describedby",m.ariaDescribedBy),t.Tol("modal d-block"+(m.windowClass?" "+m.windowClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(c,m){1&c&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2),t.Hsn(3),t.qZA()()),2&c&&t.Tol("modal-dialog"+(m.size?" modal-"+m.size:"")+(m.centered?" modal-dialog-centered":"")+m.fullscreenClass+(m.scrollable?" modal-dialog-scrollable":"")+(m.modalDialogClass?" "+m.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return l})(),ff=(()=>{class l{constructor(s){this._document=s}hide(){const s=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),c=this._document.body,m=c.style,{overflow:H,paddingRight:ne}=m;if(s>0){const Be=parseFloat(window.getComputedStyle(c).paddingRight);m.paddingRight=`${Be+s}px`}return m.overflow="hidden",()=>{s>0&&(m.paddingRight=ne),m.overflow=H}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ng=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge){this._applicationRef=s,this._injector=c,this._environmentInjector=m,this._document=H,this._scrollBar=ne,this._rendererFactory=Be,this._ngZone=Ge,this._activeWindowCmptHasChanged=new p.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new t.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const ut=this._windowCmpts[this._windowCmpts.length-1];bu(this._ngZone,ut.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(ut.location.nativeElement)}})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,c,m){const H=m.container instanceof HTMLElement?m.container:dr(m.container)?this._document.querySelector(m.container):this._document.body,ne=this._rendererFactory.createRenderer(null,null);if(!H)throw new Error(`The specified modal container "${m.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Be=new Da,Ge=(s=m.injector||s).get(t.lqb,null)||this._environmentInjector,ut=this._getContentRef(s,Ge,c,Be,m);let pt=!1!==m.backdrop?this._attachBackdrop(H):void 0,sn=this._attachWindowComponent(H,ut.nodes),Gt=new df(sn,ut,pt,m.beforeDismiss);return this._registerModalRef(Gt),this._registerWindowCmpt(sn),Gt.hidden.pipe((0,_e.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(ne.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Be.close=un=>{Gt.close(un)},Be.dismiss=un=>{Gt.dismiss(un)},Be.update=un=>{Gt.update(un)},Gt.update(m),1===this._modalRefs.length&&ne.addClass(this._document.body,"modal-open"),pt&&pt.instance&&pt.changeDetectorRef.detectChanges(),sn.changeDetectorRef.detectChanges(),Gt}get activeInstances(){return this._activeInstances}dismissAll(s){this._modalRefs.forEach(c=>c.dismiss(s))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(s){let c=(0,t.LMc)(Ac,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(c.hostView),s.appendChild(c.location.nativeElement),c}_attachWindowComponent(s,c){let m=(0,t.LMc)(Qa,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:c});return this._applicationRef.attachView(m.hostView),s.appendChild(m.location.nativeElement),m}_getContentRef(s,c,m,H,ne){return m?m instanceof t.Rgc?this._createFromTemplateRef(m,H):Ct(m)?this._createFromString(m):this._createFromComponent(s,c,m,H,ne):new na([])}_createFromTemplateRef(s,c){const H=s.createEmbeddedView({$implicit:c,close(ne){c.close(ne)},dismiss(ne){c.dismiss(ne)}});return this._applicationRef.attachView(H),new na([H.rootNodes],H)}_createFromString(s){const c=this._document.createTextNode(`${s}`);return new na([[c]])}_createFromComponent(s,c,m,H,ne){const Be=t.zs3.create({providers:[{provide:Da,useValue:H}],parent:s}),Ge=(0,t.LMc)(m,{environmentInjector:c,elementInjector:Be}),ut=Ge.location.nativeElement;return ne.scrollable&&ut.classList.add("component-host-scrollable"),this._applicationRef.attachView(Ge.hostView),new na([[ut]],Ge.hostView,Ge)}_setAriaHidden(s){const c=s.parentElement;c&&s!==this._document.body&&(Array.from(c.children).forEach(m=>{m!==s&&"SCRIPT"!==m.nodeName&&(this._ariaHiddenValues.set(m,m.getAttribute("aria-hidden")),m.setAttribute("aria-hidden","true"))}),this._setAriaHidden(c))}_revertAriaHidden(){this._ariaHiddenValues.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(s){const c=()=>{const m=this._modalRefs.indexOf(s);m>-1&&(this._modalRefs.splice(m,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(s),this._activeInstances.emit(this._modalRefs),s.result.then(c,c)}_registerWindowCmpt(s){this._windowCmpts.push(s),this._activeWindowCmptHasChanged.next(),s.onDestroy(()=>{const c=this._windowCmpts.indexOf(s);c>-1&&(this._windowCmpts.splice(c,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.z2F),t.LFG(t.zs3),t.LFG(t.lqb),t.LFG(ae.K0),t.LFG(ff),t.LFG(t.FYo),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Nu=(()=>{class l{constructor(s){this._ngbConfig=s,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Lu=(()=>{class l{constructor(s,c,m){this._injector=s,this._modalStack=c,this._config=m}open(s,c={}){const m={...this._config,animation:this._config.animation,...c};return this._modalStack.open(this._injector,s,m)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(s){this._modalStack.dismissAll(s)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.zs3),t.LFG(ng),t.LFG(Nu))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),pf=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({providers:[Lu]})}return l})(),xl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Oc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Ca{constructor(C,s){this.open=C,this.close=s,s||(this.close=C)}isManual(){return"manual"===this.open||"manual"===this.close}}const ju={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},rl=l=>l>0?Ee(l):C=>C;let $u=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ic=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),fs=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Lc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const Zu=(l,C)=>{const{classList:s}=l;if(C)return s.add("fade"),Ei(l),s.add("show","showing"),()=>{s.remove("showing")};s.add("show")},Ku=({classList:l})=>(l.add("showing"),()=>{l.remove("show","showing")});let Ta=(()=>{class l{constructor(s){this._ngbConfig=s,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Rl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbToastHeader",""]],standalone:!0})}return l})(),Yu=(()=>{class l{constructor(s,c,m,H){this.ariaLive=s,this._zone=m,this._element=H,this.contentHeaderTpl=null,this.shown=new t.vpe,this.hidden=new t.vpe,null==this.ariaLive&&(this.ariaLive=c.ariaLive),this.delay=c.delay,this.autohide=c.autohide,this.animation=c.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(s){"autohide"in s&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const s=li(this._zone,this._element.nativeElement,Ku,{animation:this.animation,runningTransition:"stop"});return s.subscribe(()=>{this.hidden.emit()}),s}show(){const s=li(this._zone,this._element.nativeElement,Zu,{animation:this.animation,runningTransition:"continue"});return s.subscribe(()=>{this.shown.emit()}),s}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.$8M("aria-live"),t.Y36(Ta),t.Y36(t.R0b),t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-toast"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Rl,7,t.Rgc),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentHeaderTpl=ne.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(c,m){2&c&&(t.uIk("aria-live",m.ariaLive),t.ekj("fade",m.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[t.TTD,t.jDz],ngContentSelectors:Ve,decls:5,vars:1,consts:function(){let s;return s=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",s,1,"btn-close",3,"click"]]},template:function(c,m){1&c&&(t.F$t(),t.YNc(0,_o,2,1,"ng-template",null,0,t.W1O),t.YNc(2,Ao,3,1,"ng-template",1),t.TgZ(3,"div",2),t.Hsn(4),t.qZA()),2&c&&(t.xp6(2),t.Q6J("ngIf",m.contentHeaderTpl||m.header))},dependencies:[ae.O5,ae.tP],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2})}return l})(),Nl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ll=(()=>{class l{constructor(s){this._ngbConfig=s,this.autoClose=!0,this.placement="auto",this.popperOptions=c=>c,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Of=0,If=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(c,m){2&c&&(t.Ikx("id",m.id),t.Tol("tooltip"+(m.tooltipClass?" "+m.tooltipClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(c,m){1&c&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA())},encapsulation:2,changeDetection:0})}return l})(),Pf=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,pt){this._elementRef=s,this._renderer=c,this._ngZone=Be,this._document=Ge,this._changeDetector=ut,this.shown=new t.vpe,this.hidden=new t.vpe,this._ngbTooltipWindowId="ngb-tooltip-"+Of++,this._windowRef=null,this.animation=ne.animation,this.autoClose=ne.autoClose,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this.triggers=ne.triggers,this.container=ne.container,this.disableTooltip=ne.disableTooltip,this.tooltipClass=ne.tooltipClass,this.openDelay=ne.openDelay,this.closeDelay=ne.closeDelay,this._popupService=new Mc(If,m,H,c,this._ngZone,pt),this._positioning=qo()}set ngbTooltip(s){this._ngbTooltip=s,!s&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(s){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:c,transition$:m}=this._popupService.open(this._ngbTooltip,s??this.tooltipContext,this.animation);this._windowRef=c,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:H=>this.popperOptions(H)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),m.subscribe(()=>this.shown.emit())}}close(s=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(s).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function Tf(l,C,s,c,m,H,ne=0,Be=0){const Ge=function Hu(l,C=ju){const s=(l||"").trim();if(0===s.length)return[];const c=s.split(/\s+/).map(H=>H.split(":")).map(H=>{let ne=C[H[0]]||H;return new Ca(ne[0],ne[1])}),m=c.filter(H=>H.isManual());if(m.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===m.length&&c.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return c}(s);if(1===Ge.length&&Ge[0].isManual())return()=>{};const ut=function Ol(l,C,s,c){return new d.y(m=>{const H=[],ne=()=>m.next(!0),Be=()=>m.next(!1),Ge=()=>m.next(!c());return s.forEach(ut=>{ut.open===ut.close?H.push(l.listen(C,ut.open,Ge)):H.push(l.listen(C,ut.open,ne),l.listen(C,ut.close,Be))}),()=>{H.forEach(ut=>ut())}})}(l,C,Ge,c).pipe(function Il(l,C,s){return c=>{let m=null;const H=c.pipe((0,xe.U)(Ge=>({open:Ge})),(0,ce.h)(Ge=>{const ut=s();return ut===Ge.open||m&&m.open!==ut?(m&&m.open!==Ge.open&&(m=null),!1):(m=Ge,!0)}),(0,se.B)()),ne=H.pipe((0,ce.h)(Ge=>Ge.open),rl(l)),Be=H.pipe((0,ce.h)(Ge=>!Ge.open),rl(C));return(0,M.T)(ne,Be).pipe((0,ce.h)(Ge=>Ge===m&&(m=null,Ge.open!==s())),(0,xe.U)(Ge=>Ge.open))}}(ne,Be,c)).subscribe(pt=>pt?m():H());return()=>ut.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:s}){s&&this.isOpen()&&(this._windowRef.instance.tooltipClass=s.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(Ll),t.Y36(t.R0b),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[t.TTD]})}return l})(),Ju=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rf=(()=>{class l{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(s){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const c=Ie(this.result),m=Array.isArray(this.term)?this.term:[this.term],H=ut=>this.accentSensitive?ut:Hi(ut),ne=m.map(ut=>function Jr(l){return l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(H(Ie(ut)))).filter(ut=>ut),Be=this.accentSensitive?c:Hi(c),Ge=ne.length?Be.split(new RegExp(`(${ne.join("|")})`,"gmi")):[c];if(this.accentSensitive)this.parts=Ge;else{let ut=0;this.parts=Ge.map(pt=>c.substring(ut,ut+=pt.length))}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[t.TTD,t.jDz],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(c,m){1&c&&t.YNc(0,oo,3,2,"ng-template",0),2&c&&t.Q6J("ngForOf",m.parts)},dependencies:[ae.O5,ae.ax],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0})}return l})(),Nf=(()=>{class l{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Ie,this.selectEvent=new t.vpe,this.activeChangeEvent=new t.vpe}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(c,m){1&c&&t.NdJ("mousedown",function(ne){return ne.preventDefault()}),2&c&&(t.Ikx("id",m.id),t.Tol("dropdown-menu show"+(m.popupClass?" "+m.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,xo,1,2,"ng-template",null,0,t.W1O),t.YNc(2,U,2,9,"ng-template",1)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.results))},dependencies:[Rf,ae.ax,ae.tP],encapsulation:2})}return l})(),Qu=(()=>{class l{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const Fl=new t.OlP("live announcer delay",{providedIn:"root",factory:function Fc(){return 100}});function kl(l,C=!1){let s=l.body.querySelector("#ngb-live");return null==s&&C&&(s=l.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),l.body.appendChild(s)),s}let Lf=(()=>{class l{constructor(s,c){this._document=s,this._delay=c}ngOnDestroy(){const s=kl(this._document);s&&s.parentElement.removeChild(s)}say(s){const c=kl(this._document,!0),m=this._delay;if(null!=c){c.textContent="";const H=()=>c.textContent=s;null===m?H():setTimeout(H,m)}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0),t.LFG(Fl))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Ff=0,kc=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,pt,sn,Gt){this._elementRef=s,this._renderer=m,this._live=Ge,this._document=ut,this._ngZone=pt,this._changeDetector=sn,this._subscription=null,this._closed$=new p.x,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-start",this.selectItem=new t.vpe,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Ff++,this._onTouched=()=>{},this._onChange=un=>{},this.container=ne.container,this.editable=ne.editable,this.focusFirst=ne.focusFirst,this.selectOnExact=ne.selectOnExact,this.showHint=ne.showHint,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this._valueChanges=(0,O.R)(s.nativeElement,"input").pipe((0,xe.U)(un=>un.target.value)),this._resubscribeTypeahead=new k.X(null),this._popupService=new Mc(Nf,H,c,m,this._ngZone,Gt),this._positioning=qo()}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:s}){s&&!s.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}writeValue(s){this._writeInputValue(this._formatItemForInput(s)),this.showHint&&(this._inputValueBackup=s)}setDisabledState(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(s){if(this.isPopupOpen())switch(s.which){case fr.ArrowDown:s.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case fr.ArrowUp:s.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case fr.Enter:case fr.Tab:{const c=this._windowRef.instance.getActive();dr(c)&&(s.preventDefault(),s.stopPropagation(),this._selectResult(c)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:s}=this._popupService.open();this._windowRef=s,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(c=>this._selectResultClosePopup(c)),this._windowRef.instance.activeChangeEvent.subscribe(c=>this.activeDescendant=c),"body"===this.container&&(this._renderer.setStyle(this._windowRef.location.nativeElement,"z-index","1055"),this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),bl(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(s){let c=!1;this.selectItem.emit({item:s,preventDefault:()=>{c=!0}}),this._resubscribeTypeahead.next(null),c||(this.writeValue(s),this._onChange(s))}_selectResultClosePopup(s){this._selectResult(s),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&null!=this._inputValueBackup){const s=this._inputValueBackup.toLowerCase(),c=this._formatItemForInput(this._windowRef.instance.getActive());s===c.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+c.substring(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,c.length])):this._writeInputValue(c)}}_formatItemForInput(s){return null!=s&&this.inputFormatter?this.inputFormatter(s):Ie(s)}_writeInputValue(s){this._renderer.setProperty(this._elementRef.nativeElement,"value",Ie(s))}_subscribeToUserInput(){const s=this._valueChanges.pipe((0,ve.b)(c=>{this._inputValueBackup=this.showHint?c:null,this._inputValueForSelectOnExact=this.selectOnExact?c:null,this._onChange(this.editable?c:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>(0,L.of)([]));this._subscription=this._resubscribeTypeahead.pipe((0,ze.w)(()=>s)).subscribe(c=>{c&&0!==c.length?this.selectOnExact&&1===c.length&&this._formatItemForInput(c[0])===this._inputValueForSelectOnExact?(this._selectResult(c[0]),this._closePopup()):(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=c,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const m=c?c.length:0;this._live.say(0===m?"No results available":`${m} result${1===m?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(Qu),t.Y36(t.R0b),t.Y36(Lf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(c,m){1&c&&t.NdJ("blur",function(){return m.handleBlur()})("keydown",function(ne){return m.handleKeyDown(ne)}),2&c&&(t.Ikx("autocomplete",m.autocomplete),t.uIk("aria-autocomplete",m.showHint?"both":"list")("aria-activedescendant",m.activeDescendant)("aria-owns",m.isPopupOpen()?m.popupId:null)("aria-expanded",m.isPopupOpen()),t.ekj("open",m.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0}]),t.TTD]})}return l})(),Bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),jc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const qu=[ja,Nt,rn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,fs,Rc,Lc,Nl,Ju,Bc];let Hc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({imports:[qu,ja,Nt,rn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,fs,Rc,Lc,Nl,Ju,Bc]})}return l})()},363:(Pe,V,a)=>{"use strict";a.d(V,{zB:()=>Un,C5:()=>Wt,ir:()=>yt,w9:()=>qn,A0:()=>pe});var t=a(5879),d=a(6223),w=a(9773),L=a(6321),p=a(9360),O=a(4829),R=a(8251),P=a(4825);var $=a(7921),f=a(9397),j=a(3620),M=a(2181),q=a(7398),ie=a(1954),k=a(7394);const Te={schedule(z){let K=requestAnimationFrame,D=cancelAnimationFrame;const{delegate:X}=Te;X&&(K=X.requestAnimationFrame,D=X.cancelAnimationFrame);const de=K(Oe=>{D=void 0,z(Oe)});return new k.w0(()=>D?.(de))},requestAnimationFrame(...z){const{delegate:K}=Te;return(K?.requestAnimationFrame||requestAnimationFrame)(...z)},cancelAnimationFrame(...z){const{delegate:K}=Te;return(K?.cancelAnimationFrame||cancelAnimationFrame)(...z)},delegate:void 0};var ye=a(2631);const _e=new class ce extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Se extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=Te.requestAnimationFrame(()=>K.flush(void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&(Te.cancelAnimationFrame(D),K._scheduled=void 0)}});let be,xe=1;const ke={};function vt(z){return z in ke&&(delete ke[z],!0)}const rt={setImmediate(z){const K=xe++;return ke[K]=!0,be||(be=Promise.resolve()),be.then(()=>vt(K)&&z()),K},clearImmediate(z){vt(z)}},{setImmediate:qe,clearImmediate:_t}=rt,$e={setImmediate(...z){const{delegate:K}=$e;return(K?.setImmediate||qe)(...z)},clearImmediate(z){const{delegate:K}=$e;return(K?.clearImmediate||_t)(z)},delegate:void 0},J=new class ze extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Ee extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=$e.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&($e.clearImmediate(D),K._scheduled===D&&(K._scheduled=void 0))}});var oe=a(8645),se=a(2438),ae=a(3019),fe=a(6814);const De=["content"],je=["scroll"],Xe=["padding"],tt=function(z){return{searchTerm:z}};function wt(z,K){if(1&z&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.headerTemplate)("ngTemplateOutletContext",t.VKq(2,tt,D.filterValue))}}function It(z,K){if(1&z&&(t.TgZ(0,"div",8),t.GkF(1,7),t.qZA()),2&z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.footerTemplate)("ngTemplateOutletContext",t.VKq(2,tt,D.filterValue))}}const Je=["*"],Tt=["searchInput"],et=["clearButton"];function Pt(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"span",15),t.NdJ("click",function(){t.CHM(D);const de=t.oxw().$implicit,Oe=t.oxw(2);return t.KtG(Oe.unselect(de))}),t._uU(1,"\xd7"),t.qZA(),t._UZ(2,"span",16)}if(2&z){const D=t.oxw().$implicit,X=t.oxw(2);t.xp6(2),t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function zt(z,K){}const dn=function(z,K,D){return{item:z,clear:K,label:D}};function Rn(z,K){if(1&z&&(t.TgZ(0,"div",12),t.YNc(1,Pt,3,2,"ng-template",null,13,t.W1O),t.YNc(3,zt,0,0,"ng-template",14),t.qZA()),2&z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-value-disabled",D.disabled),t.xp6(3),t.Q6J("ngTemplateOutlet",de.labelTemplate||X)("ngTemplateOutletContext",t.kEZ(4,dn,D.value,de.clearItem,D.label))}}function We(z,K){if(1&z&&(t.ynx(0),t.YNc(1,Rn,4,8,"div",11),t.BQk()),2&z){const D=t.oxw();t.xp6(1),t.Q6J("ngForOf",D.selectedItems)("ngForTrackBy",D.trackByOption)}}function Ye(z,K){}const At=function(z,K){return{items:z,clear:K}};function xt(z,K){if(1&z&&t.YNc(0,Ye,0,0,"ng-template",14),2&z){const D=t.oxw();t.Q6J("ngTemplateOutlet",D.multiLabelTemplate)("ngTemplateOutletContext",t.WLB(2,At,D.selectedValues,D.clearItem))}}function nn(z,K){1&z&&t._UZ(0,"div",19)}function Et(z,K){}function Ht(z,K){if(1&z&&(t.ynx(0),t.YNc(1,nn,1,0,"ng-template",null,17,t.W1O),t.YNc(3,Et,0,0,"ng-template",18),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw();t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingSpinnerTemplate||D)}}function Zt(z,K){if(1&z&&(t.TgZ(0,"span",20,21)(2,"span",22),t._uU(3,"\xd7"),t.qZA()()),2&z){const D=t.oxw();t.s9C("title",D.clearAllText)}}function fn(z,K){if(1&z&&t._UZ(0,"span",28),2&z){const D=t.oxw().$implicit,X=t.oxw(2);t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function Sn(z,K){}const hn=function(z,K,D,X){return{item:z,item$:K,index:D,searchTerm:X}};function en(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"div",26),t.NdJ("click",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.toggleItem(Oe))})("mouseover",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.onItemHover(Oe))}),t.YNc(1,fn,1,2,"ng-template",null,27,t.W1O),t.YNc(3,Sn,0,0,"ng-template",14),t.qZA()}if(2&z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-option-disabled",D.disabled)("ng-option-selected",D.selected)("ng-optgroup",D.children)("ng-option",!D.children)("ng-option-child",!!D.parent)("ng-option-marked",D===de.itemsList.markedItem),t.uIk("role",D.children?"group":"option")("aria-selected",D.selected)("id",null==D?null:D.htmlId),t.xp6(3),t.Q6J("ngTemplateOutlet",D.children?de.optgroupTemplate||X:de.optionTemplate||X)("ngTemplateOutletContext",t.l5B(17,hn,D.value,D,D.index,de.searchTerm))}}function Dn(z,K){if(1&z&&(t.TgZ(0,"span")(1,"span",31),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&z){const D=t.oxw(3);t.xp6(2),t.Oqu(D.addTagText),t.xp6(1),t.hij('"',D.searchTerm,'"')}}function Wn(z,K){}function _n(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"div",29),t.NdJ("mouseover",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.itemsList.unmarkItem())})("click",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.selectTag())}),t.YNc(1,Dn,4,2,"ng-template",null,30,t.W1O),t.YNc(3,Wn,0,0,"ng-template",14),t.qZA()}if(2&z){const D=t.MAs(2),X=t.oxw(2);t.ekj("ng-option-marked",!X.itemsList.markedItem),t.xp6(3),t.Q6J("ngTemplateOutlet",X.tagTemplate||D)("ngTemplateOutletContext",t.VKq(4,tt,X.searchTerm))}}function Er(z,K){if(1&z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.notFoundText)}}function it(z,K){}function Ut(z,K){if(1&z&&(t.ynx(0),t.YNc(1,Er,2,1,"ng-template",null,32,t.W1O),t.YNc(3,it,0,0,"ng-template",14),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.notFoundTemplate||D)("ngTemplateOutletContext",t.VKq(2,tt,X.searchTerm))}}function Qt(z,K){if(1&z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.typeToSearchText)}}function Cn(z,K){}function An(z,K){if(1&z&&(t.ynx(0),t.YNc(1,Qt,2,1,"ng-template",null,34,t.W1O),t.YNc(3,Cn,0,0,"ng-template",18),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.typeToSearchTemplate||D)}}function In(z,K){if(1&z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.loadingText)}}function nr(z,K){}function Dr(z,K){if(1&z&&(t.ynx(0),t.YNc(1,In,2,1,"ng-template",null,35,t.W1O),t.YNc(3,nr,0,0,"ng-template",14),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingTextTemplate||D)("ngTemplateOutletContext",t.VKq(2,tt,X.searchTerm))}}function wr(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"ng-dropdown-panel",23),t.NdJ("update",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.viewPortItems=de)})("scroll",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scroll.emit(de))})("scrollToEnd",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scrollToEnd.emit(de))})("outsideClick",function(){t.CHM(D);const de=t.oxw();return t.KtG(de.close())}),t.ynx(1),t.YNc(2,en,4,22,"div",24),t.YNc(3,_n,4,6,"div",25),t.BQk(),t.YNc(4,Ut,4,4,"ng-container",3),t.YNc(5,An,4,1,"ng-container",3),t.YNc(6,Dr,4,4,"ng-container",3),t.qZA()}if(2&z){const D=t.oxw();t.ekj("ng-select-multiple",D.multiple),t.Q6J("virtualScroll",D.virtualScroll)("bufferAmount",D.bufferAmount)("appendTo",D.appendTo)("position",D.dropdownPosition)("headerTemplate",D.headerTemplate)("footerTemplate",D.footerTemplate)("filterValue",D.searchTerm)("items",D.itemsList.filteredItems)("markedItem",D.itemsList.markedItem)("ngClass",D.appendTo?D.classes:null)("id",D.dropdownId),t.xp6(2),t.Q6J("ngForOf",D.viewPortItems)("ngForTrackBy",D.trackByOption),t.xp6(1),t.Q6J("ngIf",D.showAddTag),t.xp6(1),t.Q6J("ngIf",D.showNoItemsFound()),t.xp6(1),t.Q6J("ngIf",D.showTypeToSearch()),t.xp6(1),t.Q6J("ngIf",D.loading&&0===D.itemsList.filteredItems.length)}}const Or=/[&<>"']/g,Ir=RegExp(Or.source),Br={"&":"&","<":"<",">":">",'"':""","'":"'"};function zn(z){return null!=z}function dt(z){return"object"==typeof z&&zn(z)}function we(z){return z instanceof Function}let He=(()=>{class z{constructor(D){this.element=D,this.escape=!0}ngOnChanges(D){this.element.nativeElement.innerHTML=this.escape?function oi(z){return z&&Ir.test(z)?z.replace(Or,K=>Br[K]):z}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[t.TTD]})}return z})(),yt=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-option-tmp",""]]})}return z})(),Wt=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-optgroup-tmp",""]]})}return z})(),Vt=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-label-tmp",""]]})}return z})(),Un=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-multi-label-tmp",""]]})}return z})(),on=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-header-tmp",""]]})}return z})(),rr=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-footer-tmp",""]]})}return z})(),ln=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-notfound-tmp",""]]})}return z})(),$n=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-typetosearch-tmp",""]]})}return z})(),Qe=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-loadingtext-tmp",""]]})}return z})(),Le=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-tag-tmp",""]]})}return z})(),Ue=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-loadingspinner-tmp",""]]})}return z})();function bt(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Rt={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function kt(z){return z.replace(/[^\u0000-\u007E]/g,D=>Rt[D]||D)}class Ft{constructor(K,D){this._ngSelect=K,this._selectionModel=D,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let K=this.selectedItems.length-1;for(;K>=0;K--){const D=this.selectedItems[K];if(!D.disabled)return D}return null}setItems(K){this._items=K.map((D,X)=>this.mapItem(D,X)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(K){if(K.selected||this.maxItemsSelected)return;const D=this._ngSelect.multiple;D||this.clearSelected(),this._selectionModel.select(K,D,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(K)}unselect(K){K.selected&&(this._selectionModel.unselect(K,this._ngSelect.multiple),this._ngSelect.hideSelected&&zn(K.index)&&this._ngSelect.multiple&&this._showSelected(K))}findItem(K){let D;return D=this._ngSelect.compareWith?X=>this._ngSelect.compareWith(X.value,K):this._ngSelect.bindValue?X=>!X.children&&this.resolveNested(X.value,this._ngSelect.bindValue)===K:X=>X.value===K||!X.children&&X.label&&X.label===this.resolveNested(K,this._ngSelect.bindLabel),this._items.find(X=>D(X))}addItem(K){const D=this.mapItem(K,this._items.length);return this._items.push(D),this._filteredItems.push(D),D}clearSelected(K=!1){this._selectionModel.clear(K),this._items.forEach(D=>{D.selected=K&&D.selected&&D.disabled,D.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(K){return K=kt(K).toLocaleLowerCase(),this.filteredItems.find(D=>kt(D.label).toLocaleLowerCase().substr(0,K.length)===K)}filter(K){if(!K)return void this.resetFilteredItems();this._filteredItems=[],K=this._ngSelect.searchFn?K:kt(K).toLocaleLowerCase();const D=this._ngSelect.searchFn||this._defaultSearchFn,X=this._ngSelect.hideSelected;for(const de of Array.from(this._groups.keys())){const Oe=[];for(const Ae of this._groups.get(de))X&&(Ae.parent&&Ae.parent.selected||Ae.selected)||D(K,this._ngSelect.searchFn?Ae.value:Ae)&&Oe.push(Ae);if(Oe.length>0){const[Ae]=Oe.slice(-1);if(Ae.parent){const mt=this._items.find($t=>$t===Ae.parent);this._filteredItems.push(mt)}this._filteredItems.push(...Oe)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(K=>!K.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(K){this._markedIndex=this._filteredItems.indexOf(K)}markSelectedOrDefault(K){if(0===this._filteredItems.length)return;const D=this._getLastMarkedIndex();this._markedIndex=D>-1?D:K?this.filteredItems.findIndex(X=>!X.disabled):-1}resolveNested(K,D){if(!dt(K))return K;if(-1===D.indexOf("."))return K[D];{const X=D.split(".");let de=K;for(let Oe=0,Ae=X.length;Oe-1===this.selectedItems.indexOf(D)))}_showSelected(K){if(this._filteredItems.push(K),K.parent){const D=K.parent;this._filteredItems.find(de=>de===D)||this._filteredItems.push(D)}else if(K.children)for(const D of K.children)D.selected=!1,this._filteredItems.push(D);this._filteredItems=[...this._filteredItems.sort((D,X)=>D.index-X.index)]}_hideSelected(K){this._filteredItems=this._filteredItems.filter(D=>D!==K),K.parent?K.parent.children.every(X=>X.selected)&&(this._filteredItems=this._filteredItems.filter(X=>X!==K.parent)):K.children&&(this._filteredItems=this.filteredItems.filter(D=>D.parent!==K))}_defaultSearchFn(K,D){return kt(D.label).toLocaleLowerCase().indexOf(K)>-1}_getNextItemIndex(K){return K>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(K){0===this._filteredItems.length||this._filteredItems.every(D=>D.disabled)||(this._markedIndex=this._getNextItemIndex(K),this.markedItem.disabled&&this._stepToItem(K))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const K=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&K<0?-1:Math.max(this.markedIndex,K)}_groupBy(K,D){const X=new Map;if(0===K.length)return X;if(Array.isArray(K[0].value[D])){for(const Ae of K){const mt=(Ae.value[D]||[]).map(($t,cn)=>this.mapItem($t,cn));X.set(Ae,mt)}return X}const de=we(this._ngSelect.groupBy),Oe=Ae=>{const mt=de?D(Ae.value):Ae.value[D];return zn(mt)?mt:void 0};for(const Ae of K){const mt=Oe(Ae),$t=X.get(mt);$t?$t.push(Ae):X.set(mt,[Ae])}return X}_flatten(K){const D=we(this._ngSelect.groupBy),X=[];for(const de of Array.from(K.keys())){let Oe=X.length;if(void 0===de){const En=K.get(void 0)||[];X.push(...En.map(Nn=>(Nn.index=Oe++,Nn)));continue}const Ae=dt(de),mt={label:Ae?"":String(de),children:void 0,parent:null,index:Oe++,disabled:!this._ngSelect.selectableGroup,htmlId:bt()},$t=D?this._ngSelect.bindLabel:this._ngSelect.groupBy,cn=this._ngSelect.groupValue||(()=>Ae?de.value:{[$t]:de}),vn=K.get(de).map(En=>(En.parent=mt,En.children=void 0,En.index=Oe++,En));mt.children=vn,mt.value=cn(de,vn.map(En=>En.value)),X.push(mt),X.push(...vn)}return X}}var an=function(z){return z[z.Tab=9]="Tab",z[z.Enter=13]="Enter",z[z.Esc=27]="Esc",z[z.Space=32]="Space",z[z.ArrowUp=38]="ArrowUp",z[z.ArrowDown=40]="ArrowDown",z[z.Backspace=8]="Backspace",z}(an||{});let wn=(()=>{class z{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(D,X,de){const Oe=this._dimensions,Ae=Oe.itemHeight*X,$t=Math.max(0,D)/Ae*X;let cn=Math.min(X,Math.ceil($t)+(Oe.itemsPerViewport+1));const En=Math.max(0,cn-Oe.itemsPerViewport);let Nn=Math.min(En,Math.floor($t)),ir=Oe.itemHeight*Math.ceil(Nn)-Oe.itemHeight*Math.min(Nn,de);return ir=isNaN(ir)?0:ir,Nn=isNaN(Nn)?-1:Nn,cn=isNaN(cn)?-1:cn,Nn-=de,Nn=Math.max(0,Nn),cn+=de,cn=Math.min(X,cn),{topPadding:ir,scrollHeight:Ae,start:Nn,end:cn}}setDimensions(D,X){const de=Math.max(1,Math.floor(X/D));this._dimensions={itemHeight:D,panelHeight:X,itemsPerViewport:de}}getScrollTo(D,X,de){const{panelHeight:Oe}=this.dimensions,Ae=D+X,$t=de+Oe;return Oe>=Ae&&de===D?null:Ae>$t?de+Ae-$t:D<=de?D:null}static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac})}return z})();const pr=["top","right","bottom","left"],jr=typeof requestAnimationFrame<"u"?_e:J;let Fr=(()=>{class z{constructor(D,X,de,Oe,Ae){this._renderer=D,this._zone=X,this._panelService=de,this._document=Ae,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.outsideClick=new t.vpe,this._destroy$=new oe.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=Oe.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(D){D!==this._itemsLength&&(this._itemsLength=D,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:D,panelHeight:X}=this._panelService.dimensions,de=this.markedItem.index*D;return X>de?0:de}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(D){if(D.items){const X=D.items;this._onItemsChange(X.currentValue,X.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(D,X=!1){if(!D)return;const de=this.items.indexOf(D);if(de<0||de>=this.itemsLength)return;let Oe;if(this.virtualScroll){const Ae=this._panelService.dimensions.itemHeight;Oe=this._panelService.getScrollTo(de*Ae,Ae,this._lastScrollPosition)}else{const Ae=this._dropdown.querySelector(`#${D.htmlId}`);Oe=this._panelService.getScrollTo(Ae.offsetTop,Ae.clientHeight,X?Ae.offsetTop:this._lastScrollPosition)}zn(Oe)&&(this._scrollablePanel.scrollTop=Oe)}scrollToTag(){const D=this._scrollablePanel;D.scrollTop=D.scrollHeight-D.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),pr.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(D){pr.forEach(de=>{const Oe=`ng-select-${de}`;this._renderer.removeClass(this._dropdown,Oe),this._renderer.removeClass(this._select,Oe)});const X=`ng-select-${D}`;this._renderer.addClass(this._dropdown,X),this._renderer.addClass(this._select,X)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,se.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,w.R)(this._destroy$),function B(z,K=L.z){return function F(z){return(0,p.e)((K,D)=>{let X=!1,de=null,Oe=null,Ae=!1;const mt=()=>{if(Oe?.unsubscribe(),Oe=null,X){X=!1;const cn=de;de=null,D.next(cn)}Ae&&D.complete()},$t=()=>{Oe=null,Ae&&D.complete()};K.subscribe((0,R.x)(D,cn=>{X=!0,de=cn,Oe||(0,O.Xf)(z(cn)).subscribe(Oe=(0,R.x)(D,mt,$t))},()=>{Ae=!0,(!X||!Oe||Oe.closed)&&D.complete()}))})}(()=>(0,P.H)(z,K))}(0,jr)).subscribe(D=>{const X=D.path||D.composedPath&&D.composedPath();this._onContentScrolled(X&&0!==X.length?X[0].scrollTop:D.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,ae.T)((0,se.R)(this._document,"touchstart",{capture:!0}),(0,se.R)(this._document,"mousedown",{capture:!0})).pipe((0,w.R)(this._destroy$)).subscribe(D=>this._checkToClose(D))})}_checkToClose(D){if(this._select.contains(D.target)||this._dropdown.contains(D.target))return;const X=D.path||D.composedPath&&D.composedPath();D.target&&D.target.shadowRoot&&X&&X[0]&&this._select.contains(X[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(D,X){this.items=D||[],this._scrollToEndFired=!1,this.itemsLength=D.length,this.virtualScroll?this._updateItemsRange(X):(this._setVirtualHeight(),this._updateItems(X))}_updateItems(D){this.update.emit(this.items),!1!==D&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,D)})})}_updateItemsRange(D){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{D?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(D){this.virtualScroll&&this._renderItemsRange(D),this._lastScrollPosition=D,this._fireScrollToEnd(D)}_updateVirtualHeight(D){this._updateScrollHeight&&(this._virtualPadding.style.height=`${D}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(D=null){if(D&&this._lastScrollPosition===D)return;const X=this._panelService.calculateItems(D=D||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(X.scrollHeight),this._contentPanel.style.transform=`translateY(${X.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(X.start,X.end)),this.scroll.emit({start:X.start,end:X.end})}),zn(D)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=D,this._lastScrollPosition=D)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[D]=this.items;return this.update.emit([D]),Promise.resolve().then(()=>{const de=this._dropdown.querySelector(`#${D.htmlId}`).clientHeight;return this._virtualPadding.style.height=de*this.itemsLength+"px",this._panelService.setDimensions(de,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(D){this._scrollToEndFired||0===D||D+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(D){if("auto"!==this.position)return this.position;const X=this._select.getBoundingClientRect(),de=document.documentElement.scrollTop||document.body.scrollTop;return X.top+window.pageYOffset+X.height+D.getBoundingClientRect().height>de+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect();this._dropdown.style.left=D.left-X.left+"px",this._dropdown.style.width=D.width+"px",this._dropdown.style.minWidth=D.width+"px"}_updateYPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect(),de=D.height;"top"===this._currentPosition?(this._dropdown.style.bottom=X.bottom-D.bottom+de+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=D.top-X.top+de+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,se.R)(this._dropdown,"mousedown").pipe((0,w.R)(this._destroy$)).subscribe(D=>{"INPUT"!==D.target.tagName&&D.preventDefault()})})}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(wn),t.Y36(t.SBq),t.Y36(fe.K0,8))};static#t=this.\u0275cmp=t.Xpm({type:z,selectors:[["ng-dropdown-panel"]],viewQuery:function(X,de){if(1&X&&(t.Gf(De,7,t.SBq),t.Gf(je,7,t.SBq),t.Gf(Xe,7,t.SBq)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.contentElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.scrollElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.paddingElementRef=Oe.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[t.TTD],ngContentSelectors:Je,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(X,de){1&X&&(t.F$t(),t.YNc(0,wt,2,4,"div",0),t.TgZ(1,"div",1,2),t._UZ(3,"div",null,3),t.TgZ(5,"div",null,4),t.Hsn(7),t.qZA()(),t.YNc(8,It,2,4,"div",5)),2&X&&(t.Q6J("ngIf",de.headerTemplate),t.xp6(3),t.ekj("total-padding",de.virtualScroll),t.xp6(2),t.ekj("scrollable-content",de.virtualScroll&&de.items.length),t.xp6(3),t.Q6J("ngIf",de.footerTemplate))},dependencies:[fe.O5,fe.tP],encapsulation:2,changeDetection:0})}return z})(),Ar=(()=>{class z{get disabled(){return this._disabled}set disabled(D){this._disabled=this._isDisabled(D)}constructor(D){this.elementRef=D,this.stateChange$=new oe.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(D){D.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(D){return null!=D&&"false"!=`${D}`}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:z,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[t.TTD],ngContentSelectors:Je,decls:1,vars:0,template:function(X,de){1&X&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0})}return z})(),Hr=(()=>{class z{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),zr=(()=>{class z{warn(D){console.warn(D)}static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const Xn=new t.OlP("ng-select-selection-model");let qn=(()=>{class z{get items(){return this._items}set items(D){null===D&&(D=[]),this._itemsAreUsed=!0,this._items=D}get compareWith(){return this._compareWith}set compareWith(D){if(null!=D&&!we(D))throw Error("`compareWith` must be a function.");this._compareWith=D}get clearSearchOnAdd(){return zn(this._clearSearchOnAdd)?this._clearSearchOnAdd:zn(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(D){this._clearSearchOnAdd=D}get deselectOnClick(){return zn(this._deselectOnClick)?this._deselectOnClick:zn(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(D){this._deselectOnClick=D}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(D,X,de,Oe,Ae,mt,$t){this.classes=D,this.autoFocus=X,this.config=de,this._cd=mt,this._console=$t,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=cn=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new t.vpe,this.focusEvent=new t.vpe,this.changeEvent=new t.vpe,this.openEvent=new t.vpe,this.closeEvent=new t.vpe,this.searchEvent=new t.vpe,this.clearEvent=new t.vpe,this.addEvent=new t.vpe,this.removeEvent=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=bt(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new oe.x,this._keyPress$=new oe.x,this._onChange=cn=>{},this._onTouched=()=>{},this.clearItem=cn=>{const vn=this.selectedItems.find(En=>En.value===cn);this.unselect(vn)},this.trackByOption=(cn,vn)=>this.trackByFn?this.trackByFn(vn.value):vn,this._mergeGlobalConfig(de),this.itemsList=new Ft(this,Oe()),this.element=Ae.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(D=>D.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(D){D.multiple&&this.itemsList.clearSelected(),D.items&&this._setItems(D.items.currentValue||[]),D.isOpen&&(this._manualOpen=zn(D.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),zn(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(D){if(an[D.which]){if(!1===this.keyDownFn(D))return;this.handleKeyCode(D)}else D.key&&1===D.key.length&&this._keyPress$.next(D.key.toLocaleLowerCase())}handleKeyCode(D){this.clearButton&&this.clearButton.nativeElement===D.target?this.handleKeyCodeClear(D):this.handleKeyCodeInput(D)}handleKeyCodeInput(D){switch(D.which){case an.ArrowDown:this._handleArrowDown(D);break;case an.ArrowUp:this._handleArrowUp(D);break;case an.Space:this._handleSpace(D);break;case an.Enter:this._handleEnter(D);break;case an.Tab:this._handleTab(D);break;case an.Esc:this.close(),D.preventDefault();break;case an.Backspace:this._handleBackspace()}}handleKeyCodeClear(D){D.which===an.Enter&&(this.handleClearClick(),D.preventDefault())}handleMousedown(D){const X=D.target;"INPUT"!==X.tagName&&D.preventDefault(),X.classList.contains("ng-clear-wrapper")?this.handleClearClick():X.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():X.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(D){this.itemsList.clearSelected(),this._handleWriteValue(D),this._cd.markForCheck()}registerOnChange(D){this._onChange=D}registerOnTouched(D){this._onTouched=D}setDisabledState(D){this._disabled=D,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(D){!D||D.disabled||this.disabled||(this.deselectOnClick&&D.selected?this.unselect(D):this.select(D),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(D){D.selected||(this.itemsList.select(D),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(D.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(D){D&&(this.itemsList.unselect(D),this.focus(),this._updateNgModel(),this.removeEvent.emit(D.value))}selectTag(){let D;D=we(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const X=de=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(de,null):this.itemsList.addItem(de);!function ot(z){return z instanceof Promise}(D)?D&&this.select(X(D)):D.then(de=>this.select(X(de))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const D=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(X=>X.label.toLowerCase()===D)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(X=>X.label.toLowerCase()===D))&&!this.loading}showNoItemsFound(){const D=0===this.itemsList.filteredItems.length;return(D&&!this._isTypeahead&&!this.loading||D&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(D){this._isComposing=!1,!this.searchWhileComposing&&this.filter(D)}filter(D){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=D,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(D),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:D,items:this.itemsList.filteredItems.map(X=>X.value)}),this.open())}onInputFocus(D){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(D),this.focused=!0)}onInputBlur(D){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(D),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(D){D.disabled||this.itemsList.markItem(D)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const D=this.selectedItems&&this.selectedItems[0];this.searchTerm=D&&D.label||null}_setItems(D){const X=D[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=zn(X)?!dt(X):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(D),D.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&zn(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const D=de=>{this.items=de.map(Oe=>({$ngOptionValue:Oe.value,$ngOptionLabel:Oe.elementRef.nativeElement.innerHTML,disabled:Oe.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},X=()=>{const de=(0,ae.T)(this.ngOptions.changes,this._destroy$);(0,ae.T)(...this.ngOptions.map(Oe=>Oe.stateChange$)).pipe((0,w.R)(de)).subscribe(Oe=>{const Ae=this.itemsList.findItem(Oe.value);Ae.disabled=Oe.disabled,Ae.label=Oe.label||Ae.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,$.O)(this.ngOptions),(0,w.R)(this._destroy$)).subscribe(de=>{this.bindLabel=this._defaultLabel,D(de),X()})}_isValidWriteValue(D){if(!zn(D)||this.multiple&&""===D||Array.isArray(D)&&0===D.length)return!1;const X=de=>!(!zn(this.compareWith)&&dt(de)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(de)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(D)?D.every(de=>X(de)):(this._console.warn("Multiple select ngModel should be array."),!1):X(D)}_handleWriteValue(D){if(!this._isValidWriteValue(D))return;const X=de=>{let Oe=this.itemsList.findItem(de);if(Oe)this.itemsList.select(Oe);else{const Ae=dt(de);Ae||!Ae&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(de,null)):this.bindValue&&(Oe={[this.bindLabel]:null,[this.bindValue]:de},this.itemsList.select(this.itemsList.mapItem(Oe,null)))}};this.multiple?D.forEach(de=>X(de)):X(D)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,w.R)(this._destroy$),(0,f.b)(D=>this._pressedKeys.push(D)),(0,j.b)(200),(0,M.h)(()=>this._pressedKeys.length>0),(0,q.U)(()=>this._pressedKeys.join(""))).subscribe(D=>{const X=this.itemsList.findByLabel(D);X&&(this.isOpen?(this.itemsList.markItem(X),this._scrollToMarked(),this._cd.markForCheck()):this.select(X)),this._pressedKeys=[]})}_setInputAttributes(){const D=this.searchInput.nativeElement,X={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const de of Object.keys(X))D.setAttribute(de,X[de])}_updateNgModel(){const D=[];for(const de of this.selectedItems)if(this.bindValue){let Oe=null;Oe=de.children?de.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(de.value,this.bindValue),D.push(Oe)}else D.push(de.value);const X=this.selectedItems.map(de=>de.value);this.multiple?(this._onChange(D),this.changeEvent.emit(X)):(this._onChange(zn(D[0])?D[0]:null),this.changeEvent.emit(X[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(D){this.searchTerm=D,this._isTypeahead&&this.typeahead.next(D)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(D){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),D.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),D.preventDefault()):this.showAddTag?(this.selectTag(),D.preventDefault()):this.close():this.close()}_handleEnter(D){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}D.preventDefault()}_handleSpace(D){this.isOpen||this._manualOpen||(this.open(),D.preventDefault())}_handleArrowDown(D){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),D.preventDefault()}_handleArrowUp(D){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),D.preventDefault())}_nextItemIsTag(D){const X=this.itemsList.markedIndex+D;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(X<0||X===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const D=this.searchTerm&&this.searchTerm.trim();return D&&D.length>=this.minTermLength}_mergeGlobalConfig(D){this.placeholder=this.placeholder||D.placeholder,this.notFoundText=this.notFoundText||D.notFoundText,this.typeToSearchText=this.typeToSearchText||D.typeToSearchText,this.addTagText=this.addTagText||D.addTagText,this.loadingText=this.loadingText||D.loadingText,this.clearAllText=this.clearAllText||D.clearAllText,this.virtualScroll=zn(this.virtualScroll)?this.virtualScroll:!!zn(D.disableVirtualScroll)&&!D.disableVirtualScroll,this.openOnEnter=zn(this.openOnEnter)?this.openOnEnter:D.openOnEnter,this.appendTo=this.appendTo||D.appendTo,this.bindValue=this.bindValue||D.bindValue,this.bindLabel=this.bindLabel||D.bindLabel,this.appearance=this.appearance||D.appearance}static#e=this.\u0275fac=function(X){return new(X||z)(t.$8M("class"),t.$8M("autofocus"),t.Y36(Hr),t.Y36(Xn),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(zr))};static#t=this.\u0275cmp=t.Xpm({type:z,selectors:[["ng-select"]],contentQueries:function(X,de,Oe){if(1&X&&(t.Suo(Oe,yt,5,t.Rgc),t.Suo(Oe,Wt,5,t.Rgc),t.Suo(Oe,Vt,5,t.Rgc),t.Suo(Oe,Un,5,t.Rgc),t.Suo(Oe,on,5,t.Rgc),t.Suo(Oe,rr,5,t.Rgc),t.Suo(Oe,ln,5,t.Rgc),t.Suo(Oe,$n,5,t.Rgc),t.Suo(Oe,Qe,5,t.Rgc),t.Suo(Oe,Le,5,t.Rgc),t.Suo(Oe,Ue,5,t.Rgc),t.Suo(Oe,Ar,5)),2&X){let Ae;t.iGM(Ae=t.CRH())&&(de.optionTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.optgroupTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.labelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.multiLabelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.headerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.footerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.notFoundTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.typeToSearchTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingTextTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.tagTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingSpinnerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.ngOptions=Ae)}},viewQuery:function(X,de){if(1&X&&(t.Gf(Fr,5),t.Gf(Tt,7),t.Gf(et,5)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.dropdownPanel=Oe.first),t.iGM(Oe=t.CRH())&&(de.searchInput=Oe.first),t.iGM(Oe=t.CRH())&&(de.clearButton=Oe.first)}},hostVars:20,hostBindings:function(X,de){1&X&&t.NdJ("keydown",function(Ae){return de.handleKeyDown(Ae)}),2&X&&t.ekj("ng-select-typeahead",de.typeahead)("ng-select-multiple",de.multiple)("ng-select-taggable",de.addTag)("ng-select-searchable",de.searchable)("ng-select-clearable",de.clearable)("ng-select-opened",de.isOpen)("ng-select",de.useDefaultClass)("ng-select-disabled",de.disabled)("ng-select-filtered",de.filtered)("ng-select-single",de.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[t._Bn([{provide:d.JU,useExisting:(0,t.Gpc)(()=>z),multi:!0},wn]),t.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(X,de){if(1&X){const Oe=t.EpF();t.TgZ(0,"div",0),t.NdJ("mousedown",function(mt){return de.handleMousedown(mt)}),t.TgZ(1,"div",1)(2,"div",2),t._uU(3),t.qZA(),t.YNc(4,We,2,2,"ng-container",3),t.YNc(5,xt,1,5,null,3),t.TgZ(6,"div",4)(7,"input",5,6),t.NdJ("input",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.filter(mt.value))})("compositionstart",function(){return de.onCompositionStart()})("compositionend",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.onCompositionEnd(mt.value))})("focus",function(mt){return de.onInputFocus(mt)})("blur",function(mt){return de.onInputBlur(mt)})("change",function(mt){return mt.stopPropagation()}),t.qZA()()(),t.YNc(9,Ht,4,1,"ng-container",3),t.YNc(10,Zt,4,1,"span",7),t.TgZ(11,"span",8),t._UZ(12,"span",9),t.qZA()(),t.YNc(13,wr,7,19,"ng-dropdown-panel",10)}2&X&&(t.ekj("ng-appearance-outline","outline"===de.appearance)("ng-has-value",de.hasValue),t.xp6(3),t.Oqu(de.placeholder),t.xp6(1),t.Q6J("ngIf",(!de.multiLabelTemplate||!de.multiple)&&de.selectedItems.length>0),t.xp6(1),t.Q6J("ngIf",de.multiple&&de.multiLabelTemplate&&de.selectedValues.length>0),t.xp6(1),t.uIk("aria-expanded",de.isOpen)("aria-owns",de.isOpen?de.dropdownId:null),t.xp6(1),t.Q6J("readOnly",!de.searchable||de.itemsList.maxItemsSelected)("disabled",de.disabled)("value",de.searchTerm?de.searchTerm:""),t.uIk("id",de.labelForId)("tabindex",de.tabIndex)("aria-activedescendant",de.isOpen?null==de.itemsList||null==de.itemsList.markedItem?null:de.itemsList.markedItem.htmlId:null)("aria-controls",de.isOpen?de.dropdownId:null),t.xp6(2),t.Q6J("ngIf",de.loading),t.xp6(1),t.Q6J("ngIf",de.showClear()),t.xp6(3),t.Q6J("ngIf",de.isOpen))},dependencies:[fe.mk,fe.sg,fe.O5,fe.tP,Fr,He],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return z})();function Ur(){return new ai}class ai{constructor(){this._selected=[]}get value(){return this._selected}select(K,D,X){if(K.selected=!0,(!K.children||!D&&X)&&this._selected.push(K),D)if(K.parent){const de=K.parent.children.length,Oe=K.parent.children.filter(Ae=>Ae.selected).length;K.parent.selected=de===Oe}else K.children&&(this._setChildrenSelectedState(K.children,!0),this._removeChildren(K),this._selected=X&&this._activeChildren(K)?[...this._selected.filter(de=>de.parent!==K),K]:[...this._selected,...K.children.filter(de=>!de.disabled)])}unselect(K,D){if(this._selected=this._selected.filter(X=>X!==K),K.selected=!1,D)if(K.parent&&K.parent.selected){const X=K.parent.children;this._removeParent(K.parent),this._removeChildren(K.parent),this._selected.push(...X.filter(de=>de!==K&&!de.disabled)),K.parent.selected=!1}else K.children&&(this._setChildrenSelectedState(K.children,!1),this._removeChildren(K))}clear(K){this._selected=K?this._selected.filter(D=>D.disabled):[]}_setChildrenSelectedState(K,D){for(const X of K)X.disabled||(X.selected=D)}_removeChildren(K){this._selected=[...this._selected.filter(D=>D.parent!==K),...K.children.filter(D=>D.parent===K&&D.disabled&&D.selected)]}_removeParent(K){this._selected=this._selected.filter(D=>D!==K)}_activeChildren(K){return K.children.every(D=>!D.disabled||D.selected)}}let pe=(()=>{class z{static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275mod=t.oAB({type:z});static#n=this.\u0275inj=t.cJS({providers:[{provide:Xn,useValue:Ur}],imports:[fe.ez]})}return z})()},9515:(Pe,V,a)=>{"use strict";a.d(V,{X$:()=>_t,Zw:()=>f,aw:()=>$e,sK:()=>Mt});var t=a(5879),d=a(2096),w=a(2664),L=a(9315),p=a(5211),O=a(4911),R=a(8180),F=a(7081),P=a(7398),B=a(6328),$=a(4664);class f{}let j=(()=>{class Ee extends f{getTranslation(J){return(0,d.of)({})}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class M{}let q=(()=>{class Ee{handle(J){return J.key}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();function ie(Ee,ze){if(Ee===ze)return!0;if(null===Ee||null===ze)return!1;if(Ee!=Ee&&ze!=ze)return!0;let oe,se,ae,J=typeof Ee;if(J==typeof ze&&"object"==J){if(!Array.isArray(Ee)){if(Array.isArray(ze))return!1;for(se in ae=Object.create(null),Ee){if(!ie(Ee[se],ze[se]))return!1;ae[se]=!0}for(se in ze)if(!(se in ae)&&typeof ze[se]<"u")return!1;return!0}if(!Array.isArray(ze))return!1;if((oe=Ee.length)==ze.length){for(se=0;se{Te(ze[Q])?Q in Ee?J[Q]=Se(Ee[Q],ze[Q]):Object.assign(J,{[Q]:ze[Q]}):Object.assign(J,{[Q]:ze[Q]})}),J}class ye{}let ce=(()=>{class Ee extends ye{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(J,Q){let oe;return oe="string"==typeof J?this.interpolateString(J,Q):"function"==typeof J?this.interpolateFunction(J,Q):J,oe}getValue(J,Q){let oe="string"==typeof Q?Q.split("."):[Q];Q="";do{Q+=oe.shift(),!k(J)||!k(J[Q])||"object"!=typeof J[Q]&&oe.length?oe.length?Q+=".":J=void 0:(J=J[Q],Q="")}while(oe.length);return J}interpolateFunction(J,Q){return J(Q)}interpolateString(J,Q){return Q?J.replace(this.templateMatcher,(oe,se)=>{let ae=this.getValue(Q,se);return k(ae)?ae:oe}):J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class _e{}let ve=(()=>{class Ee extends _e{compile(J,Q){return J}compileTranslations(J,Q){return J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class xe{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new t.vpe;onLangChange=new t.vpe;onDefaultLangChange=new t.vpe}const be=new t.OlP("USE_STORE"),ke=new t.OlP("USE_DEFAULT_LANG"),vt=new t.OlP("DEFAULT_LANGUAGE"),rt=new t.OlP("USE_EXTEND");let Mt=(()=>{class Ee{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new t.vpe;_onLangChange=new t.vpe;_onDefaultLangChange=new t.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(J){this.isolate?this._defaultLang=J:this.store.defaultLang=J}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(J){this.isolate?this._currentLang=J:this.store.currentLang=J}get langs(){return this.isolate?this._langs:this.store.langs}set langs(J){this.isolate?this._langs=J:this.store.langs=J}get translations(){return this.isolate?this._translations:this.store.translations}set translations(J){this.isolate?this._translations=J:this.store.translations=J}constructor(J,Q,oe,se,ae,fe=!0,De=!1,je=!1,Xe){this.store=J,this.currentLoader=Q,this.compiler=oe,this.parser=se,this.missingTranslationHandler=ae,this.useDefaultLang=fe,this.isolate=De,this.extend=je,Xe&&this.setDefaultLang(Xe)}setDefaultLang(J){if(J===this.defaultLang)return;let Q=this.retrieveTranslations(J);typeof Q<"u"?(null==this.defaultLang&&(this.defaultLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeDefaultLang(J)})):this.changeDefaultLang(J)}getDefaultLang(){return this.defaultLang}use(J){if(J===this.currentLang)return(0,d.of)(this.translations[J]);let Q=this.retrieveTranslations(J);return typeof Q<"u"?(this.currentLang||(this.currentLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeLang(J)}),Q):(this.changeLang(J),(0,d.of)(this.translations[J]))}retrieveTranslations(J){let Q;return(typeof this.translations[J]>"u"||this.extend)&&(this._translationRequests[J]=this._translationRequests[J]||this.getTranslation(J),Q=this._translationRequests[J]),Q}getTranslation(J){this.pending=!0;const Q=this.currentLoader.getTranslation(J).pipe((0,F.d)(1),(0,R.q)(1));return this.loadingTranslations=Q.pipe((0,P.U)(oe=>this.compiler.compileTranslations(oe,J)),(0,F.d)(1),(0,R.q)(1)),this.loadingTranslations.subscribe({next:oe=>{this.translations[J]=this.extend&&this.translations[J]?{...oe,...this.translations[J]}:oe,this.updateLangs(),this.pending=!1},error:oe=>{this.pending=!1}}),Q}setTranslation(J,Q,oe=!1){Q=this.compiler.compileTranslations(Q,J),this.translations[J]=(oe||this.extend)&&this.translations[J]?Se(this.translations[J],Q):Q,this.updateLangs(),this.onTranslationChange.emit({lang:J,translations:this.translations[J]})}getLangs(){return this.langs}addLangs(J){J.forEach(Q=>{-1===this.langs.indexOf(Q)&&this.langs.push(Q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(J,Q,oe){let se;if(Q instanceof Array){let ae={},fe=!1;for(let De of Q)ae[De]=this.getParsedResult(J,De,oe),(0,w.b)(ae[De])&&(fe=!0);if(fe){const De=Q.map(je=>(0,w.b)(ae[je])?ae[je]:(0,d.of)(ae[je]));return(0,L.D)(De).pipe((0,P.U)(je=>{let Xe={};return je.forEach((tt,wt)=>{Xe[Q[wt]]=tt}),Xe}))}return ae}if(J&&(se=this.parser.interpolate(this.parser.getValue(J,Q),oe)),typeof se>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(se=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Q),oe)),typeof se>"u"){let ae={key:Q,translateService:this};typeof oe<"u"&&(ae.interpolateParams=oe),se=this.missingTranslationHandler.handle(ae)}return typeof se<"u"?se:Q}get(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,B.b)(oe=>(oe=this.getParsedResult(oe,J,Q),(0,w.b)(oe)?oe:(0,d.of)(oe))));{let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);return(0,w.b)(oe)?oe:(0,d.of)(oe)}}getStreamOnTranslationChange(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,p.z)((0,O.P)(()=>this.get(J,Q)),this.onTranslationChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return"function"==typeof se.subscribe?se:(0,d.of)(se)})))}stream(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,p.z)((0,O.P)(()=>this.get(J,Q)),this.onLangChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return(0,w.b)(se)?se:(0,d.of)(se)})))}instant(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);if((0,w.b)(oe)){if(J instanceof Array){let se={};return J.forEach((ae,fe)=>{se[J[fe]]=J[fe]}),se}return J}return oe}set(J,Q,oe=this.currentLang){this.translations[oe][J]=this.compiler.compile(Q,oe),this.updateLangs(),this.onTranslationChange.emit({lang:oe,translations:this.translations[oe]})}changeLang(J){this.currentLang=J,this.onLangChange.emit({lang:J,translations:this.translations[J]}),null==this.defaultLang&&this.changeDefaultLang(J)}changeDefaultLang(J){this.defaultLang=J,this.onDefaultLangChange.emit({lang:J,translations:this.translations[J]})}reloadLang(J){return this.resetLang(J),this.getTranslation(J)}resetLang(J){this._translationRequests[J]=void 0,this.translations[J]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof J>"u"?void 0:(-1!==J.indexOf("-")&&(J=J.split("-")[0]),-1!==J.indexOf("_")&&(J=J.split("_")[0]),J)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,J}static \u0275fac=function(Q){return new(Q||Ee)(t.LFG(xe),t.LFG(f),t.LFG(_e),t.LFG(ye),t.LFG(M),t.LFG(ke),t.LFG(be),t.LFG(rt),t.LFG(vt))};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),_t=(()=>{class Ee{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(J,Q){this.translate=J,this._ref=Q}updateValue(J,Q,oe){let se=ae=>{this.value=void 0!==ae?ae:J,this.lastKey=J,this._ref.markForCheck()};if(oe){let ae=this.translate.getParsedResult(oe,J,Q);(0,w.b)(ae.subscribe)?ae.subscribe(se):se(ae)}this.translate.get(J,Q).subscribe(se)}transform(J,...Q){if(!J||!J.length)return J;if(ie(J,this.lastKey)&&ie(Q,this.lastParams))return this.value;let oe;if(k(Q[0])&&Q.length)if("string"==typeof Q[0]&&Q[0].length){let se=Q[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{oe=JSON.parse(se)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Q[0]}`)}}else"object"==typeof Q[0]&&!Array.isArray(Q[0])&&(oe=Q[0]);return this.lastKey=J,this.lastParams=Q,this.updateValue(J,oe),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(se=>{this.lastKey&&se.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(se=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(Q){return new(Q||Ee)(t.Y36(Mt,16),t.Y36(t.sBO,16))};static \u0275pipe=t.Yjl({name:"translate",type:Ee,pure:!1});static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),$e=(()=>{class Ee{static forRoot(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:M,useClass:q},xe,{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:rt,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},Mt]}}static forChild(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:M,useClass:q},{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:rt,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},Mt]}}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275mod=t.oAB({type:Ee});static \u0275inj=t.cJS({})}return Ee})()},7066:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>k});var w=a(8418);const p=function L(Te,Se){for(var ye=Te.length;ye--;)if((0,w.Z)(Te[ye][0],Se))return ye;return-1};var R=Array.prototype.splice;function ie(Te){var Se=-1,ye=null==Te?0:Te.length;for(this.clear();++Se-1},ie.prototype.set=function M(Te,Se){var ye=this.__data__,ce=p(ye,Te);return ce<0?(++this.size,ye.push([Te,Se])):ye[ce][1]=Se,this};const k=ie},2847:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Map")},8410:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ae});const w=(0,a(2656).Z)(Object,"create");var B=Object.prototype.hasOwnProperty;var M=Object.prototype.hasOwnProperty;function ye(fe){var De=-1,je=null==fe?0:fe.length;for(this.clear();++De{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Set")},342:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(8410);function R(P){var B=-1,$=null==P?0:P.length;for(this.__data__=new t.Z;++B<$;)this.add(P[B])}R.prototype.add=R.prototype.push=function w(P){return this.__data__.set(P,"__lodash_hash_undefined__"),this},R.prototype.has=function p(P){return this.__data__.has(P)};const F=R},8730:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(7066);var B=a(2847),$=a(8410);function q(k){var Te=this.__data__=new t.Z(k);this.size=Te.size}q.prototype.clear=function d(){this.__data__=new t.Z,this.size=0},q.prototype.delete=function L(k){var Te=this.__data__,Se=Te.delete(k);return this.size=Te.size,Se},q.prototype.get=function O(k){return this.__data__.get(k)},q.prototype.has=function F(k){return this.__data__.has(k)},q.prototype.set=function j(k,Te){var Se=this.__data__;if(Se instanceof t.Z){var ye=Se.__data__;if(!B.Z||ye.length<199)return ye.push([k,Te]),this.size=++Se.size,this;Se=this.__data__=new $.Z(ye)}return Se.set(k,Te),this.size=Se.size,this};const ie=q},6875:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Symbol},8475:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Uint8Array},9416:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>$});var w=a(5727),L=a(9977),p=a(9354),O=a(9229),R=a(7227),P=Object.prototype.hasOwnProperty;const $=function B(f,j){var M=(0,L.Z)(f),q=!M&&(0,w.Z)(f),ie=!M&&!q&&(0,p.Z)(f),k=!M&&!q&&!ie&&(0,R.Z)(f),Te=M||q||ie||k,Se=Te?function t(f,j){for(var M=-1,q=Array(f);++M{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){for(var p=-1,O=L.length,R=w.length;++p{"use strict";a.d(V,{Z:()=>L});var t=a(4331),d=a(9977);const L=function w(p,O,R){var F=O(p);return(0,d.Z)(p)?F:(0,t.Z)(F,R(p))}},3844:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(6875),d=Object.prototype,w=d.hasOwnProperty,L=d.toString,p=t.Z?t.Z.toStringTag:void 0;var P=Object.prototype.toString;var M=t.Z?t.Z.toStringTag:void 0;const ie=function q(k){return null==k?void 0===k?"[object Undefined]":"[object Null]":M&&M in Object(k)?function O(k){var Te=w.call(k,p),Se=k[p];try{k[p]=void 0;var ye=!0}catch{}var ce=L.call(k);return ye&&(Te?k[p]=Se:delete k[p]),ce}(k):function B(k){return P.call(k)}(k)}},2148:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Rn});var t=a(8730),d=a(342);const L=function w(We,Ye){for(var At=-1,xt=null==We?0:We.length;++AtZt))return!1;var Sn=Et.get(We),hn=Et.get(Ye);if(Sn&&hn)return Sn==Ye&&hn==We;var en=-1,Dn=!0,Wn=2&At?new d.Z:void 0;for(Et.set(We,Ye),Et.set(Ye,We);++en{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return function(L){return w(L)}}},9473:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>xe});var t=a(342);const p=function L(be){return be!=be},$=function B(be,ke){return!(null==be||!be.length)&&function F(be,ke,vt){return ke==ke?function O(be,ke,vt){for(var rt=vt-1,Mt=be.length;++rt-1},j=function f(be,ke,vt){for(var rt=-1,Mt=null==be?0:be.length;++rt=200){var ze=ke?null:ce(be);if(ze)return(0,Te.Z)(ze);_t=!1,Mt=M.Z,Ee=new t.Z}else Ee=ke?[]:$e;e:for(;++rt{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w.has(L)}},7806:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d="object"==typeof global&&global&&global.Object===Object&&global},6721:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(6982),d=a(3774),w=a(0);const p=function L(O){return(0,t.Z)(O,w.Z,d.Z)}},2656:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>_e});var ve,t=a(4842),w=a(4131).Z["__core-js_shared__"],p=(ve=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"";var F=a(5829),P=a(8594),$=/^\[object .+?Constructor\]$/,ie=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function k(ve){return!(!(0,F.Z)(ve)||function O(ve){return!!p&&p in ve}(ve))&&((0,t.Z)(ve)?ie:$).test((0,P.Z)(ve))},_e=function ce(ve,xe){var be=function Se(ve,xe){return ve?.[xe]}(ve,xe);return Te(be)?be:void 0}},3774:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var w=a(3534),p=Object.prototype.propertyIsEnumerable,O=Object.getOwnPropertySymbols;const F=O?function(P){return null==P?[]:(P=Object(P),function t(P,B){for(var $=-1,f=null==P?0:P.length,j=0,M=[];++${"use strict";a.d(V,{Z:()=>be});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"DataView");var p=a(2847);const R=(0,t.Z)(d.Z,"Promise");var F=a(4402);const B=(0,t.Z)(d.Z,"WeakMap");var $=a(3844),f=a(8594),j="[object Map]",q="[object Promise]",ie="[object Set]",k="[object WeakMap]",Te="[object DataView]",Se=(0,f.Z)(L),ye=(0,f.Z)(p.Z),ce=(0,f.Z)(R),_e=(0,f.Z)(F.Z),ve=(0,f.Z)(B),xe=$.Z;(L&&xe(new L(new ArrayBuffer(1)))!=Te||p.Z&&xe(new p.Z)!=j||R&&xe(R.resolve())!=q||F.Z&&xe(new F.Z)!=ie||B&&xe(new B)!=k)&&(xe=function(ke){var vt=(0,$.Z)(ke),rt="[object Object]"==vt?ke.constructor:void 0,Mt=rt?(0,f.Z)(rt):"";if(Mt)switch(Mt){case Se:return Te;case ye:return j;case ce:return q;case _e:return ie;case ve:return k}return vt});const be=xe},9229:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=/^(?:0|[1-9]\d*)$/;const L=function w(p,O){var R=typeof p;return!!(O=O??9007199254740991)&&("number"==R||"symbol"!=R&&d.test(p))&&p>-1&&p%1==0&&p{"use strict";a.d(V,{Z:()=>w});var t=Object.prototype;const w=function d(L){var p=L&&L.constructor;return L===("function"==typeof p&&p.prototype||t)}},5527:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(7806),d="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=d&&"object"==typeof module&&module&&!module.nodeType&&module,p=w&&w.exports===d&&t.Z.process;const R=function(){try{return w&&w.require&&w.require("util").types||p&&p.binding&&p.binding("util")}catch{}}()},2667:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return function(p){return w(L(p))}}},4131:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7806),d="object"==typeof self&&self&&self.Object===Object&&self;const L=t.Z||d||Function("return this")()},7799:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=-1,p=Array(w.size);return w.forEach(function(O){p[++L]=O}),p}},8594:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=Function.prototype.toString;const L=function w(p){if(null!=p){try{return d.call(p)}catch{}try{return p+""}catch{}}return""}},1437:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>q});const p=function t(ie){return function(k){return ie?.[k]}}({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"});var O=a(2394),R=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,j=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const q=function M(ie){return(ie=(0,O.Z)(ie))&&ie.replace(R,p).replace(j,"")}},8418:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w===L||w!=w&&L!=L}},5727:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(3844),d=a(1196);const p=function L($){return(0,d.Z)($)&&"[object Arguments]"==(0,t.Z)($)};var O=Object.prototype,R=O.hasOwnProperty,F=O.propertyIsEnumerable;const B=p(function(){return arguments}())?p:function($){return(0,d.Z)($)&&R.call($,"callee")&&!F.call($,"callee")}},9977:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=Array.isArray},6247:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(4842),d=a(4018);const L=function w(p){return null!=p&&(0,d.Z)(p.length)&&!(0,t.Z)(p)}},9354:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(4131),L="object"==typeof exports&&exports&&!exports.nodeType&&exports,p=L&&"object"==typeof module&&module&&!module.nodeType&&module,R=p&&p.exports===L?t.Z.Buffer:void 0;const B=(R?R.isBuffer:void 0)||function d(){return!1}},8658:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(2148);const w=function d(L,p){return(0,t.Z)(L,p)}},4842:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(3844),d=a(5829);const F=function R(P){if(!(0,d.Z)(P))return!1;var B=(0,t.Z)(P);return"[object Function]"==B||"[object GeneratorFunction]"==B||"[object AsyncFunction]"==B||"[object Proxy]"==B}},4018:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=function d(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=9007199254740991}},5829:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=typeof w;return null!=w&&("object"==L||"function"==L)}},1196:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return null!=w&&"object"==typeof w}},7106:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(3844),d=a(1196);const p=function L(O){return"symbol"==typeof O||(0,d.Z)(O)&&"[object Symbol]"==(0,t.Z)(O)}},7227:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>J});var t=a(3844),d=a(4018),w=a(1196),rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var _t=a(8733),$e=a(5527),Ee=$e.Z&&$e.Z.isTypedArray;const J=Ee?(0,_t.Z)(Ee):function Mt(Q){return(0,w.Z)(Q)&&(0,d.Z)(Q.length)&&!!rt[(0,t.Z)(Q)]}},0:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(9416),d=a(801);const p=(0,a(2667).Z)(Object.keys,Object);var R=Object.prototype.hasOwnProperty;var B=a(6247);const f=function $(j){return(0,B.Z)(j)?(0,t.Z)(j):function F(j){if(!(0,d.Z)(j))return p(j);var M=[];for(var q in Object(j))R.call(j,q)&&"constructor"!=q&&M.push(q);return M}(j)}},3534:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(){return[]}},2394:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(6875);var L=a(9977),p=a(7106),R=t.Z?t.Z.prototype:void 0,F=R?R.toString:void 0;const B=function P(j){if("string"==typeof j)return j;if((0,L.Z)(j))return function d(j,M){for(var q=-1,ie=null==j?0:j.length,k=Array(ie);++q{"use strict";a.d(V,{Z:()=>Er});var t=a(8730),d=a(2148);var R=a(5829);const P=function F(it){return it==it&&!(0,R.Z)(it)};var B=a(0);const M=function j(it,Ut){return function(Qt){return null!=Qt&&Qt[it]===Ut&&(void 0!==Ut||it in Object(Qt))}},ie=function q(it){var Ut=function $(it){for(var Ut=(0,B.Z)(it),Qt=Ut.length;Qt--;){var Cn=Ut[Qt],An=it[Cn];Ut[Qt]=[Cn,An,P(An)]}return Ut}(it);return 1==Ut.length&&Ut[0][2]?M(Ut[0][0],Ut[0][1]):function(Qt){return Qt===it||function p(it,Ut,Qt,Cn){var An=Qt.length,In=An,nr=!Cn;if(null==it)return!In;for(it=Object(it);An--;){var Dr=Qt[An];if(nr&&Dr[2]?Dr[1]!==it[Dr[0]]:!(Dr[0]in it))return!1}for(;++An{"use strict";a.d(V,{Z:()=>L});var t=a(2394),d=0;const L=function w(p){var O=++d;return(0,t.Z)(p)+O}},6283:(Pe,V,a)=>{"use strict";a.d(V,{Ry:()=>zt,Rq:()=>Rn});var t=a(5879),d=a(2096),w=a(2438),L=a(1631),p=a(7398),O=a(9397),R=a(2181),F=a(6321),P=a(9360),B=a(8251),$=a(4829),j=a(4825);function ie(We,Ye,At,xt){const nn=window&&!!window.document&&window.document.documentElement;let Et=nn&&Ye?window:At;if(We&&(Et=We&&nn&&"string"==typeof We?function k(We,Ye,At){return(At?window.document:Ye).querySelector(We)}(We,At.nativeElement,xt):We,!Et))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return Et}function Te(We){return We&&!We.firstChange}const ye={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},ce={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class _e{constructor(Ye=!0){this.vertical=Ye,this.propsMap=Ye?ye:ce}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function ke(We){return["Window","global"].some(At=>Object.prototype.toString.call(We).includes(At))}function vt(We,Ye){return We?Ye.document.documentElement:null}function rt(We,Ye){const At=function $e({container:We,isWindow:Ye,axis:At}){const{offsetHeightKey:xt,clientHeightKey:nn}=_t(At);return Ee(We,Ye,xt,nn)}(Ye);return Ye.isWindow?function Mt(We,Ye,At){const{axis:xt,container:nn,isWindow:Et}=At,{offsetHeightKey:Ht,clientHeightKey:Zt}=_t(xt),fn=We+J(vt(Et,nn),xt,Et),Sn=Ee(Ye.nativeElement,Et,Ht,Zt),hn=function ze(We,Ye,At){const xt=Ye.topKey();if(We.getBoundingClientRect)return We.getBoundingClientRect()[xt]+J(We,Ye,At)}(Ye.nativeElement,xt,Et)+Sn;return{height:We,scrolled:fn,totalToScroll:hn,isWindow:Et}}(At,We,Ye):function qe(We,Ye,At){const{axis:xt,container:nn}=At;return{height:We,scrolled:nn[xt.scrollTopKey()],totalToScroll:nn[xt.scrollHeightKey()],isWindow:!1}}(At,0,Ye)}function _t(We){return{offsetHeightKey:We.offsetHeightKey(),clientHeightKey:We.clientHeightKey()}}function Ee(We,Ye,At,xt){if(isNaN(We[At])){const nn=vt(Ye,We);return nn?nn[xt]:0}return We[At]}function J(We,Ye,At){const xt=Ye.pageYOffsetKey(),nn=Ye.scrollTopKey(),Et=Ye.offsetTopKey();return isNaN(window.pageYOffset)?vt(At,We)[nn]:We.ownerDocument?We.ownerDocument.defaultView[xt]:We[Et]}function Q(We,Ye={down:0,up:0},At){let xt,nn;if(We.totalToScroll<=0)return!1;const Et=We.isWindow?We.scrolled:We.height+We.scrolled;return At?(xt=(We.totalToScroll-Et)/We.totalToScroll,nn=(Ye?.down?Ye.down:0)/10):(xt=We.scrolled/(We.scrolled+(We.totalToScroll-Et)),nn=(Ye?.up?Ye.up:0)/10),xt<=nn}class wt{constructor({totalToScroll:Ye}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=Ye}updateScrollPosition(Ye){return this.lastScrollPosition=Ye}updateTotalToScroll(Ye){this.lastTotalToScroll!==Ye&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=Ye)}updateScroll(Ye,At){this.updateScrollPosition(Ye),this.updateTotalToScroll(At)}updateTriggeredFlag(Ye,At){At?this.triggered.down=Ye:this.triggered.up=Ye}isTriggeredScroll(Ye,At){return At?this.triggered.down===Ye:this.triggered.up===Ye}}function It(We){const{scrollContainer:Ye,scrollWindow:At,element:xt,fromRoot:nn}=We,Et=function xe({windowElement:We,axis:Ye}){return function be(We,Ye){const At=We.isWindow||Ye&&!Ye.nativeElement?Ye:Ye.nativeElement;return{...We,container:At}}({axis:Ye,isWindow:ke(We)},We)}({axis:new _e(!We.horizontal),windowElement:ie(Ye,At,xt,nn)}),Ht=new wt({totalToScroll:rt(xt,Et)}),fn={up:We.upDistance,down:We.downDistance};return function Je(We){let Ye=(0,w.R)(We.container,"scroll");return We.throttle&&(Ye=Ye.pipe(function M(We,Ye=F.z,At){const xt=(0,j.H)(We,Ye);return function f(We,Ye){return(0,P.e)((At,xt)=>{const{leading:nn=!0,trailing:Et=!1}=Ye??{};let Ht=!1,Zt=null,fn=null,Sn=!1;const hn=()=>{fn?.unsubscribe(),fn=null,Et&&(Wn(),Sn&&xt.complete())},en=()=>{fn=null,Sn&&xt.complete()},Dn=_n=>fn=(0,$.Xf)(We(_n)).subscribe((0,B.x)(xt,hn,en)),Wn=()=>{if(Ht){Ht=!1;const _n=Zt;Zt=null,xt.next(_n),!Sn&&Dn(_n)}};At.subscribe((0,B.x)(xt,_n=>{Ht=!0,Zt=_n,(!fn||fn.closed)&&(nn?Wn():Dn(_n))},()=>{Sn=!0,(!(Et&&Ht&&fn)||fn.closed)&&xt.complete()}))})}(()=>xt,At)}(We.throttle,void 0,{leading:!0,trailing:!0}))),Ye}({container:Et.container,throttle:We.throttle}).pipe((0,L.z)(()=>(0,d.of)(rt(xt,Et))),(0,p.U)(Sn=>function Tt(We,Ye,At){const{scrollDown:xt,fire:nn}=function se(We,Ye,At){const xt=function oe(We,Ye){return WeHt.updateScroll(Sn.scrolled,Sn.totalToScroll)),(0,R.h)(({fire:Sn,scrollDown:hn,stats:{totalToScroll:en}})=>function ve(We,Ye,At){return!!(We&&Ye||!At&&Ye)}(We.alwaysCallback,Sn,Ht.isTriggeredScroll(en,hn))),(0,O.b)(({scrollDown:Sn,stats:{totalToScroll:hn}})=>{Ht.updateTriggeredFlag(hn,Sn)}),(0,p.U)(Pt))}const et={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Pt(We){const{scrollDown:Ye,stats:{scrolled:At}}=We;return{type:Ye?et.DOWN:et.UP,payload:{currentScrollPosition:At}}}let zt=(()=>{class We{constructor(At,xt){this.element=At,this.zone=xt,this.scrolled=new t.vpe,this.scrolledUp=new t.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:At,infiniteScrollDisabled:xt,infiniteScrollDistance:nn}){const Et=Te(At),Ht=Te(xt),Zt=Te(nn),fn=!Ht&&!this.infiniteScrollDisabled||Ht&&!xt.currentValue||Zt;(Et||Ht||Zt)&&(this.destroyScroller(),fn&&this.setup())}setup(){(function Se(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=It({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(At=>this.handleOnScroll(At))})}handleOnScroll({type:At,payload:xt}){const nn=At===et.DOWN?this.scrolled:this.scrolledUp;(function dn(We){return We.observed??We.observers.length>0})(nn)&&this.zone.run(()=>nn.emit(xt))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#e=this.\u0275fac=function(xt){return new(xt||We)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275dir=t.lG2({type:We,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[t.TTD]})}return We})(),Rn=(()=>{class We{static#e=this.\u0275fac=function(xt){return new(xt||We)};static#t=this.\u0275mod=t.oAB({type:We});static#n=this.\u0275inj=t.cJS({})}return We})()},1002:(Pe,V,a)=>{"use strict";function t(d){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(d)}a.d(V,{Z:()=>t})},7582:(Pe,V,a)=>{"use strict";function f(Q,oe,se,ae){return new(se||(se=Promise))(function(De,je){function Xe(It){try{wt(ae.next(It))}catch(Je){je(Je)}}function tt(It){try{wt(ae.throw(It))}catch(Je){je(Je)}}function wt(It){It.done?De(It.value):function fe(De){return De instanceof se?De:new se(function(je){je(De)})}(It.value).then(Xe,tt)}wt((ae=ae.apply(Q,oe||[])).next())})}function ce(Q){return this instanceof ce?(this.v=Q,this):new ce(Q)}function _e(Q,oe,se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,ae=se.apply(Q,oe||[]),De=[];return fe={},je("next"),je("throw"),je("return"),fe[Symbol.asyncIterator]=function(){return this},fe;function je(Tt){ae[Tt]&&(fe[Tt]=function(et){return new Promise(function(Pt,zt){De.push([Tt,et,Pt,zt])>1||Xe(Tt,et)})})}function Xe(Tt,et){try{!function tt(Tt){Tt.value instanceof ce?Promise.resolve(Tt.value.v).then(wt,It):Je(De[0][2],Tt)}(ae[Tt](et))}catch(Pt){Je(De[0][3],Pt)}}function wt(Tt){Xe("next",Tt)}function It(Tt){Xe("throw",Tt)}function Je(Tt,et){Tt(et),De.shift(),De.length&&Xe(De[0][0],De[0][1])}}function xe(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,oe=Q[Symbol.asyncIterator];return oe?oe.call(Q):(Q=function ie(Q){var oe="function"==typeof Symbol&&Symbol.iterator,se=oe&&Q[oe],ae=0;if(se)return se.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&ae>=Q.length&&(Q=void 0),{value:Q&&Q[ae++],done:!Q}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Q),se={},ae("next"),ae("throw"),ae("return"),se[Symbol.asyncIterator]=function(){return this},se);function ae(De){se[De]=Q[De]&&function(je){return new Promise(function(Xe,tt){!function fe(De,je,Xe,tt){Promise.resolve(tt).then(function(wt){De({value:wt,done:Xe})},je)}(Xe,tt,(je=Q[De](je)).done,je.value)})}}}a.d(V,{FC:()=>_e,KL:()=>xe,mG:()=>f,qq:()=>ce}),"function"==typeof SuppressedError&&SuppressedError}},Pe=>{Pe(Pe.s=4515)}]); \ No newline at end of file +(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[179],{7483:(Pe,V,a)=>{"use strict";a.d(V,{De:()=>d,P2:()=>w,Ps:()=>P,Re:()=>h,W3:()=>R,dP:()=>O,df:()=>B,dw:()=>L,fr:()=>$,yY:()=>F});var t=a(3986);function d(q,ie){return ie.map(k=>k.Id===q.TestId?P(q,k):k)}function w(q,ie){return ie.map(k=>k.Id===q?{...k,IsPublished:!k.IsPublished}:k)}function L(q){const ie=function j(q){return q.Results?.map(ie=>null!==ie.Points?ie.Points:M).filter(ie=>ie>M)||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function h(q){return q.MaxPointsAdjusted||q.MaxPoints}function O(q){const ie=function f(q){return q.Results?.filter(ie=>null!==ie.GradeDesignation).map(ie=>Number(ie.GradeDesignation)).filter(ie=>!isNaN(ie))||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function R(q,ie){return ie.Results?.find(k=>k.StudentId===q)}function F(q,ie){return null===ie?null:ie.filter(k=>k.Id!==q)}function P(q,ie){const k=ie.Results?.filter(Te=>q.Id!==Te.Id)||[];return{...ie,Results:[...k,q]}}function B(q){return q.slice().sort((ie,k)=>k.Date.getTime()-ie.Date.getTime())}function $(q,ie){return ie?.find(k=>k.Id===q.GradingScaleId)||null}const M=-1},2324:(Pe,V,a)=>{"use strict";a.d(V,{G:()=>w});var t=a(9189),d=a(5301);class w{constructor(h){if(this.absences=h,0===h.length)throw new Error("Absences array is empty");this.date=(0,t.Z)(this.absences[0].LessonDateTimeFrom),this.dateString=(0,d.Z)(this.date,"yyyy-MM-dd"),this.studentId=this.absences[0].StudentRef.Id,this.studentFullName=this.absences[0].StudentFullName,this.studyClassNumber=this.absences[0].StudyClassNumber,this.lessonsCount=this.absences.length}}},7727:(Pe,V,a)=>{"use strict";a.d(V,{Ob:()=>O,MX:()=>F,HM:()=>B,pE:()=>P,EA:()=>R});var t=a(5301),d=a(2324),w=a(6747);class L extends Error{constructor(M,q){super(`TypeScript thought we could never end up here\n${q}`)}}var h=a(4011);function O(j){const M=function f(j){return j.reduce((M,q)=>{const ie=(0,t.Z)(q.LessonDateTimeFrom,"yyyy-MM-dd"),k=q.StudentRef.Id;return M[ie]||(M[ie]={}),M[ie][k]||(M[ie][k]=[]),M[ie][k].push(q),M},{})}(j);return Object.keys(M).reduce((q,ie)=>(Object.keys(M[ie]).forEach(k=>{q=[...q,new d.G(M[ie][k].sort(w.kM))]}),q),[])}function R(j,M){return[...j].sort(function $(j){return(M,q)=>{switch(j.primarySortKey){case"date":{const ie=M.date.getTime(),k=q.date.getTime();return ie===k?M.studentFullName.localeCompare(q.studentFullName):j.ascending?ie-k:k-ie}case"name":{const ie=j.ascending?M.studentFullName.localeCompare(q.studentFullName):q.studentFullName.localeCompare(M.studentFullName);return 0===ie?q.date.getTime()-M.date.getTime():ie}default:throw new L(j.primarySortKey,"Unhandled sort criteria")}}}(M))}function F(j){return j.reduce((M,q)=>M.concat(q.absences),[])}function P(j,M){return j.filter(q=>!M.some(({lessonIds:ie,personId:k})=>ie.includes(q.LessonRef.Id)&&k===q.StudentRef.Id))}function B(j,M){return(0,h.Z)([...j,...M],"Id")}},3449:(Pe,V,a)=>{"use strict";a.d(V,{ES:()=>w,Ov:()=>d,Oz:()=>L});var t=a(8484),d=function(h){return h.Present="present",h.Unapproved="unapproved",h.Absent="absent",h}(d||{});function w(h){switch(h){case d.Absent:return"cancel";case d.Unapproved:return"help";default:return"check_circle"}}class L{constructor(O,R,F,P){this.lessonPresence=O,this.presenceType=R,this.precedingAbsences=F,this.confirmationState=P,this.studentFullName=O.StudentFullName}get presenceCategory(){return(0,t.fv)(this.settings,this.confirmationState&&Number(this.confirmationState.Key))?d.Unapproved:(0,t.qX)(this.presenceType)?d.Absent:d.Present}get nextPresenceCategory(){return this.presenceCategory===d.Absent?d.Present:d.Absent}getNextPresenceType(O){return this.nextPresenceCategory===d.Absent?this.presenceCategory===d.Unapproved?this.presenceType:O.find(R=>(0,t.xK)(R,this.settings))||null:null}get canChangePresenceType(){return(0,t.NF)(this.lessonPresence,this.presenceType,this.settings)}get canChangeIncident(){return!(0,t.qX)(this.presenceType)}get showDesignation(){return!this.canChangePresenceType||this.presenceCategory===d.Absent&&!(0,t.xK)(this.presenceType,this.settings)||this.presenceCategory===d.Unapproved}get presenceCategoryIcon(){return w(this.presenceCategory)}get settings(){return window.schulverwaltung.settings}}},6747:(Pe,V,a)=>{"use strict";a.d(V,{In:()=>w,bL:()=>R,kM:()=>P,uP:()=>F});var t=a(3449),d=a(4011);function w(f,j){return null===f&&null===j||null!==f&&null!==j&&f.LessonRef.Id===j.LessonRef.Id&&f.EventDesignation===j.EventDesignation&&f.StudyClassNumber===j.StudyClassNumber&&f.TeacherInformation===j.TeacherInformation&&f.LessonDateTimeFrom.getTime()===j.LessonDateTimeFrom.getTime()&&f.LessonDateTimeTo.getTime()===j.LessonDateTimeTo.getTime()}function R(f,j,M,q,ie){return function h(f,j){return f?j.filter(M=>f.lessons.map(q=>q.LessonRef.Id).indexOf(M.LessonRef.Id)>=0).sort(B):[]}(f,j).map(k=>F(f,k,M,q,ie))}function F(f,j,M,q,ie){let k=null;j.TypeRef.Id&&(k=M.find(ye=>ye.Id===j.TypeRef.Id)||null);const Te=function O(f,j,M){return(0,d.Z)(f.filter(q=>q.StudentRef.Id===j.StudentRef.Id&&q.LessonRef.From&&q.LessonRef.From.toDateString()===M?.LessonDateTimeFrom.toDateString()&&q.LessonRef.Fromye.Key===j.ConfirmationStateId)),new t.Oz(j,k,Te,Se)}function P(f,j){const M=f.LessonDateTimeFrom.getTime(),q=j.LessonDateTimeFrom.getTime();return M-q==0?f.LessonDateTimeTo.getTime()-j.LessonDateTimeTo.getTime():M-q}function B(f,j){return f.StudentFullName.localeCompare(j.StudentFullName)}function $(f,j){return f.LessonRef.From&&f.LessonRef.To&&j.LessonRef.From&&j.LessonRef.To?f.LessonRef.From.getTime()-j.LessonRef.From.getTime()==0?f.LessonRef.To.getTime()-j.LessonRef.To.getTime():f.LessonRef.From.getTime()-j.LessonRef.From.getTime():0}},8484:(Pe,V,a)=>{"use strict";function d(B){return!(!B||!B.IsComment)}function w(B){return!(!B||!B.IsIncident)}function L(B){return!(!B||!(B.IsAbsence||B.IsDispensation||B.IsHalfDay))}function h(B,$){return!(!B||!$||B.Id!==$.absencePresenceTypeId)}function O(B,$){return!(!B||!$||$!==B.checkableAbsenceStateId)}function F(B,$,f){return!!(function t(B){return!B}($)&&null===B.ConfirmationStateId||d($)||w($)||L($)&&B.ConfirmationStateId===f.unconfirmedAbsenceStateId||O(f,B.ConfirmationStateId))}function P(B,$){return B?.IsAbsence?$.unconfirmedAbsenceStateId:null}a.d(V,{C3:()=>d,LO:()=>P,NF:()=>F,fv:()=>O,hm:()=>w,qX:()=>L,xK:()=>h})},2769:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>B,R:()=>f});var t=a(9862),d=a(6232),w=a(8504),L=a(6306),h=a(3942),O=a(5879),R=a(1523),F=a(6869),P=a(9515);function B(j,M={}){let q;return q=M instanceof t.LE?M:new t.LE({fromObject:M}),q.set("restConfig",JSON.stringify(j))}let f=(()=>{class j{constructor(q,ie,k){this.router=q,this.toastService=ie,this.translate=k}intercept(q,ie){const{config:k,params:Te}=function $(j){return{config:JSON.parse(j.get("restConfig")||"{}"),params:j.delete("restConfig")}}(q.params);return ie.handle(q.clone({params:Te})).pipe((0,L.K)(this.getErrorHandler(k)))}getErrorHandler(q){return ie=>{if(ie instanceof t.UA&&!q.disableErrorHandling&&(!q.disableErrorHandlingForStatus||!q.disableErrorHandlingForStatus.includes(ie.status)))switch(ie.status){case 401:return this.notifyError("noaccess"),this.router.navigate(["/unauthenticated"]),d.E;case 403:return this.notifyError("noaccess"),d.E;case 404:return this.notifyError("notfound"),d.E;case 0:case 503:case 504:return this.notifyError("unavailable"),d.E;case 409:return this.notifyConflictError(ie),d.E;default:return this.notifyError("server"),d.E}return(0,w._)(()=>ie)}}notifyError(q){this.toastService.error(this.translate.instant(`global.rest-errors.${q}-message`),this.translate.instant(`global.rest-errors.${q}-title`))}notifyConflictError(q){const ie=this.translate.instant("global.rest-errors.conflict-message"),k=this.parseConflictIssues(q);this.toastService.error(k.length>0?k.join("\n"):ie,this.translate.instant("global.rest-errors.conflict-title"))}parseConflictIssues(q){return Array.isArray(q.error?.Issues)?q.error.Issues.map(ie=>ie?.Message).filter(h.YO):[]}static#e=this.\u0275fac=function(ie){return new(ie||j)(O.LFG(R.F0),O.LFG(F.k),O.LFG(P.sK))};static#t=this.\u0275prov=O.Yz7({token:j,factory:j.\u0275fac})}return j})()},4141:(Pe,V,a)=>{"use strict";a.d(V,{L6:()=>P,Zr:()=>F});var t=a(5879),d=a(754),w=a(8121);const L=d.dt({de:d.dt({label:d.Z_,description:d.Z_}),fr:d.dt({label:d.Z_,description:d.Z_})}),h=d.IM(d.Z_,L),O=d.dt({roles:d.IX(d.Z_),types:d.IX(d.Z_)}),R=d.dt({substitutionsAdminLink:d.Z_}),F=d.dt({apiUrl:d.Z_,scriptsAndAssetsPath:d.Z_,paginationLimit:d.pk,absencePresenceTypeId:d.pk,latePresenceTypeId:d.pk,dispensationPresenceTypeId:d.pk,halfDayPresenceTypeId:d.pk,unconfirmedAbsenceStateId:d.pk,unexcusedAbsenceStateId:d.pk,excusedAbsenceStateId:d.pk,checkableAbsenceStateId:d.pk,lessonPresencesRefreshTime:d.pk,unconfirmedAbsencesRefreshTime:(0,w.Wx)(d.pk),personMasterDataReportId:d.pk,studentConfirmationReportId:d.pk,evaluateAbsencesReportId:d.pk,testsByCourseReportId:d.pk,testsBySubscriptionReportIdStudent:d.pk,testsBySubscriptionReportIdTeacher:d.pk,subscriptionDetailGroupId:d.pk,headerRoleRestriction:d.IM(d.Z_,d.Z_),notificationRefreshTime:d.pk,notificationTypes:h,notificationTypesAssignments:d.IX(O),eventlist:d.IM(d.Z_,d.Z_),dashboard:R,preventStudentAbsenceAfterLessonStart:d.IX(d.Z_)}),P=new t.OlP("Application Settings",{providedIn:"root",factory:()=>window.schulverwaltung.settings})},2628:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>O});var t=a(4141),d=a(5879),w=a(8173),L=a(6814),h=a(1523);let O=(()=>{class R{constructor(P,B){this.settings=P,this.storageService=B,this.avatarStyles={}}ngOnChanges(P){P.studentId&&(this.avatarStyles=this.buildAvatarStyles(this.studentId))}buildAvatarStyles(P){return{"background-image":[this.buildAvatarUrl(P),this.fallbackAvatarUrl].map(B=>`url(${B})`).join(", ")}}buildAvatarUrl(P){const B=this.storageService.getAccessToken()||"";return`${this.settings.apiUrl}/Files/personPictures/${P}?token=${B}`}get fallbackAvatarUrl(){return`${this.settings.scriptsAndAssetsPath}/assets/images/avatar-placeholder.png`}static#e=this.\u0275fac=function(B){return new(B||R)(d.Y36(t.L6),d.Y36(w.V))};static#t=this.\u0275cmp=d.Xpm({type:R,selectors:[["erz-avatar"]],inputs:{studentId:"studentId",link:"link",linkParams:"linkParams"},features:[d.TTD],decls:1,vars:5,consts:[[1,"avatar",3,"routerLink","queryParams","ngStyle"]],template:function(B,$){1&B&&d._UZ(0,"a",0),2&B&&(d.ekj("disabled",!$.link),d.Q6J("routerLink",$.link)("queryParams",$.linkParams)("ngStyle",$.avatarStyles))},dependencies:[L.PC,h.rH],styles:["[_nghost-%COMP%]{display:flex}.small[_nghost-%COMP%]{width:40px;min-width:40px;height:50px}.medium[_nghost-%COMP%]{width:58px;min-width:58px;height:75px}.large[_nghost-%COMP%]{width:100px;min-width:100px;height:130px}.avatar[_ngcontent-%COMP%]{flex:1;border:1px solid rgba(0,0,0,.25);background-repeat:no-repeat;background-size:cover;background-position:center}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}"]})}return R})()},7625:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>h});var t=a(5879),d=a(1523),w=a(9515);const L=["*"];let h=(()=>{class O{constructor(){this.routerLink=[]}static#e=this.\u0275fac=function(P){return new(P||O)};static#t=this.\u0275cmp=t.Xpm({type:O,selectors:[["erz-backlink"]],inputs:{routerLink:"routerLink",queryParams:"queryParams"},ngContentSelectors:L,decls:8,vars:5,consts:[[1,"d-flex","align-items-start","justify-content-between","w-100","mb-3"],[3,"routerLink","queryParams"],[1,"material-icons"],[1,"label"]],template:function(P,B){1&P&&(t.F$t(),t.TgZ(0,"div",0)(1,"a",1)(2,"span",2),t._uU(3,"arrow_back"),t.qZA(),t.TgZ(4,"span",3),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.Hsn(7),t.qZA()),2&P&&(t.xp6(1),t.Q6J("routerLink",B.routerLink)("queryParams",B.queryParams),t.xp6(4),t.Oqu(t.lcZ(6,3,"global.back")))},dependencies:[d.rH,w.X$],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{height:calc(var(--bs-body-font-size) * var(--bs-body-line-height))}a[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.3rem}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{text-decoration:none}a[_ngcontent-%COMP%]:hover .label[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:focus .label[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-color:#ea161f}"]})}return O})()},917:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>ae});var t=a(6223),d=a(5619),w=a(8645),L=a(2572),h=a(7398),O=a(7081),R=a(8180),F=a(9773),P=a(2181),B=a(4664),$=a(4716),f=a(3942),j=a(1257),M=a(4141),q=a(1140),ie=a(6163),k=a(5879),Te=a(1523),Se=a(6869),ye=a(9515),ce=a(8393),_e=a(5001),ve=a(905),xe=a(6023),be=a(6814),ke=a(6567);const vt=function(fe){return{count:fe}};function rt(fe,De){if(1&fe&&(k.TgZ(0,"div",4),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.erzLet;k.xp6(1),k.hij(" ",k.xi3(2,1,1===je?"open-absences.edit.lesson-selected":"open-absences.edit.lessons-selected",k.VKq(4,vt,je))," ")}}function Mt(fe,De){if(1&fe&&(k.TgZ(0,"div",19),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function qe(fe,De){if(1&fe&&(k.TgZ(0,"div",27),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function _t(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,qe,3,4,"div",26),k.ALo(2,"async"),k.BQk()),2&fe){const je=k.oxw(5);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,1,je.absenceTypeIdErrors$))}}function $e(fe,De){if(1&fe&&(k.TgZ(0,"div",23),k._UZ(1,"input",24),k.ALo(2,"async"),k.TgZ(3,"label",25),k._uU(4),k.qZA(),k.YNc(5,_t,3,3,"ng-container",11),k.ALo(6,"async"),k.qZA()),2&fe){const je=De.$implicit,Xe=De.index,tt=k.oxw(4);let wt;k.xp6(1),k.ekj("is-invalid",k.lcZ(2,7,tt.absenceTypeIdErrors$).length>0),k.Q6J("id","absence-type-"+Xe)("value",je.Id),k.xp6(2),k.Q6J("for","absence-type-"+Xe),k.xp6(1),k.hij(" ",je.Designation," "),k.xp6(1),k.Q6J("ngIf",(null==(wt=k.lcZ(6,9,tt.absenceTypes$))?null:wt.length)-1===Xe)}}const Ee=function(){return["/edit-absences"]};function Ze(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,$e,7,11,"div",20),k.ALo(2,"async"),k.TgZ(3,"div",21),k._uU(4),k.ALo(5,"translate"),k.TgZ(6,"a",22),k._uU(7),k.ALo(8,"translate"),k.qZA()(),k.BQk()),2&fe){const je=k.oxw(3);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,4,je.absenceTypes$)),k.xp6(3),k.hij(" ",k.lcZ(5,6,"open-absences.edit.remark")," "),k.xp6(2),k.Q6J("routerLink",k.DdM(10,Ee)),k.xp6(1),k.hij(" ",k.lcZ(8,8,"edit-absences.title")," ")}}function J(fe,De){1&fe&&(k.TgZ(0,"div",28)(1,"span",29),k._uU(2,"Loading..."),k.qZA()())}function Q(fe,De){if(1&fe){const je=k.EpF();k.TgZ(0,"form",5),k.NdJ("ngSubmit",function(){k.CHM(je);const tt=k.oxw(2);return k.KtG(tt.onSubmit())}),k.YNc(1,Mt,3,4,"div",6),k.ALo(2,"async"),k.TgZ(3,"div",7)(4,"div",8),k._UZ(5,"input",9),k.TgZ(6,"label",10),k._uU(7),k.qZA(),k.YNc(8,Ze,9,11,"ng-container",11),k.qZA(),k.TgZ(9,"div",12),k._UZ(10,"input",13),k.TgZ(11,"label",14),k._uU(12),k.qZA()()(),k.TgZ(13,"div",15)(14,"button",16),k.NdJ("click",function(){k.CHM(je);const tt=k.oxw(2);return k.KtG(tt.cancel())}),k.ALo(15,"async"),k._uU(16),k.ALo(17,"translate"),k.qZA(),k.TgZ(18,"button",17),k.ALo(19,"async"),k._uU(20),k.ALo(21,"translate"),k.YNc(22,J,3,0,"div",18),k.ALo(23,"async"),k.qZA()()()}if(2&fe){const je=k.oxw().erzLet,Xe=k.oxw();k.Q6J("formGroup",je.formGroup),k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,12,Xe.formErrors$)),k.xp6(4),k.Q6J("value",je.excusedState.Key),k.xp6(2),k.hij(" ",je.excusedState.Value," "),k.xp6(1),k.Q6J("ngIf",je.formGroup.get("absenceTypeId")),k.xp6(2),k.Q6J("value",je.unexcusedState.Key),k.xp6(2),k.hij(" ",je.unexcusedState.Value," "),k.xp6(2),k.Q6J("disabled",k.lcZ(15,14,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(17,16,"open-absences.edit.cancel")," "),k.xp6(2),k.Q6J("disabled",k.lcZ(19,18,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(21,20,"open-absences.edit.save")," "),k.xp6(2),k.Q6J("ngIf",k.lcZ(23,22,Xe.saving$))}}function oe(fe,De){if(1&fe&&(k.TgZ(0,"div",1)(1,"h1"),k._uU(2),k.ALo(3,"translate"),k.qZA(),k.YNc(4,rt,3,6,"div",2),k.ALo(5,"async"),k.YNc(6,Q,24,24,"form",3),k.qZA()),2&fe){const je=De.erzLet,Xe=k.oxw();k.xp6(2),k.Oqu(k.lcZ(3,3,"open-absences.edit.title")),k.xp6(2),k.Q6J("erzLet",k.lcZ(5,5,Xe.getSelectedCount())),k.xp6(2),k.Q6J("ngIf",je.formGroup&&je.unexcusedState&&je.excusedState)}}const se=function(fe,De,je){return{formGroup:fe,unexcusedState:De,excusedState:je}};let ae=(()=>{class fe{constructor(je,Xe,tt,wt,It,Je,Tt,et,Pt,Zt,dn){this.fb=je,this.router=Xe,this.activatedRoute=tt,this.toastService=wt,this.translate=It,this.selectionService=Je,this.dropDownItemsService=Tt,this.presenceTypesService=et,this.updateService=Pt,this.settings=Zt,this.openAbsencesEditService=dn,this.formGroup$=this.selectionService.selectedWithoutPresenceType$.pipe((0,h.U)(this.createFormGroup.bind(this)),(0,O.d)(1)),this.saving$=new d.X(!1),this.submitted$=new d.X(!1),this.formErrors$=(0,j.Z6)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,j.Z6)(this.formGroup$,this.submitted$,"absenceTypeId"),this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,O.d)(1)),this.excusedState$=(0,q.q)(this.confirmationStates$,this.settings.excusedAbsenceStateId),this.unexcusedState$=(0,q.q)(this.confirmationStates$,this.settings.unexcusedAbsenceStateId),this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.destroy$=new w.x}ngOnInit(){this.selectionService.selectedIds$.pipe((0,R.q)(1)).subscribe(je=>{0===je.length&&this.navigateBack()}),(0,j.ZX)(this.formGroup$,"confirmationValue").pipe((0,F.R)(this.destroy$)).subscribe(je=>{"number"==typeof je&&this.updateAbsenceTypeIdDisabled(je)}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,P.h)(f.Nf)),this.saving$]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe,tt])=>{tt?(je.disable(),Xe.disable()):(je.enable(),this.updateAbsenceTypeIdDisabled(je.value))}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe])=>je.setValue(Xe.Key))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,R.q)(1)).subscribe(je=>{if(je.valid){const{confirmationValue:Xe,absenceTypeId:tt}=je.value;this.save(Xe,tt)}})}cancel(){this.navigateBack()}getSelectedCount(){return this.selectionService.selectedLessons$.pipe((0,h.U)(je=>je.length))}createFormGroup(je){return this.fb.group(je.length>0?{confirmationValue:[null],absenceTypeId:[null,t.kI.required]}:{confirmationValue:[null]})}updateAbsenceTypeIdDisabled(je){(0,L.a)([(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,R.q)(1),(0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).subscribe(([Xe,tt])=>{je===tt.Key?Xe.enable():Xe.disable()})}save(je,Xe){this.saving$.next(!0),(0,L.a)([this.selectionService.selectedIds$.pipe((0,R.q)(1)),this.unexcusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,B.w)(([tt,wt])=>(0,L.a)(tt.map(({lessonIds:It,personId:Je,presenceTypeId:Tt})=>this.updateService.confirmLessonPresences(It,[Je],this.getNewAbsenceTypeId(Tt,je,Number(wt.Key),Xe),je)))),(0,$.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}getNewAbsenceTypeId(je,Xe,tt,wt){if(!je)throw new Error("absence type id cannot be null");return Xe===tt?this.settings.absencePresenceTypeId:je===this.settings.absencePresenceTypeId?wt:je}onSaveSuccess(){this.openAbsencesEditService?.updateAfterConfirm&&this.openAbsencesEditService.updateAfterConfirm(),this.toastService.success(this.translate.instant("open-absences.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(this.openAbsencesEditService?.confirmBackLink||[".."],{relativeTo:this.activatedRoute,queryParams:this.openAbsencesEditService?.confirmBackLinkParams})}static#e=this.\u0275fac=function(Xe){return new(Xe||fe)(k.Y36(t.QS),k.Y36(Te.F0),k.Y36(Te.gz),k.Y36(Se.k),k.Y36(ye.sK),k.Y36(ce.o),k.Y36(_e.R),k.Y36(ve.c),k.Y36(xe.O),k.Y36(M.L6),k.Y36(ie.m,8))};static#t=this.\u0275cmp=k.Xpm({type:fe,selectors:[["erz-confirm-absences"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[3,"formGroup","ngSubmit"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],[1,"form-check","mt-2","mb-3","pb-3","border-bottom"],["type","radio","id","excused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","excused",1,"form-check-label"],[4,"ngIf"],[1,"form-check","mt-3","mb-3","pb-3","border-bottom"],["type","radio","id","unexcused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","unexcused",1,"form-check-label"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],["class","form-check my-3",4,"ngFor","ngForOf"],[1,"remark"],[3,"routerLink"],[1,"form-check","my-3"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(Xe,tt){1&Xe&&(k.YNc(0,oe,7,7,"div",0),k.ALo(1,"async"),k.ALo(2,"async"),k.ALo(3,"async")),2&Xe&&k.Q6J("erzLet",k.kEZ(7,se,k.lcZ(1,1,tt.formGroup$),k.lcZ(2,3,tt.unexcusedState$),k.lcZ(3,5,tt.excusedState$)))},dependencies:[be.sg,be.O5,t._Y,t.Fj,t._,t.JJ,t.JL,t.sg,t.u,Te.rH,ke.e,be.Ov,ye.X$],changeDetection:0})}return fe})()},1133:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(5879),d=a(902),w=a(6223),L=a(253),h=a(9515);let O=(()=>{class R{constructor(){this.value=null,this.placeholder="shared.date-select.default-placeholder",this.minDate=null,this.valueChange=new t.vpe,this.componentId=(0,d.Z)("erz-date-select-")}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275cmp=t.Xpm({type:R,selectors:[["erz-date-select"]],inputs:{value:"value",placeholder:"placeholder",minDate:"minDate"},outputs:{valueChange:"valueChange"},decls:8,vars:10,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text","ngbDatepicker","",1,"form-control",3,"minDate","ngModel","click","ngModelChange"],["dp","ngbDatepicker"]],template:function(B,$){if(1&B){const f=t.EpF();t.TgZ(0,"div",0)(1,"span",1)(2,"i",2),t._uU(3,"calendar_today"),t.qZA()(),t.TgZ(4,"input",3,4),t.NdJ("click",function(){t.CHM(f);const M=t.MAs(5);return t.KtG(M.toggle())})("ngModelChange",function(M){return $.valueChange.emit(M)}),t.ALo(6,"translate"),t.ALo(7,"translate"),t.qZA()()}2&B&&(t.xp6(1),t.Q6J("id",$.componentId),t.xp6(3),t.Q6J("minDate",$.minDate)("ngModel",$.value),t.uIk("placeholder",t.lcZ(6,6,$.placeholder))("aria-label",t.lcZ(7,8,$.placeholder))("aria-describedby",$.componentId))},dependencies:[w.Fj,w.JJ,w.On,L.J4,h.X$]})}return R})()},6001:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(5879),d=a(6814),w=a(6223),L=a(363),h=a(9515);function O($,f){if(1&$){const j=t.EpF();t.TgZ(0,"div",5),t._uU(1),t.TgZ(2,"span",6),t.NdJ("click",function(){const ie=t.CHM(j).$implicit,k=t.oxw().clear;return t.KtG(k(ie))}),t._uU(3,"\xd7"),t.qZA()()}if(2&$){const j=f.$implicit;t.xp6(1),t.hij(" ",j.Value," ")}}function R($,f){1&$&&t.YNc(0,O,4,1,"div",4),2&$&&t.Q6J("ngForOf",f.items)}function F($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,M=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",M.selected),t.xp6(1),t.hij(" ",j.Group," ")}}function P($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,M=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",M.selected),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.values=[],this.valuesChange=new t.vpe}itemsChanged(){this.valuesChange.emit(this.values)}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-multiselect"]],inputs:{options:"options",values:"values"},outputs:{valuesChange:"valuesChange"},decls:5,vars:10,consts:[["groupBy","Group","bindValue","Key","bindLabel","Value","dropdownPosition","bottom",1,"multiselect",3,"items","multiple","selectableGroup","selectableGroupAsModel","closeOnSelect","ngModel","placeholder","clearable","ngModelChange","click","clear"],["ng-multi-label-tmp",""],["ng-optgroup-tmp",""],["ng-option-tmp",""],["class","ng-value",4,"ngFor","ngForOf"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","right",3,"click"],["type","checkbox",3,"id","ngModel"]],template:function(M,q){1&M&&(t.TgZ(0,"ng-select",0),t.NdJ("ngModelChange",function(k){return q.values=k})("click",function(){return q.itemsChanged()})("clear",function(){return q.itemsChanged()}),t.ALo(1,"translate"),t.YNc(2,R,1,1,"ng-template",1),t.YNc(3,F,2,3,"ng-template",2),t.YNc(4,P,2,3,"ng-template",3),t.qZA()),2&M&&(t.s9C("placeholder",t.lcZ(1,8,"shared.select.empty-option")),t.Q6J("items",q.options)("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("closeOnSelect",!1)("ngModel",q.values)("clearable",!0))},dependencies:[d.sg,w.Wl,w.JJ,w.On,L.w9,L.C5,L.ir,L.zB,h.X$]})}return $})()},4229:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>B});var t=a(5879),d=a(5619),w=a(2572),L=a(7398),h=a(6814),O=a(6223),R=a(9515);function F($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$){const j=t.oxw();t.Q6J("ngValue",null),t.xp6(1),t.hij(" ",t.lcZ(2,2,j.emptyLabel)," ")}}function P($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.qZA()),2&$){const j=f.$implicit;t.Q6J("ngValue",j),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.valueChange=new t.vpe,this.options$=new d.X([]),this.rawValue$=new d.X(null),this.value$=(0,w.a)([this.rawValue$,this.options$]).pipe((0,L.U)(([j,M])=>M&&M.find(q=>q.Key===j)||null))}ngOnChanges(j){j.value&&this.rawValue$.next(j.value.currentValue),j.options&&this.options$.next(j.options.currentValue)}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},features:[t.TTD],decls:5,vars:7,consts:[[1,"form-select",3,"tabindex","disabled","ngModel","ngModelChange"],[3,"ngValue",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(M,q){1&M&&(t.TgZ(0,"select",0),t.NdJ("ngModelChange",function(k){return q.valueChange.emit(k&&k.Key)}),t.ALo(1,"async"),t.YNc(2,F,3,4,"option",1),t.YNc(3,P,2,2,"option",2),t._uU(4," >\n"),t.qZA()),2&M&&(t.s9C("tabindex",q.tabindex),t.Q6J("disabled",q.disabled)("ngModel",t.lcZ(1,5,q.value$)),t.xp6(2),t.Q6J("ngIf",q.allowEmpty),t.xp6(1),t.Q6J("ngForOf",q.options))},dependencies:[h.sg,h.O5,O.YN,O.Kr,O.EJ,O.JJ,O.On,h.Ov,R.X$]})}return $})()},59:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>d});var t=a(5879);let d=(()=>{class w{constructor(){}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275cmp=t.Xpm({type:w,selectors:[["erz-spinner"]],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(O,R){1&O&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2),t._uU(3,"Loading..."),t.qZA()()())},styles:[".spinner-container[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]:not(.inline) .spinner-container[_ngcontent-%COMP%]{top:-131px;min-height:200px}.spinner-border[_ngcontent-%COMP%]{width:4rem;height:4rem}[_nghost-%COMP%]:not(.inline) .spinner-border[_ngcontent-%COMP%]{margin-top:100px}.small[_nghost-%COMP%] .spinner-border[_ngcontent-%COMP%]{width:2rem;height:2rem;--bs-spinner-vertical-align: -.2em;--bs-spinner-border-width: .15em}"]})}return w})()},3388:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>It});var t=a(8645),d=a(9773),w=a(7328),L=a(2572),h=a(2096),O=a(6232),R=a(4664),F=a(7921),P=a(3020),B=a(7398),$=a(4141),f=a(5879),j=a(7575),M=a(905),q=a(6869),ie=a(9515);let k=(()=>{class Je{constructor(et,Pt,Zt,dn,Rn){this.settings=et,this.lessonPresencesService=Pt,this.presenceTypesService=Zt,this.toastService=dn,this.translate=Rn,this.studentId$=new w.t(1),this.checkableAbsences$=this.getAbsences(this.loadCheckableAbsences.bind(this)),this.openAbsences$=this.getAbsences(this.loadOpenAbsences.bind(this)),this.excusedAbsences$=this.getAbsences(this.loadExcusedAbsences.bind(this)),this.unexcusedAbsences$=this.getAbsences(this.loadUnexcusedAbsences.bind(this)),this.incidents$=this.getAbsences(this.loadIncidents.bind(this)),this.halfDays$=this.getAbsences(this.loadHalfDays.bind(this)),this.counts$=this.getCounts()}setStudentId(et){this.studentId$.next(et)}getAbsences(et){return this.studentId$.pipe((0,R.w)(et),(0,F.O)(null),(0,P.B)({connector:()=>new w.t(1)}))}getCounts(){return this.studentId$.pipe((0,R.w)(et=>(0,L.a)([this.loadStatistics(et).pipe((0,F.O)(null)),this.openAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null)),this.checkableAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null))])),(0,B.U)(([et,Pt,Zt])=>({openAbsences:Pt,checkableAbsences:Zt,excusedAbsences:et?.TotalAbsencesValidExcuse??null,unexcusedAbsences:et?.TotalAbsencesWithoutExcuse??null,incidents:et?.TotalIncidents??null,halfDays:et?.TotalHalfDays??null})))}loadStatistics(et){return this.lessonPresencesService.getStatistics({student:et,educationalEvent:null,studyClass:null},null,0).pipe((0,R.w)(({entries:Pt})=>Pt.length>0?(0,h.of)(Pt[0]):(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),O.E)))}loadOpenAbsences(et){return this.lessonPresencesService.getListOfUnconfirmed(this.getBaseParams(et))}loadCheckableAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.checkableAbsenceStateId}`}})}loadExcusedAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.excusedAbsenceStateId}`}})}loadUnexcusedAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.unexcusedAbsenceStateId}`}})}loadIncidents(et){return this.presenceTypesService.incidentTypes$.pipe((0,B.U)(Pt=>({...this.getBaseParams(et),"filter.TypeRef":`;${Pt.map(Zt=>Zt.Id).join(";")}`})),(0,R.w)(Pt=>this.lessonPresencesService.getList({params:Pt})))}loadHalfDays(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.TypeRef":`=${this.settings.halfDayPresenceTypeId}`}})}getBaseParams(et){return{sort:"LessonDateTimeFrom.asc","filter.StudentRef":`=${et}`}}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.LFG($.L6),f.LFG(j.q),f.LFG(M.c),f.LFG(q.k),f.LFG(ie.sK))};static#t=this.\u0275prov=f.Yz7({token:Je,factory:Je.\u0275fac})}return Je})();var Te=a(4409),Se=a(8393),ye=a(6814),ce=a(253),_e=a(6567),ve=a(8898),xe=a(3036);function be(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.checkableAbsences,")")}}function ke(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("checkable-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,be,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.checkable-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.checkableAbsences)}}function vt(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.checkableAbsences$)}}function rt(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.openAbsences,")")}}function Mt(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("open-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,rt,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.open-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.openAbsences)}}function qe(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",13),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.openAbsences$)("selectionService",et.absencesSelectionService)}}function _t(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.excusedAbsences,")")}}function $e(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("excused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,_t,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.excused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.excusedAbsences)}}function Ee(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.excusedAbsences$)}}function Ze(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.unexcusedAbsences,")")}}function J(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("unexcused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,Ze,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.unexcused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.unexcusedAbsences)}}function Q(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function oe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.incidents,")")}}function se(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("incidents"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,oe,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.incidents")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.incidents)}}function ae(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.incidents$)}}function fe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(3).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.halfDays,")")}}function De(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw(2);const Zt=f.MAs(2);return f.KtG(Zt.toggle("half-days"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,fe,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw(2).erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.half-days")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.halfDays)}}function je(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const et=f.oxw(3);f.Q6J("absences$",et.absencesService.halfDays$)("displayPresenceType",!1)}}function Xe(Je,Tt){1&Je&&(f.TgZ(0,"ngb-panel",15),f.YNc(1,De,4,5,"ng-template",3),f.YNc(2,je,1,2,"ng-template",4),f.qZA())}function tt(Je,Tt){if(1&Je&&(f.ynx(0),f.TgZ(1,"ngb-accordion",null,1)(3,"ngb-panel",2),f.YNc(4,ke,4,5,"ng-template",3),f.YNc(5,vt,1,1,"ng-template",4),f.qZA(),f.TgZ(6,"ngb-panel",5),f.YNc(7,Mt,4,5,"ng-template",3),f.YNc(8,qe,1,2,"ng-template",4),f.qZA(),f.TgZ(9,"ngb-panel",6),f.YNc(10,$e,4,5,"ng-template",3),f.YNc(11,Ee,1,1,"ng-template",4),f.qZA(),f.TgZ(12,"ngb-panel",7),f.YNc(13,J,4,5,"ng-template",3),f.YNc(14,Q,1,2,"ng-template",4),f.qZA(),f.TgZ(15,"ngb-panel",8),f.YNc(16,se,4,5,"ng-template",3),f.YNc(17,ae,1,1,"ng-template",4),f.qZA(),f.YNc(18,Xe,3,0,"ngb-panel",9),f.ALo(19,"async"),f.qZA(),f.BQk()),2&Je){const et=f.oxw();f.xp6(18),f.Q6J("ngIf",f.lcZ(19,1,et.halfDayActive$))}}const wt=function(Je){return{absenceCounts:Je}};let It=(()=>{class Je{constructor(et,Pt,Zt,dn){this.state=et,this.presenceTypesService=Pt,this.absencesService=Zt,this.absencesSelectionService=dn,this.halfDayActive$=this.presenceTypesService.halfDayActive$,this.destroy$=new t.x,this.state.currentDossier$.next("absences")}ngOnInit(){this.state.studentId$.pipe((0,d.R)(this.destroy$)).subscribe(et=>this.absencesService.setStudentId(et))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.Y36(Te.j),f.Y36(M.c),f.Y36(k),f.Y36(Se.o))};static#t=this.\u0275cmp=f.Xpm({type:Je,selectors:[["erz-dossier-absences"]],features:[f._Bn([k])],decls:2,vars:5,consts:[[4,"erzLet"],["acc","ngbAccordion"],["id","checkable-absences"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","open-absences"],["id","excused-absences"],["id","unexcused-absences"],["id","incidents"],["id","half-days",4,"ngIf"],[3,"opened","click"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService"],[3,"absences$","displayPresenceType"],["id","half-days"]],template:function(Pt,Zt){1&Pt&&(f.YNc(0,tt,20,3,"ng-container",0),f.ALo(1,"async")),2&Pt&&f.Q6J("erzLet",f.VKq(3,wt,f.lcZ(1,1,Zt.absencesService.counts$)))},dependencies:[ye.O5,ce.gY,ce.Gk,ce.gW,ce.k9,_e.e,ve.H,xe.u,ye.Ov,ie.X$],changeDetection:0})}return Je})()},8705:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ce});var t=a(5879),d=a(4409),w=a(6814),L=a(253),h=a(6567),O=a(8898),R=a(1442),F=a(9949),P=a(8075),B=a(9515);function $(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe),t.oxw(2);const ke=t.MAs(3);return t.KtG(ke.toggle("legal-representatives"))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&_e&&(t.Q6J("opened",ve.opened),t.xp6(1),t.hij(" ",t.lcZ(2,2,"shared.profile.legal-representation")," "))}function f(_e,ve){1&_e&&t._UZ(0,"erz-student-dossier-legal-representative",10),2&_e&&t.Q6J("person",ve.$implicit)}function j(_e,ve){if(1&_e&&t.YNc(0,f,1,1,"erz-student-dossier-legal-representative",9),2&_e){const xe=t.oxw(2).erzLet;t.Q6J("ngForOf",xe.profile.legalRepresentativePersons)}}function M(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",5),t.YNc(1,$,3,4,"ng-template",6),t.YNc(2,j,1,1,"ng-template",7),t.qZA())}function q(_e,ve){if(1&_e&&(t.ynx(0),t._uU(1),t.BQk()),2&_e){const xe=t.oxw(2).index;t.xp6(1),t.Oqu(xe+1)}}function ie(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe);const ke=t.oxw().index;t.oxw();const vt=t.MAs(3);return t.KtG(vt.toggle("apprenticeship-company-"+ke))}),t._uU(1),t.ALo(2,"translate"),t.YNc(3,q,2,1,"ng-container",12),t.qZA()}if(2&_e){const xe=ve.opened,be=t.oxw(2).erzLet;t.Q6J("opened",xe),t.xp6(1),t.hij(" ",t.lcZ(2,3,"shared.profile.apprenticeship-company")," "),t.xp6(2),t.Q6J("ngIf",be.profile.apprenticeshipCompanies.length>1)}}function k(_e,ve){if(1&_e&&t._UZ(0,"erz-student-dossier-apprenticeship-company",13),2&_e){const xe=t.oxw().$implicit;t.Q6J("company",xe)}}function Te(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",11),t.YNc(1,ie,4,5,"ng-template",6),t.YNc(2,k,1,1,"ng-template",7),t.qZA()),2&_e&&t.Q6J("id","apprenticeship-company-"+ve.index)}function Se(_e,ve){if(1&_e&&(t.ynx(0),t._UZ(1,"erz-student-dossier-address",1),t.TgZ(2,"ngb-accordion",null,2),t.YNc(4,M,3,0,"ngb-panel",3),t.YNc(5,Te,3,1,"ngb-panel",4),t.qZA(),t.BQk()),2&_e){const xe=ve.erzLet;t.xp6(1),t.Q6J("student",xe.profile.student),t.xp6(3),t.Q6J("ngIf",xe.profile.legalRepresentativePersons.length>0),t.xp6(1),t.Q6J("ngForOf",xe.profile.apprenticeshipCompanies)}}const ye=function(_e){return{profile:_e}};let ce=(()=>{class _e{constructor(xe){this.state=xe,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(t.Y36(d.j))};static#t=this.\u0275cmp=t.Xpm({type:_e,selectors:[["erz-dossier-addresses"]],decls:2,vars:5,consts:[[4,"erzLet"],[1,"profile-entry",3,"student"],["acc","ngbAccordion"],["id","legal-representatives",4,"ngIf"],[3,"id",4,"ngFor","ngForOf"],["id","legal-representatives"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"id"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(be,ke){1&be&&(t.YNc(0,Se,6,3,"ng-container",0),t.ALo(1,"async")),2&be&&t.Q6J("erzLet",t.VKq(3,ye,t.lcZ(1,1,ke.state.profile$)))},dependencies:[w.sg,w.O5,L.gY,L.Gk,L.gW,L.k9,h.e,O.H,R.k,F.O,P.g,w.Ov,B.X$],styles:[".profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}"],changeDetection:0})}return _e})()},5841:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>B});var t=a(8645),d=a(3986),w=a(5879),L=a(8405);function h($,f){if(1&$){const j=w.EpF();w.TgZ(0,"erz-student-dossier-entry-header",7),w.NdJ("click",function(){w.CHM(j);const q=w.oxw().index,ie=w.MAs(2);return w.KtG(ie.toggle("course-"+q))}),w._UZ(1,"erz-dossier-grades-course-header",8),w.qZA()}if(2&$){const j=f.opened,M=w.oxw().$implicit;w.Q6J("opened",j),w.xp6(1),w.Q6J("designation",M.course.Designation)("finalGrade",M.finalGrade)("grading",M.grading)("gradingScale",M.gradingScale)("average",M.average)}}function O($,f){if(1&$&&w._UZ(0,"erz-dossier-course-tests",9),2&$){const j=w.oxw().$implicit,M=w.oxw(2);w.Q6J("decoratedCourse",j)("studentId",M.studentId)("gradingScales",M.gradingScales)("isEditable",M.isEditable)}}function R($,f){if(1&$&&(w.TgZ(0,"div")(1,"ngb-accordion",null,3)(3,"ngb-panel",4),w.YNc(4,h,2,6,"ng-template",5),w.YNc(5,O,1,4,"ng-template",6),w.qZA()()()),2&$){const j=f.index;w.xp6(3),w.Q6J("id","course-"+j)}}function F($,f){if(1&$&&(w.ynx(0),w.YNc(1,R,6,1,"div",2),w.ALo(2,"async"),w.BQk()),2&$){const j=w.oxw();w.xp6(1),w.Q6J("ngForOf",w.lcZ(2,2,j.decoratedCoursesSubject$))("ngForTrackBy",j.trackByCourseId)}}function P($,f){1&$&&(w.TgZ(0,"p",10),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"dossier.no-courses")," "))}let B=(()=>{class ${constructor(j){this.dossierGradeService=j,this.isEditable=!0,this.decoratedCoursesSubject$=new t.x}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}trackByCourseId(j,M){return M.course.Id}decorateCourses(){return this.courses?.map(j=>{const M=this.dossierGradeService.getFinalGradeForStudent(j,this.studentId),q=this.dossierGradeService.getGradesForStudent(j,this.studentId,this.gradingScales);return{course:j,finalGrade:M,grading:this.dossierGradeService.getGradingForStudent(j,this.studentId),gradingScale:this.dossierGradeService.getGradingScaleOfCourse(j,this.gradingScales),average:M?.AverageTestResult||(0,d.S)(q)}})}static#e=this.\u0275fac=function(M){return new(M||$)(w.Y36(L.S))};static#t=this.\u0275cmp=w.Xpm({type:$,selectors:[["erz-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},features:[w.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noCourses",""],[4,"ngFor","ngForOf","ngForTrackBy"],["acc","ngbAccordion"],[3,"id"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],[3,"designation","finalGrade","grading","gradingScale","average"],[3,"decoratedCourse","studentId","gradingScales","isEditable"],["data-testid","message-no-courses",1,"py-3"]],template:function(M,q){if(1&M&&(w.YNc(0,F,3,4,"ng-container",0),w.YNc(1,P,3,3,"ng-template",null,1,w.W1O)),2&M){const ie=w.MAs(2);w.Q6J("ngIf",(null==q.courses?null:q.courses.length)>0)("ngIfElse",ie)}}})}return $})()},9608:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>F});var t=a(5879),d=a(6814),w=a(1523),L=a(2628),h=a(7625);function O(P,B){if(1&P&&(t.TgZ(0,"div",6)(1,"span",7),t._uU(2),t.ALo(3,"date"),t.qZA(),t.TgZ(4,"span",8),t._uU(5),t.qZA()()),2&P){const $=t.oxw();t.xp6(2),t.Oqu(t.xi3(3,2,$.student.Birthdate,"dd.MM.yyyy")),t.xp6(3),t.hij("(",$.student.Gender,")")}}const R=["*"];let F=(()=>{class P{constructor(){this.link="/"}static#e=this.\u0275fac=function(f){return new(f||P)};static#t=this.\u0275cmp=t.Xpm({type:P,selectors:[["erz-student-backlink"]],inputs:{link:"link",queryParams:"queryParams",studentId:"studentId",studentName:"studentName",student:"student"},ngContentSelectors:R,decls:9,vars:5,consts:[[1,"d-flex","flex-column","w-100"],[3,"routerLink","queryParams"],[1,"d-flex","flex-row","align-items-start"],[1,"me-3","medium",3,"studentId"],[1,"d-flex","flex-column"],["class","additional-info",4,"ngIf"],[1,"additional-info"],[1,"birthday"],[1,"gender"]],template:function(f,j){1&f&&(t.F$t(),t.TgZ(0,"div",0)(1,"erz-backlink",1),t.Hsn(2),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"erz-avatar",3),t.TgZ(5,"div",4)(6,"h1"),t._uU(7),t.qZA(),t.YNc(8,O,6,5,"div",5),t.qZA()()()),2&f&&(t.xp6(1),t.Q6J("routerLink",j.link)("queryParams",j.queryParams),t.xp6(3),t.Q6J("studentId",j.studentId),t.xp6(3),t.Oqu(j.student?j.student.FullName:j.studentName),t.xp6(1),t.Q6J("ngIf",j.student))},dependencies:[d.O5,w.rH,L.A,h.I,d.uU],styles:["[_nghost-%COMP%]{display:flex;align-items:center;width:100%}h1[_ngcontent-%COMP%]{margin:-3px 0 0;display:flex;align-items:baseline;line-height:1}.additional-info[_ngcontent-%COMP%]{color:#adb5bd}.gender[_ngcontent-%COMP%]{margin-left:.8ch}"],changeDetection:0})}return P})()},3036:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>oe});var t=a(7328),d=a(5619),w=a(2572),L=a(2096),h=a(2689),O=a(7921),R=a(7081),F=a(7398),P=a(2181),B=a(4664),$=a(8180),f=a(3942),j=a(6100),M=a(5879),q=a(905),ie=a(6814),k=a(1523),Te=a(6567),Se=a(59),ye=a(9515),ce=a(238);const _e=["checkbox"];function ve(se,ae){if(1&se&&(M.TgZ(0,"a",16)(1,"i",12),M._uU(2,"description"),M.qZA()()),2&se){const fe=M.oxw(4);M.ekj("disabled",!fe.reportUrl),M.Q6J("href",fe.reportUrl,M.LSH)}}function xe(se,ae){if(1&se&&(M.TgZ(0,"a",17),M.ALo(1,"async"),M.TgZ(2,"i",12),M._uU(3,"mail"),M.qZA()()),2&se){const fe=M.oxw(4);M.MGl("href","mailto:",M.lcZ(1,1,fe.mailTo$),"",M.LSH)}}function be(se,ae){if(1&se&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&se){const fe=M.oxw(4);M.xp6(1),M.hij(" ",fe.defaultAbsenceSelectionMessage," ")}}function ke(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",5),M.NdJ("click",function(je){M.CHM(fe);const Xe=M.MAs(3),tt=M.oxw(3);return M.KtG(tt.onRowClick(je,Xe))}),M.TgZ(1,"div",6)(2,"input",7,8),M.NdJ("change",function(je){M.CHM(fe);const Xe=M.oxw(3);return M.KtG(Xe.toggleAll(je.target.checked))}),M.ALo(4,"async"),M.qZA()(),M.TgZ(5,"div",9),M._uU(6),M.ALo(7,"translate"),M.qZA(),M.TgZ(8,"div",10)(9,"a",11),M.ALo(10,"async"),M.TgZ(11,"i",12),M._uU(12,"edit"),M.qZA()(),M.YNc(13,ve,3,3,"a",13),M.YNc(14,xe,4,3,"a",14),M.qZA(),M.YNc(15,be,2,1,"div",15),M.ALo(16,"async"),M.qZA()}if(2&se){const fe=M.oxw(3);let De;M.xp6(2),M.Q6J("checked",M.lcZ(4,8,fe.allSelected$)),M.xp6(4),M.Oqu(M.lcZ(7,10,"open-absences.detail.all")),M.xp6(3),M.ekj("disabled",0===M.lcZ(10,12,fe.selectionService.selection$).length),M.s9C("routerLink",fe.confirmLink),M.xp6(4),M.Q6J("ngIf",fe.reportAvailable),M.xp6(1),M.Q6J("ngIf",fe.displayEmail),M.xp6(1),M.Q6J("ngIf",fe.defaultAbsenceSelectionMessage&&(null==(De=M.lcZ(16,14,fe.selectionService.selectedWithoutPresenceType$))?null:De.length)>0)}}function vt(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",6)(1,"input",7,29),M.NdJ("change",function(){M.CHM(fe);const je=M.oxw().$implicit,Xe=M.oxw(3);return M.KtG(Xe.selectionService.toggle(je))}),M.ALo(3,"async"),M.qZA()()}if(2&se){const fe=M.oxw().$implicit,De=M.oxw(3);M.xp6(1),M.Q6J("checked",M.lcZ(3,1,De.selectionService.isSelected$(fe)))}}function rt(se,ae){if(1&se&&(M.ynx(0),M._uU(1),M.BQk()),2&se){const fe=M.oxw().$implicit;M.xp6(1),M.hij(", ",fe.StudyClassNumber,"")}}function Mt(se,ae){if(1&se&&(M.TgZ(0,"div",32),M._uU(1),M.qZA()),2&se){const fe=M.oxw().erzLet;M.xp6(1),M.hij(" ",fe," ")}}function qe(se,ae){1&se&&(M.TgZ(0,"div",33),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&se&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"my-absences.show.confirm-presence-type")," "))}function _t(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,Mt,2,1,"div",30),M.YNc(2,qe,3,3,"div",31),M.BQk()),2&se){const fe=ae.erzLet,De=M.oxw(4);M.xp6(1),M.Q6J("ngIf",fe),M.xp6(1),M.Q6J("ngIf",De.displayPresenceType&&!fe&&De.defaultAbsenceSelectionMessage)}}function $e(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",19),M.NdJ("click",function(je){const tt=M.CHM(fe).index,wt=M.oxw(3);return M.KtG(wt.onRowClick(je,tt))}),M.YNc(1,vt,4,3,"div",20),M.ALo(2,"async"),M.TgZ(3,"div",21),M._uU(4),M.YNc(5,rt,2,1,"ng-container",22),M.qZA(),M.TgZ(6,"div",23),M._uU(7),M.ALo(8,"date"),M.ALo(9,"date"),M.qZA(),M.TgZ(10,"div",24),M._uU(11),M.qZA(),M.YNc(12,_t,3,2,"ng-container",25),M.ALo(13,"async"),M.TgZ(14,"div",26),M._uU(15),M.ALo(16,"date"),M.qZA(),M.TgZ(17,"div",27),M._uU(18),M.ALo(19,"erzDaysDifference"),M.qZA(),M.TgZ(20,"div",28),M._uU(21),M.ALo(22,"date"),M.ALo(23,"erzDaysDifference"),M.qZA()()}if(2&se){const fe=ae.$implicit,De=M.oxw(3);M.xp6(1),M.Q6J("ngIf",M.lcZ(2,11,De.editable$)),M.xp6(3),M.hij(" ",fe.EventDesignation,""),M.xp6(1),M.Q6J("ngIf",fe.StudyClassNumber),M.xp6(2),M.AsE(" ",M.xi3(8,13,fe.LessonDateTimeFrom,"HH:mm"),"\u2013",M.xi3(9,16,fe.LessonDateTimeTo,"HH:mm")," "),M.xp6(4),M.hij(" ",fe.TeacherInformation," "),M.xp6(1),M.Q6J("erzLet",M.lcZ(13,19,De.getPresenceTypeDesignation(fe))),M.xp6(3),M.hij(" ",M.xi3(16,21,fe.LessonDateTimeFrom,"dd.MM.yyyy")," "),M.xp6(3),M.hij(" ",M.lcZ(19,24,fe.LessonDateTimeFrom)," "),M.xp6(3),M.AsE(" ",M.xi3(22,26,fe.LessonDateTimeFrom,"dd.MM.yyyy"),", ",M.lcZ(23,29,fe.LessonDateTimeFrom)," ")}}function Ee(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,ke,17,16,"div",3),M.ALo(2,"async"),M.YNc(3,$e,24,31,"div",4),M.ALo(4,"async"),M.BQk()),2&se){const fe=M.oxw(2);M.xp6(1),M.Q6J("ngIf",M.lcZ(2,2,fe.editable$)),M.xp6(2),M.Q6J("ngForOf",M.lcZ(4,4,fe.lessonPresences$))}}function Ze(se,ae){1&se&&(M.TgZ(0,"p",34),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&se&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"shared.profile.no-absences")))}function J(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,Ee,5,6,"ng-container",0),M.ALo(2,"async"),M.YNc(3,Ze,3,3,"ng-template",null,2,M.W1O),M.BQk()),2&se){const fe=M.MAs(4),De=M.oxw();let je;M.xp6(1),M.Q6J("ngIf",(null==(je=M.lcZ(2,2,De.lessonPresences$))?null:je.length)>0)("ngIfElse",fe)}}function Q(se,ae){1&se&&M._UZ(0,"erz-spinner",35)}let oe=(()=>{class se{constructor(fe){this.presenceTypesService=fe,this.selectionService=null,this.displayPresenceType=!0,this.defaultAbsenceSelectionMessage=null,this.reportUrl=null,this.reportAvailable=!1,this.confirmLink="confirm",this.displayEmail=!1,this.lessonPresences$$=new t.t(1),this.lessonPresences$=this.lessonPresences$$.pipe((0,h.B)(),(0,O.O)(null),(0,R.d)(1)),this.loading$=this.lessonPresences$.pipe((0,F.U)((0,f.ff)(j.kJ))),this.selectionService$=new t.t(1),this.editable$=this.selectionService$.pipe((0,F.U)(()=>!0),(0,O.O)(!1)),this.displayPresenceType$=new d.X(!0),this.allSelected$=(0,w.a)([this.lessonPresences$.pipe((0,P.h)(f.Nf)),this.selectionService$.pipe((0,B.w)(De=>De.selection$))]).pipe((0,F.U)(([De,je])=>De.length===je.length))}ngOnChanges(fe){fe.absences$&&this.lessonPresences$$.next(fe.absences$.currentValue),fe.selectionService&&fe.selectionService.currentValue&&(fe.selectionService.currentValue.clear(),this.selectionService$.next(fe.selectionService.currentValue)),fe.displayPresenceType&&this.displayPresenceType$.next(fe.displayPresenceType.currentValue)}toggleAll(fe){fe?this.lessonPresences$.pipe((0,$.q)(1)).subscribe(De=>this.selectionService?.clear(De)):this.selectionService?.clear()}onRowClick(fe,De){if(0===this.checkboxes.length)return;let je;je="number"==typeof De?this.checkboxes.toArray()[De].nativeElement:De,fe.target!==je&&!fe.target.closest(".buttons")&&je.click()}getPresenceTypeDesignation(fe){return this.displayPresenceType$.pipe((0,B.w)(De=>De?this.presenceTypesService.displayedTypes$:(0,L.of)([])),(0,F.U)(De=>fe.TypeRef.Id&&De.find(je=>je.Id===fe.TypeRef.Id)?.Designation||null))}static#e=this.\u0275fac=function(De){return new(De||se)(M.Y36(q.c))};static#t=this.\u0275cmp=M.Xpm({type:se,selectors:[["erz-student-dossier-absences"]],viewQuery:function(De,je){if(1&De&&M.Gf(_e,5),2&De){let Xe;M.iGM(Xe=M.CRH())&&(je.checkboxes=Xe)}},inputs:{absences$:"absences$",selectionService:"selectionService",displayPresenceType:"displayPresenceType",defaultAbsenceSelectionMessage:"defaultAbsenceSelectionMessage",reportUrl:"reportUrl",reportAvailable:"reportAvailable",confirmLink:"confirmLink",displayEmail:"displayEmail",mailTo$:"mailTo$"},features:[M.TTD],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],["noAbsences",""],["class","absence-all",3,"click",4,"ngIf"],["class","absence-entry",3,"click",4,"ngFor","ngForOf"],[1,"absence-all",3,"click"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["allCheckbox",""],[1,"all"],[1,"buttons"],[1,"edit","btn","btn-primary","btn-icon","me-2",3,"routerLink"],[1,"material-icons"],["class","report btn btn-primary btn-icon me-2","target","_blank",3,"disabled","href",4,"ngIf"],["class","mail btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["class","validation",4,"ngIf"],["target","_blank",1,"report","btn","btn-primary","btn-icon","me-2",3,"href"],["target","_blank",1,"mail","btn","btn-primary","btn-icon","me-2",3,"href"],[1,"validation"],[1,"absence-entry",3,"click"],["class","checkbox",4,"ngIf"],[1,"lesson-class"],[4,"ngIf"],[1,"time","pe-2"],[1,"teacher"],[4,"erzLet"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["checkbox",""],["class","presence-type",4,"ngIf"],["class","presence-type confirm",4,"ngIf"],[1,"presence-type"],[1,"presence-type","confirm"],[1,"mx-3"],[1,"inline","d-block","mb-3"]],template:function(De,je){if(1&De&&(M.YNc(0,J,5,4,"ng-container",0),M.ALo(1,"async"),M.YNc(2,Q,1,0,"ng-template",null,1,M.W1O)),2&De){const Xe=M.MAs(3);M.Q6J("ngIf",!1===M.lcZ(1,2,je.loading$))("ngIfElse",Xe)}},dependencies:[ie.sg,ie.O5,k.rH,Te.e,Se.O,ie.Ov,ie.uU,ye.X$,ce.Q],styles:['.absence-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons" "validation validation validation";grid-template-columns:min-content 1fr min-content}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.absence-entry[_ngcontent-%COMP%]:first-child{padding-top:0}.absence-all[_ngcontent-%COMP%] + .absence-entry[_ngcontent-%COMP%]{padding-top:1rem}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.buttons[_ngcontent-%COMP%]{grid-area:buttons;display:flex}.validation[_ngcontent-%COMP%]{grid-area:validation}.validation[_ngcontent-%COMP%], .presence-type.confirm[_ngcontent-%COMP%]{color:#d01018}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return se})()},1442:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>R});var t=a(5879),d=a(6814);function w(F,P){if(1&F&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.hij(" ",B.student.AddressLine2,"")}}function L(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhonePrivate,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhonePrivate," ")}}function h(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhoneMobile,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhoneMobile," ")}}function O(F,P){if(1&F&&(t.TgZ(0,"a",2),t._uU(1),t.qZA()),2&F){const B=t.oxw();t.MGl("href","mailto:",B.email,"",t.LSH),t.xp6(1),t.hij(" ",B.email," ")}}let R=(()=>{class F{constructor(){this.emailProperty="DisplayEmail"}get postalCode(){return"PostalCode"in this.student?this.student.PostalCode:this.student.Zip}get email(){return"Email2"===this.emailProperty&&"Email2"in this.student?this.student.Email2||null:this.student.DisplayEmail}static#e=this.\u0275fac=function($){return new($||F)};static#t=this.\u0275cmp=t.Xpm({type:F,selectors:[["erz-student-dossier-address"]],inputs:{student:"student",emailProperty:"emailProperty"},decls:9,vars:7,consts:[[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"]],template:function($,f){1&$&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,w,3,1,"ng-container",0),t._uU(4),t._UZ(5,"br"),t.YNc(6,L,4,2,"ng-container",0),t.YNc(7,h,4,2,"ng-container",0),t.YNc(8,O,2,2,"a",1),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",f.student.AddressLine1,""),t.xp6(2),t.Q6J("ngIf",f.student.AddressLine2),t.xp6(1),t.AsE(" ",f.postalCode||""," ",f.student.Location,""),t.xp6(2),t.Q6J("ngIf",f.student.PhonePrivate),t.xp6(1),t.Q6J("ngIf",f.student.PhoneMobile),t.xp6(1),t.Q6J("ngIf",f.email))},dependencies:[d.O5],changeDetection:0})}return F})()},8075:(Pe,V,a)=>{"use strict";a.d(V,{g:()=>ye});var t=a(5879),d=a(6814),w=a(9515),L=a(9753),h=a(500);function O(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyName)}}function R(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyNameAddition)}}function F(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",ve.company.apprenticeshipManager.Lastname||""," ",ve.company.apprenticeshipManager.Firstname||"","")}}function P(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine1)}}function B(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine2)}}function $(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE("",ve.company.apprenticeshipManager.PostalCode," ",ve.company.apprenticeshipManager.Location,"")}}function f(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","tel:",ve.company.apprenticeshipManager.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.PhoneBusiness)}}function j(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.apprenticeshipManager),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.apprenticeshipManager))}}function M(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t._UZ(4,"br"),t._uU(5),t.ALo(6,"date"),t.ALo(7,"date"),t.qZA()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,4,"shared.profile.apprenticeship-period"),"",t.xi3(3,6,":",":"),""),t.xp6(4),t.AsE(" ",t.xi3(6,9,ve.company.apprenticeshipContract.ContractDateFrom,"dd.MM.yyyy"),"\u2013",t.xi3(7,12,ve.company.apprenticeshipContract.ContractDateTo,"dd.MM.yyyy"),"\n")}}function q(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.AsE(" ",ve.company.jobTrainer.Lastname||""," ",ve.company.jobTrainer.Firstname||"","")}}function ie(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneBusiness)}}function k(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneMobile)}}function Te(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.jobTrainer),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.jobTrainer))}}function Se(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t.TgZ(4,"address"),t.YNc(5,q,3,2,"ng-container",0),t.YNc(6,ie,4,2,"ng-container",0),t.YNc(7,k,4,2,"ng-container",0),t.YNc(8,Te,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,6,"shared.profile.job-trainer"),"",t.xi3(3,8,":",":")," "),t.xp6(4),t.Q6J("ngIf",ve.company.jobTrainer.Lastname||ve.company.jobTrainer.Firstname),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,11,ve.company.jobTrainer))}}let ye=(()=>{class ce{constructor(){}static#e=this.\u0275fac=function(xe){return new(xe||ce)};static#t=this.\u0275cmp=t.Xpm({type:ce,selectors:[["erz-student-dossier-apprenticeship-company"]],inputs:{company:"company"},decls:12,vars:12,consts:[[4,"ngIf"],["class","subentry",4,"ngIf"],[3,"href"],[1,"subentry"]],template:function(xe,be){1&xe&&(t.TgZ(0,"address"),t.YNc(1,O,3,1,"ng-container",0),t.YNc(2,R,3,1,"ng-container",0),t.YNc(3,F,3,2,"ng-container",0),t.YNc(4,P,3,1,"ng-container",0),t.YNc(5,B,3,1,"ng-container",0),t.YNc(6,$,3,2,"ng-container",0),t.YNc(7,f,4,2,"ng-container",0),t.YNc(8,j,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA(),t.YNc(10,M,8,15,"div",1),t.YNc(11,Se,10,13,"div",1)),2&xe&&(t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyName),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyNameAddition),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Lastname)||(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Firstname)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine1),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine2),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PostalCode)&&(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Location)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,10,be.company.apprenticeshipManager)),t.xp6(2),t.Q6J("ngIf",be.company.apprenticeshipContract.ContractDateFrom),t.xp6(1),t.Q6J("ngIf",be.company.jobTrainer))},dependencies:[d.O5,d.uU,w.X$,L.U,h.u],styles:[".subentry[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return ce})()},8898:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>w});var t=a(5879);const d=["*"];let w=(()=>{class L{constructor(){this.opened=!1}static#e=this.\u0275fac=function(R){return new(R||L)};static#t=this.\u0275cmp=t.Xpm({type:L,selectors:[["erz-student-dossier-entry-header"]],inputs:{opened:"opened"},ngContentSelectors:d,decls:6,vars:1,consts:[[1,"m-0"],["type","button",1,"btn","btn-link","p-0"],[1,"d-flex","align-items-center"],[1,"material-icons"]],template:function(R,F){1&R&&(t.F$t(),t.TgZ(0,"h5",0),t.Hsn(1),t.qZA(),t.TgZ(2,"button",1)(3,"div",2)(4,"i",3),t._uU(5),t.qZA()()()),2&R&&(t.xp6(5),t.Oqu(F.opened?"keyboard_arrow_down":"keyboard_arrow_up"))},styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-top:1px solid #dee2e6;cursor:pointer}button[_ngcontent-%COMP%]{color:#000;text-decoration:none}.btn-link[_ngcontent-%COMP%]:hover{text-decoration:none}"],changeDetection:0})}return L})()},9949:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>B});var t=a(5879),d=a(6814),w=a(9753);function L($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine1)}}function h($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine2)}}function O($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.AsE("",j.person.Zip," ",j.person.Location,"")}}function R($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhonePrivate,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhonePrivate)}}function F($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhoneMobile)}}function P($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,j.person),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,j.person))}}let B=(()=>{class ${constructor(){}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-student-dossier-legal-representative"]],inputs:{person:"person"},decls:10,vars:10,consts:[[4,"ngIf"],[3,"href"]],template:function(M,q){1&M&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,L,3,1,"ng-container",0),t.YNc(4,h,3,1,"ng-container",0),t.YNc(5,O,3,2,"ng-container",0),t.YNc(6,R,4,2,"ng-container",0),t.YNc(7,F,4,2,"ng-container",0),t.YNc(8,P,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()),2&M&&(t.xp6(1),t.AsE(" ",q.person.LastName," ",q.person.FirstName,""),t.xp6(2),t.Q6J("ngIf",q.person.AddressLine1),t.xp6(1),t.Q6J("ngIf",q.person.AddressLine2),t.xp6(1),t.Q6J("ngIf",q.person.Zip&&q.person.Zip),t.xp6(1),t.Q6J("ngIf",q.person.PhonePrivate),t.xp6(1),t.Q6J("ngIf",q.person.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,8,q.person)))},dependencies:[d.O5,w.U],changeDetection:0})}return $})()},5582:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>ce});var t=a(8405),d=a(4409),w=a(5879),L=a(6814),h=a(1523),O=a(6567),R=a(59),F=a(9608),P=a(9515);function B(_e,ve){if(1&_e&&(w.TgZ(0,"a",9)(1,"i",10),w._uU(2,"description"),w.qZA()()),2&_e){const xe=w.oxw(2).erzLet;w.Q6J("href",xe.reportUrl,w.LSH)}}const $=function(_e){return{returnparams:_e}},f=function(_e){return[_e]};function j(_e,ve){if(1&_e&&(w.TgZ(0,"a",11),w.ALo(1,"async"),w.TgZ(2,"button",12,13),w._uU(4),w.ALo(5,"translate"),w.qZA()()),2&_e){const xe=ve.$implicit,be=w.MAs(3),ke=w.oxw(3);w.Q6J("queryParams",w.VKq(9,$,w.lcZ(1,5,ke.state.returnParams$)))("routerLink",w.VKq(11,f,xe)),w.xp6(2),w.ekj("btn-outline-secondary",!be.isActive),w.xp6(2),w.hij(" ",w.lcZ(5,7,"dossier."+xe)," ")}}function M(_e,ve){1&_e&&(w.TgZ(0,"div"),w._UZ(1,"router-outlet"),w.qZA())}function q(_e,ve){1&_e&&(w.TgZ(0,"p"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&_e&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"shared.profile.no-profile")))}const ie=function(){return["addresses","absences","grades"]};function k(_e,ve){if(1&_e&&(w.ynx(0),w.TgZ(1,"erz-student-backlink",4),w.ALo(2,"async"),w.ALo(3,"async"),w.YNc(4,B,3,1,"a",5),w.qZA(),w.TgZ(5,"div",6),w.YNc(6,j,6,13,"a",7),w.qZA(),w.YNc(7,M,2,0,"div",2),w.YNc(8,q,3,3,"ng-template",null,8,w.W1O),w.BQk()),2&_e){const xe=w.MAs(9),be=w.oxw().erzLet,ke=w.oxw();w.xp6(1),w.Q6J("link","../..")("queryParams",w.lcZ(2,8,ke.state.backlinkQueryParams$))("studentId",w.lcZ(3,10,ke.state.studentId$))("student",be.profile&&be.profile.student),w.xp6(3),w.Q6J("ngIf","grades"===be.currentDossierSection),w.xp6(2),w.Q6J("ngForOf",w.DdM(12,ie)),w.xp6(1),w.Q6J("ngIf",be.profile)("ngIfElse",xe)}}function Te(_e,ve){1&_e&&w._UZ(0,"erz-spinner")}function Se(_e,ve){if(1&_e&&(w.ynx(0),w.YNc(1,k,10,13,"ng-container",2),w.ALo(2,"async"),w.YNc(3,Te,1,0,"ng-template",null,3,w.W1O),w.BQk()),2&_e){const xe=w.MAs(4),be=w.oxw();w.xp6(1),w.Q6J("ngIf",!1===w.lcZ(2,2,be.state.loading$))("ngIfElse",xe)}}const ye=function(_e,ve,xe){return{profile:_e,currentDossierSection:ve,reportUrl:xe}};let ce=(()=>{class _e{constructor(xe,be){this.state=xe,this.dossierGradesService=be,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(w.Y36(d.j),w.Y36(t.S))};static#t=this.\u0275cmp=w.Xpm({type:_e,selectors:[["erz-student-dossier"]],features:[w._Bn([d.j,t.S])],decls:5,vars:11,consts:[[1,"erz-container","erz-container-limited"],[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[1,"mb-2",3,"link","queryParams","studentId","student"],["class","edit btn btn-primary btn-icon ms-2","target","_blank",3,"href",4,"ngIf"],[1,"d-flex","flex-row","py-3","flex-wrap"],["class","me-1 mt-1 me-sm-2",3,"queryParams","routerLink",4,"ngFor","ngForOf"],["noProfile",""],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"material-icons"],[1,"me-1","mt-1","me-sm-2",3,"queryParams","routerLink"],["data-test-id","dossier-section-button","type","button","routerLinkActive","btn-primary",1,"btn","btn-outline-secondary"],["rla","routerLinkActive"]],template:function(be,ke){1&be&&(w.TgZ(0,"div",0),w.YNc(1,Se,5,4,"ng-container",1),w.ALo(2,"async"),w.ALo(3,"async"),w.ALo(4,"async"),w.qZA()),2&be&&(w.xp6(1),w.Q6J("erzLet",w.kEZ(7,ye,w.lcZ(2,1,ke.state.profile$),w.lcZ(3,3,ke.state.currentDossier$),w.lcZ(4,5,ke.dossierGradesService.testReportUrl$))))},dependencies:[L.sg,L.O5,h.lC,h.rH,h.Od,O.e,R.O,F.b,L.Ov,P.X$],changeDetection:0})}return _e})()},1703:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(5879),d=a(902),w=a(6223);let L=(()=>{class h{constructor(){this.id=null,this.label=null,this.disabled=!1,this.value=!1,this.valueChange=new t.vpe,this.fallbackId=(0,d.Z)("erz-switch")}static#e=this.\u0275fac=function(F){return new(F||h)};static#t=this.\u0275cmp=t.Xpm({type:h,selectors:[["erz-switch"]],inputs:{id:"id",label:"label",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},decls:3,vars:5,consts:[["type","checkbox",3,"disabled","ngModel","ngModelChange"]],template:function(F,P){if(1&F&&(t.TgZ(0,"input",0),t.NdJ("ngModelChange",function($){return P.valueChange.emit($)}),t.qZA(),t.TgZ(1,"label"),t._uU(2),t.qZA()),2&F){let B,$;t.Q6J("disabled",P.disabled)("ngModel",P.value),t.uIk("id",null!==(B=P.id)&&void 0!==B?B:P.fallbackId),t.xp6(1),t.uIk("for",null!==($=P.id)&&void 0!==$?$:P.fallbackId),t.xp6(1),t.Oqu(P.label)}},dependencies:[w.Wl,w.JJ,w.On],styles:['input[_ngcontent-%COMP%]{opacity:0;position:absolute}label[_ngcontent-%COMP%]{cursor:pointer;text-indent:-9999px;width:36px;height:18px;border:1px solid rgb(0,0,0);background:#fff;display:block;border-radius:18px;position:relative}label[_ngcontent-%COMP%]:after{content:"";position:absolute;top:1px;left:1px;width:14px;height:14px;background:rgb(0,0,0);border-radius:14px;transition:.3s}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border-color:#000;background:rgb(0,0,0)}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:calc(100% - 1px);transform:translate(-100%);background:#fff}input[_ngcontent-%COMP%]:focus + label[_ngcontent-%COMP%]{box-shadow:0 0 0 .25rem #4e4e4e40}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]{cursor:default;background:#fff;border-color:#dedede}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]:after{background:rgb(222,222,222)}label[_ngcontent-%COMP%]:active:after{width:18.2px}'],changeDetection:0})}return h})()},9707:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>w});var t=a(5879);const d=["*"];let w=(()=>{class L{static#e=this.\u0275fac=function(R){return new(R||L)};static#t=this.\u0275cmp=t.Xpm({type:L,selectors:[["erz-preserve-line-height"]],ngContentSelectors:d,decls:3,vars:0,template:function(R,F){1&R&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t._uU(2,"\xa0"),t.qZA())},encapsulation:2})}return L})()},2015:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>Se});var t=a(5619),d=a(7398),w=a(3997),L=a(4664),h=a(4716),O=a(3620),R=a(2181),F=a(902),P=a(3942),B=a(5879),$=a(6814),f=a(6223),j=a(253),M=a(9515);function q(_e,ve){if(1&_e){const xe=B.EpF();B.TgZ(0,"button",6),B.NdJ("click",function(ke){B.CHM(xe);const vt=B.oxw();return B.KtG(vt.modelChange(ke))}),B.TgZ(1,"i",2),B._uU(2,"clear"),B.qZA()()}}function ie(_e,ve){1&_e&&(B.TgZ(0,"div",7)(1,"div",8)(2,"span",9),B._uU(3,"Loading..."),B.qZA()()())}let Se=(()=>{class _e{constructor(){this.selectedItem$=new t.X(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe((0,d.U)(xe=>xe?xe.Key:null),(0,w.x)()),this.componentId=(0,F.Z)("erz-typeahead-"),this.loading$=new t.X(!1),this.search=xe=>xe.pipe(function ye(_e,ve){return xe=>xe.pipe((0,O.b)(ve),(0,d.U)(ce),(0,w.x)(),(0,R.h)((0,P.$L)(_e)))}(3,300),(0,L.w)(this.fetchItems.bind(this)))}ngOnChanges(xe){xe.value&&xe.value.currentValue&&xe.value.currentValue!==this.selectedItemKey&&this.fetchItem(xe.value.currentValue).subscribe(be=>{this.modelChange(be)})}format(xe){return xe.Value}modelChange(xe){this.selectedItem$.next(xe instanceof Object?xe:null)}get selectedItemKey(){return this.selectedItem$.value?this.selectedItem$.value.Key:null}fetchItems(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItems(xe,this.additionalHttpParams).pipe((0,h.x)(()=>this.loading$.next(!1)))}fetchItem(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(xe).pipe((0,h.x)(()=>this.loading$.next(!1)))}static#e=this.\u0275fac=function(be){return new(be||_e)};static#t=this.\u0275cmp=B.Xpm({type:_e,selectors:[["erz-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},features:[B.TTD],decls:11,vars:18,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text",1,"form-control",3,"ngbTypeahead","inputFormatter","resultFormatter","ngModel","ngModelChange"],["class","btn btn-link text-decoration-none","type","button",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["type","button",1,"btn","btn-link","text-decoration-none",3,"click"],[1,"spinner-container"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"visually-hidden"]],template:function(be,ke){1&be&&(B.TgZ(0,"div",0)(1,"span",1)(2,"i",2),B._uU(3,"search"),B.qZA()(),B.TgZ(4,"input",3),B.NdJ("ngModelChange",function(rt){return ke.modelChange(rt)}),B.ALo(5,"translate"),B.ALo(6,"translate"),B.ALo(7,"async"),B.qZA(),B.YNc(8,q,3,0,"button",4),B.qZA(),B.YNc(9,ie,4,0,"div",5),B.ALo(10,"async")),2&be&&(B.xp6(1),B.Q6J("id",ke.componentId),B.xp6(3),B.Q6J("ngbTypeahead",ke.search)("inputFormatter",ke.format)("resultFormatter",ke.format)("ngModel",B.lcZ(7,14,ke.selectedItem$)),B.uIk("placeholder",B.lcZ(5,10,ke.placeholder))("aria-label",B.lcZ(6,12,ke.placeholder))("aria-describedby",ke.componentId),B.xp6(4),B.Q6J("ngIf",ke.value),B.xp6(1),B.Q6J("ngIf",B.lcZ(10,16,ke.loading$)))},dependencies:[$.O5,f.Fj,f.JJ,f.On,j.dR,$.Ov,M.X$],styles:["[_nghost-%COMP%]{display:block;position:relative;background:rgb(255,255,255)}.spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:.75rem;display:flex;align-items:center;z-index:1001}.spinner-border[_ngcontent-%COMP%]{color:#6c757d}input[_ngcontent-%COMP%]{padding-right:2.5em}.input-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{position:absolute;right:0;z-index:5}"],changeDetection:0})}return _e})();function ce(_e){return _e.trim().toLowerCase()}},6567:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879);class d{constructor(){this.$implicit=null,this.erzLet=null}}let w=(()=>{class L{set erzLet(O){this.context.$implicit=this.context.erzLet=O}constructor(O,R){this.vcr=O,this.templateRef=R,this.context=new d}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:L,selectors:[["","erzLet",""]],inputs:{erzLet:"erzLet"}})}return L})()},8121:(Pe,V,a)=>{"use strict";a.d(V,{X_:()=>j,jJ:()=>q,L9:()=>M,wS:()=>B,Wx:()=>P,$f:()=>f,s3:()=>$});var t=a(754),d=a(5040),w=a(5803),L=t.sH("JsonArray",function(){return t.Bk(O)}),h=t.sH("JsonRecord",function(){return t.IM(t.Z_,O)}),O=t.G0([t.O7,t.pk,t.Z_,t.lB,L,h],"Json"),R=new t.Dy("JsonFromString",O.is,function(ie,k){try{return t.Vp(JSON.parse(ie))}catch{return t.Rn(ie,k)}},function(ie){return JSON.stringify(ie)}),F=a(2220);function P(ie){return t.G0([t.lB,ie])}function B(ie){return t.G0([t.lB,t.S1,ie])}const $=t.dt({Id:t.pk,HRef:P(t.Z_)}),f=t.dt({Id:P(t.pk),HRef:P(t.Z_)}),j=t.Z_.pipe(R,"JsonFromUnknown"),M=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Se=(0,F.Uy)(Te);return isNaN(Se.getTime())?t.Rn(ie,k):t.Vp(Se)})),ie=>(0,F.oZ)(ie)),q=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Se=(0,F.nx)(Te);return isNaN(Se.getTime())?t.Rn(ie,k):t.Vp(Se)})),ie=>(0,F.Aq)(ie))},7379:(Pe,V,a)=>{"use strict";a.d(V,{Ff:()=>Se,T0:()=>q,Ly:()=>M,mJ:()=>Te});var t=a(754),d=a(8121),w=a(4717),L=a(2738);const h=t.dt({TestId:t.pk,CourseRegistrationId:t.pk,GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),GradeDesignation:(0,d.Wx)(t.Z_),Points:(0,d.Wx)(t.pk),StudentId:t.pk,Id:t.Z_}),O=t.dt({Id:t.pk,CourseId:t.pk,Date:d.L9,Designation:t.Z_,Weight:t.pk,WeightPercent:t.pk,IsPointGrading:t.O7,MaxPoints:(0,d.Wx)(t.pk),MaxPointsAdjusted:(0,d.Wx)(t.pk),IsPublished:t.O7,IsOwner:t.O7,Owner:(0,d.Wx)(t.Z_),Creation:t.Z_,GradingScaleId:(0,d.Wx)(t.pk),GradingScale:(0,d.Wx)(t.Z_),Results:(0,d.Wx)(t.IX(h))}),R=t.dt({Id:t.pk}),F=t.r$({HRef:(0,d.Wx)(t.Z_)}),P=t.r$({HasEvaluationStarted:t.O7,EvaluationUntil:(0,d.Wx)(d.L9),HasReviewOfEvaluationStarted:t.O7,HasTestGrading:t.O7,Id:t.pk}),B=t.jV([R,F,P]),$=t.r$({Id:t.pk,StudentCount:t.pk}),f=t.jV([R,F,$]),j=t.dt({EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,Grade:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeValue:(0,d.Wx)(t.pk),AverageTestResult:t.pk,Id:t.pk,IsAdequate:t.O7,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),M=t.dt({AverageTestResult:t.pk,CanGrade:t.O7,EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),Id:t.pk,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),q=t.dt({HRef:t.Z_,Id:t.pk,Number:t.Z_,Designation:t.Z_,DateFrom:(0,d.Wx)(d.L9),DateTo:(0,d.Wx)(d.L9),StatusId:t.pk,GradingScaleId:(0,d.Wx)(t.pk),FinalGrades:(0,d.Wx)(t.IX(j)),Gradings:(0,d.Wx)(t.IX(M)),Tests:(0,d.Wx)(t.IX(O)),EvaluationStatusRef:B,AttendanceRef:f,ParticipatingStudents:(0,d.Wx)(t.IX(w.Z)),Classes:(0,d.Wx)(t.IX(L.y))}),Te=(t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,Points:(0,d.Wx)(t.pk)}),t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,GradeId:(0,d.Wx)(t.pk)}),t.dt({TestResults:t.IX(h),Gradings:t.IX(M)})),Se=t.dt({Gradings:t.IX(M)})},8470:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>d});var t=a(754);const d=t.dt({Key:t.G0([t.pk,t.Z_]),Value:t.Z_})},8952:(Pe,V,a)=>{"use strict";a.d(V,{C:()=>R});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk}),L=t.r$({HRef:(0,d.Wx)(t.Z_)}),h=t.r$({From:d.L9,To:d.L9,EventNumber:t.Z_,EventDesignation:t.Z_,Designation:(0,d.Wx)(t.Z_)}),O=t.jV([w,L,h]),R=t.dt({Id:t.Z_,LessonRef:O,StudentRef:d.s3,TypeRef:d.s3,Type:(0,d.Wx)(t.Z_),ConfirmationState:(0,d.Wx)(t.Z_),ConfirmationStateId:t.pk,Comment:(0,d.Wx)(t.Z_),StudentFullName:t.Z_,RegistrationId:t.pk,HRef:t.Z_})},4717:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk,AddressLine1:(0,d.Wx)(t.Z_),AddressLine2:(0,d.wS)(t.Z_),Birthdate:(0,d.Wx)(d.L9),DisplayEmail:(0,d.Wx)(t.Z_),FullName:t.Z_,Gender:t.G0([t.i0("M"),t.i0("F"),t.i0("X")]),Location:(0,d.Wx)(t.Z_),PhoneMobile:(0,d.Wx)(t.Z_),PhonePrivate:(0,d.Wx)(t.Z_),PostalCode:(0,d.Wx)(t.Z_)})},2738:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>d});var t=a(754);const d=t.dt({Id:t.pk,Designation:t.Z_,StudentCount:t.pk,Number:t.Z_})},6514:(Pe,V,a)=>{"use strict";a.d(V,{Y:()=>h,t:()=>L});var t=a(754),d=a(8121),w=a(8470);const L=t.dt({Id:t.Z_,SubscriptionId:t.pk,VssId:t.pk,EventId:t.pk,DropdownItems:(0,d.Wx)(t.IX(w.b)),IdPerson:t.pk,ShowAsRadioButtons:t.O7,Value:(0,d.Wx)(t.Z_)}),h=t.dt({Id:t.pk,CurrentWorkProgressId:(0,d.Wx)(t.Z_||(0,d.Wx)(t.pk)),EventId:(0,d.Wx)(t.pk),PersonId:(0,d.Wx)(t.pk),Status:t.Z_,StatusId:(0,d.Wx)(t.pk),IsOkay:(0,d.Wx)(t.O7),IsQueued:(0,d.Wx)(t.O7),EventDesignation:(0,d.Wx)(t.Z_),EventInformation:(0,d.Wx)(t.Z_||t.pk),EventNotes:(0,d.Wx)(t.Z_||t.pk),CheckPersonalInformation:(0,d.Wx)(t.O7),CorrespondencePersonId:(0,d.Wx)(t.pk),CorrespondenceAddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing1PersonId:(0,d.Wx)(t.pk),Billing1AddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing2PersonId:(0,d.Wx)(t.Z_||t.pk),Billing2AddressTypeId:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId2:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail2:(0,d.Wx)(t.Z_||t.pk),IdObject:(0,d.Wx)(t.pk),IdSubscription:(0,d.Wx)(t.pk),IdStatus:(0,d.Wx)(t.pk),AnsweredQuestions:(0,d.Wx)(t.Z_||t.pk),Messages:(0,d.Wx)(t.Z_||t.pk),SubscriptionDetails:(0,d.Wx)(t.IX(L)),HRef:(0,d.Wx)(t.Z_)})},3786:(Pe,V,a)=>{"use strict";a.d(V,{Az:()=>Te,b7:()=>B,zn:()=>j,k_:()=>$,Sx:()=>k,PW:()=>M,iu:()=>q,PG:()=>P});var t=a(754);var L=a(5803);function h(Se,ye,ce){return void 0===ce&&(ce="withFallback("+Se.name+")"),function w(Se,ye,ce){void 0===ce&&(ce=Se.name);var _e=function d(Se){var ye=Object.create(Object.getPrototypeOf(Se));return Object.assign(ye,Se),ye}(Se);return _e.validate=ye,_e.decode=function(ve){return ye(ve,t.Ju(_e))},_e.name=ce,_e}(Se,function(_e,ve){return(0,L.vx)(function(){return t.Vp(ye)})(Se.validate(_e,ve))},ce)}var O=a(8121),R=a(8470);const F=t.dt({Key:t.Z_,Value:t.Z_}),P=t.dt({Id:t.Z_,Settings:t.OT(t.IX(F))}),B=O.X_.pipe(t.dt({mail:h(t.O7,!1),gui:h(t.O7,!1),phoneMobile:h(t.O7,!1)})),$=new t.Dy("NotificationTypesInactive",Se=>Array.isArray(Se)&&Se.every(ye=>"string"==typeof ye),(Se,ye)=>"string"==typeof Se?t.Vp(Se.split(";").filter(Boolean)):t.Rn(Se,ye),Se=>Se.join(";")),f=t.dt({id:t.pk,subject:t.Z_,body:t.Z_}),j=O.X_.pipe(t.OT(t.IX(f)));var M=function(Se){return Se.Grid="grid",Se.List="list",Se}(M||{});const q=O.X_.pipe(t.dt({presenceControl:t.mM({grid:null,list:null})})),ie=t.dt({eventId:(0,O.Wx)(t.pk),group:(0,O.Wx)(R.b.props.Key)}),k=O.X_.pipe(t.OT(t.IX(ie))),Te=t.dt({AccessInfo:t.dt({Roles:t.IX(t.Z_),Permissions:t.IX(t.Z_)})})},500:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>w});var t=a(5879),d=a(8299);let w=(()=>{class L{constructor(O){this.i18n=O}transform(O,R){return"fr-CH"===this.i18n.detectLanguage()?(Array.from(R).map(P=>O=O.replace(P," ".concat(P))),O):O}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.D,16))};static#t=this.\u0275pipe=t.Yjl({name:"addSpace",type:L,pure:!0})}return L})()},238:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>F});var t=a(5351),d=a(9189),w=a(2816),O=a(5879),R=a(9515);let F=(()=>{class P{constructor($){this.translate=$}transform($){if(!$)return"";const f=function h(P,B){(0,w.Z)(2,arguments);var $=(0,d.Z)(P),f=(0,d.Z)(B),j=$.getTime()-(0,t.Z)($),M=f.getTime()-(0,t.Z)(f);return Math.round((j-M)/864e5)}($,new Date);return this.translate.instant(`shared.daysDifference.${this.getKey(f)}`,{count:Math.abs(f)})}getKey($){return 0===$?"today":1===$?"tomorrow":-1===$?"yesterday":$>0?"in":"ago"}static#e=this.\u0275fac=function(f){return new(f||P)(O.Y36(R.sK,16))};static#t=this.\u0275pipe=O.Yjl({name:"erzDaysDifference",type:P,pure:!0})}return P})()},6651:(Pe,V,a)=>{"use strict";a.d(V,{GR:()=>L,ey:()=>O,fY:()=>h});var t=a(6814),d=a(5879);const w="1-3",L="\u2013";let h=(()=>{class F{constructor(B){this.locale=B}transform(B,$,f){const j=Number(B??null);return isNaN(j)?L:O(Number(B??null),f??this.locale,$)}static#e=this.\u0275fac=function($){return new($||F)(d.Y36(d.soG,16))};static#t=this.\u0275pipe=d.Yjl({name:"decimalOrDash",type:F,pure:!0})}return F})();function O(F,P,B){return 0===F?L:(0,t.uf)(F,P,`1.${function R(F){return F?String(F).includes("-")?String(F):`${F}-${F}`:w}(B)}`)}},9753:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>d});var t=a(5879);let d=(()=>{class w{transform(h){return h?.DisplayEmail||h?.Email||h?.Email2||null}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275pipe=t.Yjl({name:"erzPersonEmail",type:w,pure:!0})}return w})()},4703:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>w});var t=a(5879),d=a(6593);let w=(()=>{class L{constructor(O){this.sanitizer=O}transform(O,R){switch(R){case"html":return this.sanitizer.bypassSecurityTrustHtml(O);case"style":return this.sanitizer.bypassSecurityTrustStyle(O);case"script":return this.sanitizer.bypassSecurityTrustScript(O);case"url":return this.sanitizer.bypassSecurityTrustUrl(O);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(O);default:throw new Error(`Invalid safe type specified: ${R}`)}}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.H7,16))};static#t=this.\u0275pipe=t.Yjl({name:"safe",type:L,pure:!0})}return L})()},9410:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>L});var t=a(7424),d=a.n(t),w=a(5879);let L=(()=>{class h{transform(R,F){return d()(R,F)}static#e=this.\u0275fac=function(F){return new(F||h)};static#t=this.\u0275pipe=w.Yjl({name:"xss",type:h,pure:!0})}return h})()},813:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879),d=a(8173);let w=(()=>{class L{constructor(O){this.storage=O}get isAuthenticated(){return!!this.accessToken}get accessToken(){return this.storage.getAccessToken()}static#e=this.\u0275fac=function(R){return new(R||L)(t.LFG(d.V))};static#t=this.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},8393:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>f});var t=a(7398),d=a(7081),w=a(8180),L=a(8706),h=a(6561),O=a(49),R=a(3942),F=a(2324),P=a(7727),B=a(4141),$=a(5879);let f=(()=>{class M extends h.z{constructor(ie){super(),this.settings=ie,this.selectedIds$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>(0,O.PO)([...(0,P.MX)(k),...Te])),(0,d.d)(1)),this.selectedLessons$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te]),(0,d.d)(1)),this.selectedWithoutPresenceType$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te].filter(Se=>Se.TypeRef.Id===this.settings.absencePresenceTypeId)))}clearNonOpenAbsencesEntries(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({openAbsencesEntries:ie})=>this.clear(ie))}clearNonLessonPresences(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({lessonPresences:ie})=>this.clear(ie))}static#e=this.\u0275fac=function(k){return new(k||M)($.LFG(B.L6))};static#t=this.\u0275prov=$.Yz7({token:M,factory:M.\u0275fac})}return M})();function j(M){return{openAbsencesEntries:M.filter((0,R.V9)(F.G)),lessonPresences:M.filter((0,L.ff)((0,R.V9)(F.G)))}}},1074:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>j});var t=a(4664),d=a(7398),w=a(2096),L=a(754),h=a(4141),O=a(7379),R=a(275),F=a(6031),P=a(8366),B=a(7470),$=a(5879),f=a(9862);let j=(()=>{class M extends P.v{constructor(ie,k){super(ie,k,O.T0,"Courses"),this.statusCodec=L.dt((0,B.e)(this.codec.props,["Id","StatusId","EvaluationStatusRef"]))}getNumberOfCoursesForRating(){return this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef&fields=Id,StatusId,EvaluationStatusRef&filter.StatusId=;10300;10240`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(this.statusCodec)),(0,d.U)(ie=>ie.filter(k=>!0===k.EvaluationStatusRef.HasEvaluationStarted)),(0,d.U)(ie=>ie.length))}getExpandedCourses(ie){return(0,F.n)(ie,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0))):(0,w.of)([])}getExpandedCourse(ie){return this.http.get(`${this.baseUrl}/${ie}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe((0,t.w)((0,R.Jx)(O.T0)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe((0,t.w)((0,R.Y0)(O.T0)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0)))}add(ie,k,Te,Se,ye,ce,_e){return this.http.put(`${this.baseUrl}/${ie}/Tests/New`,{Tests:[{Date:k,Designation:Te,Weight:Se,IsPointGrading:ye,MaxPoints:ce,MaxPointsAdjusted:_e}]}).pipe((0,d.U)(()=>{}))}update(ie,k,Te,Se,ye,ce,_e,ve){return this.http.put(`${this.baseUrl}/${ie}/Tests/Update`,{Tests:[{Id:k,Designation:Te,Date:Se,Weight:ye,IsPointGrading:ce,MaxPoints:_e,MaxPointsAdjusted:ve}]}).pipe((0,d.U)(()=>{}))}delete(ie,k){return this.http.put(`${this.baseUrl}/${ie}/Tests/Delete`,{TestIds:[k]}).pipe((0,d.U)(()=>k))}updateTestResult(ie,k){return this.http.put(`${this.baseUrl}/${ie}/SetTestResult`,k).pipe((0,t.w)((0,R.Jx)(O.mJ)),(0,t.w)(Te=>(0,w.of)({courseId:ie,body:Te})))}setAverageAsFinalGrade(ie){return this.http.put(`${this.baseUrl}/SetAverageTestResult`,ie).pipe((0,t.w)((0,R.Jx)(O.Ff)))}publishTest(ie){return this.http.put(`${this.baseUrl}/PublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}unpublishTest(ie){return this.http.put(`${this.baseUrl}/UnpublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}static#e=this.\u0275fac=function(k){return new(k||M)($.LFG(f.eN),$.LFG(h.L6))};static#t=this.\u0275prov=$.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},8405:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ye});var t=a(7328),d=a(8645),w=a(3997),L=a(4664),h=a(7398),O=a(7081),R=a(3019),F=a(2572),P=a(9315),B=a(4141),$=a(3942),f=a(7483),j=a(2460),M=a(5879),q=a(1074),ie=a(3219),k=a(6016),Te=a(3005),Se=a(1760);let ye=(()=>{class ce{constructor(ve,xe,be,ke,vt,rt){this.coursesRestService=ve,this.subscriptionRestService=xe,this.reportsService=be,this.loadingService=ke,this.gradingScalesRestService=vt,this.settings=rt,this.studentId$=new t.t(1),this.updateTest$=new d.x,this.initialStudentCourses$=this.studentId$.pipe((0,w.x)(),(0,L.w)(this.loadCourses.bind(this)),(0,h.U)(Mt=>Mt.sort((qe,_t)=>qe.Designation.localeCompare(_t.Designation))),(0,O.d)(1)),this.updatedStudentCourses$=this.updateTest$.pipe((0,j.M)(this.initialStudentCourses$),(0,h.U)(([Mt,qe])=>this.updateCourses(qe,Mt))),this.studentCourses$=(0,R.T)(this.initialStudentCourses$,this.updatedStudentCourses$).pipe((0,O.d)(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe((0,h.U)(Mt=>Mt.flatMap(qe=>qe.Id))),this.idSubscriptions$=(0,F.a)([this.studentId$,this.studentCourseIds$]).pipe((0,L.w)(([Mt,qe])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(Mt,qe))),this.ids$=this.idSubscriptions$.pipe((0,h.U)(Mt=>Mt.map(qe=>qe.Id))),this.testReportUrl$=this.ids$.pipe((0,h.U)(Mt=>this.reportsService.getSubscriptionReportUrl(this.settings.testsBySubscriptionReportIdTeacher,Mt))),this.tests$=this.studentCourses$.pipe((0,h.U)(Mt=>Mt.flatMap(qe=>qe.Tests).filter($.Nf))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,h.U)(Mt=>[...Mt.map(qe=>qe.GradingScaleId)].filter($.Nf).filter($.Tw))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,h.U)(Mt=>Mt.flatMap(qe=>qe.GradingScaleId).filter($.Nf).filter($.Tw))),this.gradingScaleIds$=(0,F.a)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,h.U)(([Mt,qe])=>Mt.concat(qe).filter($.Tw))),this.gradingScales$=this.gradingScaleIds$.pipe((0,L.w)(Mt=>(0,P.D)(Mt.map(qe=>this.gradingScalesRestService.getGradingScale(qe)))))}setStudentId(ve){this.studentId$.next(ve)}getFinalGradeForStudent(ve,xe){return ve?.FinalGrades?.find(be=>be.StudentId===xe)}getGradingForStudent(ve,xe){return ve?.Gradings?.find(be=>be.StudentId===xe)}getGradingScaleOfCourse(ve,xe){return xe?.find(be=>be.Id===ve.GradingScaleId)}getGradesForStudent(ve,xe,be){return ve.Tests?.flatMap(ke=>({value:Number((0,f.fr)(ke,be)?.Grades.find(rt=>rt.Id===(0,f.W3)(xe,ke)?.GradeId)?.Designation),weight:ke.Weight})).filter(({value:ke})=>!!ke)||[]}loadCourses(ve){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe((0,h.U)(xe=>xe.filter(be=>be.ParticipatingStudents?.find(ke=>ke.Id===ve)))))}updateCourses(ve,xe){return ve.map(be=>({...be,Tests:null!==be.Tests?be.Tests.map(ke=>ke.Id===xe.Id?xe:ke):null}))}static#e=this.\u0275fac=function(xe){return new(xe||ce)(M.LFG(q.s),M.LFG(ie.o),M.LFG(k.F),M.LFG(Te.b),M.LFG(Se.R),M.LFG(B.L6))};static#t=this.\u0275prov=M.Yz7({token:ce,factory:ce.\u0275fac})}return ce})()},4409:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>P});var t=a(5619),d=a(7398),w=a(4664),L=a(7081),h=a(1342),O=a(5879),R=a(7909),F=a(1523);let P=(()=>{class B{constructor(f,j){this.profileService=f,this.route=j,this.currentDossier$=new t.X("addresses"),this.studentId$=this.route.paramMap.pipe((0,d.U)(M=>Number(M.get("id")))),this.profile$=this.studentId$.pipe((0,w.w)(M=>this.profileService.getProfile(M)),(0,L.d)(1)),this.returnParams$=this.route.queryParams.pipe((0,d.U)(({returnparams:M})=>M)),this.backlinkQueryParams$=this.returnParams$.pipe((0,d.U)(h.dD)),this.loading$=this.profileService.loading$}static#e=this.\u0275fac=function(j){return new(j||B)(O.LFG(R.J),O.LFG(F.gz))};static#t=this.\u0275prov=O.Yz7({token:B,factory:B.\u0275fac})}return B})()},5001:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>F});var t=a(4664),d=a(7081),w=a(275),L=a(4141),h=a(8470),O=a(5879),R=a(9862);let F=(()=>{class P{constructor($,f){this.http=$,this.settings=f}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe((0,t.w)((0,w.Y0)(h.b)),(0,d.d)(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe((0,t.w)((0,w.Y0)(h.b)),(0,d.d)(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(L.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},1760:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>M});var t=a(2096),d=a(4664),w=a(9315),L=a(7081),h=a(4141),O=a(754),R=a(8121);const F=O.dt({Id:O.pk,IdGradingScale:O.pk,Designation:O.Z_,Value:O.pk,Sufficient:O.O7,Sort:O.Z_,IdObject:O.pk,HRef:(0,R.Wx)(O.Z_)}),P=O.dt({Id:O.pk,Designation:O.Z_,MinGrade:(0,R.Wx)(O.pk),MaxGrade:(0,R.Wx)(O.pk),CommentsAllowed:O.O7,LowestSufficientGrade:O.pk,RisingGrades:O.O7,Grades:O.IX(F),IdObject:O.pk,FreeGrading:O.O7,HRef:O.Z_});var B=a(275),$=a(8366),f=a(5879),j=a(9862);let M=(()=>{class q extends $.v{constructor(k,Te){super(k,Te,P,"GradingScales")}getGradingScale(k){return null===k?(0,t.of)(null):this.http.get(`${this.baseUrl}/${k}`).pipe((0,d.w)((0,B.Jx)(P)))}loadGradingScales(k){return k.pipe((0,d.w)(Te=>(0,w.D)(Te.map(Se=>this.getGradingScale(Se)))),(0,L.d)(1))}static#e=this.\u0275fac=function(Te){return new(Te||q)(f.LFG(j.eN),f.LFG(h.L6))};static#t=this.\u0275prov=f.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},8299:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>O});var t=a(5879),d=a(9515),w=a(8173);const L=["de-CH","fr-CH"],h=L[0];let O=(()=>{class R{constructor(P,B){this.translate=P,this.storage=B}initialize(){this.translate.setDefaultLang(h),this.translate.use(this.detectLanguage())}detectLanguage(){return this.detectedLanguage||(this.detectedLanguage=this.getDocumentLanguage()||this.getStoredLanguage()||this.getBrowserLanguage()||h),this.detectedLanguage}getLocalizedLanguage(P){return(P=L.find(B=>B===`${(P||"").toLowerCase()}-CH`))||h}getDocumentLanguage(){const P=document.querySelector("[lang]");return this.normalizeLanguage(P&&P.lang)}getStoredLanguage(){return this.normalizeLanguage(this.storage.getLanguage())}getBrowserLanguage(){return this.normalizeLanguage(this.translate.getBrowserLang())}normalizeLanguage(P){return(P=(P||"").split("-")[0])&&L.find(B=>P===B.split("-")[0])||null}static#e=this.\u0275fac=function(B){return new(B||R)(t.LFG(d.sK),t.LFG(w.V))};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7575:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>vt});var t=a(9862),d=a(5301),w=a(3166),L=a(4307),h=a(8584),O=a(754),R=a(2096),F=a(9315),P=a(4664),B=a(7398),$=a(7727),f=a(4141),j=a(8121);const M=O.dt({StudentRef:j.s3,StudentFullName:O.Z_,TotalAbsences:O.pk,TotalAbsencesUnconfirmed:O.pk,TotalAbsencesValidExcuse:O.pk,TotalAbsencesWithoutExcuse:O.pk,TotalAbsencesUnchecked:O.pk,TotalDispensations:O.pk,TotalHalfDays:O.pk,TotalIncidents:O.pk}),q=O.dt({Id:O.Z_,LessonRef:j.s3,StudentRef:j.s3,EventRef:j.s3,TypeRef:j.$f,RegistrationRef:j.$f,StudyClassRef:j.$f,ConfirmationStateId:(0,j.Wx)(O.pk),EventDesignation:O.Z_,HasStudyCourseConfirmationCode:O.O7,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9,Comment:(0,j.Wx)(O.Z_),Date:(0,j.Wx)(j.jJ),Type:(0,j.Wx)(O.Z_),StudentFullName:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_}),ie=O.dt({LessonRef:j.s3,EventRef:j.s3,EventDesignation:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9});var k=a(275),Te=a(1389);function Se(qe){return _t=>_t.pipe((0,P.w)($e=>{const Ee=Number($e.headers.get("X-Pagination-Offset")),Ze=Number($e.headers.get("X-Pagination-Total"));return(0,k.Y0)(qe)($e.body).pipe((0,B.U)(J=>({offset:Ee,total:Ze,entries:J})))}))}function ye(qe,_t,$e=new t.LE){return $e.set("offset",String(qe)).set("limit",String(_t))}function ce(qe=new t.WM){return qe.set("X-Pagination-Total","on")}var _e=a(7470),ve=a(8366),xe=a(6031),be=a(5879),ke=a(8173);let vt=(()=>{class qe extends ve.v{constructor($e,Ee,Ze){super($e,Ee,q,"LessonPresences"),this.storage=Ze,this.lessonPresenceRefCodec=O.dt((0,_e.e)(this.codec.props,["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"])),this.lessonPresenceIdCodec=O.dt((0,_e.e)(this.codec.props,["Id"]))}getLessonsByDate($e){const Ee={fields:Object.keys(ie.props).join(","),"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"};return this.http.get(`${this.baseUrl}/`,{params:Ee,headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(ie)))}getListByLessons($e){if(0===$e.length)return(0,R.of)([]);const Ze={"filter.LessonRef":`;${$e.map(J=>J.LessonRef.Id).join(";")}`};return this.getList({params:Ze,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListByDateStudentClass($e,Ee,Ze){const J={"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,"filter.StudentRef":`=${Ee}`};return null!=Ze&&(J["filter.StudyClassRef"]=`=${Ze}`),this.getList({params:J,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListForToday(){return this.http.get(`${this.baseUrl}/Today`,{headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.codec)))}getListOfUnconfirmed($e){return(0,xe.n)(this.storage.getPayload()?.roles,"ClassTeacherRole")?(0,F.D)([this.getListOfUnconfirmedClassTeacher($e),this.getListOfUnconfirmedLessonTeacher($e)]).pipe((0,B.U)((0,Te.h)($.HM))):(0,xe.n)(this.storage.getPayload()?.roles,"LessonTeacherRole")?this.getListOfUnconfirmedLessonTeacher($e):(0,xe.n)(this.storage.getPayload()?.roles,"AbsenceAdministratorRole")?this.getListOfUnconfirmedAbsenceAdministrator($e):(0,R.of)([])}getStatistics($e,Ee,Ze){let J=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return J=function Mt(qe,_t=new t.LE){return qe?_t.set("sort",`${qe.key}.${qe.ascending?"asc":"desc"}`):_t}(Ee,J),J=ye(Ze,this.settings.paginationLimit,J),this.http.get(`${this.baseUrl}/Statistics`,{params:J,headers:ce(),observe:"response"}).pipe(Se(M))}getLessonRefs($e){let Ee=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return Ee=Ee.set("filter.TypeRef",">0"),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getRegistrationRefsByEventIds($e){let Ee=new t.LE;return Ee.set("filter.EventRef",`;${$e.join(";")}`),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getFilteredList($e,Ee,Ze){let J=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]],new t.LE({fromObject:Ze}));return $e.teacher&&(J=J.set("filter.TeacherInformation",`~*${$e.teacher}*`)),$e.dateFrom&&$e.dateTo&&(0,w.Z)($e.dateFrom,$e.dateTo)?J=J.set("filter.LessonDateTimeFrom",`=${(0,d.Z)($e.dateFrom,"yyyy-MM-dd")}`):($e.dateFrom&&(J=J.set("filter.LessonDateTimeFrom",`>${(0,d.Z)((0,L.Z)($e.dateFrom,1),"yyyy-MM-dd")}`)),$e.dateTo&&(J=J.set("filter.LessonDateTimeTo",`<${(0,d.Z)((0,h.Z)($e.dateTo,1),"yyyy-MM-dd")}`))),$e.confirmationStates&&(J=J.set("filter.ConfirmationStateId",`;${$e.confirmationStates.join(";")}`)),$e.incidentTypes&&(J=J.set("filter.TypeRef",`;${$e.incidentTypes.join(";")}`)),$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")}`)),$e.incidentTypes&&$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")};${$e.incidentTypes.join(";")}`)),this.http.get(`${this.baseUrl}/`,{params:ye(Ee,this.settings.paginationLimit,J),headers:ce(),observe:"response"}).pipe(Se(q))}hasLessonsLessonTeacher(){const $e=(new t.LE).set("fields","Id");return this.http.get(`${this.baseUrl}/`,{params:ye(0,1,$e),headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)(Ee=>Ee.length>0))}checkableAbsencesCount(){return this.http.get(`${this.baseUrl}/`,{headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{"filter.ConfirmationStateId":`;${this.settings.checkableAbsenceStateId}`,fields:"Id,ConfirmationStateId"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)($e=>$e.length))}getListOfUnconfirmedLessonTeacher($e){return this.getList({headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=false"}})}getListOfUnconfirmedClassTeacher($e){return this.getList({headers:{"X-Role-Restriction":"ClassTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=true"}})}getListOfUnconfirmedAbsenceAdministrator($e){return this.getList({headers:{"X-Role-Restriction":"AbsenceAdministratorRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`}})}static#e=this.\u0275fac=function(Ee){return new(Ee||qe)(be.LFG(t.eN),be.LFG(f.L6),be.LFG(ke.V))};static#t=this.\u0275prov=be.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();function rt(qe,_t=new t.LE){return qe.reduce(($e,[Ee,Ze])=>Ee&&Ze?$e.set(`filter.${Ze}`,`=${Ee}`):$e,_t)}},6023:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>h});var t=a(7398),d=a(4141),w=a(5879),L=a(9862);let h=(()=>{class O{constructor(F,P){this.http=F,this.settings=P}editLessonPresences(F,P,B,$,f){const j={LessonIds:F,PersonIds:P};return void 0!==B&&(j.PresenceTypeId=B),void 0!==$&&(j.ConfirmationValue=$),this.http.put(`${this.settings.apiUrl}/LessonPresences/Edit`,j,{params:f}).pipe((0,t.U)(()=>{}))}removeLessonPresences(F,P,B){return this.http.put(`${this.settings.apiUrl}/LessonPresences/Reset`,{LessonIds:F,PersonIds:P,WithComment:!0},{params:B}).pipe((0,t.U)(()=>{}))}confirmLessonPresences(F,P,B,$){return this.http.put(`${this.settings.apiUrl}/LessonAbsences/Confirm`,{LessonIds:F,PersonIds:P,AbsenceTypeId:B,ConfirmationValue:$}).pipe((0,t.U)(()=>{}))}static#e=this.\u0275fac=function(P){return new(P||O)(w.LFG(L.eN),w.LFG(d.L6))};static#t=this.\u0275prov=w.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},3005:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>f});var t=a(8645),d=a(7),w=a(7328),L=a(6699),h=a(7921),O=a(7398),R=a(3997),F=a(4716),P=a(7105),B=a(5879);const $="default";let f=(()=>{class M{constructor(){this.action$=new t.x,this.loadingCounts$=(0,d.b)(this.action$.pipe((0,L.R)((ie,{action:k,context:Te})=>{switch(k){case"increment":return ie[Te]=(ie[Te]||0)+1,ie;case"decrement":return ie[Te]=Math.max(0,(ie[Te]||0)-1),ie;default:return ie}},{}),(0,h.O)({})),{connector:()=>new w.t(1)}),this.loading$=this.loading(),this.loadingCountsSub=this.loadingCounts$.connect()}ngOnDestroy(){this.loadingCountsSub.unsubscribe()}loading(ie=$){return this.loadingCounts$.pipe((0,O.U)(k=>k[ie]),(0,O.U)(j),(0,R.x)())}load(ie,k=$){return ie.pipe((0,P.Pl)(this.incrementLoadingCount(k)),(0,F.x)(this.decrementLoadingCount(k)))}incrementLoadingCount(ie){return()=>this.action$.next({action:"increment",context:ie})}decrementLoadingCount(ie){return()=>this.action$.next({action:"decrement",context:ie})}static#e=this.\u0275fac=function(k){return new(k||M)};static#t=this.\u0275prov=B.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();function j(M){return 0!==(M||0)}},5258:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>f});var t=a(4664),d=a(7398),w=a(8366),L=a(4141),h=a(754),O=a(8121);const R=h.dt({Id:h.pk,FormOfAddress:h.Z_,Nationality:(0,O.Wx)(h.Z_),AddressLine1:(0,O.Wx)(h.Z_),AddressLine2:(0,O.Wx)(h.Z_),BillingAddress:(0,O.Wx)(h.Z_),Birthdate:(0,O.Wx)(O.L9),CorrespondenceAddress:(0,O.Wx)(h.Z_),DisplayEmail:(0,O.Wx)(h.Z_),Email:(0,O.wS)(h.Z_),Email2:(0,O.wS)(h.Z_),FirstName:(0,O.Wx)(h.Z_),Gender:(0,O.Wx)(h.G0([h.i0("M"),h.i0("F"),h.i0("X")])),HomeTown:(0,O.Wx)(h.Z_),LastName:(0,O.Wx)(h.Z_),FullName:(0,O.Wx)(h.Z_),Location:(0,O.Wx)(h.Z_),MiddleName:(0,O.Wx)(h.Z_),NativeLanguage:(0,O.Wx)(h.Z_),PhoneMobile:(0,O.Wx)(h.Z_),PhonePrivate:(0,O.Wx)(h.Z_),PhoneBusiness:(0,O.wS)(h.Z_),SocialSecurityNumber:(0,O.Wx)(h.Z_),StayPermit:(0,O.Wx)(h.pk),StayPermitExpiry:(0,O.Wx)(O.L9),Zip:(0,O.Wx)(h.Z_)});var F=a(275),P=a(7470),B=a(5879),$=a(9862);let f=(()=>{class j extends w.v{constructor(q,ie){super(q,ie,R,"Persons"),this.personEmailCodec=h.dt((0,P.e)(this.codec.props,["Email","FormOfAddress"]))}getListForIds(q){return this.getList({params:{"filter.Id":`;${q.join(";")}`}})}getMyself(){return this.http.get(`${this.baseUrl}/me`).pipe((0,t.w)((0,F.Jx)(this.codec)))}getByIdWithEmailInfos(q){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":q.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe((0,t.w)((0,F.Y0)(this.personEmailCodec)),(0,d.U)(ie=>ie[0]))}update(q,ie,k,Te){return this.http.put(`${this.baseUrl}/${q}`,{PhonePrivate:ie,PhoneMobile:k,Email2:Te}).pipe((0,d.U)(()=>{}))}static#e=this.\u0275fac=function(ie){return new(ie||j)(B.LFG($.eN),B.LFG(L.L6))};static#t=this.\u0275prov=B.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},905:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>M});var t=a(7081),d=a(7398),w=a(7921),L=a(3997),h=a(4141),O=a(7749),R=a(5879),F=a(8366),P=a(754),B=a(8121);const $=P.dt({Id:P.pk,Active:P.O7,Designation:(0,B.Wx)(P.Z_),IsAbsence:P.O7,IsComment:P.O7,IsDispensation:P.O7,IsIncident:P.O7,IsHalfDay:P.O7,NeedsConfirmation:P.O7,Sort:P.pk});var f=a(9862);let j=(()=>{class q extends F.v{constructor(k,Te){super(k,Te,$,"PresenceTypes")}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(f.eN),R.LFG(h.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})(),M=(()=>{class q{constructor(k,Te){this.restService=k,this.settings=Te,this.presenceTypes$=this.loadPresenceTypes().pipe((0,t.d)(1)),this.activePresenceTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterActiveTypes.bind(this)),(0,t.d)(1)),this.confirmationTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterConfirmationTypes.bind(this)),(0,t.d)(1)),this.incidentTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterIncidentTypes.bind(this)),(0,t.d)(1)),this.displayedTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterDisplayedTypes.bind(this)),(0,t.d)(1)),this.halfDayActive$=this.presenceTypes$.pipe((0,d.U)(this.isHalfDayActive.bind(this)),(0,w.O)(!1),(0,L.x)(),(0,t.d)(1))}getPresenceType(k){return this.presenceTypes$.pipe((0,d.U)(Te=>{const Se=Te.find(ye=>ye.Id===k);if(!Se)throw new Error("presence type not found");return Se}))}loadPresenceTypes(){return this.restService.getList().pipe((0,d.U)(O.KV))}filterActiveTypes(k){return k.filter(Te=>Te.Active)}filterConfirmationTypes(k){return k.filter(Te=>Te.NeedsConfirmation&&Te.Active&&Te.Id!==this.settings.absencePresenceTypeId)}filterIncidentTypes(k){return k.filter(Te=>Te.IsIncident&&Te.Active)}filterDisplayedTypes(k){return k.filter(Te=>Te.Id!==this.settings.absencePresenceTypeId)}isHalfDayActive(k){return!!k.find(Te=>Te.Id===this.settings.halfDayPresenceTypeId)?.Active}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(j),R.LFG(h.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},6016:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>ie});var t=a(8645),d=a(7),w=a(7328),L=a(7081),h=a(7398),O=a(7921),R=a(3997),F=a(2181),P=a(4664),B=a(4141),$=a(3942),f=a(5879),j=a(8173),M=a(3219),q=a(9862);let ie=(()=>{class k{constructor(Se,ye,ce,_e){this.settings=Se,this.storageService=ye,this.subscriptionService=ce,this.http=_e,this.studentConfirmationAvailabilityRecordIds$=new t.x,this.personMasterDataAvailability$=this.loadReportAvailability("Person",this.settings.personMasterDataReportId,[Number(this.storageService.getPayload()?.id_person)]).pipe((0,L.d)(1)),this.studentConfirmationAvailability$=this.loadReportAvailabilityByAsyncRecordIds("Praesenzinformation",this.settings.studentConfirmationReportId,this.studentConfirmationAvailabilityRecordIds$),this.studentConfirmationAvailabilitySub=this.studentConfirmationAvailability$.connect()}ngOnDestroy(){this.studentConfirmationAvailabilitySub.unsubscribe()}getPersonMasterDataUrl(Se){return this.getReportUrl("Person",this.settings.personMasterDataReportId,[Se])}getStudentConfirmationUrl(Se){return this.getReportUrl("Praesenzinformation",this.settings.studentConfirmationReportId,Se)}getEvaluateAbsencesUrl(Se){return this.getReportUrl("Praesenzinformation",this.settings.evaluateAbsencesReportId,Se)}getEventReportUrl(Se){return this.getReportUrl("Anlass",this.settings.testsByCourseReportId,[Se])}getSubscriptionReportUrl(Se,ye){return`${this.settings.apiUrl}/Files/CrystalReports/Anmeldung/${Se}?ids=${ye}&token=${this.storageService.getAccessToken()}`}setStudentConfirmationAvailabilityRecordIds(Se){this.studentConfirmationAvailabilityRecordIds$.next(Se)}getReportUrl(Se,ye,ce){return`${this.settings.apiUrl}/Files/CrystalReports/${Se}/${ye}?ids=${ce.join(",")}&token=${this.storageService.getAccessToken()}`}loadReportAvailability(Se,ye,ce){return this.http.get(`${this.settings.apiUrl}/CrystalReports/AvailableReports/${Se}?ids=${ye}&keys=${ce.join(",")}`).pipe((0,h.U)($.Nf),(0,O.O)(!1),(0,R.x)())}loadReportAvailabilityByAsyncRecordIds(Se,ye,ce){return(0,d.b)(ce.pipe((0,F.h)((_e,ve)=>0===ve),(0,P.w)(_e=>this.loadReportAvailability(Se,ye,_e))),{connector:()=>new w.t(1)})}static#e=this.\u0275fac=function(ye){return new(ye||k)(f.LFG(B.L6),f.LFG(j.V),f.LFG(M.o),f.LFG(q.eN))};static#t=this.\u0275prov=f.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},8366:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4664),d=a(275);class w{constructor(h,O,R,F){this.http=h,this.settings=O,this.codec=R,this.resourcePath=F}get(h,O){return this.http.get(`${this.baseUrl}/${h}`,O).pipe((0,t.w)((0,d.Jx)(this.codec)))}getList(h){return this.http.get(`${this.baseUrl}/`,h).pipe((0,t.w)((0,d.Y0)(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}}},6561:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(8645),d=a(7),w=a(7328),L=a(6699),h=a(7921),O=a(7398),R=a(3997),F=a(5879),P=function($){return $.ToggleSelection="TOGGLE",$.ClearSelection="CLEAR",$}(P||{});let B=(()=>{class ${constructor(){this.action$=new t.x,this.selection$=(0,d.b)(this.action$.pipe((0,L.R)(this.reduceSelection.bind(this),[]),(0,h.O)([])),{connector:()=>new w.t(1)}),this.selectionSub=this.selection$.connect()}ngOnDestroy(){this.selectionSub.unsubscribe()}toggle(j){this.action$.next({type:P.ToggleSelection,payload:j})}clear(j=null){this.action$.next({type:P.ClearSelection,payload:j})}isSelected$(j){return this.selection$.pipe((0,O.U)(M=>M.includes(j)),(0,R.x)())}reduceSelection(j,M){switch(M.type){case P.ToggleSelection:return j.includes(M.payload)?j.filter(q=>q!==M.payload):[...j,M.payload];case P.ClearSelection:return M.payload||[];default:return j}}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275prov=F.Yz7({token:$,factory:$.\u0275fac})}return $})()},8173:(Pe,V,a)=>{"use strict";a.d(V,{V:()=>O});var t=a(5879);let O=(()=>{class R{getLanguage(){return this.getValue("uiCulture")}getAccessToken(){const P=this.getValue("CLX.LoginToken");return P?P.replace(/^"+|"+$/g,""):null}getRefreshToken(){return this.getValue("CLX.RefreshToken")}getTokenExpire(){return this.getValue("CLX.TokenExpire")}getPayload(){const P=this.getAccessToken(),B=P?P.split(".")[1]:null,$=B?B.replace("-","+").replace("_","/"):null,f=JSON.parse(window.atob($||""));return f.roles="holder_roles"in f?f.holder_roles:f.roles,f}getValue(P){return sessionStorage.getItem(P)||localStorage.getItem(P)}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7909:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>_t});var t=a(2572),d=a(2096),w=a(4664),L=a(2181),h=a(7398),O=a(2769),R=a(1389),F=a(7105),P=a(3942),B=a(581),$=a(2816);function j($e,Ee){(0,$.Z)(2,arguments);var Ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=Ze.getTime()-J.getTime();return Q<0?-1:Q>0?1:Q}var k=a(5879),Te=a(3779),Se=a(5258),ye=a(4141),ce=a(754),_e=a(8121);const ve=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),CompanyName:(0,_e.wS)(ce.Z_),CompanyNameAddition:(0,_e.wS)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),AddressLine1:(0,_e.wS)(ce.Z_),AddressLine2:(0,_e.wS)(ce.Z_),PostalCode:(0,_e.Wx)(ce.Z_),Location:(0,_e.Wx)(ce.Z_),Id:ce.pk});var xe=a(8366),be=a(9862);let ke=(()=>{class $e extends xe.v{constructor(Ze,J){super(Ze,J,ve,"ApprenticeshipManagers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();const vt=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),PhoneMobile:(0,_e.Wx)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),Id:ce.pk});let rt=(()=>{class $e extends xe.v{constructor(Ze,J){super(Ze,J,vt,"JobTrainers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();var Mt=a(3005),qe=a(5001);let _t=(()=>{class $e{constructor(Ze,J,Q,oe,se,ae){this.studentService=Ze,this.personsService=J,this.apprenticeshipManagersService=Q,this.jobTrainersService=oe,this.loadingService=se,this.dropDownItemsService=ae,this.loading$=this.loadingService.loading$}getProfile(Ze){return this.loadingService.load((0,t.a)([this.loadStudent(Ze),this.loadLegalRepresentatives(Ze),this.loadApprenticeshipContracts(Ze)]).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this)))))}getMyProfile(){return this.loadingService.load(this.personsService.getMyself().pipe((0,w.w)(Ze=>(0,t.a)([(0,d.of)(Ze),this.loadLegalRepresentatives(Ze.Id),this.loadApprenticeshipContracts(Ze.Id),this.loadStayPermitValue(Ze.StayPermit)]))).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this))),(0,L.h)(P.Nf)))}loadStudent(Ze){return this.studentService.get(Ze,{params:(0,O.I)({disableErrorHandlingForStatus:[404]})}).pipe((0,F.Qx)())}loadLegalRepresentatives(Ze){return this.studentService.getLegalRepresentatives(Ze)}loadApprenticeshipContracts(Ze){return this.studentService.getCurrentApprenticeshipContracts(Ze,(0,O.I)({disableErrorHandlingForStatus:[404]})).pipe((0,F.Qx)([]))}loadStayPermitValue(Ze){return this.dropDownItemsService.getStayPermits().pipe((0,h.U)(J=>J.find(Q=>Q.Key===Ze)?.Value||null))}mapToProfile(Ze,J,Q,oe=null){return Ze?(J=this.getRelevantLegalRepresentatives(Ze,J),(0,t.a)([this.loadLegalRepresentativPersons(J),this.loadJobTrainers(Q),this.loadApprenticeshipManagers(Q)]).pipe((0,h.U)(([se,ae,fe])=>this.createProfile(Ze,oe,J,se,Q,fe,ae)))):(0,d.of)(null)}loadLegalRepresentativPersons(Ze){return 0===Ze.length?(0,d.of)([]):this.personsService.getListForIds(Ze.map(J=>J.RepresentativeId))}loadJobTrainers(Ze){const J=Ze.map(Q=>Q.JobTrainer).filter(Q=>"number"==typeof Q);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.jobTrainersService.get(Q)))}loadApprenticeshipManagers(Ze){const J=Ze.map(Q=>Q.ApprenticeshipManagerId);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.apprenticeshipManagersService.get(Q)))}createProfile(Ze,J,Q,oe,se,ae,fe){return{student:Ze,stayPermitValue:J||void 0,legalRepresentativePersons:Q.map(je=>this.findPerson(je.RepresentativeId,oe)).filter(P.Nf),apprenticeshipCompanies:se.map(je=>this.createApprenticeshipCompany(je,ae,fe))}}getRelevantLegalRepresentatives(Ze,J){const Q=function ie($e){return function M($e,Ee){(0,$.Z)(2,arguments);var Ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=j(Ze,J),oe=Math.abs(function f($e,Ee){(0,$.Z)(2,arguments);var Ze=(0,B.Z)($e),J=(0,B.Z)(Ee);return Ze.getFullYear()-J.getFullYear()}(Ze,J));Ze.setFullYear(1584),J.setFullYear(1584);var se=j(Ze,J)===-Q,ae=Q*(oe-Number(se));return 0===ae?0:ae}(new Date,$e.Birthdate||new Date)>=18}(Ze);return J.filter(oe=>!Q||oe.RepresentativeAfterMajority)}createApprenticeshipCompany(Ze,J,Q){return{apprenticeshipContract:Ze,jobTrainer:this.findPerson(Ze.JobTrainer,Q),apprenticeshipManager:this.findPerson(Ze.ApprenticeshipManagerId,J)}}findPerson(Ze,J){return Ze&&J.find(Q=>Q.Id===Ze)||null}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(Te.l),k.LFG(Se.J),k.LFG(ke),k.LFG(rt),k.LFG(Mt.b),k.LFG(qe.R))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})()},3779:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>ie});var t=a(9862),d=a(4664),w=a(4141),L=a(7346),h=a(275),O=a(4717),R=a(754);const F=R.dt({Id:R.pk,RepresentativeId:R.pk,RepresentativeAfterMajority:R.O7});var P=a(8121);const B=R.dt({Id:R.pk,JobTrainer:(0,P.Wx)(R.pk),ApprenticeshipManagerId:R.pk,ContractDateFrom:(0,P.Wx)(P.L9),ContractDateTo:(0,P.Wx)(P.L9)}),$=R.dt({Id:R.pk,From:P.L9,To:P.L9,EventId:R.pk,EventNumber:R.Z_,EventDesignation:R.Z_,EventLocation:(0,P.Wx)(R.Z_),EventManagerInformation:R.Z_});var f=a(8952);const j=R.dt({LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,Type:(0,P.Wx)(R.Z_),RegistrationId:R.pk,HRef:R.Z_}),M=R.dt({Id:R.Z_,LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Type:(0,P.Wx)(R.Z_),Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,HRef:R.Z_});var q=a(5879);let ie=(()=>{class k extends L.r{constructor(Se,ye){super(Se,ye,O.Z,"Students","FullName")}getLegalRepresentatives(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LegalRepresentatives`,{params:ye}).pipe((0,d.w)((0,h.Y0)(F)))}getCurrentApprenticeshipContracts(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/ApprenticeshipContracts/Current`,{params:ye}).pipe((0,d.w)((0,h.Y0)(B)))}getLessonAbsences(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonAbsences`,{params:ye}).pipe((0,d.w)((0,h.Y0)(f.C)))}getLessonIncidents(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonIncidents`,{params:ye}).pipe((0,d.w)((0,h.Y0)(j)))}getLessonDispensations(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonDispensations`,{params:ye}).pipe((0,d.w)((0,h.Y0)(M)))}getTimetableEntries(Se,ye={}){return ye instanceof t.LE||(ye=new t.LE({fromObject:ye})),ye=ye.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation,EventManagerInformation"),this.http.get(`${this.baseUrl}/${Se}/TimetableEntries/CurrentSemester`,{params:ye}).pipe((0,d.w)((0,h.Y0)($)))}static#e=this.\u0275fac=function(ye){return new(ye||k)(q.LFG(t.eN),q.LFG(w.L6))};static#t=this.\u0275prov=q.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},3219:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>F});var t=a(4664),d=a(4141),w=a(6514),L=a(275),h=a(8366),O=a(5879),R=a(9862);let F=(()=>{class P extends h.v{constructor($,f){super($,f,w.t,"Subscriptions")}getIdSubscriptionsByStudentAndCourse($,f){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${$}&filter.EventId=;${f}`).pipe((0,t.w)((0,L.Y0)(w.Y)))}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(d.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},6869:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>h});var t=a(8658),d=a(5619),w=a(8180),L=a(5879);let h=(()=>{class O{constructor(){this.toastsSubject=new d.X([]),this.toasts$=this.toastsSubject.asObservable()}success(F,P){this.addUnique({message:F,header:P,classname:"bg-success text-light",icon:"check_circle"})}warning(F,P){this.addUnique({message:F,header:P,classname:"bg-warning",icon:"help"})}error(F,P){this.addUnique({message:F,header:P,classname:"bg-danger text-light",icon:"cancel"})}remove(F){this.updateToasts(P=>P.filter(B=>!(0,t.Z)(B,F)))}addUnique(F){this.updateToasts(P=>{if(!this.exists(P,F))return[...P,F]})}exists(F,P){return!!F.find(B=>B.message===P.message&&B.header===P.header)}updateToasts(F){this.toasts$.pipe((0,w.q)(1)).subscribe(P=>{const B=F(P);B&&this.toastsSubject.next(B)})}static#e=this.\u0275fac=function(P){return new(P||O)};static#t=this.\u0275prov=L.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},7346:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>F});var t=a(4664),d=a(7398),w=a(754),L=a(7470),h=a(275),O=a(8366);class F extends O.v{constructor(B,$,f,j,M,q="Id"){super(B,$,f,j),this.labelAttr=M,this.keyAttr=q,this.typeaheadCodec=w.dt((0,L.e)(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(B,$){const f={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${B}*`}};return this.http.get(`${this.baseUrl}/`,$?this.mergeHttpParams(f,$):f).pipe((0,t.w)((0,h.Y0)(this.typeaheadCodec)),(0,d.U)(j=>j.map(M=>({Key:M[this.keyAttr],Value:M[this.labelAttr]}))))}getTypeaheadItemByKey(B){return this.http.get(`${this.baseUrl}/${B}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe((0,t.w)((0,h.Jx)(this.typeaheadCodec)),(0,d.U)($=>({Key:$[this.keyAttr],Value:$[this.labelAttr]})))}mergeHttpParams(B,$){const f={params:{...B.params,...$.params}};return $.params.fields&&(f.params.fields=B.params.fields.concat(",",$.params.fields)),f}}},7938:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>_e});var t=a(8645),d=a(7921),w=a(3620),L=a(4664),h=a(7398),O=a(7081),R=a(9397),F=a(3786),P=a(275),B=a(7105),$=a(5879),f=a(8366),j=a(4141),M=a(9862);let q=(()=>{class ve extends f.v{constructor(be,ke){super(be,ke,F.PG,"UserSettings")}getUserSettingsCst(be){return this.http.get(`${this.baseUrl}/Cst`,{params:be}).pipe((0,L.w)((0,P.Jx)(this.codec)))}updateUserSettingsCst(be){return this.http.patch(`${this.baseUrl}/Cst`,be)}getAccessInfo(){return this.http.get(`${this.baseUrl}/?expand=AccessInfo`).pipe((0,L.w)((0,P.Jx)(F.Az)),(0,h.U)(({AccessInfo:be})=>be))}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(M.eN),$.LFG(j.L6))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();const k="presenceControlViewMode",Te="presenceControlGroupView",Se="notification",ye="notificationTypesInactive",ce="notificationData";let _e=(()=>{class ve{constructor(be){this.settingsRestService=be,this.refetch$=new t.x,this.settings$=this.refetch$.pipe((0,d.O)(null),(0,w.b)(100),(0,L.w)(()=>this.settingsRestService.getUserSettingsCst()),(0,h.U)(ke=>ke.Settings),(0,O.d)(1)),this.accessInfo$=this.settingsRestService.getAccessInfo().pipe((0,O.d)(1))}refetch(){this.refetch$.next()}getSetting(be){return this.settings$.pipe((0,h.U)(ke=>ke.find(vt=>vt.Key===be)?.Value??null))}saveSetting(be,ke){return this.settingsRestService.updateUserSettingsCst(this.buildSettings(be,ke)).pipe((0,R.b)(()=>this.refetch$.next()))}getPresenceControlViewMode(){return this.getSetting(k).pipe((0,B.LS)('{"presenceControl":"grid"}'),(0,L.w)((0,P.Jx)(F.iu)),(0,h.U)(({presenceControl:be})=>be))}savePresenceControlViewMode(be){return this.saveSetting(k,F.iu.encode({presenceControl:be}))}getPresenceControlGroupView(){return this.getSetting(Te).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.Sx)))}savePresenceControlGroupView(be){return this.saveSetting(Te,F.Sx.encode(be))}getNotificationChannels(){return this.getSetting(Se).pipe((0,B.LS)("{}"),(0,L.w)((0,P.Jx)(F.b7)))}saveNotificationChannels(be){return this.saveSetting(Se,F.b7.encode(be))}getNotificationTypesInactive(){return this.getSetting(ye).pipe((0,B.LS)(""),(0,L.w)((0,P.Jx)(F.k_)))}saveNotificationTypesInactive(be){return this.saveSetting(ye,F.k_.encode(be))}getNotificationData(){return this.getSetting(ce).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.zn)))}saveNotificationData(be){return this.saveSetting(ce,F.zn.encode(be))}getRolesAndPermissions(){return this.accessInfo$.pipe((0,h.U)(({Roles:be,Permissions:ke})=>[...be,...ke]),(0,d.O)(null))}buildSettings(be,ke){return{Id:"Cst",Settings:[{Key:be,Value:ke}]}}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(q))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})()},6486:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>Ri});var t=a(6814),d=a(9862),w=a(6223),L=a(1523),h=a(253),O=a(9515),P=(a(2628),a(59),a(6567)),B=a(6283),$=a(4141),f=a(5879),j=a(813);let M=(()=>{class ht{constructor(lt,Ot){this.auth=lt,this.settings=Ot}intercept(lt,Ot){if(lt.url.startsWith(this.settings.apiUrl)&&this.auth.accessToken){const qt=lt.headers.set("CLX-Authorization",`token_type=urn:ietf:params:oauth:token-type:jwt-bearer, access_token=${this.auth.accessToken}`);return Ot.handle(lt.clone({headers:qt}))}return Ot.handle(lt)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.LFG(j.e),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();var q=a(2769),ie=a(2394);const ye=function Se(ht,pn,lt){var Ot=ht.length;return lt=void 0===lt?Ot:lt,!pn&<>=Ot?ht:function k(ht,pn,lt){var Ot=-1,qt=ht.length;pn<0&&(pn=-pn>qt?0:qt+pn),(lt=lt>qt?qt:lt)<0&&(lt+=qt),qt=pn>lt?0:lt-pn>>>0,pn>>>=0;for(var Kr=Array(qt);++Ot{class ht{constructor(lt,Ot){this.router=lt,this.settings=Ot}intercept(lt,Ot){if(!lt.headers.has("X-Role-Restriction")&&this.settings.headerRoleRestriction){const qt=this.getCurrentModuleName();if(qt&&this.settings.headerRoleRestriction[qt]){const Kr=lt.headers.set("X-Role-Restriction",this.settings.headerRoleRestriction[qt]);return Ot.handle(lt.clone({headers:Kr}))}}return Ot.handle(lt)}getCurrentModuleName(){const lt=this.router.url?(0,Ae.D9)(this.router.url):null;return lt?Oe(lt):null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.LFG(L.F0),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();a(2015),a(1133);var vn=a(4229),ir=(a(9608),a(5582),a(8898)),Wi=(a(1442),a(9949),a(8075),a(3036),a(917),a(9753),a(238),a(6651)),jn=(a(4703),a(9410),a(500),a(6001),a(363));let vr=(()=>{class ht{constructor(lt){this.translate=lt}transform(lt){return`${this.translate.instant("tests.factor")} ${lt.Weight} (${lt.WeightPercent}%)`}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestWeight",type:ht,pure:!0})}return ht})();var Sr=a(7483);let vi=(()=>{class ht{constructor(lt){this.translate=lt}transform(lt,Ot,qt="tests.points"){return lt.IsPointGrading&<.IsPublished?`${(0,Sr.W3)(Ot,lt)?.Points||"\u2013"} / ${lt.MaxPointsAdjusted||lt.MaxPoints} ${this.translate.instant(qt)}`:""}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestPoints",type:ht,pure:!0})}return ht})();a(9707),a(3388),a(8705);var ui=a(5619);function ys(ht,pn,lt){return pn?pn.Grade:function Ui(ht,pn){return pn?.Grades.find(lt=>lt.Id===ht?.GradeId)?.Designation}(ht,lt)||ht?.GradeValue}let xr=(()=>{class ht{constructor(){}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-final-grade"]],inputs:{finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},features:[f._Bn([t.JJ])],decls:14,vars:11,consts:[[1,"final-entry"],["data-testid","final-grade"],["data-testid","average-test-results"]],template:function(Ot,qt){1&Ot&&(f.TgZ(0,"div",0)(1,"div"),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",1)(5,"span"),f._uU(6),f.qZA()(),f.TgZ(7,"div"),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"div",2)(11,"span"),f._uU(12),f.ALo(13,"decimalOrDash"),f.qZA()()()),2&Ot&&(f.xp6(2),f.Oqu(f.lcZ(3,4,"dossier.grade")),f.xp6(4),f.Oqu(qt.getGradeForStudent()||"\u2013"),f.xp6(2),f.Oqu(f.lcZ(9,6,"dossier.average")),f.xp6(4),f.Oqu(f.xi3(13,8,qt.average,"1-3")))},dependencies:[O.X$,Wi.fY],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]})}return ht})();var Kt=a(7328),Mn=a(7398),hr=a(8645),$r=a(3620),bi=a(2181),Nr=a(9773),ze=a(1074);const Ve=function(ht){return{maxPoints:ht}};function ct(ht,pn){if(1&ht&&(f.TgZ(0,"div",15),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht){const lt=f.oxw(2);f.xp6(1),f.hij(" ",f.xi3(2,1,"global.validation-errors.invalidPoints",f.VKq(4,Ve,lt.maxPoints))," ")}}function Yt(ht,pn){if(1&ht){const lt=f.EpF();f.TgZ(0,"div",10)(1,"label",11),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",5)(5,"input",12,13),f.NdJ("input",function(){f.CHM(lt);const qt=f.MAs(6),Kr=f.oxw();return f.KtG(Kr.onPointsChange(qt.value))}),f.qZA()(),f.YNc(7,ct,3,6,"div",14),f.qZA()}if(2&ht){const lt=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,8,"dossier.dialog.points")),f.xp6(2),f.ekj("is-invalid",lt.pointsInput.errors),f.xp6(1),f.ekj("is-invalid",lt.pointsInput.errors),f.s9C("max",lt.maxPoints),f.Q6J("formControl",lt.pointsInput),f.xp6(2),f.Q6J("ngIf",lt.pointsInput.errors)}}let gr=(()=>{class ht{constructor(lt,Ot){this.activeModal=lt,this.courseService=Ot,this.maxPoints=0,this.gradeSubject$=new hr.x,this.pointsSubject$=new hr.x,this.closeButtonDisabled$=new ui.X(!1),this.gradingScaleDisabled$=new ui.X(!0),this.grade$=this.gradeSubject$.pipe((0,$r.b)(500)),this.points$=this.pointsSubject$.pipe((0,$r.b)(500),(0,bi.h)(this.isValid.bind(this)),(0,Mn.U)(Number)),this.destroy$=new hr.x}ngOnInit(){this.maxPoints=(0,Sr.Re)(this.test),this.pointsInput=new w.p4({value:this.points,disabled:!1},[w.kI.min(0),w.kI.pattern("[0-9]+([\\.][0-9]+)?"),this.maxPointValidator()]),this.gradingScaleDisabled$.next(this.test.IsPointGrading&&this.points>0),this.grade$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRuequestBodyForGradeChange.bind(this))).subscribe(lt=>this.updateTestResult(lt)),this.points$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(lt=>this.updateTestResult(lt))}onGradeChange(lt){this.gradeSubject$.next(lt)}onPointsChange(lt){this.pointsSubject$.next(lt),this.gradingScaleDisabled$.next(lt.length>0)}get updatedTestResult(){return this.updatedTest?.TestResults[0]}updateTestResult(lt){this.closeButtonDisabled$.next(!0),this.courseService.updateTestResult(this.test.CourseId,lt).subscribe(Ot=>{this.gradeId=Ot.body.TestResults[0]?.GradeId,this.updatedTest=Ot.body,this.closeButtonDisabled$.next(!1)})}buildRuequestBodyForGradeChange(lt){return{StudentIds:[this.studentId],TestId:this.test.Id,GradeId:lt}}buildRequestBodyPointsChange(lt){return{StudentIds:[this.studentId],TestId:this.test.Id,Points:lt}}isValid(lt){return""!==lt&&!isNaN(Number(lt))&&!(Number(lt)<0||Number(lt)>this.maxPoints)}maxPointValidator(){return lt=>Number(lt.value)>(0,Sr.Re)(this.test)?{customMax:!0}:null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(h.Kz),f.Y36(ze.s))};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-edit"]],inputs:{test:"test",gradeId:"gradeId",gradeOptions:"gradeOptions",points:"points",studentId:"studentId"},decls:19,vars:20,consts:[[1,"modal-body"],[1,"mb-4"],["class","form-group row",4,"ngIf"],[1,"form-group","row","mt-2"],["for","grade",1,"col-6","col-form-label"],[1,"col-6"],["id","grade",3,"options","value","allowEmpty","disabled","valueChange"],[1,"text-muted","mt-4"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"form-group","row"],["for","points",1,"col-6","col-form-label"],["id","points","type","number","step","0.01","min","0",1,"form-control",3,"max","formControl","input"],["pointInput",""],["class","invalid-feedback col-6 offset-6","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback","col-6","offset-6"]],template:function(Ot,qt){1&Ot&&(f.TgZ(0,"div",0)(1,"p",1),f._uU(2),f.qZA(),f.YNc(3,Yt,8,10,"div",2),f.TgZ(4,"div",3)(5,"label",4),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"div",5)(9,"erz-select",6),f.NdJ("valueChange",function(ji){return qt.onGradeChange(ji)}),f.ALo(10,"async"),f.qZA()()(),f.TgZ(11,"p",7),f._uU(12),f.ALo(13,"translate"),f.qZA()(),f.TgZ(14,"div",8)(15,"button",9),f.NdJ("click",function(){return qt.activeModal.close(qt.updatedTestResult)}),f.ALo(16,"async"),f._uU(17),f.ALo(18,"translate"),f.qZA()()),2&Ot&&(f.xp6(2),f.Oqu(qt.test.Designation),f.xp6(1),f.Q6J("ngIf",qt.test.IsPointGrading),f.xp6(3),f.Oqu(f.lcZ(7,10,"dossier.dialog.grade")),f.xp6(3),f.Q6J("options",qt.gradeOptions)("value",qt.gradeId)("allowEmpty",!1)("disabled",f.lcZ(10,12,qt.gradingScaleDisabled$)),f.xp6(3),f.hij(" ",f.lcZ(13,14,qt.test.IsPointGrading?"dossier.dialog.hint.points":"dossier.dialog.hint.grade")," "),f.xp6(3),f.Q6J("disabled",f.lcZ(16,16,qt.closeButtonDisabled$)),f.xp6(2),f.hij(" ",f.lcZ(18,18,"dossier.dialog.close")," "))},dependencies:[t.O5,w.Fj,w.wV,w.JJ,w.qQ,w.Fd,w.oH,vn.H,t.Ov,O.X$]})}return ht})();var Si=a(8405);function Yn(ht,pn){if(1&ht){const lt=f.EpF();f.TgZ(0,"a",11),f.NdJ("click",function(){f.CHM(lt);const qt=f.oxw().erzLet,Kr=f.oxw();return f.KtG(Kr.editGrading(qt))}),f.TgZ(1,"i",12),f._uU(2,"edit"),f.qZA(),f.TgZ(3,"span",13),f._uU(4),f.ALo(5,"async"),f.qZA()()}if(2&ht){const lt=f.oxw(2);f.xp6(4),f.Oqu(f.lcZ(5,1,lt.grading$))}}function sr(ht,pn){if(1&ht&&(f.TgZ(0,"span",13),f._uU(1),f.ALo(2,"async"),f.qZA()),2&ht){const lt=f.oxw(2);f.xp6(1),f.Oqu(f.lcZ(2,1,lt.grading$))}}function Wr(ht,pn){if(1&ht&&(f.TgZ(0,"div",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht){const lt=f.oxw().erzLet;f.xp6(1),f.hij(" ",f.lcZ(2,1,lt.IsPublished?"tests.published":"tests.not-published")," ")}}function Mi(ht,pn){if(1&ht&&(f.TgZ(0,"div",1)(1,"div",2),f._uU(2),f.qZA(),f.TgZ(3,"div",3),f._uU(4),f.ALo(5,"date"),f.qZA(),f.TgZ(6,"div",4),f.YNc(7,Yn,6,3,"a",5),f.YNc(8,sr,3,3,"ng-template",null,6,f.W1O),f.qZA(),f.TgZ(10,"div",7),f._uU(11),f.ALo(12,"erzTestWeight"),f.qZA(),f.TgZ(13,"div",8)(14,"span"),f._uU(15),f.ALo(16,"erzTestPoints"),f.qZA()(),f.TgZ(17,"div",9),f._uU(18),f.qZA(),f.YNc(19,Wr,3,3,"div",10),f.qZA()),2&ht){const lt=pn.erzLet,Ot=f.MAs(9),qt=f.oxw();f.xp6(2),f.hij(" ",lt.Designation," "),f.xp6(2),f.hij(" ",f.xi3(5,8,lt.Date,"dd.MM.yyyy")," "),f.xp6(3),f.Q6J("ngIf",qt.isEditable&<.IsOwner)("ngIfElse",Ot),f.xp6(4),f.hij(" ",f.lcZ(12,11,lt)," "),f.xp6(4),f.Oqu(f.Dn7(16,13,lt,qt.studentId,"dossier.points")),f.xp6(3),f.hij(" ",lt.Owner," "),f.xp6(1),f.Q6J("ngIf",qt.isEditable)}}let di=(()=>{class ht{constructor(lt,Ot){this.gradeService=lt,this.modalService=Ot,this.test$=new Kt.t(1),this.grading$=this.test$.pipe((0,Mn.U)(this.getGrading.bind(this)))}ngOnChanges(lt){lt.test&&this.test$.next(this.test)}editGrading(lt){const Ot=this.modalService.open(gr,{backdrop:"static"});Ot.componentInstance.test=lt,Ot.componentInstance.gradeId=this.getGradeId(lt),Ot.componentInstance.gradeOptions=ht.mapToOptions(this.gradingScale),Ot.componentInstance.studentId=this.studentId,Ot.componentInstance.points=this.getPoints(lt),Ot.result.then(qt=>{qt&&this.updateStudentGrade(qt,lt)},()=>{})}updateStudentGrade(lt,Ot){const qt=(0,Sr.Ps)(lt,Ot);this.gradeService.updateTest$.next(qt)}getGrading(lt){return this.gradingScale?.Grades.find(Ot=>Ot.Id===this.getGradeId(lt))?.Designation||"\u2013"}getGradeId(lt){return(0,Sr.W3)(this.studentId,lt)?.GradeId||null}getPoints(lt){return(0,Sr.W3)(this.studentId,lt)?.Points||null}static mapToOptions(lt){return lt?.Grades.map(Ot=>({Key:Ot.Id,Value:Ot.Designation}))||null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(Si.S),f.Y36(h.FF))};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[["class","test-entry",4,"erzLet"],[1,"test-entry"],["data-testid","test-designation",1,"designation"],["data-testid","test-date",1,"date"],[1,"grade"],["class","btn btn-link","aria-label","edit grade",3,"click",4,"ngIf","ngIfElse"],["notEditable",""],["data-testid","test-factor",1,"factor"],["data-testid","test-points",1,"points"],["data-testid","test-teacher",1,"teacher"],["class","state","data-testid","test-status",4,"ngIf"],["aria-label","edit grade",1,"btn","btn-link",3,"click"],["data-testid","test-grade-edit-icon",1,"material-icons"],["data-testid","test-grade"],["data-testid","test-status",1,"state"]],template:function(Ot,qt){1&Ot&&(f.YNc(0,Mi,20,17,"div",0),f.ALo(1,"async")),2&Ot&&f.Q6J("erzLet",f.lcZ(1,1,qt.test$))},dependencies:[t.O5,P.e,t.Ov,t.uU,O.X$,vr,vi],styles:['.test-entry[_ngcontent-%COMP%]{border-top:1px solid #dee2e6;padding:1rem;display:grid;grid-template-areas:"designation designation grade factor" "date date points ." "teacher teacher . ." "state state . .";grid-template-columns:repeat(4,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}.designation[_ngcontent-%COMP%]{grid-area:designation}.date[_ngcontent-%COMP%]{grid-area:date}.grade[_ngcontent-%COMP%]{grid-area:grade}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;color:#000;padding:0;text-decoration:none}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.grade[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:-1em;color:#00000080}.points[_ngcontent-%COMP%]{grid-area:points;color:#00000080}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.state[_ngcontent-%COMP%]{grid-area:state}@media (max-width: 575.98px){.test-entry[_ngcontent-%COMP%]{grid-template-areas:"designation designation" "date grade" "factor points" "teacher teacher" "state state";grid-template-columns:repeat(2,1fr)}}']})}return ht})();function ns(ht,pn){if(1&ht&&f._UZ(0,"erz-dossier-single-test",5),2&ht){const lt=pn.$implicit,Ot=f.oxw(3);f.Q6J("test",lt)("studentId",Ot.studentId)("gradingScale",Ot.getGradingScaleOfTest(lt))("isEditable",Ot.isEditable)}}function bs(ht,pn){if(1&ht&&(f.TgZ(0,"div"),f._UZ(1,"erz-dossier-grades-final-grade",3),f.YNc(2,ns,1,4,"erz-dossier-single-test",4),f.qZA()),2&ht){const lt=f.oxw().erzLet,Ot=f.oxw();f.xp6(1),f.Q6J("finalGrade",Ot.decoratedCourse.finalGrade)("grading",Ot.decoratedCourse.grading)("gradingScale",Ot.decoratedCourse.gradingScale)("average",Ot.decoratedCourse.average),f.xp6(1),f.Q6J("ngForOf",lt)}}function Zi(ht,pn){1&ht&&(f.TgZ(0,"p",6),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"dossier.no-tests")," "))}function Oi(ht,pn){if(1&ht&&(f.ynx(0),f.YNc(1,bs,3,5,"div",1),f.YNc(2,Zi,3,3,"ng-template",null,2,f.W1O),f.BQk()),2&ht){const lt=pn.erzLet,Ot=f.MAs(3);f.xp6(1),f.Q6J("ngIf",lt.length>0)("ngIfElse",Ot)}}let Ii=(()=>{class ht{ngOnChanges(lt){lt.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new ui.X([])}sortedTests(){return this.decoratedCourse.course.Tests?(0,Sr.df)(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(lt){return(0,Sr.fr)(lt,this.gradingScales)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["noTests",""],[3,"finalGrade","grading","gradingScale","average"],[3,"test","studentId","gradingScale","isEditable",4,"ngFor","ngForOf"],[3,"test","studentId","gradingScale","isEditable"],["data-testid","message-no-tests",1,"p-3"]],template:function(Ot,qt){1&Ot&&(f.YNc(0,Oi,4,2,"ng-container",0),f.ALo(1,"async")),2&Ot&&f.Q6J("erzLet",f.lcZ(1,1,qt.sortedTests$))},dependencies:[t.sg,t.O5,P.e,xr,di,t.Ov,O.X$]})}return ht})();var Pi=a(5841);function Gn(ht,pn){if(1&ht&&(f.TgZ(0,"span",2),f._uU(1),f.qZA()),2&ht){const lt=f.oxw();f.xp6(1),f.hij(" (",lt.grade,")")}}function Es(ht,pn){if(1&ht&&(f.TgZ(0,"span",3),f._uU(1),f.ALo(2,"number"),f.qZA()),2&ht){const lt=f.oxw();f.xp6(1),f.hij(" (",f.xi3(2,1,lt.average,"1.1-3"),")")}}let zi=(()=>{class ht{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-course-header"]],inputs:{designation:"designation",finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},decls:3,vars:3,consts:[["class","grade","data-testId","grade",4,"ngIf"],["class","average","data-testId","average",4,"ngIf"],["data-testId","grade",1,"grade"],["data-testId","average",1,"average"]],template:function(Ot,qt){1&Ot&&(f._uU(0),f.YNc(1,Gn,2,1,"span",0),f.YNc(2,Es,3,4,"span",1)),2&Ot&&(f.Oqu(qt.designation),f.xp6(1),f.Q6J("ngIf",qt.grade),f.xp6(1),f.Q6J("ngIf",!qt.grade&&qt.average))},dependencies:[t.O5,t.JJ],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]})}return ht})();a(1703),a(7625);let Ri=(()=>{class ht{static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275mod=f.oAB({type:ht});static#n=this.\u0275inj=f.cJS({providers:[{provide:d.TP,useClass:q.R,multi:!0},{provide:d.TP,useClass:M,multi:!0},{provide:d.TP,useClass:mt,multi:!0}],imports:[t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw.forChild(),h.IJ,B.Rq,jn.A0,t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw,h.IJ,B.Rq,jn.A0]})}return ht})();f.B6R(Pi.d,function(){return[t.sg,t.O5,h.gY,h.Gk,h.gW,h.k9,ir.H,Ii,zi]},function(){return[t.Ov,O.X$]})},6163:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>d});const d=new(a(5879).OlP)("Confirm Absences Service")},6100:(Pe,V,a)=>{"use strict";function h(F){return 0===F.length}function R(F){return Array.isArray(F)}a.d(V,{kJ:()=>R,yD:()=>h})},2220:(Pe,V,a)=>{"use strict";function t(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2],R[3],R[4],R[5])}function d(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2])}function w(O){return L(O)+`T${h(O.getHours())}:${h(O.getMinutes())}:${h(O.getSeconds())}`}function L(O){return`${O.getFullYear()}-${h(O.getMonth()+1)}-${h(O.getDate())}`}function h(O){return("0"+O).slice(-2)}a.d(V,{Aq:()=>L,Uy:()=>t,nx:()=>d,oZ:()=>w})},275:(Pe,V,a)=>{"use strict";a.d(V,{Jx:()=>j,Y0:()=>M});var t=a(754),d=a(5040),w=a(5803);function O(q){return void 0!==q.message?q.message:"Invalid value ".concat(function L(q){return"function"==typeof q?(0,t.$P)(q):"number"!=typeof q||isFinite(q)?JSON.stringify(q):isNaN(q)?"NaN":q>0?"Infinity":"-Infinity"}(q.value)," supplied to ").concat(function h(q){return q.map(function(ie){var Te=ie.type;return"".concat(ie.key,": ").concat(Te.name)}).join("/")}(q.context))}var P={report:(0,w.g_)(function R(q){return q.map(O)},function F(){return["No errors!"]})},B=a(8504),$=a(2096);class f extends Error{constructor(){super(...arguments),this.name="DecodeError"}}function j(q){return ie=>(0,d.zG)(q.decode(ie),(0,w.g_)(k=>(0,B._)(()=>new f(P.report((0,w.t$)(k)).join("\n"))),k=>(0,$.of)(k)))}function M(q){return j(t.IX(q))}},1140:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>w,q:()=>d});var t=a(7398);function d(L,h){return L.pipe((0,t.U)(O=>O.find(R=>R.Key===h)||null))}function w(L){return L.slice().sort((h,O)=>h.Value.localeCompare(O.Value))}},3942:(Pe,V,a)=>{"use strict";function d(P){return null!==P}function w(P){return"string"==typeof P&&P.length>0}function L(P){return B=>!P(B)}function h(P){return B=>B.length>=P}function O(P){return!!P}function R(P){return B=>B instanceof P}function F(P,B,$){return $.indexOf(P)===B}a.d(V,{$L:()=>h,Nf:()=>d,Tw:()=>F,V9:()=>R,YO:()=>w,fQ:()=>O,ff:()=>L})},1257:(Pe,V,a)=>{"use strict";a.d(V,{YV:()=>B,Z6:()=>P,ZX:()=>$});var t=a(2572),d=a(2096),w=a(6232),L=a(2181),h=a(4664),O=a(7921),R=a(7398),F=a(7081);function P(j,M,q){return(0,t.a)([j,M]).pipe((0,L.h)(([ie,k])=>k),(0,h.w)(([ie,k])=>{const Te=q?ie?.get(q)||null:ie;return Te?Te.statusChanges.pipe((0,O.O)(Te.status),(0,R.U)(()=>function f(j){return j?Object.keys(j.errors||{}).map(M=>({error:M,params:j.errors&&j.errors[M]instanceof Object?j.errors[M]:null})):[]}(Te))):(0,d.of)([])}),(0,O.O)([]),(0,F.d)(1))}function B(j,M){return j.pipe((0,R.U)(q=>q.get(M)||null))}function $(j,M){return B(j,M).pipe((0,h.w)(q=>q?q.valueChanges:w.E))}},1389:(Pe,V,a)=>{"use strict";function t(d){return w=>d(...w)}a.d(V,{h:()=>t})},49:(Pe,V,a)=>{"use strict";a.d(V,{PO:()=>w,Qw:()=>h,fG:()=>d,kK:()=>O});var t=a(5301);function d(R){const F=R.reduce((P,B)=>(P[B.StudentRef.Id]||(P[B.StudentRef.Id]=[]),P[B.StudentRef.Id].push(B.LessonRef.Id),P),{});return Object.keys(F).map(P=>({personIds:[Number(P)],lessonIds:F[P]}))}function w(R){const F={};return R.forEach(P=>{F[P.StudentRef.Id]||(F[P.StudentRef.Id]={}),F[P.StudentRef.Id][String(P.TypeRef.Id)]||(F[P.StudentRef.Id][String(P.TypeRef.Id)]=[]),F[P.StudentRef.Id][String(P.TypeRef.Id)].push(P.LessonRef.Id)}),Object.keys(F).reduce((P,B)=>[...P,...Object.keys(F[B]).map($=>({personId:Number(B),presenceTypeId:"null"===$?null:Number($),lessonIds:F[B][String($)]}))],[])}function h(R){return R.slice().sort((F,P)=>F.LessonDateTimeFrom.getTime()-P.LessonDateTimeFrom.getTime())}function O(R){return`${R.EventDesignation}, ${(0,t.Z)(R.LessonDateTimeFrom,"dd.MM.yyyy")}, ${(0,t.Z)(R.LessonDateTimeFrom,"HH:mm")}-${(0,t.Z)(R.LessonDateTimeTo,"HH:mm")}`}},3986:(Pe,V,a)=>{"use strict";function t(h){return 0===h.length?0:w(h.map(({value:O,weight:R})=>O*R))/w(h.map(({weight:O})=>O))}function d(h){return 0===h.length?0:Number(w(h)/h.length)}function w(h){return h.reduce(L,0)}function L(h,O){return h+O}a.d(V,{S:()=>t,Y:()=>d})},7105:(Pe,V,a)=>{"use strict";a.d(V,{LS:()=>ie,Pl:()=>q,Qx:()=>j,eG:()=>k,re:()=>Te});var t=a(9862),d=a(2096),w=a(8504),L=a(4911),h=a(3019),O=a(2438),R=a(1687),F=a(6306),P=a(7398),B=a(3572),$=a(4664),f=a(7921);function j(Se){return(0,F.K)(ye=>ye instanceof t.UA&&404===ye.status?(0,d.of)(Se||null):(0,w._)(()=>ye))}function q(Se){return ye=>(0,L.P)(()=>(Se(),ye))}function ie(Se){return ye=>ye.pipe((0,P.U)(ce=>ce??Se),(0,B.d)(Se))}function k(Se,ye){return Se.pipe((0,$.w)(ce=>ye.pipe((0,f.O)(ce),(0,P.U)(()=>ce))))}function Te(Se,ye=window.document){return(0,h.T)(...["click","keydown"].map(ce=>(0,O.R)(ye,ce))).pipe((0,f.O)(null),(0,$.w)(()=>(0,R.F)(Se)),(0,P.U)(()=>{}))}},7749:(Pe,V,a)=>{"use strict";function t(L){return L.slice().sort((h,O)=>h.Sort-O.Sort)}function d(L){return L.map(h=>({Key:h.Id,Value:h.Designation||""}))}function w(L,h){return L.map(O=>Object.assign(O,{Group:h}))}a.d(V,{KV:()=>t,nC:()=>d,pt:()=>w})},6031:(Pe,V,a)=>{"use strict";function t(w,L){return d(w).includes(L)}function d(w){return w?w.split(";"):[]}a.d(V,{F:()=>d,n:()=>t})},7470:(Pe,V,a)=>{"use strict";function t(d,w){return w.reduce((L,h)=>({...L,[h]:d[h]}),{})}a.d(V,{e:()=>t})},1342:(Pe,V,a)=>{"use strict";a.d(V,{D9:()=>L,dD:()=>d,tW:()=>w});var t=a(1523);function d(h){return String(h||"").split("&").reduce((O,R)=>{const[F,P]=R.split("=");return{...O,[F]:P}},{})}function w(h){return Object.keys(h).reduce((O,R)=>{const F=h[R];return[...O,null==F?R:`${R}=${F}`]},[]).join("&")}function L(h){const P=(new t.sz).parse(h)?.root.children[t.eC]?.segments;return P?P[0].path:null}},4515:(Pe,V,a)=>{"use strict";var t=a(6593),d=a(5879),w=a(6814),L=a(9862);const h=void 0,R=["de-CH",[["AM","PM"],h,h],h,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So","Mo","Di","Mi","Do","Fr","Sa"]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],h,h],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",h,"{1} 'um' {0}",h],[".","\u2019",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4-#,##0.00","#E0"],"CHF","CHF","Schweizer Franken",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[h,"\u0440."],CUC:[h,"Cub$"],DEM:["DM"],EUR:[],FKP:[h,"Fl\xa3"],GHS:[h,"\u20b5"],GNF:[h,"F.G."],KMF:[h,"FC"],PHP:[h,"\u20b1"],RON:[h,"L"],RUR:[h,"\u0440."],RWF:[h,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[h,"K"]},"ltr",function O(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===I?1:5}],F=void 0,B=["fr-CH",[["AM","PM"],F,F],F,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],F,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],F,[["av. J.-C.","ap. J.-C."],F,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd.MM.yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH.mm:ss 'h' zzzz"],["{1} {0}","{1}, {0}","{1} '\xe0' {0}",F],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":","."],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"CHF","CHF","franc suisse",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[F,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[F,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[F,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[F,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[F,"\xa5"],KMF:[F,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[F,"$C"],NZD:["$NZ","$"],PHP:[F,"\u20b1"],RHD:["$RH"],RON:[F,"L"],RWF:[F,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[F,"$T"],TTD:["$TT","$"],TWD:[F,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[F,"$"],XPF:["FCFP"],ZMW:[F,"Kw"]},"ltr",function P(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length,te=parseInt(W.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 0===v||1===v?1:0===te&&0!==v&&v%1e6==0&&0===I||!(te>=0&&te<=5)?4:5}];var $=a(7328),f=a(3019),j=a(4664),M=a(7398);const q={schedule(W,p){const v=setTimeout(W,p);return()=>clearTimeout(v)},scheduleBeforeRender(W){if(typeof window>"u")return q.schedule(W,0);if(typeof window.requestAnimationFrame>"u")return q.schedule(W,16);const p=window.requestAnimationFrame(W);return()=>window.cancelAnimationFrame(p)}};let ye;function ke(W,p,v){let I=v;return function k(W){return!!W&&W.nodeType===Node.ELEMENT_NODE}(W)&&p.some((te,me)=>!("*"===te||!function ce(W,p){if(!ye){const v=Element.prototype;ye=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector}return W.nodeType===Node.ELEMENT_NODE&&ye.call(W,p)}(W,te)||(I=me,0))),I}class rt{constructor(p,v){this.componentFactory=v.get(d._Vd).resolveComponentFactory(p)}create(p){return new Mt(this.componentFactory,p)}}class Mt{constructor(p,v){this.componentFactory=p,this.injector=v,this.eventEmitters=new $.t(1),this.events=this.eventEmitters.pipe((0,j.w)(I=>(0,f.T)(...I))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:I})=>I)),this.ngZone=this.injector.get(d.R0b),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(p){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(p)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=q.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(p){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(p):this.componentRef.instance[p])}setInputValue(p,v,I){this.runInZone(()=>{I&&(v=I.call(this.componentRef?.instance,v)),null!==this.componentRef?function _e(W,p){return W===p||W!=W&&p!=p}(v,this.getInputValue(p))&&(void 0!==v||!this.unchangedInputs.has(p))||(this.recordInputChange(p,v),this.unchangedInputs.delete(p),this.hasInputChanges=!0,this.componentRef.instance[p]=v,this.scheduleDetectChanges()):this.initialInputValues.set(p,v)})}initializeComponent(p){const v=d.zs3.create({providers:[],parent:this.injector}),I=function be(W,p){const v=W.childNodes,I=p.map(()=>[]);let te=-1;p.some((me,Ne)=>"*"===me&&(te=Ne,!0));for(let me=0,Ne=v.length;me{this.initialInputValues.has(p)&&this.setInputValue(p,this.initialInputValues.get(p),v)}),this.initialInputValues.clear()}initializeOutputs(p){const v=this.componentFactory.outputs.map(({propName:I,templateName:te})=>p.instance[I].pipe((0,M.U)(Ne=>({name:te,value:Ne}))));this.eventEmitters.next(v)}callNgOnChanges(p){if(!this.implementsOnChanges||null===this.inputChanges)return;const v=this.inputChanges;this.inputChanges=null,p.instance.ngOnChanges(v)}markViewForCheck(p){this.hasInputChanges&&(this.hasInputChanges=!1,p.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=q.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(p,v){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const I=this.inputChanges[p];if(I)return void(I.currentValue=v);const te=this.unchangedInputs.has(p),me=te?void 0:this.getInputValue(p);this.inputChanges[p]=new d.WD2(me,v,te)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(p){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(p):p()}}class qe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function _t(W,p){const v=function xe(W,p){return p.get(d._Vd).resolveComponentFactory(W).inputs}(W,p.injector),I=p.strategyFactory||new rt(W,p.injector),te=function ve(W){const p={};return W.forEach(({propName:v,templateName:I,transform:te})=>{p[function ie(W){return W.replace(/[A-Z]/g,p=>`-${p.toLowerCase()}`)}(I)]=[v,te]}),p}(v);class me extends qe{static#e=this.observedAttributes=Object.keys(te);get ngElementStrategy(){if(!this._ngElementStrategy){const Fe=this._ngElementStrategy=I.create(this.injector||p.injector);v.forEach(({propName:st,transform:Dt})=>{if(!this.hasOwnProperty(st))return;const rn=this[st];delete this[st],Fe.setInputValue(st,rn,Dt)})}return this._ngElementStrategy}constructor(Fe){super(),this.injector=Fe}attributeChangedCallback(Fe,st,Dt,rn){const[Xt,Tn]=te[Fe];this.ngElementStrategy.setInputValue(Xt,Dt,Tn)}connectedCallback(){let Fe=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),Fe=!0),this.ngElementStrategy.connect(this),Fe||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(Fe=>{const st=new CustomEvent(Fe.name,{detail:Fe.value});this.dispatchEvent(st)})}}return v.forEach(({propName:Ne,transform:Fe})=>{Object.defineProperty(me.prototype,Ne,{get(){return this.ngElementStrategy.getInputValue(Ne)},set(st){this.ngElementStrategy.setInputValue(Ne,st,Fe)},configurable:!0,enumerable:!0})}),me}class Ee{}class Ze{}const J="*";function ae(W,p=null){return{type:2,steps:W,options:p}}function fe(W){return{type:6,styles:W,offset:null}}class et{constructor(p=0,v=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=p+v}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}onStart(p){this._originalOnStartFns.push(p),this._onStartFns.push(p)}onDone(p){this._originalOnDoneFns.push(p),this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(p=>p()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(p){this._position=this.totalTime?p*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(p){const v="start"==p?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class Pt{constructor(p){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=p;let v=0,I=0,te=0;const me=this.players.length;0==me?queueMicrotask(()=>this._onFinish()):this.players.forEach(Ne=>{Ne.onDone(()=>{++v==me&&this._onFinish()}),Ne.onDestroy(()=>{++I==me&&this._onDestroy()}),Ne.onStart(()=>{++te==me&&this._onStart()})}),this.totalTime=this.players.reduce((Ne,Fe)=>Math.max(Ne,Fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}init(){this.players.forEach(p=>p.init())}onStart(p){this._onStartFns.push(p)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(p=>p()),this._onStartFns=[])}onDone(p){this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(p=>p.play())}pause(){this.players.forEach(p=>p.pause())}restart(){this.players.forEach(p=>p.restart())}finish(){this._onFinish(),this.players.forEach(p=>p.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(p=>p.destroy()),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}reset(){this.players.forEach(p=>p.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(p){const v=p*this.totalTime;this.players.forEach(I=>{const te=I.totalTime?Math.min(1,v/I.totalTime):1;I.setPosition(te)})}getPosition(){const p=this.players.reduce((v,I)=>null===v||I.totalTime>v.totalTime?I:v,null);return null!=p?p.getPosition():0}beforeDestroy(){this.players.forEach(p=>{p.beforeDestroy&&p.beforeDestroy()})}triggerCallback(p){const v="start"==p?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}function Rn(W){return new d.vHH(3e3,!1)}function Vt(W){switch(W.length){case 0:return new et;case 1:return W[0];default:return new Pt(W)}}function Un(W,p,v=new Map,I=new Map){const te=[],me=[];let Ne=-1,Fe=null;if(p.forEach(st=>{const Dt=st.get("offset"),rn=Dt==Ne,Xt=rn&&Fe||new Map;st.forEach((Tn,Vn)=>{let xn=Vn,Fn=Tn;if("offset"!==Vn)switch(xn=W.normalizePropertyName(xn,te),Fn){case"!":Fn=v.get(Vn);break;case J:Fn=I.get(Vn);break;default:Fn=W.normalizeStyleValue(Vn,xn,Fn,te)}Xt.set(xn,Fn)}),rn||me.push(Xt),Fe=Xt,Ne=Dt}),te.length)throw function Dr(W){return new d.vHH(3502,!1)}();return me}function on(W,p,v,I){switch(p){case"start":W.onStart(()=>I(v&&rr(v,"start",W)));break;case"done":W.onDone(()=>I(v&&rr(v,"done",W)));break;case"destroy":W.onDestroy(()=>I(v&&rr(v,"destroy",W)))}}function rr(W,p,v){const me=ln(W.element,W.triggerName,W.fromState,W.toState,p||W.phaseName,v.totalTime??W.totalTime,!!v.disabled),Ne=W._data;return null!=Ne&&(me._data=Ne),me}function ln(W,p,v,I,te="",me=0,Ne){return{element:W,triggerName:p,fromState:v,toState:I,phaseName:te,totalTime:me,disabled:!!Ne}}function $n(W,p,v){let I=W.get(p);return I||W.set(p,I=v),I}function Qe(W){const p=W.indexOf(":");return[W.substring(1,p),W.slice(p+1)]}const Le=(()=>typeof document>"u"?null:document.documentElement)();function Ue(W){const p=W.parentNode||W.host||null;return p===Le?null:p}let Rt=null,kt=!1;function pr(W,p){for(;p;){if(p===W)return!0;p=Ue(p)}return!1}function jr(W,p,v){if(v)return Array.from(W.querySelectorAll(p));const I=W.querySelector(p);return I?[I]:[]}let Ar=(()=>{class W{validateStyleProperty(v){return function Ft(W){Rt||(Rt=function wn(){return typeof document<"u"?document.body:null}()||{},kt=!!Rt.style&&"WebkitAppearance"in Rt.style);let p=!0;return Rt.style&&!function bt(W){return"ebkit"==W.substring(1,6)}(W)&&(p=W in Rt.style,!p&&kt&&(p="Webkit"+W.charAt(0).toUpperCase()+W.slice(1)in Rt.style)),p}(v)}matchesElement(v,I){return!1}containsElement(v,I){return pr(v,I)}getParentElement(v){return Ue(v)}query(v,I,te){return jr(v,I,te)}computeStyle(v,I,te){return te||""}animate(v,I,te,me,Ne,Fe=[],st){return new et(te,me)}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})(),Hr=(()=>{class W{static#e=this.NOOP=new Ar}return W})();const Zr=1e3,Ur="ng-enter",ai="ng-leave",pe="ng-trigger",Z=".ng-trigger",K="ng-animating",D=".ng-animating";function X(W){if("number"==typeof W)return W;const p=W.match(/^(-?[\.\d]+)(m?s)/);return!p||p.length<2?0:de(parseFloat(p[1]),p[2])}function de(W,p){return"s"===p?W*Zr:W}function Oe(W,p,v){return W.hasOwnProperty("duration")?W:function Ae(W,p,v){let te,me=0,Ne="";if("string"==typeof W){const Fe=W.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Fe)return p.push(Rn()),{duration:0,delay:0,easing:""};te=de(parseFloat(Fe[1]),Fe[2]);const st=Fe[3];null!=st&&(me=de(parseFloat(st),Fe[4]));const Dt=Fe[5];Dt&&(Ne=Dt)}else te=W;if(!v){let Fe=!1,st=p.length;te<0&&(p.push(function We(){return new d.vHH(3100,!1)}()),Fe=!0),me<0&&(p.push(function Ye(){return new d.vHH(3101,!1)}()),Fe=!0),Fe&&p.splice(st,0,Rn())}return{duration:te,delay:me,easing:Ne}}(W,p,v)}function mt(W,p={}){return Object.keys(W).forEach(v=>{p[v]=W[v]}),p}function $t(W){const p=new Map;return Object.keys(W).forEach(v=>{p.set(v,W[v])}),p}function En(W,p=new Map,v){if(v)for(let[I,te]of v)p.set(I,te);for(let[I,te]of W)p.set(I,te);return p}function Nn(W,p,v){p.forEach((I,te)=>{const me=Wi(te);v&&!v.has(te)&&v.set(te,W.style[me]),W.style[me]=I})}function ir(W,p){p.forEach((v,I)=>{const te=Wi(I);W.style[te]=""})}function _r(W){return Array.isArray(W)?1==W.length?W[0]:ae(W):W}const Yr=new RegExp("{{\\s*(.+?)\\s*}}","g");function es(W){let p=[];if("string"==typeof W){let v;for(;v=Yr.exec(W);)p.push(v[1]);Yr.lastIndex=0}return p}function _i(W,p,v){const I=W.toString(),te=I.replace(Yr,(me,Ne)=>{let Fe=p[Ne];return null==Fe&&(v.push(function xt(W){return new d.vHH(3003,!1)}()),Fe=""),Fe.toString()});return te==I?W:te}function Ti(W){const p=[];let v=W.next();for(;!v.done;)p.push(v.value),v=W.next();return p}const hs=/-+([a-z0-9])/g;function Wi(W){return W.replace(hs,(...p)=>p[1].toUpperCase())}function Vr(W,p,v){switch(p.type){case 7:return W.visitTrigger(p,v);case 0:return W.visitState(p,v);case 1:return W.visitTransition(p,v);case 2:return W.visitSequence(p,v);case 3:return W.visitGroup(p,v);case 4:return W.visitAnimate(p,v);case 5:return W.visitKeyframes(p,v);case 6:return W.visitStyle(p,v);case 8:return W.visitReference(p,v);case 9:return W.visitAnimateChild(p,v);case 10:return W.visitAnimateRef(p,v);case 11:return W.visitQuery(p,v);case 12:return W.visitStagger(p,v);default:throw function nn(W){return new d.vHH(3004,!1)}()}}function jn(W,p){return window.getComputedStyle(W)[p]}const ui="*";function ys(W,p){const v=[];return"string"==typeof W?W.split(/\s*,\s*/).forEach(I=>function Ui(W,p,v){if(":"==W[0]){const st=function xr(W,p){switch(W){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(v,I)=>parseFloat(I)>parseFloat(v);case":decrement":return(v,I)=>parseFloat(I) *"}}(W,v);if("function"==typeof st)return void p.push(st);W=st}const I=W.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return v.push(function Qt(W){return new d.vHH(3015,!1)}()),p;const te=I[1],me=I[2],Ne=I[3];p.push(hr(te,Ne));"<"==me[0]&&!(te==ui&&Ne==ui)&&p.push(hr(Ne,te))}(I,v,p)):v.push(W),v}const Kt=new Set(["true","1"]),Mn=new Set(["false","0"]);function hr(W,p){const v=Kt.has(W)||Mn.has(W),I=Kt.has(p)||Mn.has(p);return(te,me)=>{let Ne=W==ui||W==te,Fe=p==ui||p==me;return!Ne&&v&&"boolean"==typeof te&&(Ne=te?Kt.has(W):Mn.has(W)),!Fe&&I&&"boolean"==typeof me&&(Fe=me?Kt.has(p):Mn.has(p)),Ne&&Fe}}const bi=new RegExp("s*:selfs*,?","g");function Nr(W,p,v,I){return new Ve(W).build(p,v,I)}class Ve{constructor(p){this._driver=p}build(p,v,I){const te=new Bt(v);return this._resetContextStyleTimingState(te),Vr(this,_r(p),te)}_resetContextStyleTimingState(p){p.currentQuerySelector="",p.collectedStyles=new Map,p.collectedStyles.set("",new Map),p.currentTime=0}visitTrigger(p,v){let I=v.queryCount=0,te=v.depCount=0;const me=[],Ne=[];return"@"==p.name.charAt(0)&&v.errors.push(function Ht(){return new d.vHH(3006,!1)}()),p.definitions.forEach(Fe=>{if(this._resetContextStyleTimingState(v),0==Fe.type){const st=Fe,Dt=st.name;Dt.toString().split(/\s*,\s*/).forEach(rn=>{st.name=rn,me.push(this.visitState(st,v))}),st.name=Dt}else if(1==Fe.type){const st=this.visitTransition(Fe,v);I+=st.queryCount,te+=st.depCount,Ne.push(st)}else v.errors.push(function zt(){return new d.vHH(3007,!1)}())}),{type:7,name:p.name,states:me,transitions:Ne,queryCount:I,depCount:te,options:null}}visitState(p,v){const I=this.visitStyle(p.styles,v),te=p.options&&p.options.params||null;if(I.containsDynamicStyles){const me=new Set,Ne=te||{};I.styles.forEach(Fe=>{Fe instanceof Map&&Fe.forEach(st=>{es(st).forEach(Dt=>{Ne.hasOwnProperty(Dt)||me.add(Dt)})})}),me.size&&(Ti(me.values()),v.errors.push(function fn(W,p){return new d.vHH(3008,!1)}()))}return{type:0,name:p.name,style:I,options:te?{params:te}:null}}visitTransition(p,v){v.queryCount=0,v.depCount=0;const I=Vr(this,_r(p.animation),v);return{type:1,matchers:ys(p.expr,v.errors),animation:I,queryCount:v.queryCount,depCount:v.depCount,options:Yn(p.options)}}visitSequence(p,v){return{type:2,steps:p.steps.map(I=>Vr(this,I,v)),options:Yn(p.options)}}visitGroup(p,v){const I=v.currentTime;let te=0;const me=p.steps.map(Ne=>{v.currentTime=I;const Fe=Vr(this,Ne,v);return te=Math.max(te,v.currentTime),Fe});return v.currentTime=te,{type:3,steps:me,options:Yn(p.options)}}visitAnimate(p,v){const I=function Si(W,p){if(W.hasOwnProperty("duration"))return W;if("number"==typeof W)return sr(Oe(W,p).duration,0,"");const v=W;if(v.split(/\s+/).some(me=>"{"==me.charAt(0)&&"{"==me.charAt(1))){const me=sr(0,0,"");return me.dynamic=!0,me.strValue=v,me}const te=Oe(v,p);return sr(te.duration,te.delay,te.easing)}(p.timings,v.errors);v.currentAnimateTimings=I;let te,me=p.styles?p.styles:fe({});if(5==me.type)te=this.visitKeyframes(me,v);else{let Ne=p.styles,Fe=!1;if(!Ne){Fe=!0;const Dt={};I.easing&&(Dt.easing=I.easing),Ne=fe(Dt)}v.currentTime+=I.duration+I.delay;const st=this.visitStyle(Ne,v);st.isEmptyStep=Fe,te=st}return v.currentAnimateTimings=null,{type:4,timings:I,style:te,options:null}}visitStyle(p,v){const I=this._makeStyleAst(p,v);return this._validateStyleAst(I,v),I}_makeStyleAst(p,v){const I=[],te=Array.isArray(p.styles)?p.styles:[p.styles];for(let Fe of te)"string"==typeof Fe?Fe===J?I.push(Fe):v.errors.push(new d.vHH(3002,!1)):I.push($t(Fe));let me=!1,Ne=null;return I.forEach(Fe=>{if(Fe instanceof Map&&(Fe.has("easing")&&(Ne=Fe.get("easing"),Fe.delete("easing")),!me))for(let st of Fe.values())if(st.toString().indexOf("{{")>=0){me=!0;break}}),{type:6,styles:I,easing:Ne,offset:p.offset,containsDynamicStyles:me,options:null}}_validateStyleAst(p,v){const I=v.currentAnimateTimings;let te=v.currentTime,me=v.currentTime;I&&me>0&&(me-=I.duration+I.delay),p.styles.forEach(Ne=>{"string"!=typeof Ne&&Ne.forEach((Fe,st)=>{const Dt=v.collectedStyles.get(v.currentQuerySelector),rn=Dt.get(st);let Xt=!0;rn&&(me!=te&&me>=rn.startTime&&te<=rn.endTime&&(v.errors.push(function en(W,p,v,I,te){return new d.vHH(3010,!1)}()),Xt=!1),me=rn.startTime),Xt&&Dt.set(st,{startTime:me,endTime:te}),v.options&&function zr(W,p,v){const I=p.params||{},te=es(W);te.length&&te.forEach(me=>{I.hasOwnProperty(me)||v.push(function At(W){return new d.vHH(3001,!1)}())})}(Fe,v.options,v.errors)})})}visitKeyframes(p,v){const I={type:5,styles:[],options:null};if(!v.currentAnimateTimings)return v.errors.push(function Dn(){return new d.vHH(3011,!1)}()),I;let me=0;const Ne=[];let Fe=!1,st=!1,Dt=0;const rn=p.steps.map(S=>{const y=this._makeStyleAst(S,v);let x=null!=y.offset?y.offset:function gr(W){if("string"==typeof W)return null;let p=null;if(Array.isArray(W))W.forEach(v=>{if(v instanceof Map&&v.has("offset")){const I=v;p=parseFloat(I.get("offset")),I.delete("offset")}});else if(W instanceof Map&&W.has("offset")){const v=W;p=parseFloat(v.get("offset")),v.delete("offset")}return p}(y.styles),G=0;return null!=x&&(me++,G=y.offset=x),st=st||G<0||G>1,Fe=Fe||G0&&me{const x=Tn>0?y==Vn?1:Tn*y:Ne[y],G=x*E;v.currentTime=xn+Fn.delay+G,Fn.duration=G,this._validateStyleAst(S,v),S.offset=x,I.styles.push(S)}),I}visitReference(p,v){return{type:8,animation:Vr(this,_r(p.animation),v),options:Yn(p.options)}}visitAnimateChild(p,v){return v.depCount++,{type:9,options:Yn(p.options)}}visitAnimateRef(p,v){return{type:10,animation:this.visitReference(p.animation,v),options:Yn(p.options)}}visitQuery(p,v){const I=v.currentQuerySelector,te=p.options||{};v.queryCount++,v.currentQuery=p;const[me,Ne]=function ct(W){const p=!!W.split(/\s*,\s*/).find(v=>":self"==v);return p&&(W=W.replace(bi,"")),W=W.replace(/@\*/g,Z).replace(/@\w+/g,v=>Z+"-"+v.slice(1)).replace(/:animating/g,D),[W,p]}(p.selector);v.currentQuerySelector=I.length?I+" "+me:me,$n(v.collectedStyles,v.currentQuerySelector,new Map);const Fe=Vr(this,_r(p.animation),v);return v.currentQuery=null,v.currentQuerySelector=I,{type:11,selector:me,limit:te.limit||0,optional:!!te.optional,includeSelf:Ne,animation:Fe,originalSelector:p.selector,options:Yn(p.options)}}visitStagger(p,v){v.currentQuery||v.errors.push(function it(){return new d.vHH(3013,!1)}());const I="full"===p.timings?{duration:0,delay:0,easing:"full"}:Oe(p.timings,v.errors,!0);return{type:12,animation:Vr(this,_r(p.animation),v),timings:I,options:null}}}class Bt{constructor(p){this.errors=p,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Yn(W){return W?(W=mt(W)).params&&(W.params=function Yt(W){return W?mt(W):null}(W.params)):W={},W}function sr(W,p,v){return{duration:W,delay:p,easing:v}}function Wr(W,p,v,I,te,me,Ne=null,Fe=!1){return{type:1,element:W,keyframes:p,preStyleProps:v,postStyleProps:I,duration:te,delay:me,totalTime:te+me,easing:Ne,subTimeline:Fe}}class Mi{constructor(){this._map=new Map}get(p){return this._map.get(p)||[]}append(p,v){let I=this._map.get(p);I||this._map.set(p,I=[]),I.push(...v)}has(p){return this._map.has(p)}clear(){this._map.clear()}}const bs=new RegExp(":enter","g"),Oi=new RegExp(":leave","g");function Ii(W,p,v,I,te,me=new Map,Ne=new Map,Fe,st,Dt=[]){return(new Pi).buildKeyframes(W,p,v,I,te,me,Ne,Fe,st,Dt)}class Pi{buildKeyframes(p,v,I,te,me,Ne,Fe,st,Dt,rn=[]){Dt=Dt||new Mi;const Xt=new Es(p,v,Dt,te,me,rn,[]);Xt.options=st;const Tn=st.delay?X(st.delay):0;Xt.currentTimeline.delayNextStep(Tn),Xt.currentTimeline.setStyles([Ne],null,Xt.errors,st),Vr(this,I,Xt);const Vn=Xt.timelines.filter(xn=>xn.containsAnimation());if(Vn.length&&Fe.size){let xn;for(let Fn=Vn.length-1;Fn>=0;Fn--){const E=Vn[Fn];if(E.element===v){xn=E;break}}xn&&!xn.allowOnlyTimelineStyles()&&xn.setStyles([Fe],null,Xt.errors,st)}return Vn.length?Vn.map(xn=>xn.buildKeyframes()):[Wr(v,[],[],[],0,Tn,"",!1)]}visitTrigger(p,v){}visitState(p,v){}visitTransition(p,v){}visitAnimateChild(p,v){const I=v.subInstructions.get(v.element);if(I){const te=v.createSubContext(p.options),me=v.currentTimeline.currentTime,Ne=this._visitSubInstructions(I,te,te.options);me!=Ne&&v.transformIntoNewTimeline(Ne)}v.previousNode=p}visitAnimateRef(p,v){const I=v.createSubContext(p.options);I.transformIntoNewTimeline(),this._applyAnimationRefDelays([p.options,p.animation.options],v,I),this.visitReference(p.animation,I),v.transformIntoNewTimeline(I.currentTimeline.currentTime),v.previousNode=p}_applyAnimationRefDelays(p,v,I){for(const te of p){const me=te?.delay;if(me){const Ne="number"==typeof me?me:X(_i(me,te?.params??{},v.errors));I.delayNextStep(Ne)}}}_visitSubInstructions(p,v,I){let me=v.currentTimeline.currentTime;const Ne=null!=I.duration?X(I.duration):null,Fe=null!=I.delay?X(I.delay):null;return 0!==Ne&&p.forEach(st=>{const Dt=v.appendInstructionToTimeline(st,Ne,Fe);me=Math.max(me,Dt.duration+Dt.delay)}),me}visitReference(p,v){v.updateOptions(p.options,!0),Vr(this,p.animation,v),v.previousNode=p}visitSequence(p,v){const I=v.subContextCount;let te=v;const me=p.options;if(me&&(me.params||me.delay)&&(te=v.createSubContext(me),te.transformIntoNewTimeline(),null!=me.delay)){6==te.previousNode.type&&(te.currentTimeline.snapshotCurrentStyles(),te.previousNode=Gn);const Ne=X(me.delay);te.delayNextStep(Ne)}p.steps.length&&(p.steps.forEach(Ne=>Vr(this,Ne,te)),te.currentTimeline.applyStylesToKeyframe(),te.subContextCount>I&&te.transformIntoNewTimeline()),v.previousNode=p}visitGroup(p,v){const I=[];let te=v.currentTimeline.currentTime;const me=p.options&&p.options.delay?X(p.options.delay):0;p.steps.forEach(Ne=>{const Fe=v.createSubContext(p.options);me&&Fe.delayNextStep(me),Vr(this,Ne,Fe),te=Math.max(te,Fe.currentTimeline.currentTime),I.push(Fe.currentTimeline)}),I.forEach(Ne=>v.currentTimeline.mergeTimelineCollectedStyles(Ne)),v.transformIntoNewTimeline(te),v.previousNode=p}_visitTiming(p,v){if(p.dynamic){const I=p.strValue;return Oe(v.params?_i(I,v.params,v.errors):I,v.errors)}return{duration:p.duration,delay:p.delay,easing:p.easing}}visitAnimate(p,v){const I=v.currentAnimateTimings=this._visitTiming(p.timings,v),te=v.currentTimeline;I.delay&&(v.incrementTime(I.delay),te.snapshotCurrentStyles());const me=p.style;5==me.type?this.visitKeyframes(me,v):(v.incrementTime(I.duration),this.visitStyle(me,v),te.applyStylesToKeyframe()),v.currentAnimateTimings=null,v.previousNode=p}visitStyle(p,v){const I=v.currentTimeline,te=v.currentAnimateTimings;!te&&I.hasCurrentStyleProperties()&&I.forwardFrame();const me=te&&te.easing||p.easing;p.isEmptyStep?I.applyEmptyStep(me):I.setStyles(p.styles,me,v.errors,v.options),v.previousNode=p}visitKeyframes(p,v){const I=v.currentAnimateTimings,te=v.currentTimeline.duration,me=I.duration,Fe=v.createSubContext().currentTimeline;Fe.easing=I.easing,p.styles.forEach(st=>{Fe.forwardTime((st.offset||0)*me),Fe.setStyles(st.styles,st.easing,v.errors,v.options),Fe.applyStylesToKeyframe()}),v.currentTimeline.mergeTimelineCollectedStyles(Fe),v.transformIntoNewTimeline(te+me),v.previousNode=p}visitQuery(p,v){const I=v.currentTimeline.currentTime,te=p.options||{},me=te.delay?X(te.delay):0;me&&(6===v.previousNode.type||0==I&&v.currentTimeline.hasCurrentStyleProperties())&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=Gn);let Ne=I;const Fe=v.invokeQuery(p.selector,p.originalSelector,p.limit,p.includeSelf,!!te.optional,v.errors);v.currentQueryTotal=Fe.length;let st=null;Fe.forEach((Dt,rn)=>{v.currentQueryIndex=rn;const Xt=v.createSubContext(p.options,Dt);me&&Xt.delayNextStep(me),Dt===v.element&&(st=Xt.currentTimeline),Vr(this,p.animation,Xt),Xt.currentTimeline.applyStylesToKeyframe(),Ne=Math.max(Ne,Xt.currentTimeline.currentTime)}),v.currentQueryIndex=0,v.currentQueryTotal=0,v.transformIntoNewTimeline(Ne),st&&(v.currentTimeline.mergeTimelineCollectedStyles(st),v.currentTimeline.snapshotCurrentStyles()),v.previousNode=p}visitStagger(p,v){const I=v.parentContext,te=v.currentTimeline,me=p.timings,Ne=Math.abs(me.duration),Fe=Ne*(v.currentQueryTotal-1);let st=Ne*v.currentQueryIndex;switch(me.duration<0?"reverse":me.easing){case"reverse":st=Fe-st;break;case"full":st=I.currentStaggerTime}const rn=v.currentTimeline;st&&rn.delayNextStep(st);const Xt=rn.currentTime;Vr(this,p.animation,v),v.previousNode=p,I.currentStaggerTime=te.currentTime-Xt+(te.startTime-I.currentTimeline.startTime)}}const Gn={};class Es{constructor(p,v,I,te,me,Ne,Fe,st){this._driver=p,this.element=v,this.subInstructions=I,this._enterClassName=te,this._leaveClassName=me,this.errors=Ne,this.timelines=Fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=st||new zi(this._driver,v,0),Fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(p,v){if(!p)return;const I=p;let te=this.options;null!=I.duration&&(te.duration=X(I.duration)),null!=I.delay&&(te.delay=X(I.delay));const me=I.params;if(me){let Ne=te.params;Ne||(Ne=this.options.params={}),Object.keys(me).forEach(Fe=>{(!v||!Ne.hasOwnProperty(Fe))&&(Ne[Fe]=_i(me[Fe],Ne,this.errors))})}}_copyOptions(){const p={};if(this.options){const v=this.options.params;if(v){const I=p.params={};Object.keys(v).forEach(te=>{I[te]=v[te]})}}return p}createSubContext(p=null,v,I){const te=v||this.element,me=new Es(this._driver,te,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(te,I||0));return me.previousNode=this.previousNode,me.currentAnimateTimings=this.currentAnimateTimings,me.options=this._copyOptions(),me.updateOptions(p),me.currentQueryIndex=this.currentQueryIndex,me.currentQueryTotal=this.currentQueryTotal,me.parentContext=this,this.subContextCount++,me}transformIntoNewTimeline(p){return this.previousNode=Gn,this.currentTimeline=this.currentTimeline.fork(this.element,p),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(p,v,I){const te={duration:v??p.duration,delay:this.currentTimeline.currentTime+(I??0)+p.delay,easing:""},me=new rs(this._driver,p.element,p.keyframes,p.preStyleProps,p.postStyleProps,te,p.stretchStartingKeyframe);return this.timelines.push(me),te}incrementTime(p){this.currentTimeline.forwardTime(this.currentTimeline.duration+p)}delayNextStep(p){p>0&&this.currentTimeline.delayNextStep(p)}invokeQuery(p,v,I,te,me,Ne){let Fe=[];if(te&&Fe.push(this.element),p.length>0){p=(p=p.replace(bs,"."+this._enterClassName)).replace(Oi,"."+this._leaveClassName);let Dt=this._driver.query(this.element,p,1!=I);0!==I&&(Dt=I<0?Dt.slice(Dt.length+I,Dt.length):Dt.slice(0,I)),Fe.push(...Dt)}return!me&&0==Fe.length&&Ne.push(function Ut(W){return new d.vHH(3014,!1)}()),Fe}}class zi{constructor(p,v,I,te){this._driver=p,this.element=v,this.startTime=I,this._elementTimelineStylesLookup=te,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(v),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(v,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(p){const v=1===this._keyframes.size&&this._pendingStyles.size;this.duration||v?(this.forwardTime(this.currentTime+p),v&&this.snapshotCurrentStyles()):this.startTime+=p}fork(p,v){return this.applyStylesToKeyframe(),new zi(this._driver,p,v||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(p){this.applyStylesToKeyframe(),this.duration=p,this._loadKeyframe()}_updateStyle(p,v){this._localTimelineStyles.set(p,v),this._globalTimelineStyles.set(p,v),this._styleSummary.set(p,{time:this.currentTime,value:v})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(p){p&&this._previousKeyframe.set("easing",p);for(let[v,I]of this._globalTimelineStyles)this._backFill.set(v,I||J),this._currentKeyframe.set(v,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(p,v,I,te){v&&this._previousKeyframe.set("easing",v);const me=te&&te.params||{},Ne=function gs(W,p){const v=new Map;let I;return W.forEach(te=>{if("*"===te){I=I||p.keys();for(let me of I)v.set(me,J)}else En(te,v)}),v}(p,this._globalTimelineStyles);for(let[Fe,st]of Ne){const Dt=_i(st,me,I);this._pendingStyles.set(Fe,Dt),this._localTimelineStyles.has(Fe)||this._backFill.set(Fe,this._globalTimelineStyles.get(Fe)??J),this._updateStyle(Fe,Dt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((p,v)=>{this._currentKeyframe.set(v,p)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((p,v)=>{this._currentKeyframe.has(v)||this._currentKeyframe.set(v,p)}))}snapshotCurrentStyles(){for(let[p,v]of this._localTimelineStyles)this._pendingStyles.set(p,v),this._updateStyle(p,v)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const p=[];for(let v in this._currentKeyframe)p.push(v);return p}mergeTimelineCollectedStyles(p){p._styleSummary.forEach((v,I)=>{const te=this._styleSummary.get(I);(!te||v.time>te.time)&&this._updateStyle(I,v.value)})}buildKeyframes(){this.applyStylesToKeyframe();const p=new Set,v=new Set,I=1===this._keyframes.size&&0===this.duration;let te=[];this._keyframes.forEach((Fe,st)=>{const Dt=En(Fe,new Map,this._backFill);Dt.forEach((rn,Xt)=>{"!"===rn?p.add(Xt):rn===J&&v.add(Xt)}),I||Dt.set("offset",st/this.duration),te.push(Dt)});const me=p.size?Ti(p.values()):[],Ne=v.size?Ti(v.values()):[];if(I){const Fe=te[0],st=new Map(Fe);Fe.set("offset",0),st.set("offset",1),te=[Fe,st]}return Wr(this.element,te,me,Ne,this.duration,this.startTime,this.easing,!1)}}class rs extends zi{constructor(p,v,I,te,me,Ne,Fe=!1){super(p,v,Ne.delay),this.keyframes=I,this.preStyleProps=te,this.postStyleProps=me,this._stretchStartingKeyframe=Fe,this.timings={duration:Ne.duration,delay:Ne.delay,easing:Ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let p=this.keyframes,{delay:v,duration:I,easing:te}=this.timings;if(this._stretchStartingKeyframe&&v){const me=[],Ne=I+v,Fe=v/Ne,st=En(p[0]);st.set("offset",0),me.push(st);const Dt=En(p[0]);Dt.set("offset",Pr(Fe)),me.push(Dt);const rn=p.length-1;for(let Xt=1;Xt<=rn;Xt++){let Tn=En(p[Xt]);const Vn=Tn.get("offset");Tn.set("offset",Pr((v+Vn*I)/Ne)),me.push(Tn)}I=Ne,v=0,te="",p=me}return Wr(this.element,p,this.preStyleProps,this.postStyleProps,I,v,te,!0)}}function Pr(W,p=3){const v=Math.pow(10,p-1);return Math.round(W*v)/v}class ht{}const lt=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ot extends ht{normalizePropertyName(p,v){return Wi(p)}normalizeStyleValue(p,v,I,te){let me="";const Ne=I.toString().trim();if(lt.has(v)&&0!==I&&"0"!==I)if("number"==typeof I)me="px";else{const Fe=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Fe&&0==Fe[1].length&&te.push(function Et(W,p){return new d.vHH(3005,!1)}())}return Ne+me}}function qt(W,p,v,I,te,me,Ne,Fe,st,Dt,rn,Xt,Tn){return{type:0,element:W,triggerName:p,isRemovalTransition:te,fromState:v,fromStyles:me,toState:I,toStyles:Ne,timelines:Fe,queriedElements:st,preStyleProps:Dt,postStyleProps:rn,totalTime:Xt,errors:Tn}}const Kr={};class ji{constructor(p,v,I){this._triggerName=p,this.ast=v,this._stateStyles=I}match(p,v,I,te){return function fi(W,p,v,I,te){return W.some(me=>me(p,v,I,te))}(this.ast.matchers,p,v,I,te)}buildStyles(p,v,I){let te=this._stateStyles.get("*");return void 0!==p&&(te=this._stateStyles.get(p?.toString())||te),te?te.buildStyles(v,I):new Map}build(p,v,I,te,me,Ne,Fe,st,Dt,rn){const Xt=[],Tn=this.ast.options&&this.ast.options.params||Kr,xn=this.buildStyles(I,Fe&&Fe.params||Kr,Xt),Fn=st&&st.params||Kr,E=this.buildStyles(te,Fn,Xt),S=new Set,y=new Map,x=new Map,G="void"===te,he={params:Hs(Fn,Tn),delay:this.ast.options?.delay},Me=rn?[]:Ii(p,v,this.ast.animation,me,Ne,xn,E,he,Dt,Xt);let at=0;if(Me.forEach(tn=>{at=Math.max(tn.duration+tn.delay,at)}),Xt.length)return qt(v,this._triggerName,I,te,G,xn,E,[],[],y,x,at,Xt);Me.forEach(tn=>{const kn=tn.element,Rr=$n(y,kn,new Set);tn.preStyleProps.forEach(hi=>Rr.add(hi));const or=$n(x,kn,new Set);tn.postStyleProps.forEach(hi=>or.add(hi)),kn!==v&&S.add(kn)});const ft=Ti(S.values());return qt(v,this._triggerName,I,te,G,xn,E,Me,ft,y,x,at)}}function Hs(W,p){const v=mt(p);for(const I in W)W.hasOwnProperty(I)&&null!=W[I]&&(v[I]=W[I]);return v}class po{constructor(p,v,I){this.styles=p,this.defaultParams=v,this.normalizer=I}buildStyles(p,v){const I=new Map,te=mt(this.defaultParams);return Object.keys(p).forEach(me=>{const Ne=p[me];null!==Ne&&(te[me]=Ne)}),this.styles.styles.forEach(me=>{"string"!=typeof me&&me.forEach((Ne,Fe)=>{Ne&&(Ne=_i(Ne,te,v));const st=this.normalizer.normalizePropertyName(Fe,v);Ne=this.normalizer.normalizeStyleValue(Fe,st,Ne,v),I.set(Fe,Ne)})}),I}}class Xs{constructor(p,v,I){this.name=p,this.ast=v,this._normalizer=I,this.transitionFactories=[],this.states=new Map,v.states.forEach(te=>{this.states.set(te.name,new po(te.style,te.options&&te.options.params||{},I))}),qs(this.states,"true","1"),qs(this.states,"false","0"),v.transitions.forEach(te=>{this.transitionFactories.push(new ji(p,te,this.states))}),this.fallbackTransition=function Co(W,p,v){return new ji(W,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ne,Fe)=>!0],options:null,queryCount:0,depCount:0},p)}(p,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(p,v,I,te){return this.transitionFactories.find(Ne=>Ne.match(p,v,I,te))||null}matchStyles(p,v,I){return this.fallbackTransition.buildStyles(p,v,I)}}function qs(W,p,v){W.has(p)?W.has(v)||W.set(v,W.get(p)):W.has(v)&&W.set(p,W.get(v))}const Y=new Mi;class re{constructor(p,v,I){this.bodyNode=p,this._driver=v,this._normalizer=I,this._animations=new Map,this._playersById=new Map,this.players=[]}register(p,v){const I=[],me=Nr(this._driver,v,I,[]);if(I.length)throw function wr(W){return new d.vHH(3503,!1)}();this._animations.set(p,me)}_buildPlayer(p,v,I){const te=p.element,me=Un(this._normalizer,p.keyframes,v,I);return this._driver.animate(te,me,p.duration,p.delay,p.easing,[],!0)}create(p,v,I={}){const te=[],me=this._animations.get(p);let Ne;const Fe=new Map;if(me?(Ne=Ii(this._driver,v,me,Ur,ai,new Map,new Map,I,Y,te),Ne.forEach(rn=>{const Xt=$n(Fe,rn.element,new Map);rn.postStyleProps.forEach(Tn=>Xt.set(Tn,null))})):(te.push(function Or(){return new d.vHH(3300,!1)}()),Ne=[]),te.length)throw function Ir(W){return new d.vHH(3504,!1)}();Fe.forEach((rn,Xt)=>{rn.forEach((Tn,Vn)=>{rn.set(Vn,this._driver.computeStyle(Xt,Vn,J))})});const Dt=Vt(Ne.map(rn=>{const Xt=Fe.get(rn.element);return this._buildPlayer(rn,new Map,Xt)}));return this._playersById.set(p,Dt),Dt.onDestroy(()=>this.destroy(p)),this.players.push(Dt),Dt}destroy(p){const v=this._getPlayer(p);v.destroy(),this._playersById.delete(p);const I=this.players.indexOf(v);I>=0&&this.players.splice(I,1)}_getPlayer(p){const v=this._playersById.get(p);if(!v)throw function Br(W){return new d.vHH(3301,!1)}();return v}listen(p,v,I,te){const me=ln(v,"","","");return on(this._getPlayer(p),I,me,te),()=>{}}command(p,v,I,te){if("register"==I)return void this.register(p,te[0]);if("create"==I)return void this.create(p,v,te[0]||{});const me=this._getPlayer(p);switch(I){case"play":me.play();break;case"pause":me.pause();break;case"reset":me.reset();break;case"restart":me.restart();break;case"finish":me.finish();break;case"init":me.init();break;case"setPosition":me.setPosition(parseFloat(te[0]));break;case"destroy":this.destroy(p)}}}const N="ng-animate-queued",Re="ng-animate-disabled",is=[],eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ss="__ng_removed";class to{get params(){return this.options.params}constructor(p,v=""){this.namespaceId=v;const I=p&&p.hasOwnProperty("value");if(this.value=function To(W){return W??null}(I?p.value:p),I){const me=mt(p);delete me.value,this.options=me}else this.options={};this.options.params||(this.options.params={})}absorbOptions(p){const v=p.params;if(v){const I=this.options.params;Object.keys(v).forEach(te=>{null==I[te]&&(I[te]=v[te])})}}}const Vs="void",Go=new to(Vs);class Ra{constructor(p,v,I){this.id=p,this.hostElement=v,this._engine=I,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+p,Li(v,this._hostClassName)}listen(p,v,I,te){if(!this._triggers.has(v))throw function oi(W,p){return new d.vHH(3302,!1)}();if(null==I||0==I.length)throw function Zn(W){return new d.vHH(3303,!1)}();if(!function pi(W){return"start"==W||"done"==W}(I))throw function dt(W,p){return new d.vHH(3400,!1)}();const me=$n(this._elementListeners,p,[]),Ne={name:v,phase:I,callback:te};me.push(Ne);const Fe=$n(this._engine.statesByElement,p,new Map);return Fe.has(v)||(Li(p,pe),Li(p,pe+"-"+v),Fe.set(v,Go)),()=>{this._engine.afterFlush(()=>{const st=me.indexOf(Ne);st>=0&&me.splice(st,1),this._triggers.has(v)||Fe.delete(v)})}}register(p,v){return!this._triggers.has(p)&&(this._triggers.set(p,v),!0)}_getTrigger(p){const v=this._triggers.get(p);if(!v)throw function ot(W){return new d.vHH(3401,!1)}();return v}trigger(p,v,I,te=!0){const me=this._getTrigger(v),Ne=new os(this.id,v,p);let Fe=this._engine.statesByElement.get(p);Fe||(Li(p,pe),Li(p,pe+"-"+v),this._engine.statesByElement.set(p,Fe=new Map));let st=Fe.get(v);const Dt=new to(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&st&&Dt.absorbOptions(st.options),Fe.set(v,Dt),st||(st=Go),Dt.value!==Vs&&st.value===Dt.value){if(!function wo(W,p){const v=Object.keys(W),I=Object.keys(p);if(v.length!=I.length)return!1;for(let te=0;te{ir(p,E),Nn(p,S)})}return}const Tn=$n(this._engine.playersByElement,p,[]);Tn.forEach(Fn=>{Fn.namespaceId==this.id&&Fn.triggerName==v&&Fn.queued&&Fn.destroy()});let Vn=me.matchTransition(st.value,Dt.value,p,Dt.params),xn=!1;if(!Vn){if(!te)return;Vn=me.fallbackTransition,xn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:v,transition:Vn,fromState:st,toState:Dt,player:Ne,isFallbackTransition:xn}),xn||(Li(p,N),Ne.onStart(()=>{Ps(p,N)})),Ne.onDone(()=>{let Fn=this.players.indexOf(Ne);Fn>=0&&this.players.splice(Fn,1);const E=this._engine.playersByElement.get(p);if(E){let S=E.indexOf(Ne);S>=0&&E.splice(S,1)}}),this.players.push(Ne),Tn.push(Ne),Ne}deregister(p){this._triggers.delete(p),this._engine.statesByElement.forEach(v=>v.delete(p)),this._elementListeners.forEach((v,I)=>{this._elementListeners.set(I,v.filter(te=>te.name!=p))})}clearElementCache(p){this._engine.statesByElement.delete(p),this._elementListeners.delete(p);const v=this._engine.playersByElement.get(p);v&&(v.forEach(I=>I.destroy()),this._engine.playersByElement.delete(p))}_signalRemovalForInnerTriggers(p,v){const I=this._engine.driver.query(p,Z,!0);I.forEach(te=>{if(te[ss])return;const me=this._engine.fetchNamespacesByElement(te);me.size?me.forEach(Ne=>Ne.triggerLeaveAnimation(te,v,!1,!0)):this.clearElementCache(te)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(te=>this.clearElementCache(te)))}triggerLeaveAnimation(p,v,I,te){const me=this._engine.statesByElement.get(p),Ne=new Map;if(me){const Fe=[];if(me.forEach((st,Dt)=>{if(Ne.set(Dt,st.value),this._triggers.has(Dt)){const rn=this.trigger(p,Dt,Vs,te);rn&&Fe.push(rn)}}),Fe.length)return this._engine.markElementAsRemoved(this.id,p,!0,v,Ne),I&&Vt(Fe).onDone(()=>this._engine.processLeaveNode(p)),!0}return!1}prepareLeaveAnimationListeners(p){const v=this._elementListeners.get(p),I=this._engine.statesByElement.get(p);if(v&&I){const te=new Set;v.forEach(me=>{const Ne=me.name;if(te.has(Ne))return;te.add(Ne);const st=this._triggers.get(Ne).fallbackTransition,Dt=I.get(Ne)||Go,rn=new to(Vs),Xt=new os(this.id,Ne,p);this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:Ne,transition:st,fromState:Dt,toState:rn,player:Xt,isFallbackTransition:!0})})}}removeNode(p,v){const I=this._engine;if(p.childElementCount&&this._signalRemovalForInnerTriggers(p,v),this.triggerLeaveAnimation(p,v,!0))return;let te=!1;if(I.totalAnimations){const me=I.players.length?I.playersByQueriedElement.get(p):[];if(me&&me.length)te=!0;else{let Ne=p;for(;Ne=Ne.parentNode;)if(I.statesByElement.get(Ne)){te=!0;break}}}if(this.prepareLeaveAnimationListeners(p),te)I.markElementAsRemoved(this.id,p,!1,v);else{const me=p[ss];(!me||me===eo)&&(I.afterFlush(()=>this.clearElementCache(p)),I.destroyInnerAnimations(p),I._onRemovalComplete(p,v))}}insertNode(p,v){Li(p,this._hostClassName)}drainQueuedTransitions(p){const v=[];return this._queue.forEach(I=>{const te=I.player;if(te.destroyed)return;const me=I.element,Ne=this._elementListeners.get(me);Ne&&Ne.forEach(Fe=>{if(Fe.name==I.triggerName){const st=ln(me,I.triggerName,I.fromState.value,I.toState.value);st._data=p,on(I.player,Fe.phase,st,Fe.callback)}}),te.markedForDestroy?this._engine.afterFlush(()=>{te.destroy()}):v.push(I)}),this._queue=[],v.sort((I,te)=>{const me=I.transition.ast.depCount,Ne=te.transition.ast.depCount;return 0==me||0==Ne?me-Ne:this._engine.driver.containsElement(I.element,te.element)?1:-1})}destroy(p){this.players.forEach(v=>v.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,p)}}class ho{_onRemovalComplete(p,v){this.onRemovalComplete(p,v)}constructor(p,v,I){this.bodyNode=p,this.driver=v,this._normalizer=I,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(te,me)=>{}}get queuedPlayers(){const p=[];return this._namespaceList.forEach(v=>{v.players.forEach(I=>{I.queued&&p.push(I)})}),p}createNamespace(p,v){const I=new Ra(p,v,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,v)?this._balanceNamespaceList(I,v):(this.newHostElements.set(v,I),this.collectEnterElement(v)),this._namespaceLookup[p]=I}_balanceNamespaceList(p,v){const I=this._namespaceList,te=this.namespacesByHostElement;if(I.length-1>=0){let Ne=!1,Fe=this.driver.getParentElement(v);for(;Fe;){const st=te.get(Fe);if(st){const Dt=I.indexOf(st);I.splice(Dt+1,0,p),Ne=!0;break}Fe=this.driver.getParentElement(Fe)}Ne||I.unshift(p)}else I.push(p);return te.set(v,p),p}register(p,v){let I=this._namespaceLookup[p];return I||(I=this.createNamespace(p,v)),I}registerTrigger(p,v,I){let te=this._namespaceLookup[p];te&&te.register(v,I)&&this.totalAnimations++}destroy(p,v){p&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const I=this._fetchNamespace(p);this.namespacesByHostElement.delete(I.hostElement);const te=this._namespaceList.indexOf(I);te>=0&&this._namespaceList.splice(te,1),I.destroy(v),delete this._namespaceLookup[p]}))}_fetchNamespace(p){return this._namespaceLookup[p]}fetchNamespacesByElement(p){const v=new Set,I=this.statesByElement.get(p);if(I)for(let te of I.values())if(te.namespaceId){const me=this._fetchNamespace(te.namespaceId);me&&v.add(me)}return v}trigger(p,v,I,te){if(Ki(v)){const me=this._fetchNamespace(p);if(me)return me.trigger(v,I,te),!0}return!1}insertNode(p,v,I,te){if(!Ki(v))return;const me=v[ss];if(me&&me.setForRemoval){me.setForRemoval=!1,me.setForMove=!0;const Ne=this.collectedLeaveElements.indexOf(v);Ne>=0&&this.collectedLeaveElements.splice(Ne,1)}if(p){const Ne=this._fetchNamespace(p);Ne&&Ne.insertNode(v,I)}te&&this.collectEnterElement(v)}collectEnterElement(p){this.collectedEnterElements.push(p)}markElementAsDisabled(p,v){v?this.disabledNodes.has(p)||(this.disabledNodes.add(p),Li(p,Re)):this.disabledNodes.has(p)&&(this.disabledNodes.delete(p),Ps(p,Re))}removeNode(p,v,I){if(Ki(v)){const te=p?this._fetchNamespace(p):null;te?te.removeNode(v,I):this.markElementAsRemoved(p,v,!1,I);const me=this.namespacesByHostElement.get(v);me&&me.id!==p&&me.removeNode(v,I)}else this._onRemovalComplete(v,I)}markElementAsRemoved(p,v,I,te,me){this.collectedLeaveElements.push(v),v[ss]={namespaceId:p,setForRemoval:te,hasAnimation:I,removedBeforeQueried:!1,previousTriggersValues:me}}listen(p,v,I,te,me){return Ki(v)?this._fetchNamespace(p).listen(v,I,te,me):()=>{}}_buildInstruction(p,v,I,te,me){return p.transition.build(this.driver,p.element,p.fromState.value,p.toState.value,I,te,p.fromState.options,p.toState.options,v,me)}destroyInnerAnimations(p){let v=this.driver.query(p,Z,!0);v.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(v=this.driver.query(p,D,!0),v.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(p){const v=this.playersByElement.get(p);v&&v.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(p){const v=this.playersByQueriedElement.get(p);v&&v.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(p=>{if(this.players.length)return Vt(this.players).onDone(()=>p());p()})}processLeaveNode(p){const v=p[ss];if(v&&v.setForRemoval){if(p[ss]=eo,v.namespaceId){this.destroyInnerAnimations(p);const I=this._fetchNamespace(v.namespaceId);I&&I.clearElementCache(p)}this._onRemovalComplete(p,v.setForRemoval)}p.classList?.contains(Re)&&this.markElementAsDisabled(p,!1),this.driver.query(p,".ng-animate-disabled",!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(p=-1){let v=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,te)=>this._balanceNamespaceList(I,te)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;II()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],v.length?Vt(v).onDone(()=>{I.forEach(te=>te())}):I.forEach(te=>te())}}reportError(p){throw function we(W){return new d.vHH(3402,!1)}()}_flushAnimations(p,v){const I=new Mi,te=[],me=new Map,Ne=[],Fe=new Map,st=new Map,Dt=new Map,rn=new Set;this.disabledNodes.forEach(mn=>{rn.add(mn);const On=this.driver.query(mn,".ng-animate-queued",!0);for(let bn=0;bn{const bn=Ur+Fn++;xn.set(On,bn),mn.forEach(tr=>Li(tr,bn))});const E=[],S=new Set,y=new Set;for(let mn=0;mnS.add(tr)):y.add(On))}const x=new Map,G=no(Tn,Array.from(S));G.forEach((mn,On)=>{const bn=ai+Fn++;x.set(On,bn),mn.forEach(tr=>Li(tr,bn))}),p.push(()=>{Vn.forEach((mn,On)=>{const bn=xn.get(On);mn.forEach(tr=>Ps(tr,bn))}),G.forEach((mn,On)=>{const bn=x.get(On);mn.forEach(tr=>Ps(tr,bn))}),E.forEach(mn=>{this.processLeaveNode(mn)})});const he=[],Me=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(v).forEach(bn=>{const tr=bn.player,ar=bn.element;if(he.push(tr),this.collectedEnterElements.length){const ri=ar[ss];if(ri&&ri.setForMove){if(ri.previousTriggersValues&&ri.previousTriggersValues.has(bn.triggerName)){const Qi=ri.previousTriggersValues.get(bn.triggerName),ds=this.statesByElement.get(bn.element);if(ds&&ds.has(bn.triggerName)){const ao=ds.get(bn.triggerName);ao.value=Qi,ds.set(bn.triggerName,ao)}}return void tr.destroy()}}const Ms=!Xt||!this.driver.containsElement(Xt,ar),Ji=x.get(ar),fr=xn.get(ar),ni=this._buildInstruction(bn,I,fr,Ji,Ms);if(ni.errors&&ni.errors.length)return void Me.push(ni);if(Ms)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);if(bn.isFallbackTransition)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);const Jo=[];ni.timelines.forEach(ri=>{ri.stretchStartingKeyframe=!0,this.disabledNodes.has(ri.element)||Jo.push(ri)}),ni.timelines=Jo,I.append(ar,ni.timelines),Ne.push({instruction:ni,player:tr,element:ar}),ni.queriedElements.forEach(ri=>$n(Fe,ri,[]).push(tr)),ni.preStyleProps.forEach((ri,Qi)=>{if(ri.size){let ds=st.get(Qi);ds||st.set(Qi,ds=new Set),ri.forEach((ao,lo)=>ds.add(lo))}}),ni.postStyleProps.forEach((ri,Qi)=>{let ds=Dt.get(Qi);ds||Dt.set(Qi,ds=new Set),ri.forEach((ao,lo)=>ds.add(lo))})});if(Me.length){const mn=[];Me.forEach(On=>{mn.push(function yt(W,p){return new d.vHH(3505,!1)}())}),he.forEach(On=>On.destroy()),this.reportError(mn)}const at=new Map,ft=new Map;Ne.forEach(mn=>{const On=mn.element;I.has(On)&&(ft.set(On,On),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,at))}),te.forEach(mn=>{const On=mn.element;this._getPreviousPlayers(On,!1,mn.namespaceId,mn.triggerName,null).forEach(tr=>{$n(at,On,[]).push(tr),tr.destroy()})});const tn=E.filter(mn=>So(mn,st,Dt)),kn=new Map;yi(kn,this.driver,y,Dt,J).forEach(mn=>{So(mn,st,Dt)&&tn.push(mn)});const or=new Map;Vn.forEach((mn,On)=>{yi(or,this.driver,new Set(mn),st,"!")}),tn.forEach(mn=>{const On=kn.get(mn),bn=or.get(mn);kn.set(mn,new Map([...On?.entries()??[],...bn?.entries()??[]]))});const hi=[],Gs=[],Ns={};Ne.forEach(mn=>{const{element:On,player:bn,instruction:tr}=mn;if(I.has(On)){if(rn.has(On))return bn.onDestroy(()=>Nn(On,tr.toStyles)),bn.disabled=!0,bn.overrideTotalTime(tr.totalTime),void te.push(bn);let ar=Ns;if(ft.size>1){let Ji=On;const fr=[];for(;Ji=Ji.parentNode;){const ni=ft.get(Ji);if(ni){ar=ni;break}fr.push(Ji)}fr.forEach(ni=>ft.set(ni,ar))}const Ms=this._buildAnimation(bn.namespaceId,tr,at,me,or,kn);if(bn.setRealPlayer(Ms),ar===Ns)hi.push(bn);else{const Ji=this.playersByElement.get(ar);Ji&&Ji.length&&(bn.parentPlayer=Vt(Ji)),te.push(bn)}}else ir(On,tr.fromStyles),bn.onDestroy(()=>Nn(On,tr.toStyles)),Gs.push(bn),rn.has(On)&&te.push(bn)}),Gs.forEach(mn=>{const On=me.get(mn.element);if(On&&On.length){const bn=Vt(On);mn.setRealPlayer(bn)}}),te.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn!Ms.destroyed);ar.length?ro(this,On,ar):this.processLeaveNode(On)}return E.length=0,hi.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const On=this.players.indexOf(mn);this.players.splice(On,1)}),mn.play()}),hi}afterFlush(p){this._flushFns.push(p)}afterFlushAnimationsDone(p){this._whenQuietFns.push(p)}_getPreviousPlayers(p,v,I,te,me){let Ne=[];if(v){const Fe=this.playersByQueriedElement.get(p);Fe&&(Ne=Fe)}else{const Fe=this.playersByElement.get(p);if(Fe){const st=!me||me==Vs;Fe.forEach(Dt=>{Dt.queued||!st&&Dt.triggerName!=te||Ne.push(Dt)})}}return(I||te)&&(Ne=Ne.filter(Fe=>!(I&&I!=Fe.namespaceId||te&&te!=Fe.triggerName))),Ne}_beforeAnimationBuild(p,v,I){const me=v.element,Ne=v.isRemovalTransition?void 0:p,Fe=v.isRemovalTransition?void 0:v.triggerName;for(const st of v.timelines){const Dt=st.element,rn=Dt!==me,Xt=$n(I,Dt,[]);this._getPreviousPlayers(Dt,rn,Ne,Fe,v.toState).forEach(Vn=>{const xn=Vn.getRealPlayer();xn.beforeDestroy&&xn.beforeDestroy(),Vn.destroy(),Xt.push(Vn)})}ir(me,v.fromStyles)}_buildAnimation(p,v,I,te,me,Ne){const Fe=v.triggerName,st=v.element,Dt=[],rn=new Set,Xt=new Set,Tn=v.timelines.map(xn=>{const Fn=xn.element;rn.add(Fn);const E=Fn[ss];if(E&&E.removedBeforeQueried)return new et(xn.duration,xn.delay);const S=Fn!==st,y=function io(W){const p=[];return go(W,p),p}((I.get(Fn)||is).map(at=>at.getRealPlayer())).filter(at=>!!at.element&&at.element===Fn),x=me.get(Fn),G=Ne.get(Fn),he=Un(this._normalizer,xn.keyframes,x,G),Me=this._buildPlayer(xn,he,y);if(xn.subTimeline&&te&&Xt.add(Fn),S){const at=new os(p,Fe,Fn);at.setRealPlayer(Me),Dt.push(at)}return Me});Dt.forEach(xn=>{$n(this.playersByQueriedElement,xn.element,[]).push(xn),xn.onDone(()=>function as(W,p,v){let I=W.get(p);if(I){if(I.length){const te=I.indexOf(v);I.splice(te,1)}0==I.length&&W.delete(p)}return I}(this.playersByQueriedElement,xn.element,xn))}),rn.forEach(xn=>Li(xn,K));const Vn=Vt(Tn);return Vn.onDestroy(()=>{rn.forEach(xn=>Ps(xn,K)),Nn(st,v.toStyles)}),Xt.forEach(xn=>{$n(te,xn,[]).push(Vn)}),Vn}_buildPlayer(p,v,I){return v.length>0?this.driver.animate(p.element,v,p.duration,p.delay,p.easing,I):new et(p.duration,p.delay)}}class os{constructor(p,v,I){this.namespaceId=p,this.triggerName=v,this.element=I,this._player=new et,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(p){this._containsRealPlayer||(this._player=p,this._queuedCallbacks.forEach((v,I)=>{v.forEach(te=>on(p,I,void 0,te))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(p.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(p){this.totalTime=p}syncPlayerEvents(p){const v=this._player;v.triggerCallback&&p.onStart(()=>v.triggerCallback("start")),p.onDone(()=>this.finish()),p.onDestroy(()=>this.destroy())}_queueEvent(p,v){$n(this._queuedCallbacks,p,[]).push(v)}onDone(p){this.queued&&this._queueEvent("done",p),this._player.onDone(p)}onStart(p){this.queued&&this._queueEvent("start",p),this._player.onStart(p)}onDestroy(p){this.queued&&this._queueEvent("destroy",p),this._player.onDestroy(p)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(p){this.queued||this._player.setPosition(p)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(p){const v=this._player;v.triggerCallback&&v.triggerCallback(p)}}function Ki(W){return W&&1===W.nodeType}function ls(W,p){const v=W.style.display;return W.style.display=p??"none",v}function yi(W,p,v,I,te){const me=[];v.forEach(st=>me.push(ls(st)));const Ne=[];I.forEach((st,Dt)=>{const rn=new Map;st.forEach(Xt=>{const Tn=p.computeStyle(Dt,Xt,te);rn.set(Xt,Tn),(!Tn||0==Tn.length)&&(Dt[ss]=Pa,Ne.push(Dt))}),W.set(Dt,rn)});let Fe=0;return v.forEach(st=>ls(st,me[Fe++])),Ne}function no(W,p){const v=new Map;if(W.forEach(Fe=>v.set(Fe,[])),0==p.length)return v;const te=new Set(p),me=new Map;function Ne(Fe){if(!Fe)return 1;let st=me.get(Fe);if(st)return st;const Dt=Fe.parentNode;return st=v.has(Dt)?Dt:te.has(Dt)?1:Ne(Dt),me.set(Fe,st),st}return p.forEach(Fe=>{const st=Ne(Fe);1!==st&&v.get(st).push(Fe)}),v}function Li(W,p){W.classList?.add(p)}function Ps(W,p){W.classList?.remove(p)}function ro(W,p,v){Vt(v).onDone(()=>W.processLeaveNode(p))}function go(W,p){for(let v=0;vte.add(me)):p.set(W,I),v.delete(W),!0}class so{constructor(p,v,I){this.bodyNode=p,this._driver=v,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(te,me)=>{},this._transitionEngine=new ho(p,v,I),this._timelineEngine=new re(p,v,I),this._transitionEngine.onRemovalComplete=(te,me)=>this.onRemovalComplete(te,me)}registerTrigger(p,v,I,te,me){const Ne=p+"-"+te;let Fe=this._triggerCache[Ne];if(!Fe){const st=[],rn=Nr(this._driver,me,st,[]);if(st.length)throw function nr(W,p){return new d.vHH(3404,!1)}();Fe=function Ds(W,p,v){return new Xs(W,p,v)}(te,rn,this._normalizer),this._triggerCache[Ne]=Fe}this._transitionEngine.registerTrigger(v,te,Fe)}register(p,v){this._transitionEngine.register(p,v)}destroy(p,v){this._transitionEngine.destroy(p,v)}onInsert(p,v,I,te){this._transitionEngine.insertNode(p,v,I,te)}onRemove(p,v,I){this._transitionEngine.removeNode(p,v,I)}disableAnimations(p,v){this._transitionEngine.markElementAsDisabled(p,v)}process(p,v,I,te){if("@"==I.charAt(0)){const[me,Ne]=Qe(I);this._timelineEngine.command(me,v,Ne,te)}else this._transitionEngine.trigger(p,v,I,te)}listen(p,v,I,te,me){if("@"==I.charAt(0)){const[Ne,Fe]=Qe(I);return this._timelineEngine.listen(Ne,v,Fe,me)}return this._transitionEngine.listen(p,v,I,te,me)}flush(p=-1){this._transitionEngine.flush(p)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(p){this._transitionEngine.afterFlushAnimationsDone(p)}}let ua=(()=>{class W{static#e=this.initialStylesByElement=new WeakMap;constructor(v,I,te){this._element=v,this._startStyles=I,this._endStyles=te,this._state=0;let me=W.initialStylesByElement.get(v);me||W.initialStylesByElement.set(v,me=new Map),this._initialStyles=me}start(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(W.initialStylesByElement.delete(this._element),this._startStyles&&(ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}return W})();function Cs(W){let p=null;return W.forEach((v,I)=>{(function mo(W){return"display"===W||"position"===W})(I)&&(p=p||new Map,p.set(I,v))}),p}class Rs{constructor(p,v,I,te){this.element=p,this.keyframes=v,this.options=I,this._specialStyles=te,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=I.duration,this._delay=I.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const p=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,p,this.options),this._finalKeyframe=p.length?p[p.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(p){const v=[];return p.forEach(I=>{v.push(Object.fromEntries(I))}),v}_triggerWebAnimation(p,v,I){return p.animate(this._convertKeyframesToObject(v),I)}onStart(p){this._originalOnStartFns.push(p),this._onStartFns.push(p)}onDone(p){this._originalOnDoneFns.push(p),this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(p=>p()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}setPosition(p){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=p*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const p=new Map;this.hasStarted()&&this._finalKeyframe.forEach((I,te)=>{"offset"!==te&&p.set(te,this._finished?I:jn(this.element,te))}),this.currentSnapshot=p}triggerCallback(p){const v="start"===p?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class da{validateStyleProperty(p){return!0}validateAnimatableStyleProperty(p){return!0}matchesElement(p,v){return!1}containsElement(p,v){return pr(p,v)}getParentElement(p){return Ue(p)}query(p,v,I){return jr(p,v,I)}computeStyle(p,v,I){return window.getComputedStyle(p)[v]}animate(p,v,I,te,me,Ne=[]){const st={duration:I,delay:te,fill:0==te?"both":"forwards"};me&&(st.easing=me);const Dt=new Map,rn=Ne.filter(Vn=>Vn instanceof Rs);(function Bi(W,p){return 0===W||0===p})(I,te)&&rn.forEach(Vn=>{Vn.currentSnapshot.forEach((xn,Fn)=>Dt.set(Fn,xn))});let Xt=function cn(W){return W.length?W[0]instanceof Map?W:W.map(p=>$t(p)):[]}(v).map(Vn=>En(Vn));Xt=function Gi(W,p,v){if(v.size&&p.length){let I=p[0],te=[];if(v.forEach((me,Ne)=>{I.has(Ne)||te.push(Ne),I.set(Ne,me)}),te.length)for(let me=1;meNe.set(Fe,jn(W,Fe)))}}return p}(p,Xt,Dt);const Tn=function ca(W,p){let v=null,I=null;return Array.isArray(p)&&p.length?(v=Cs(p[0]),p.length>1&&(I=Cs(p[p.length-1]))):p instanceof Map&&(v=Cs(p)),v||I?new ua(W,v,I):null}(p,Xt);return new Rs(p,Xt,st,Tn)}}let fa=(()=>{class W extends Ee{constructor(v,I){super(),this._nextAnimationId=0,this._renderer=v.createRenderer(I.body,{id:"0",encapsulation:d.ifc.None,styles:[],data:{animation:[]}})}build(v){const I=this._nextAnimationId.toString();this._nextAnimationId++;const te=Array.isArray(v)?ae(v):v;return Zo(this._renderer,null,I,"register",[te]),new pa(I,this._renderer)}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(w.K0))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class pa extends Ze{constructor(p,v){super(),this._id=p,this._renderer=v}create(p,v){return new hl(this._id,p,v||{},this._renderer)}}class hl{constructor(p,v,I,te){this.id=p,this.element=v,this._renderer=te,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(p,v){return this._renderer.listen(this.element,`@@${this.id}:${p}`,v)}_command(p,...v){return Zo(this._renderer,this.element,this.id,p,v)}onDone(p){this._listen("done",p)}onStart(p){this._listen("start",p)}onDestroy(p){this._listen("destroy",p)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(p){this._command("setPosition",p)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Zo(W,p,v,I,te){return W.setProperty(p,`@@${v}:${I}`,te)}const zo="@.disabled";let Ko=(()=>{class W{constructor(v,I,te){this.delegate=v,this.engine=I,this._zone=te,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,I.onRemovalComplete=(me,Ne)=>{const Fe=Ne?.parentNode(me);Fe&&Ne.removeChild(Fe,me)}}createRenderer(v,I){const me=this.delegate.createRenderer(v,I);if(!(v&&I&&I.data&&I.data.animation)){let rn=this._rendererCache.get(me);return rn||(rn=new _o("",me,this.engine,()=>this._rendererCache.delete(me)),this._rendererCache.set(me,rn)),rn}const Ne=I.id,Fe=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Fe,v);const st=rn=>{Array.isArray(rn)?rn.forEach(st):this.engine.registerTrigger(Ne,Fe,v,rn.name,rn)};return I.data.animation.forEach(st),new ha(this,Fe,me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(v,I,te){v>=0&&vI(te)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(me=>{const[Ne,Fe]=me;Ne(Fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,te]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(so),d.LFG(d.R0b))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class _o{constructor(p,v,I,te){this.namespaceId=p,this.delegate=v,this.engine=I,this._onDestroy=te}get data(){return this.delegate.data}destroyNode(p){this.delegate.destroyNode?.(p)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(p,v){return this.delegate.createElement(p,v)}createComment(p){return this.delegate.createComment(p)}createText(p){return this.delegate.createText(p)}appendChild(p,v){this.delegate.appendChild(p,v),this.engine.onInsert(this.namespaceId,v,p,!1)}insertBefore(p,v,I,te=!0){this.delegate.insertBefore(p,v,I),this.engine.onInsert(this.namespaceId,v,p,te)}removeChild(p,v,I){this.engine.onRemove(this.namespaceId,v,this.delegate)}selectRootElement(p,v){return this.delegate.selectRootElement(p,v)}parentNode(p){return this.delegate.parentNode(p)}nextSibling(p){return this.delegate.nextSibling(p)}setAttribute(p,v,I,te){this.delegate.setAttribute(p,v,I,te)}removeAttribute(p,v,I){this.delegate.removeAttribute(p,v,I)}addClass(p,v){this.delegate.addClass(p,v)}removeClass(p,v){this.delegate.removeClass(p,v)}setStyle(p,v,I,te){this.delegate.setStyle(p,v,I,te)}removeStyle(p,v,I){this.delegate.removeStyle(p,v,I)}setProperty(p,v,I){"@"==v.charAt(0)&&v==zo?this.disableAnimations(p,!!I):this.delegate.setProperty(p,v,I)}setValue(p,v){this.delegate.setValue(p,v)}listen(p,v,I){return this.delegate.listen(p,v,I)}disableAnimations(p,v){this.engine.disableAnimations(p,v)}}class ha extends _o{constructor(p,v,I,te,me){super(v,I,te,me),this.factory=p,this.namespaceId=v}setProperty(p,v,I){"@"==v.charAt(0)?"."==v.charAt(1)&&v==zo?this.disableAnimations(p,I=void 0===I||!!I):this.engine.process(this.namespaceId,p,v.slice(1),I):this.delegate.setProperty(p,v,I)}listen(p,v,I){if("@"==v.charAt(0)){const te=function Ao(W){switch(W){case"body":return document.body;case"document":return document;case"window":return window;default:return W}}(p);let me=v.slice(1),Ne="";return"@"!=me.charAt(0)&&([me,Ne]=function Na(W){const p=W.indexOf(".");return[W.substring(0,p),W.slice(p+1)]}(me)),this.engine.listen(this.namespaceId,te,me,Ne,Fe=>{this.factory.scheduleListenerCallback(Fe._data||-1,I,Fe)})}return this.delegate.listen(p,v,I)}}const T=[{provide:Ee,useClass:fa},{provide:ht,useFactory:function oo(){return new Ot}},{provide:so,useClass:(()=>{class W extends so{constructor(v,I,te,me){super(v.body,I,te)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(w.K0),d.LFG(Hr),d.LFG(ht),d.LFG(d.z2F))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})()},{provide:d.FYo,useFactory:function xo(W,p,v){return new Ko(W,p,v)},deps:[t.se,so,d.R0b]}],le=[{provide:Hr,useFactory:()=>new da},{provide:d.QbO,useValue:"BrowserAnimations"},...T],U=[{provide:Hr,useClass:Ar},{provide:d.QbO,useValue:"NoopAnimations"},...T];let ee=(()=>{class W{static withConfig(v){return{ngModule:W,providers:v.disableAnimations?U:le}}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:le,imports:[t.b2]})}return W})();var Jt=a(1523),Bn=a(9515);class dr{http;prefix;suffix;constructor(p,v="/assets/i18n/",I=".json"){this.http=p,this.prefix=v,this.suffix=I}getTranslation(p){return this.http.get(`${this.prefix}${p}${this.suffix}`)}}function yr(W,p){if(1&W&&(d.TgZ(0,"li")(1,"h2")(2,"a",2),d._uU(3),d.ALo(4,"translate"),d.qZA()()()),2&W){const v=p.$implicit;let I;d.xp6(2),d.Q6J("routerLink","/"+v.path),d.xp6(1),d.hij(" ",d.lcZ(4,2,(null!==(I=v.name)&&void 0!==I?I:v.path)+".title")," ")}}let Kn=(()=>{class W{constructor(){this.sections=[{path:"dashboard"},{path:"presence-control"},{path:"open-absences"},{path:"edit-absences"},{path:"evaluate-absences"},{path:"events"},{path:"events/current",name:"events.current"},{path:"my-absences"},{path:"my-profile"},{path:"my-grades"},{path:"my-settings"}]}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-home"]],decls:2,vars:1,consts:[[1,"mt-3"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(I,te){1&I&&(d.TgZ(0,"ul",0),d.YNc(1,yr,5,4,"li",1),d.qZA()),2&I&&(d.xp6(1),d.Q6J("ngForOf",te.sections))},dependencies:[w.sg,Jt.rH,Bn.X$],changeDetection:0})}return W})();var Jr=a(813);function Jn(){return()=>{const W=(0,d.f3M)(Jr.e),p=(0,d.f3M)(Jt.F0);return!!W.isAuthenticated||(p.navigate(["/unauthenticated"]),!1)}}let ei=(()=>{class W{constructor(){}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-unauthenticated"]],decls:4,vars:3,consts:[[1,"erz-container"],[1,"alert","alert-danger","my-3"]],template:function(I,te){1&I&&(d.TgZ(0,"div",0)(1,"div",1),d._uU(2),d.ALo(3,"translate"),d.qZA()()),2&I&&(d.xp6(2),d.hij(" ",d.lcZ(3,1,"unauthenticated.message")," "))},dependencies:[Bn.X$],encapsulation:2})}return W})();const Ei=[{path:"dashboard",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(66)]).then(a.bind(a,66)).then(W=>W.DashboardModule)},{path:"presence-control",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(373)]).then(a.bind(a,3373)).then(W=>W.PresenceControlModule)},{path:"open-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(480)]).then(a.bind(a,4480)).then(W=>W.OpenAbsencesModule)},{path:"edit-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(403)]).then(a.bind(a,9403)).then(W=>W.EditAbsencesModule)},{path:"evaluate-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(162),a.e(592),a.e(685)]).then(a.bind(a,7685)).then(W=>W.EvaluateAbsencesModule)},{path:"events",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(218)]).then(a.bind(a,6218)).then(W=>W.EventsModule)},{path:"my-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(862)]).then(a.bind(a,862)).then(W=>W.MyAbsencesModule)},{path:"my-profile",canActivate:[Jn()],loadChildren:()=>a.e(958).then(a.bind(a,1958)).then(W=>W.MyProfileModule)},{path:"my-grades",canActivate:[Jn()],loadChildren:()=>a.e(232).then(a.bind(a,2150)).then(W=>W.MyGradesModule)},{path:"my-settings",canActivate:[Jn()],loadChildren:()=>a.e(269).then(a.bind(a,7269)).then(W=>W.MySettingsModule)},{path:"unauthenticated",component:ei},{path:"",component:Kn,pathMatch:"full"}];let Ai=(()=>{class W{static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({imports:[Jt.Bz.forRoot(Ei,{useHash:!0}),Jt.Bz]})}return W})();var Hi=a(6306),Fi=a(6232),ti=a(4141),cs=a(275);const Ts=new d.OlP("Navigator API",{providedIn:"root",factory:()=>navigator});var er=a(8299),ws=a(6869),li=a(253);function Di(W,p){if(1&W&&(d.TgZ(0,"i",4),d._uU(1),d.qZA()),2&W){const v=d.oxw().$implicit;d.xp6(1),d.Oqu(v.icon)}}function ga(W,p){if(1&W){const v=d.EpF();d.TgZ(0,"ngb-toast",1),d.NdJ("hidden",function(){const me=d.CHM(v).$implicit,Ne=d.oxw();return d.KtG(Ne.toastService.remove(me))}),d.TgZ(1,"div",2),d.YNc(2,Di,2,1,"i",3),d.TgZ(3,"span"),d._uU(4),d.qZA()()()}if(2&W){const v=p.$implicit;d.Tol(v.classname),d.Q6J("header",v.header)("autohide",!0),d.xp6(2),d.Q6J("ngIf",v.icon),d.xp6(2),d.Oqu(v.message)}}let Oo=(()=>{class W{constructor(v){this.toastService=v}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(ws.k))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-toast"]],decls:2,vars:3,consts:[[3,"header","class","autohide","hidden",4,"ngFor","ngForOf"],[3,"header","autohide","hidden"],[1,"d-flex","gap-2"],["class","material-icons",4,"ngIf"],[1,"material-icons"]],template:function(I,te){1&I&&(d.YNc(0,ga,5,6,"ngb-toast",0),d.ALo(1,"async")),2&I&&d.Q6J("ngForOf",d.lcZ(1,1,te.toastService.toasts$))},dependencies:[w.sg,w.O5,li.Iv,w.Ov],styles:["[_nghost-%COMP%]{position:fixed;top:0;right:0;margin:.5em;z-index:1200}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{font-size:medium}"]})}return W})(),Yi=(()=>{class W{constructor(v,I,te,me,Ne){this.router=v,this.toastService=te,this.settings=me,this.navigator=Ne,this.router.initialNavigation(),I.initialize(),this.checkSettings()}checkSettings(){(0,cs.Jx)(ti.Zr)(this.settings).pipe((0,Hi.K)(v=>(console.error(String(v)),this.toastService.error("Please check the contents of the settings.js file (see Console output for more details).","Invalid Settings"),Fi.E))).subscribe()}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(Jt.F0),d.Y36(er.D),d.Y36(ws.k),d.Y36(ti.L6),d.Y36(Ts))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(I,te){1&I&&d._UZ(0,"erz-toast",0)(1,"router-outlet")},dependencies:[Jt.lC,Oo],styles:["[_nghost-%COMP%]{width:100%}"],changeDetection:0})}return W})(),Vi=(()=>{class W{constructor(v,I,te){this.ngZone=v,this.translate=I,this.toastService=te}handleError(v){console.error(String(v)),v instanceof L.UA||this.notifyError()}notifyError(){this.ngZone.run(()=>{this.toastService.error(this.translate.instant("global.app-errors.exception-message"),this.translate.instant("global.app-errors.exception-title"))})}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.R0b),d.LFG(Bn.sK),d.LFG(ws.k))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();var gl=a(5619),Io=a(1687),$s=a(8645),us=a(8504),Po=a(7081),ma=a(7921),xi=a(9773),vo=a(2460),Fa=a(7938),ka=a(6567),Hn=a(4703),Yo=a(9410);const _a=["notificationspopup"];function Ro(W,p){if(1&W){const v=d.EpF();d.TgZ(0,"div",16)(1,"div",17),d._UZ(2,"div",18),d.ALo(3,"safe"),d.ALo(4,"xss"),d._UZ(5,"div",19),d.ALo(6,"safe"),d.ALo(7,"xss"),d.qZA(),d.TgZ(8,"div",20)(9,"button",21),d.NdJ("click",function(){const me=d.CHM(v).$implicit,Ne=d.oxw(3);return d.KtG(Ne.deleteNotification(me.id))}),d.O4$(),d.TgZ(10,"svg",22),d._UZ(11,"path",23)(12,"path",24),d.qZA()()()()}if(2&W){const v=p.$implicit,I=d.oxw(3);d.xp6(2),d.Q6J("innerHTML",d.xi3(3,2,d.xi3(4,5,v.subject,I.xssOptions),"html"),d.oJD),d.xp6(3),d.Q6J("innerHTML",d.xi3(6,8,d.xi3(7,11,v.body,I.xssOptions),"html"),d.oJD)}}function Ba(W,p){if(1&W&&(d.TgZ(0,"div",14),d.YNc(1,Ro,13,14,"div",15),d.qZA()),2&W){const v=d.oxw().erzLet;d.xp6(1),d.Q6J("ngForOf",v.notifications)}}function Ua(W,p){1&W&&(d.TgZ(0,"div",25),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&W&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"my-notifications.none")," "))}function Ws(W,p){if(1&W){const v=d.EpF();d.TgZ(0,"div",1)(1,"button",2),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.toggleNotificationsPopup())}),d.ALo(2,"translate"),d.TgZ(3,"span",3),d.O4$(),d.TgZ(4,"svg",4),d._UZ(5,"path",5),d.qZA()(),d.kcU(),d.TgZ(6,"span",6),d._uU(7),d.qZA()(),d.TgZ(8,"div",7,8)(10,"div")(11,"div",9)(12,"span",10),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"button",11),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.deleteAll())}),d._uU(16),d.ALo(17,"translate"),d.qZA()(),d.YNc(18,Ba,2,1,"div",12),d.YNc(19,Ua,3,3,"ng-template",null,13,d.W1O),d.qZA()()()}if(2&W){const v=p.erzLet,I=d.MAs(20);d.xp6(1),d.uIk("aria-label",d.lcZ(2,11,"my-notifications.title")),d.xp6(2),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(1),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(2),d.Q6J("hidden",v.notificationsCount<1)("ngClass",v.isAuthenticated?"notifications-bell-counter-visible":"notifications-bell-counter-hidden"),d.xp6(1),d.Oqu(v.notificationsCount),d.xp6(6),d.hij(" ",d.lcZ(14,13,"my-notifications.title")," "),d.xp6(2),d.Q6J("disabled",v.notificationsCount<1),d.xp6(1),d.hij(" ",d.lcZ(17,15,"my-notifications.deleteAll")," "),d.xp6(2),d.Q6J("ngIf",v.notificationsCount>0)("ngIfElse",I)}}const Ss=function(W,p,v){return{notifications:W,notificationsCount:p,isAuthenticated:v}};let ml=(()=>{class W{constructor(v,I,te){this.settings=I,this.userSettings=te,this.notifications$=this.loadNotifications().pipe((0,Po.d)()),this.isAuthenticated$=new gl.X(!1),this.refetchTimer$=(0,Io.F)(1e3*this.settings.notificationRefreshTime).pipe((0,ma.O)(null)),this.deleteAllNotifications$=new $s.x,this.deleteNotification$=new $s.x,this.toggleNotificationsPopup$=new $s.x,this.destroy$=new $s.x,this.xssOptions={whiteList:{br:[],div:["style"],span:["style"],a:["href"],ul:[],ol:[],li:[],sup:[],sub:[],code:[],cite:[]},css:!1},v.initialize(),this.notifications$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.isAuthenticated$.next(!0)),this.toggleNotificationsPopup$.pipe((0,vo.M)(this.isAuthenticated$),(0,xi.R)(this.destroy$)).subscribe(([me,Ne])=>{me&&!0===Ne&&(me.style.display="block"===me.style.display?"none":"block")}),this.refetchTimer$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.userSettings.refetch()),this.deleteNotification$.pipe((0,vo.M)(this.notifications$),(0,j.w)(([me,Ne])=>this.userSettings.saveNotificationData(this.deleteNotificationFromArray(me,Ne))),(0,xi.R)(this.destroy$)).subscribe(),this.deleteAllNotifications$.pipe((0,j.w)(()=>this.userSettings.saveNotificationData([])),(0,xi.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}toggleNotificationsPopup(){this.popup.nativeElement&&this.toggleNotificationsPopup$.next(this.popup.nativeElement)}deleteNotification(v){this.deleteNotification$.next(v)}deleteAll(){this.deleteAllNotifications$.next()}deleteNotificationFromArray(v,I){return I.filter(te=>te.id!==v)}loadNotifications(){return this.userSettings.getNotificationData().pipe((0,Hi.K)(v=>401===v.status?(this.isAuthenticated$.next(!1),[]):(0,us._)(()=>v)))}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(er.D),d.Y36(ti.L6),d.Y36(Fa.s))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],viewQuery:function(I,te){if(1&I&&d.Gf(_a,5),2&I){let me;d.iGM(me=d.CRH())&&(te.popup=me.first)}},decls:4,vars:11,consts:[["class","notifications-container",4,"erzLet"],[1,"notifications-container"],["type","button","id","notifications-button",1,"btn","btn-link","notifications-button","p-0","m-0",3,"click"],[1,"notifications-bell",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","height","32px","viewBox","0 0 24 24","width","32px","fill","#000000",1,"notifications-bell",3,"ngClass"],["d","M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"],["id","notifications-bell-counter",1,"notifications-bell-counter",3,"hidden","ngClass"],["id","notifications-popup",1,"notifications-popup","border"],["notificationspopup",""],[1,"d-flex","justify-content-between","border-bottom","p-3","align-items-center"],[1,"pe-3"],["type","button","id","notifications-delete-all",1,"btn","btn-primary",3,"disabled","click"],["class","notifications-popup-data",4,"ngIf","ngIfElse"],["noNotifications",""],[1,"notifications-popup-data"],["class","border-bottom p-3",4,"ngFor","ngForOf"],[1,"border-bottom","p-3"],[1,"d-flex","justify-content-between"],[1,"text-start","pe-3",3,"innerHTML"],[1,"text-end",3,"innerHTML"],[1,"pt-1","text-end"],["type","button",1,"btn","btn-link","p-0","notifications-delete-notification",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px"],["d","M0 0h24v24H0z","fill","none"],["d","M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"],[1,"d-flex","p-3","align-items-center","p-2"]],template:function(I,te){if(1&I&&(d.YNc(0,Ws,21,17,"div",0),d.ALo(1,"async"),d.ALo(2,"async"),d.ALo(3,"async")),2&I){let me;d.Q6J("erzLet",d.kEZ(7,Ss,d.lcZ(1,1,te.notifications$),(null==(me=d.lcZ(2,3,te.notifications$))?null:me.length)||0,d.lcZ(3,5,te.isAuthenticated$)))}},dependencies:[w.mk,w.sg,w.O5,ka.e,w.Ov,Bn.X$,Hn.y,Yo.Q],styles:['@charset "UTF-8";:host{--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;position:relative}:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(208, 16, 24);--bs-orange: rgb(239, 124, 0);--bs-yellow: rgb(255, 168, 20);--bs-green: rgb(61, 134, 8);--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: rgba(78, 78, 78, .95);--bs-secondary: rgb(222, 222, 222);--bs-success: rgb(61, 134, 8);--bs-info: #0dcaf0;--bs-warning: rgb(255, 168, 20);--bs-danger: rgb(208, 16, 24);--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 78, 78, 78;--bs-secondary-rgb: 222, 222, 222;--bs-success-rgb: 61, 134, 8;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 168, 20;--bs-danger-rgb: 208, 16, 24;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgba(29, 29, 29, .98);--bs-secondary-text-emphasis: #595959;--bs-success-text-emphasis: #183603;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664308;--bs-danger-text-emphasis: #53060a;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgba(222, 222, 222, .99);--bs-secondary-bg-subtle: #f8f8f8;--bs-success-bg-subtle: #d8e7ce;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #ffeed0;--bs-danger-bg-subtle: #f6cfd1;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgba(188, 188, 188, .98);--bs-secondary-border-subtle: #f2f2f2;--bs-success-border-subtle: #b1cf9c;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffdca1;--bs-danger-border-subtle: #ec9fa3;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: "Roboto", sans-serif;--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 300;--bs-body-line-height: 1.625;--bs-body-color: rgb(0, 0, 0);--bs-body-color-rgb: 0, 0, 0;--bs-body-bg: rgb(255, 255, 255);--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(0, 0, 0, .75);--bs-secondary-color-rgb: 0, 0, 0;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(0, 0, 0, .5);--bs-tertiary-color-rgb: 0, 0, 0;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: rgb(0, 0, 0);--bs-link-color-rgb: 0, 0, 0;--bs-link-decoration: underline;--bs-link-hover-color: rgb(234, 22, 31);--bs-link-hover-color-rgb: 234, 22, 31;--bs-code-color: #d63384;--bs-highlight-color: rgb(0, 0, 0);--bs-highlight-bg: #ffeed0;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width: .25rem;--bs-focus-ring-opacity: .25;--bs-focus-ring-color: rgba(78, 78, 78, .25);--bs-form-valid-color: rgb(61, 134, 8);--bs-form-valid-border-color: rgb(61, 134, 8);--bs-form-invalid-color: rgb(208, 16, 24);--bs-form-invalid-border-color: rgb(208, 16, 24)}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, .75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, .5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: rgba(153, 153, 153, .97);--bs-secondary-text-emphasis: #ebebeb;--bs-success-text-emphasis: #8bb66b;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffcb72;--bs-danger-text-emphasis: #e37074;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: rgba(14, 14, 14, .99);--bs-secondary-bg-subtle: #2c2c2c;--bs-success-bg-subtle: #0c1b02;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332204;--bs-danger-bg-subtle: #2a0305;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: rgba(45, 45, 45, .97);--bs-secondary-border-subtle: #858585;--bs-success-border-subtle: #255005;--bs-info-border-subtle: #087990;--bs-warning-border-subtle: #99650c;--bs-danger-border-subtle: #7d0a0e;--bs-light-border-subtle: #495057;--bs-dark-border-subtle: #343a40;--bs-heading-color: inherit;--bs-link-color: rgba(153, 153, 153, .97);--bs-link-hover-color: rgba(174, 174, 174, .976);--bs-link-color-rgb: 153, 153, 153;--bs-link-hover-color-rgb: 174, 174, 174;--bs-code-color: #e685b5;--bs-highlight-color: #dee2e6;--bs-highlight-bg: #664308;--bs-border-color: #495057;--bs-border-color-translucent: rgba(255, 255, 255, .15);--bs-form-valid-color: #8bb66b;--bs-form-valid-border-color: #8bb66b;--bs-form-invalid-color: #e37074;--bs-form-invalid-border-color: #e37074}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:300;line-height:1.2;color:var(--bs-heading-color)}h1,.h1{font-size:calc(1.4625rem + 2.55vw)}@media (min-width: 1200px){h1,.h1{font-size:3.375rem}}h2,.h2{font-size:calc(1.3125rem + .75vw)}@media (min-width: 1200px){h2,.h2{font-size:1.875rem}}h3,.h3{font-size:calc(1.2875rem + .45vw)}@media (min-width: 1200px){h3,.h3{font-size:1.625rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:calc(1.25625rem + .075vw)}@media (min-width: 1200px){h5,.h5{font-size:1.3125rem}}h6,.h6{font-size:1.125rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\\2014\\a0"}.btn{--bs-btn-padding-x: 1.5rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.625;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: 2.5rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .25;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(65, 65, 65, .9575);--bs-btn-hover-border-color: rgba(61, 61, 61, .96);--bs-btn-focus-shadow-rgb: 107, 107, 107;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(61, 61, 61, .96);--bs-btn-active-border-color: rgba(57, 57, 57, .9625);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgba(78, 78, 78, .95);--bs-btn-disabled-border-color: rgba(78, 78, 78, .95)}.btn-secondary{--bs-btn-color: #000;--bs-btn-bg: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #e3e3e3;--bs-btn-hover-border-color: #e1e1e1;--bs-btn-focus-shadow-rgb: 189, 189, 189;--bs-btn-active-color: #000;--bs-btn-active-bg: #e5e5e5;--bs-btn-active-border-color: #e1e1e1;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(222, 222, 222);--bs-btn-disabled-border-color: rgb(222, 222, 222)}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #347207;--bs-btn-hover-border-color: #316b06;--bs-btn-focus-shadow-rgb: 90, 152, 45;--bs-btn-active-color: #fff;--bs-btn-active-bg: #316b06;--bs-btn-active-border-color: #2e6506;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(61, 134, 8);--bs-btn-disabled-border-color: rgb(61, 134, 8)}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffb537;--bs-btn-hover-border-color: #ffb12c;--bs-btn-focus-shadow-rgb: 217, 143, 17;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffb943;--bs-btn-active-border-color: #ffb12c;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(255, 168, 20);--bs-btn-disabled-border-color: rgb(255, 168, 20)}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #b10e14;--bs-btn-hover-border-color: #a60d13;--bs-btn-focus-shadow-rgb: 215, 52, 59;--bs-btn-active-color: #fff;--bs-btn-active-bg: #a60d13;--bs-btn-active-border-color: #9c0c12;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(208, 16, 24);--bs-btn-disabled-border-color: rgb(208, 16, 24)}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(78, 78, 78, .95);--bs-btn-hover-border-color: rgba(78, 78, 78, .95);--bs-btn-focus-shadow-rgb: 78, 78, 78;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(78, 78, 78, .95);--bs-btn-active-border-color: rgba(78, 78, 78, .95);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgba(78, 78, 78, .95);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgba(78, 78, 78, .95);--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(222, 222, 222);--bs-btn-hover-border-color: rgb(222, 222, 222);--bs-btn-focus-shadow-rgb: 222, 222, 222;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(222, 222, 222);--bs-btn-active-border-color: rgb(222, 222, 222);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(222, 222, 222);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(222, 222, 222);--bs-gradient: none}.btn-outline-success{--bs-btn-color: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(61, 134, 8);--bs-btn-hover-border-color: rgb(61, 134, 8);--bs-btn-focus-shadow-rgb: 61, 134, 8;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(61, 134, 8);--bs-btn-active-border-color: rgb(61, 134, 8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(61, 134, 8);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(61, 134, 8);--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 168, 20);--bs-btn-hover-border-color: rgb(255, 168, 20);--bs-btn-focus-shadow-rgb: 255, 168, 20;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 168, 20);--bs-btn-active-border-color: rgb(255, 168, 20);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(255, 168, 20);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(255, 168, 20);--bs-gradient: none}.btn-outline-danger{--bs-btn-color: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(208, 16, 24);--bs-btn-hover-border-color: rgb(208, 16, 24);--bs-btn-focus-shadow-rgb: 208, 16, 24;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(208, 16, 24);--bs-btn-active-border-color: rgb(208, 16, 24);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(208, 16, 24);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(208, 16, 24);--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 38, 38, 38;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg)}.btn-sm{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: var(--bs-border-radius-sm)}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color: rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color: rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color: rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color: rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color: rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color: rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color: rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity: 1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.4625rem + 2.55vw)!important}.fs-2{font-size:calc(1.3125rem + .75vw)!important}.fs-3{font-size:calc(1.2875rem + .45vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:calc(1.25625rem + .075vw)!important}.fs-6{font-size:1.125rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium,.fw-semibold{font-weight:500!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.625!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity: 1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity: 1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:3.375rem!important}.fs-2{font-size:1.875rem!important}.fs-3{font-size:1.625rem!important}.fs-4{font-size:1.5rem!important}.fs-5{font-size:1.3125rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}.notifications-popup{position:absolute;margin-top:10px;right:0;z-index:1000;display:none;min-width:33vw;background-color:#fff}@media (max-width: 800px){.notifications-popup{position:fixed;min-width:auto;width:100vw;right:0}}.notifications-popup-data{max-height:calc(100vh - 145px);overflow:auto}.notifications-bell{color:#000}.notifications-bell-hidden{color:#ccc}.notifications-bell-counter{margin-left:-10px;color:#fff;font-weight:700;text-align:center;line-height:1;padding:1.25px 6px;background-color:#ea161f;border-radius:50%;box-shadow:0 0 0 2px #fff}.notifications-bell-counter-hidden{display:none}.notifications-bell-counter-visible{display:inline}.notifications-delete-notification{color:#4e4e4ef2}hr{margin:0}\n'],encapsulation:3})}return W})();var ja=a(6486),mc=a(363),_c=a(6223);function _l(W,p){return new dr(W,`${p.scriptsAndAssetsPath}/assets/locales/`,".json")}(0,w.qS)(R),(0,w.qS)(B);let Nt=(()=>{class W{constructor(v){this.injector=v;const I=_t(ml,{injector:this.injector});customElements.define("erz-notifications",I);const te=_t(Yi,{injector:this.injector});customElements.define("erz-app",te)}ngDoBootstrap(v){}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.zs3))};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:[{provide:d.qLn,useClass:Vi},{provide:d.soG,useFactory:v=>v.detectLanguage(),deps:[er.D]}],imports:[t.b2,Ai,Jt.Bz,L.JF,ee,Bn.aw.forRoot({loader:{provide:Bn.Zw,useFactory:_l,deps:[L.eN,ti.L6]}}),ja.m,mc.A0,_c.u5]})}return W})();a.p=window.schulverwaltung.settings.scriptsAndAssetsPath+"/",(0,d.G48)(),t.q6().bootstrapModule(Nt).catch(W=>console.error(W))},7482:(Pe,V,a)=>{var t=a(9698),d=a(8955);function L(R){return null==R}function O(R){(R=function h(R){var F={};for(var P in R)F[P]=R[P];return F}(R||{})).whiteList=R.whiteList||t.whiteList,R.onAttr=R.onAttr||t.onAttr,R.onIgnoreAttr=R.onIgnoreAttr||t.onIgnoreAttr,R.safeAttrValue=R.safeAttrValue||t.safeAttrValue,this.options=R}a(3034),O.prototype.process=function(R){if(!(R=(R=R||"").toString()))return"";var P=this.options,B=P.whiteList,$=P.onAttr,f=P.onIgnoreAttr,j=P.safeAttrValue;return d(R,function(q,ie,k,Te,Se){var ye=B[k],ce=!1;if(!0===ye?ce=ye:"function"==typeof ye?ce=ye(Te):ye instanceof RegExp&&(ce=ye.test(Te)),!0!==ce&&(ce=!1),Te=j(k,Te)){var ve,_e={position:ie,sourcePosition:q,source:Se,isWhite:ce};if(ce)return L(ve=$(k,Te,_e))?k+":"+Te:ve;if(!L(ve=f(k,Te,_e)))return ve}})},Pe.exports=O},9698:(Pe,V)=>{function a(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var w=/javascript\s*\:/gim;V.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},V.getDefaultWhiteList=a,V.onAttr=function t(h,O,R){},V.onIgnoreAttr=function d(h,O,R){},V.safeAttrValue=function L(h,O){return w.test(O)?"":O}},1474:(Pe,V,a)=>{var t=a(9698),d=a(7482);for(var L in(V=Pe.exports=function w(h,O){return new d(O).process(h)}).FilterCSS=d,t)V[L]=t[L];typeof window<"u"&&(window.filterCSS=Pe.exports)},8955:(Pe,V,a)=>{var t=a(3034);Pe.exports=function d(w,L){";"!==(w=t.trimRight(w))[w.length-1]&&(w+=";");var h=w.length,O=!1,R=0,F=0,P="";function B(){if(!O){var j=t.trim(w.slice(R,F)),M=j.indexOf(":");if(-1!==M){var q=t.trim(j.slice(0,M)),ie=t.trim(j.slice(M+1));if(q){var k=L(R,P.length,q,ie,j);k&&(P+=k+"; ")}}}R=F+1}for(;F{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{"use strict";a.d(V,{Z:()=>Xe});var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function L(tt){return function(){var wt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},It=wt.width?String(wt.width):tt.defaultWidth;return tt.formats[It]||tt.formats[tt.defaultWidth]}}var F={date:L({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:L({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:L({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},B={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function j(tt){return function(wt,It){var Tt;if("formatting"===(null!=It&&It.context?String(It.context):"standalone")&&tt.formattingValues){var et=tt.defaultFormattingWidth||tt.defaultWidth,Pt=null!=It&&It.width?String(It.width):et;Tt=tt.formattingValues[Pt]||tt.formattingValues[et]}else{var Zt=tt.defaultWidth,dn=null!=It&&It.width?String(It.width):tt.defaultWidth;Tt=tt.values[dn]||tt.values[Zt]}return Tt[tt.argumentCallback?tt.argumentCallback(wt):wt]}}function ve(tt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=It.width,et=wt.match(Je&&tt.matchPatterns[Je]||tt.matchPatterns[tt.defaultMatchWidth]);if(!et)return null;var Rn,Pt=et[0],Zt=Je&&tt.parsePatterns[Je]||tt.parsePatterns[tt.defaultParseWidth],dn=Array.isArray(Zt)?function be(tt,wt){for(var It=0;It0?"in "+Tt:Tt+" ago":Tt},formatLong:F,formatRelative:function(wt,It,Je,Tt){return B[wt]},localize:{ordinalNumber:function(wt,It){var Je=Number(wt),Tt=Je%100;if(Tt>20||Tt<10)switch(Tt%10){case 1:return Je+"st";case 2:return Je+"nd";case 3:return Je+"rd"}return Je+"th"},era:j({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:j({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(wt){return wt-1}}),month:j({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:j({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:j({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function ke(tt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=wt.match(tt.matchPattern);if(!Je)return null;var Tt=Je[0],et=wt.match(tt.parsePattern);if(!et)return null;var Pt=tt.valueCallback?tt.valueCallback(et[0]):et[0];return{value:Pt=It.valueCallback?It.valueCallback(Pt):Pt,rest:wt.slice(Tt.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(wt){return parseInt(wt,10)}}),era:ve({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ve({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(wt){return wt+1}}),month:ve({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ve({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ve({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},5227:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>d});var t={};function d(){return t}},3001:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=function(R,F){switch(R){case"P":return F.date({width:"short"});case"PP":return F.date({width:"medium"});case"PPP":return F.date({width:"long"});default:return F.date({width:"full"})}},d=function(R,F){switch(R){case"p":return F.time({width:"short"});case"pp":return F.time({width:"medium"});case"ppp":return F.time({width:"long"});default:return F.time({width:"full"})}};const h={p:d,P:function(R,F){var f,P=R.match(/(P+)(p+)?/)||[],B=P[1],$=P[2];if(!$)return t(R,F);switch(B){case"P":f=F.dateTime({width:"short"});break;case"PP":f=F.dateTime({width:"medium"});break;case"PPP":f=F.dateTime({width:"long"});break;default:f=F.dateTime({width:"full"})}return f.replace("{{date}}",t(B,F)).replace("{{time}}",d($,F))}}},5351:(Pe,V,a)=>{"use strict";function t(d){var w=new Date(Date.UTC(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()));return w.setUTCFullYear(d.getFullYear()),d.getTime()-w.getTime()}a.d(V,{Z:()=>t})},3606:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(581),d=a(9307),w=a(2603),L=a(2816),O=6048e5;function R(F){(0,L.Z)(1,arguments);var P=(0,t.Z)(F),B=(0,d.Z)(P).getTime()-function h(F){(0,L.Z)(1,arguments);var P=(0,w.Z)(F),B=new Date(0);return B.setUTCFullYear(P,0,4),B.setUTCHours(0,0,0,0),(0,d.Z)(B)}(P).getTime();return Math.round(B/O)+1}},2603:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(581),d=a(2816),w=a(9307);function L(h){(0,d.Z)(1,arguments);var O=(0,t.Z)(h),R=O.getUTCFullYear(),F=new Date(0);F.setUTCFullYear(R+1,0,4),F.setUTCHours(0,0,0,0);var P=(0,w.Z)(F),B=new Date(0);B.setUTCFullYear(R,0,4),B.setUTCHours(0,0,0,0);var $=(0,w.Z)(B);return O.getTime()>=P.getTime()?R+1:O.getTime()>=$.getTime()?R:R-1}},7356:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>P});var t=a(581),d=a(5163),w=a(3281),L=a(2816),h=a(6156),O=a(5227),F=6048e5;function P(B,$){(0,L.Z)(1,arguments);var f=(0,t.Z)(B),j=(0,d.Z)(f,$).getTime()-function R(B,$){var f,j,M,q,ie,k,Te,Se;(0,L.Z)(1,arguments);var ye=(0,O.j)(),ce=(0,h.Z)(null!==(f=null!==(j=null!==(M=null!==(q=$?.firstWeekContainsDate)&&void 0!==q?q:null==$||null===(ie=$.locale)||void 0===ie||null===(k=ie.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==M?M:ye.firstWeekContainsDate)&&void 0!==j?j:null===(Te=ye.locale)||void 0===Te||null===(Se=Te.options)||void 0===Se?void 0:Se.firstWeekContainsDate)&&void 0!==f?f:1),_e=(0,w.Z)(B,$),ve=new Date(0);return ve.setUTCFullYear(_e,0,ce),ve.setUTCHours(0,0,0,0),(0,d.Z)(ve,$)}(f,$).getTime();return Math.round(j/F)+1}},3281:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>O});var t=a(581),d=a(2816),w=a(5163),L=a(6156),h=a(5227);function O(R,F){var P,B,$,f,j,M,q,ie;(0,d.Z)(1,arguments);var k=(0,t.Z)(R),Te=k.getUTCFullYear(),Se=(0,h.j)(),ye=(0,L.Z)(null!==(P=null!==(B=null!==($=null!==(f=F?.firstWeekContainsDate)&&void 0!==f?f:null==F||null===(j=F.locale)||void 0===j||null===(M=j.options)||void 0===M?void 0:M.firstWeekContainsDate)&&void 0!==$?$:Se.firstWeekContainsDate)&&void 0!==B?B:null===(q=Se.locale)||void 0===q||null===(ie=q.options)||void 0===ie?void 0:ie.firstWeekContainsDate)&&void 0!==P?P:1);if(!(ye>=1&&ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ce=new Date(0);ce.setUTCFullYear(Te+1,0,ye),ce.setUTCHours(0,0,0,0);var _e=(0,w.Z)(ce,F),ve=new Date(0);ve.setUTCFullYear(Te,0,ye),ve.setUTCHours(0,0,0,0);var xe=(0,w.Z)(ve,F);return k.getTime()>=_e.getTime()?Te+1:k.getTime()>=xe.getTime()?Te:Te-1}},2566:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>L,Iu:()=>w,qp:()=>h});var t=["D","DD"],d=["YY","YYYY"];function w(O){return-1!==t.indexOf(O)}function L(O){return-1!==d.indexOf(O)}function h(O,R,F){if("YYYY"===O)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===O)throw new RangeError("Use `yy` instead of `YY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===O)throw new RangeError("Use `d` instead of `D` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===O)throw new RangeError("Use `dd` instead of `DD` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},2816:(Pe,V,a)=>{"use strict";function t(d,w){if(w.length1?"s":"")+" required, but only "+w.length+" present")}a.d(V,{Z:()=>t})},9307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var O=(0,t.Z)(L),R=O.getUTCDay(),F=(R<1?7:0)+R-1;return O.setUTCDate(O.getUTCDate()-F),O.setUTCHours(0,0,0,0),O}},5163:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(581),d=a(2816),w=a(6156),L=a(5227);function h(O,R){var F,P,B,$,f,j,M,q;(0,d.Z)(1,arguments);var ie=(0,L.j)(),k=(0,w.Z)(null!==(F=null!==(P=null!==(B=null!==($=R?.weekStartsOn)&&void 0!==$?$:null==R||null===(f=R.locale)||void 0===f||null===(j=f.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==B?B:ie.weekStartsOn)&&void 0!==P?P:null===(M=ie.locale)||void 0===M||null===(q=M.options)||void 0===q?void 0:q.weekStartsOn)&&void 0!==F?F:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Te=(0,t.Z)(O),Se=Te.getUTCDay(),ye=(Se{"use strict";function t(d){if(null===d||!0===d||!1===d)return NaN;var w=Number(d);return isNaN(w)?w:w<0?Math.ceil(w):Math.floor(w)}a.d(V,{Z:()=>t})},8584:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(6156),d=a(581),w=a(2816);function L(h,O){(0,w.Z)(2,arguments);var R=(0,d.Z)(h),F=(0,t.Z)(O);return isNaN(F)?new Date(NaN):(F&&R.setDate(R.getDate()+F),R)}},5301:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Ee});var t=a(1002),d=a(2816),L=a(581);var O=a(591),P=a(3606),B=a(2603),$=a(7356),f=a(3281);function j(J,Q){for(var oe=J<0?"-":"",se=Math.abs(J).toString();se.length0?se:1-se;return j("yy"===oe?ae%100:ae,oe.length)},q_M=function(Q,oe){var se=Q.getUTCMonth();return"M"===oe?String(se+1):j(se+1,2)},q_d=function(Q,oe){return j(Q.getUTCDate(),oe.length)},q_h=function(Q,oe){return j(Q.getUTCHours()%12||12,oe.length)},q_H=function(Q,oe){return j(Q.getUTCHours(),oe.length)},q_m=function(Q,oe){return j(Q.getUTCMinutes(),oe.length)},q_s=function(Q,oe){return j(Q.getUTCSeconds(),oe.length)},q_S=function(Q,oe){var se=oe.length,ae=Q.getUTCMilliseconds();return j(Math.floor(ae*Math.pow(10,se-3)),oe.length)};function Te(J,Q){var oe=J>0?"-":"+",se=Math.abs(J),ae=Math.floor(se/60),fe=se%60;if(0===fe)return oe+String(ae);var De=Q||"";return oe+String(ae)+De+j(fe,2)}function Se(J,Q){return J%60==0?(J>0?"-":"+")+j(Math.abs(J)/60,2):ye(J,Q)}function ye(J,Q){var oe=Q||"",se=J>0?"-":"+",ae=Math.abs(J);return se+j(Math.floor(ae/60),2)+oe+j(ae%60,2)}const ce={G:function(Q,oe,se){var ae=Q.getUTCFullYear()>0?1:0;switch(oe){case"G":case"GG":case"GGG":return se.era(ae,{width:"abbreviated"});case"GGGGG":return se.era(ae,{width:"narrow"});default:return se.era(ae,{width:"wide"})}},y:function(Q,oe,se){if("yo"===oe){var ae=Q.getUTCFullYear();return se.ordinalNumber(ae>0?ae:1-ae,{unit:"year"})}return q_y(Q,oe)},Y:function(Q,oe,se,ae){var fe=(0,f.Z)(Q,ae),De=fe>0?fe:1-fe;return"YY"===oe?j(De%100,2):"Yo"===oe?se.ordinalNumber(De,{unit:"year"}):j(De,oe.length)},R:function(Q,oe){return j((0,B.Z)(Q),oe.length)},u:function(Q,oe){return j(Q.getUTCFullYear(),oe.length)},Q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"Q":return String(ae);case"QQ":return j(ae,2);case"Qo":return se.ordinalNumber(ae,{unit:"quarter"});case"QQQ":return se.quarter(ae,{width:"abbreviated",context:"formatting"});case"QQQQQ":return se.quarter(ae,{width:"narrow",context:"formatting"});default:return se.quarter(ae,{width:"wide",context:"formatting"})}},q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"q":return String(ae);case"qq":return j(ae,2);case"qo":return se.ordinalNumber(ae,{unit:"quarter"});case"qqq":return se.quarter(ae,{width:"abbreviated",context:"standalone"});case"qqqqq":return se.quarter(ae,{width:"narrow",context:"standalone"});default:return se.quarter(ae,{width:"wide",context:"standalone"})}},M:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"M":case"MM":return q_M(Q,oe);case"Mo":return se.ordinalNumber(ae+1,{unit:"month"});case"MMM":return se.month(ae,{width:"abbreviated",context:"formatting"});case"MMMMM":return se.month(ae,{width:"narrow",context:"formatting"});default:return se.month(ae,{width:"wide",context:"formatting"})}},L:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"L":return String(ae+1);case"LL":return j(ae+1,2);case"Lo":return se.ordinalNumber(ae+1,{unit:"month"});case"LLL":return se.month(ae,{width:"abbreviated",context:"standalone"});case"LLLLL":return se.month(ae,{width:"narrow",context:"standalone"});default:return se.month(ae,{width:"wide",context:"standalone"})}},w:function(Q,oe,se,ae){var fe=(0,$.Z)(Q,ae);return"wo"===oe?se.ordinalNumber(fe,{unit:"week"}):j(fe,oe.length)},I:function(Q,oe,se){var ae=(0,P.Z)(Q);return"Io"===oe?se.ordinalNumber(ae,{unit:"week"}):j(ae,oe.length)},d:function(Q,oe,se){return"do"===oe?se.ordinalNumber(Q.getUTCDate(),{unit:"date"}):q_d(Q,oe)},D:function(Q,oe,se){var ae=function F(J){(0,d.Z)(1,arguments);var Q=(0,L.Z)(J),oe=Q.getTime();Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0);var se=Q.getTime();return Math.floor((oe-se)/864e5)+1}(Q);return"Do"===oe?se.ordinalNumber(ae,{unit:"dayOfYear"}):j(ae,oe.length)},E:function(Q,oe,se){var ae=Q.getUTCDay();switch(oe){case"E":case"EE":case"EEE":return se.day(ae,{width:"abbreviated",context:"formatting"});case"EEEEE":return se.day(ae,{width:"narrow",context:"formatting"});case"EEEEEE":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},e:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"e":return String(De);case"ee":return j(De,2);case"eo":return se.ordinalNumber(De,{unit:"day"});case"eee":return se.day(fe,{width:"abbreviated",context:"formatting"});case"eeeee":return se.day(fe,{width:"narrow",context:"formatting"});case"eeeeee":return se.day(fe,{width:"short",context:"formatting"});default:return se.day(fe,{width:"wide",context:"formatting"})}},c:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"c":return String(De);case"cc":return j(De,oe.length);case"co":return se.ordinalNumber(De,{unit:"day"});case"ccc":return se.day(fe,{width:"abbreviated",context:"standalone"});case"ccccc":return se.day(fe,{width:"narrow",context:"standalone"});case"cccccc":return se.day(fe,{width:"short",context:"standalone"});default:return se.day(fe,{width:"wide",context:"standalone"})}},i:function(Q,oe,se){var ae=Q.getUTCDay(),fe=0===ae?7:ae;switch(oe){case"i":return String(fe);case"ii":return j(fe,oe.length);case"io":return se.ordinalNumber(fe,{unit:"day"});case"iii":return se.day(ae,{width:"abbreviated",context:"formatting"});case"iiiii":return se.day(ae,{width:"narrow",context:"formatting"});case"iiiiii":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},a:function(Q,oe,se){var fe=Q.getUTCHours()/12>=1?"pm":"am";switch(oe){case"a":case"aa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"aaa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},b:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=12===ae?"noon":0===ae?"midnight":ae/12>=1?"pm":"am",oe){case"b":case"bb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"bbb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},B:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=ae>=17?"evening":ae>=12?"afternoon":ae>=4?"morning":"night",oe){case"B":case"BB":case"BBB":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"BBBBB":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},h:function(Q,oe,se){if("ho"===oe){var ae=Q.getUTCHours()%12;return 0===ae&&(ae=12),se.ordinalNumber(ae,{unit:"hour"})}return q_h(Q,oe)},H:function(Q,oe,se){return"Ho"===oe?se.ordinalNumber(Q.getUTCHours(),{unit:"hour"}):q_H(Q,oe)},K:function(Q,oe,se){var ae=Q.getUTCHours()%12;return"Ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},k:function(Q,oe,se){var ae=Q.getUTCHours();return 0===ae&&(ae=24),"ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},m:function(Q,oe,se){return"mo"===oe?se.ordinalNumber(Q.getUTCMinutes(),{unit:"minute"}):q_m(Q,oe)},s:function(Q,oe,se){return"so"===oe?se.ordinalNumber(Q.getUTCSeconds(),{unit:"second"}):q_s(Q,oe)},S:function(Q,oe){return q_S(Q,oe)},X:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();if(0===De)return"Z";switch(oe){case"X":return Se(De);case"XXXX":case"XX":return ye(De);default:return ye(De,":")}},x:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"x":return Se(De);case"xxxx":case"xx":return ye(De);default:return ye(De,":")}},O:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"O":case"OO":case"OOO":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},z:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"z":case"zz":case"zzz":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},t:function(Q,oe,se,ae){return j(Math.floor((ae._originalDate||Q).getTime()/1e3),oe.length)},T:function(Q,oe,se,ae){return j((ae._originalDate||Q).getTime(),oe.length)}};var _e=a(3001),ve=a(5351),xe=a(2566),be=a(6156),ke=a(5227),vt=a(6719),rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qe=/^'([^]*?)'?$/,_t=/''/g,$e=/[a-zA-Z]/;function Ee(J,Q,oe){var se,ae,fe,De,je,Xe,tt,wt,It,Je,Tt,et,Pt,Zt,dn,Rn,We,Ye;(0,d.Z)(2,arguments);var At=String(Q),xt=(0,ke.j)(),nn=null!==(se=null!==(ae=oe?.locale)&&void 0!==ae?ae:xt.locale)&&void 0!==se?se:vt.Z,Et=(0,be.Z)(null!==(fe=null!==(De=null!==(je=null!==(Xe=oe?.firstWeekContainsDate)&&void 0!==Xe?Xe:null==oe||null===(tt=oe.locale)||void 0===tt||null===(wt=tt.options)||void 0===wt?void 0:wt.firstWeekContainsDate)&&void 0!==je?je:xt.firstWeekContainsDate)&&void 0!==De?De:null===(It=xt.locale)||void 0===It||null===(Je=It.options)||void 0===Je?void 0:Je.firstWeekContainsDate)&&void 0!==fe?fe:1);if(!(Et>=1&&Et<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ht=(0,be.Z)(null!==(Tt=null!==(et=null!==(Pt=null!==(Zt=oe?.weekStartsOn)&&void 0!==Zt?Zt:null==oe||null===(dn=oe.locale)||void 0===dn||null===(Rn=dn.options)||void 0===Rn?void 0:Rn.weekStartsOn)&&void 0!==Pt?Pt:xt.weekStartsOn)&&void 0!==et?et:null===(We=xt.locale)||void 0===We||null===(Ye=We.options)||void 0===Ye?void 0:Ye.weekStartsOn)&&void 0!==Tt?Tt:0);if(!(Ht>=0&&Ht<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!nn.localize)throw new RangeError("locale must contain localize property");if(!nn.formatLong)throw new RangeError("locale must contain formatLong property");var zt=(0,L.Z)(J);if(!function h(J){if((0,d.Z)(1,arguments),!function w(J){return(0,d.Z)(1,arguments),J instanceof Date||"object"===(0,t.Z)(J)&&"[object Date]"===Object.prototype.toString.call(J)}(J)&&"number"!=typeof J)return!1;var Q=(0,L.Z)(J);return!isNaN(Number(Q))}(zt))throw new RangeError("Invalid time value");var fn=(0,ve.Z)(zt),Sn=(0,O.Z)(zt,fn),hn={firstWeekContainsDate:Et,weekStartsOn:Ht,locale:nn,_originalDate:zt},en=At.match(Mt).map(function(Dn){var Wn=Dn[0];return"p"===Wn||"P"===Wn?(0,_e.Z[Wn])(Dn,nn.formatLong):Dn}).join("").match(rt).map(function(Dn){if("''"===Dn)return"'";var Wn=Dn[0];if("'"===Wn)return function Ze(J){var Q=J.match(qe);return Q?Q[1].replace(_t,"'"):J}(Dn);var _n=ce[Wn];if(_n)return!(null!=oe&&oe.useAdditionalWeekYearTokens)&&(0,xe.Do)(Dn)&&(0,xe.qp)(Dn,Q,String(J)),!(null!=oe&&oe.useAdditionalDayOfYearTokens)&&(0,xe.Iu)(Dn)&&(0,xe.qp)(Dn,Q,String(J)),_n(Sn,Dn,nn.localize,hn);if(Wn.match($e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Wn+"`");return Dn}).join("");return en}},3166:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(9189),d=a(2816);function w(L,h){(0,d.Z)(2,arguments);var O=(0,t.Z)(L),R=(0,t.Z)(h);return O.getTime()===R.getTime()}},9189:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var h=(0,t.Z)(L);return h.setHours(0,0,0,0),h}},4307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(8584),d=a(2816),w=a(6156);function L(h,O){(0,d.Z)(2,arguments);var R=(0,w.Z)(O);return(0,t.Z)(h,-R)}},591:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(6156),d=a(581),w=a(2816);function h(O,R){return(0,w.Z)(2,arguments),function L(O,R){(0,w.Z)(2,arguments);var F=(0,d.Z)(O).getTime(),P=(0,t.Z)(R);return new Date(F+P)}(O,-(0,t.Z)(R))}},581:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(1002),d=a(2816);function w(L){(0,d.Z)(1,arguments);var h=Object.prototype.toString.call(L);return L instanceof Date||"object"===(0,t.Z)(L)&&"[object Date]"===h?new Date(L.getTime()):"number"==typeof L||"[object Number]"===h?new Date(L):(("string"==typeof L||"[object String]"===h)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},5803:(Pe,V,a)=>{"use strict";a.d(V,{tS:()=>wi,g_:()=>bt,nM:()=>ln,t$:()=>se,vx:()=>$t,F2:()=>ae});var h=a(5040);function $(ze){return function(Ve,ct){return ze.map(Ve,function(){return ct})}}var se=function(ze){return{_tag:"Left",left:ze}},ae=function(ze){return{_tag:"Right",right:ze}},fe=(0,h.OB)(2,function(ze,Ve){return ln(ze)?ze:Ve(ze.right)}),De=function(ze,Ve){return(0,h.zG)(ze,zt(Ve))},zt=function(ze){return function(Ve){return ln(Ve)?Ve:ae(ze(Ve.right))}},fn={URI:"Either",map:De},_n=((0,h.OB)(2,$(fn)),function f(ze){var Ve=$(ze)}(fn),function(ze){return function(Ve){return ln(Ve)?Ve:ln(ze)?ze:ae(Ve.right(ze.right))}}),ln=function(ze){return"Left"===ze._tag},bt=function(ze,Ve){return function(ct){return ln(ct)?ze(ct.left):Ve(ct.right)}},$t=(function d(ze){return function(Ve,ct){return ze.chain(Ve,function(Yt){return ze.map(ct(Yt),function(){return Yt})})}}({URI:"Either",map:De,ap:function(ze,Ve){return(0,h.zG)(ze,_n(Ve))},chain:fe}),function(ze){return function(Ve){return ln(Ve)?ze(Ve.left):Ve}}),wi=fe},8706:(Pe,V,a)=>{"use strict";a.d(V,{ff:()=>B}),a(5040);var B=function(j){return function(M){return!j(M)}}},5040:(Pe,V,a)=>{"use strict";function F(qe){return qe}function k(qe,_t,$e,Ee,Ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return function(){return _t(qe.apply(this,arguments))};case 3:return function(){return $e(_t(qe.apply(this,arguments)))};case 4:return function(){return Ee($e(_t(qe.apply(this,arguments))))};case 5:return function(){return Ze(Ee($e(_t(qe.apply(this,arguments)))))};case 6:return function(){return J(Ze(Ee($e(_t(qe.apply(this,arguments))))))};case 7:return function(){return Q(J(Ze(Ee($e(_t(qe.apply(this,arguments)))))))};case 8:return function(){return oe(Q(J(Ze(Ee($e(_t(qe.apply(this,arguments))))))))};case 9:return function(){return se(oe(Q(J(Ze(Ee($e(_t(qe.apply(this,arguments)))))))))}}}function xe(qe,_t,$e,Ee,Ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return _t(qe);case 3:return $e(_t(qe));case 4:return Ee($e(_t(qe)));case 5:return Ze(Ee($e(_t(qe))));case 6:return J(Ze(Ee($e(_t(qe)))));case 7:return Q(J(Ze(Ee($e(_t(qe))))));case 8:return oe(Q(J(Ze(Ee($e(_t(qe)))))));case 9:return se(oe(Q(J(Ze(Ee($e(_t(qe))))))));default:for(var ae=arguments[0],fe=1;feMt,ls:()=>k,yR:()=>F,zG:()=>xe});var Mt=function(qe,_t){var $e="number"==typeof qe?function(Ee){return Ee.length>=qe}:qe;return function(){var Ee=Array.from(arguments);return $e(arguments)?_t.apply(this,Ee):function(Ze){return _t.apply(void 0,function(qe,_t,$e){if($e||2===arguments.length)for(var J,Ee=0,Ze=_t.length;Ee{"use strict";a.d(V,{$P:()=>B,Bk:()=>on,Dy:()=>F,G0:()=>dt,IM:()=>oi,IX:()=>nr,Ju:()=>Fr,O7:()=>zt,OT:()=>Vt,Rn:()=>O,S1:()=>et,Vp:()=>R,Z_:()=>Ye,dt:()=>wr,i0:()=>Wn,jV:()=>we,lB:()=>Je,mM:()=>Er,pk:()=>xt,r$:()=>Ir,sH:()=>An});var pe,t=a(5803),d=(pe=function(Z,K){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,X){D.__proto__=X}||function(D,X){for(var de in X)Object.prototype.hasOwnProperty.call(X,de)&&(D[de]=X[de])})(Z,K)},function(Z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function D(){this.constructor=Z}pe(Z,K),Z.prototype=null===K?Object.create(K):(D.prototype=K.prototype,new D)}),w=function(){return w=Object.assign||function(pe){for(var Z,K=1,D=arguments.length;K")}function f(pe,Z,K,D){for(var X=pe.length,de=Array(X+1),Oe=0;Oe0}var rt={};function Mt(pe,Z){for(var K=[],D=0,X=pe;D")),new In(Z,function(K){return Sn.is(K)&&K.every(pe.is)},function(K,D){var X=Sn.validate(K,D);if((0,t.nM)(X))return X;for(var de=X.right,Oe=de.length,Ae=de,mt=[],$t=0;$t0?h(mt):R(Ae)},pe.encode===P?P:function(K){return K.map(pe.encode)},pe)}var Dr=function(pe){function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="InterfaceType",Ae}return d(Z,pe),Z}(F);function wr(pe,Z){void 0===Z&&(Z=k(pe));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Dr(Z,function(de){if(en.is(de)){for(var Oe=0;Oe0?h(cn):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae")}(k(pe)));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Or(Z,function(de){if(en.is(de)){for(var Oe=0;Oe0?h(cn):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae0?h(cn):R(vn||Object.keys(mt).length!==X?$t:mt)},K.encode===P?P:function(de){for(var Oe={},Ae=0;Ae0?h(Oe):R($t?de:D)}return $e(Z)&&Array.isArray(D)?R(D):O(D,X)},pe.encode===P&&Z.encode===P?P:function(D){for(var X={},de=Object.keys(D),Oe=de.length,Ae=0;Ae0){var D=K[0],X=K[1],de=X.length,Oe=function(Ae){for(var mt=0;mt0?h(Oe):R(ve(D,de))},0===pe.length?P:function(D){return ve(D,pe.map(function(X){return X.encode(D)}))},pe)}!function(pe){d(function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.types=Oe,Ae._tag="TupleType",Ae},pe)}(F);var Wt=function(pe){function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyType",Ae}return d(Z,pe),Z}(F);function Vt(pe,Z){return void 0===Z&&(Z="Readonly<".concat(pe.name,">")),new Wt(Z,pe.is,pe.validate,pe.encode,pe)}var Un=function(pe){function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyArrayType",Ae}return d(Z,pe),Z}(F);function on(pe,Z){void 0===Z&&(Z="ReadonlyArray<".concat(pe.name,">"));var K=nr(pe);return new Un(Z,K.is,K.validate,K.encode,pe)}!function(pe){d(function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ExactType",Ae},pe)}(F);var Qe=function(pe){function Z(){var K=pe.call(this,"Function",function(D){return"function"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="FunctionType",K}return d(Z,pe),Z}(F),Ue=(new Qe,function(pe){function Z(){var K=pe.call(this,"never",function(D){return!1},function(D,X){return O(D,X)},function(){throw new Error("cannot encode never")})||this;return K._tag="NeverType",K}return d(Z,pe),Z}(F)),Rt=(new Ue,function(pe){function Z(){var K=pe.call(this,"any",function(D){return!0},R,P)||this;return K._tag="AnyType",K}return d(Z,pe),Z}(F));function Ft(pe,Z,K){return void 0===K&&(K="(".concat(pe.name," | ").concat(B(Z),")")),new it(K,function(D){return pe.is(D)&&Z(D)},function(D,X){var de=pe.validate(D,X);if((0,t.nM)(de))return de;var Oe=de.right;return Z(Oe)?R(Oe):O(Oe,X)},pe.encode,pe,Z)}new Rt,Ft(xt,Number.isInteger,"Integer");var wn=function(pe){function Z(K,D,X,de,Oe,Ae){var mt=pe.call(this,K,D,X,de,Oe)||this;return mt.tag=Ae,mt}return d(Z,pe),Z}(Zn),Fr=function(pe){return[{key:"",type:pe}]},Hr=function(pe){function Z(){var K=pe.call(this,"object",function(D){return null!==D&&"object"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="ObjectType",K}return d(Z,pe),Z}(F);new Hr,function(pe){d(function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="StrictType",Ae},pe)}(F)},5619:(Pe,V,a)=>{"use strict";a.d(V,{X:()=>d});var t=a(8645);class d extends t.x{constructor(L){super(),this._value=L}get value(){return this.getValue()}_subscribe(L){const h=super._subscribe(L);return!h.closed&&L.next(this._value),h}getValue(){const{hasError:L,thrownError:h,_value:O}=this;if(L)throw h;return this._throwIfClosed(),O}next(L){super.next(this._value=L)}}},5592:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>F});var t=a(305),d=a(7394),w=a(4850),L=a(8407),h=a(2653),O=a(4674),R=a(1441);let F=(()=>{class f{constructor(M){M&&(this._subscribe=M)}lift(M){const q=new f;return q.source=this,q.operator=M,q}subscribe(M,q,ie){const k=function $(f){return f&&f instanceof t.Lv||function B(f){return f&&(0,O.m)(f.next)&&(0,O.m)(f.error)&&(0,O.m)(f.complete)}(f)&&(0,d.Nn)(f)}(M)?M:new t.Hp(M,q,ie);return(0,R.x)(()=>{const{operator:Te,source:Se}=this;k.add(Te?Te.call(k,Se):Se?this._subscribe(k):this._trySubscribe(k))}),k}_trySubscribe(M){try{return this._subscribe(M)}catch(q){M.error(q)}}forEach(M,q){return new(q=P(q))((ie,k)=>{const Te=new t.Hp({next:Se=>{try{M(Se)}catch(ye){k(ye),Te.unsubscribe()}},error:k,complete:ie});this.subscribe(Te)})}_subscribe(M){var q;return null===(q=this.source)||void 0===q?void 0:q.subscribe(M)}[w.L](){return this}pipe(...M){return(0,L.U)(M)(this)}toPromise(M){return new(M=P(M))((q,ie)=>{let k;this.subscribe(Te=>k=Te,Te=>ie(Te),()=>q(k))})}}return f.create=j=>new f(j),f})();function P(f){var j;return null!==(j=f??h.config.Promise)&&void 0!==j?j:Promise}},7328:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>w});var t=a(8645),d=a(4552);class w extends t.x{constructor(h=1/0,O=1/0,R=d.l){super(),this._bufferSize=h,this._windowTime=O,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=O===1/0,this._bufferSize=Math.max(1,h),this._windowTime=Math.max(1,O)}next(h){const{isStopped:O,_buffer:R,_infiniteTimeWindow:F,_timestampProvider:P,_windowTime:B}=this;O||(R.push(h),!F&&R.push(P.now()+B)),this._trimBuffer(),super.next(h)}_subscribe(h){this._throwIfClosed(),this._trimBuffer();const O=this._innerSubscribe(h),{_infiniteTimeWindow:R,_buffer:F}=this,P=F.slice();for(let B=0;B{"use strict";a.d(V,{x:()=>R});var t=a(5592),d=a(7394);const L=(0,a(2306).d)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var h=a(9039),O=a(1441);let R=(()=>{class P extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift($){const f=new F(this,this);return f.operator=$,f}_throwIfClosed(){if(this.closed)throw new L}next($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const f of this.currentObservers)f.next($)}})}error($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=$;const{observers:f}=this;for(;f.length;)f.shift().error($)}})}complete(){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:$}=this;for(;$.length;)$.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var $;return(null===($=this.observers)||void 0===$?void 0:$.length)>0}_trySubscribe($){return this._throwIfClosed(),super._trySubscribe($)}_subscribe($){return this._throwIfClosed(),this._checkFinalizedStatuses($),this._innerSubscribe($)}_innerSubscribe($){const{hasError:f,isStopped:j,observers:M}=this;return f||j?d.Lc:(this.currentObservers=null,M.push($),new d.w0(()=>{this.currentObservers=null,(0,h.P)(M,$)}))}_checkFinalizedStatuses($){const{hasError:f,thrownError:j,isStopped:M}=this;f?$.error(j):M&&$.complete()}asObservable(){const $=new t.y;return $.source=this,$}}return P.create=(B,$)=>new F(B,$),P})();class F extends R{constructor(B,$){super(),this.destination=B,this.source=$}next(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.next)||void 0===f||f.call($,B)}error(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.error)||void 0===f||f.call($,B)}complete(){var B,$;null===($=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===$||$.call(B)}_subscribe(B){var $,f;return null!==(f=null===($=this.source)||void 0===$?void 0:$.subscribe(B))&&void 0!==f?f:d.Lc}}},305:(Pe,V,a)=>{"use strict";a.d(V,{Hp:()=>ie,Lv:()=>f});var t=a(4674),d=a(7394),w=a(2653),L=a(3894),h=a(2420);const O=P("C",void 0,void 0);function P(ce,_e,ve){return{kind:ce,value:_e,error:ve}}var B=a(7599),$=a(1441);class f extends d.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,d.Nn)(_e)&&_e.add(this)):this.destination=ye}static create(_e,ve,xe){return new ie(_e,ve,xe)}next(_e){this.isStopped?Se(function F(ce){return P("N",ce,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Se(function R(ce){return P("E",void 0,ce)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Se(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const j=Function.prototype.bind;function M(ce,_e){return j.call(ce,_e)}class q{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(xe){k(xe)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(xe){k(xe)}else k(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){k(ve)}}}class ie extends f{constructor(_e,ve,xe){let be;if(super(),(0,t.m)(_e)||!_e)be={next:_e??void 0,error:ve??void 0,complete:xe??void 0};else{let ke;this&&w.config.useDeprecatedNextContext?(ke=Object.create(_e),ke.unsubscribe=()=>this.unsubscribe(),be={next:_e.next&&M(_e.next,ke),error:_e.error&&M(_e.error,ke),complete:_e.complete&&M(_e.complete,ke)}):be=_e}this.destination=new q(be)}}function k(ce){w.config.useDeprecatedSynchronousErrorHandling?(0,$.O)(ce):(0,L.h)(ce)}function Se(ce,_e){const{onStoppedNotification:ve}=w.config;ve&&B.z.setTimeout(()=>ve(ce,_e))}const ye={closed:!0,next:h.Z,error:function Te(ce){throw ce},complete:h.Z}},7394:(Pe,V,a)=>{"use strict";a.d(V,{Lc:()=>O,w0:()=>h,Nn:()=>R});var t=a(4674);const w=(0,a(2306).d)(P=>function($){P(this),this.message=$?`${$.length} errors occurred during unsubscription:\n${$.map((f,j)=>`${j+1}) ${f.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=$});var L=a(9039);class h{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:$}=this;if($)if(this._parentage=null,Array.isArray($))for(const M of $)M.remove(this);else $.remove(this);const{initialTeardown:f}=this;if((0,t.m)(f))try{f()}catch(M){B=M instanceof w?M.errors:[M]}const{_finalizers:j}=this;if(j){this._finalizers=null;for(const M of j)try{F(M)}catch(q){B=B??[],q instanceof w?B=[...B,...q.errors]:B.push(q)}}if(B)throw new w(B)}}add(B){var $;if(B&&B!==this)if(this.closed)F(B);else{if(B instanceof h){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==($=this._finalizers)&&void 0!==$?$:[]).push(B)}}_hasParent(B){const{_parentage:$}=this;return $===B||Array.isArray($)&&$.includes(B)}_addParent(B){const{_parentage:$}=this;this._parentage=Array.isArray($)?($.push(B),$):$?[$,B]:B}_removeParent(B){const{_parentage:$}=this;$===B?this._parentage=null:Array.isArray($)&&(0,L.P)($,B)}remove(B){const{_finalizers:$}=this;$&&(0,L.P)($,B),B instanceof h&&B._removeParent(this)}}h.EMPTY=(()=>{const P=new h;return P.closed=!0,P})();const O=h.EMPTY;function R(P){return P instanceof h||P&&"closed"in P&&(0,t.m)(P.remove)&&(0,t.m)(P.add)&&(0,t.m)(P.unsubscribe)}function F(P){(0,t.m)(P)?P():P.unsubscribe()}},2653:(Pe,V,a)=>{"use strict";a.d(V,{config:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(Pe,V,a)=>{"use strict";a.d(V,{a:()=>B});var t=a(5592),d=a(7453),w=a(7715),L=a(2737),h=a(7400),O=a(9940),R=a(2714),F=a(8251),P=a(7103);function B(...j){const M=(0,O.yG)(j),q=(0,O.jO)(j),{args:ie,keys:k}=(0,d.D)(j);if(0===ie.length)return(0,w.D)([],M);const Te=new t.y(function $(j,M,q=L.y){return ie=>{f(M,()=>{const{length:k}=j,Te=new Array(k);let Se=k,ye=k;for(let ce=0;ce{const _e=(0,w.D)(j[ce],M);let ve=!1;_e.subscribe((0,F.x)(ie,xe=>{Te[ce]=xe,ve||(ve=!0,ye--),ye||ie.next(q(Te.slice()))},()=>{--Se||ie.complete()}))},ie)},ie)}}(ie,M,k?Se=>(0,R.n)(k,Se):L.y));return q?Te.pipe((0,h.Z)(q)):Te}function f(j,M,q){j?(0,P.f)(q,j,M):M()}},5211:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>h});var t=a(7537),w=a(9940),L=a(7715);function h(...O){return function d(){return(0,t.J)(1)}()((0,L.D)(O,(0,w.yG)(O)))}},7:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>h});var t=a(8645),d=a(5592),w=a(4911);const L={connector:()=>new t.x,resetOnDisconnect:!0};function h(O,R=L){let F=null;const{connector:P,resetOnDisconnect:B=!0}=R;let $=P();const f=new d.y(j=>$.subscribe(j));return f.connect=()=>((!F||F.closed)&&(F=(0,w.P)(()=>O).subscribe($),B&&F.add(()=>$=P())),F),f}},4911:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>w});var t=a(5592),d=a(4829);function w(L){return new t.y(h=>{(0,d.Xf)(L()).subscribe(h)})}},6232:(Pe,V,a)=>{"use strict";a.d(V,{E:()=>d});const d=new(a(5592).y)(h=>h.complete())},9315:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>F});var t=a(5592),d=a(7453),w=a(4829),L=a(9940),h=a(8251),O=a(7400),R=a(2714);function F(...P){const B=(0,L.jO)(P),{args:$,keys:f}=(0,d.D)(P),j=new t.y(M=>{const{length:q}=$;if(!q)return void M.complete();const ie=new Array(q);let k=q,Te=q;for(let Se=0;Se{ye||(ye=!0,Te--),ie[Se]=ce},()=>k--,void 0,()=>{(!k||!ye)&&(Te||M.next(f?(0,R.n)(f,ie):ie),M.complete())}))}});return B?j.pipe((0,O.Z)(B)):j}},7715:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>xe});var t=a(4829),d=a(7103),w=a(9360),L=a(8251);function h(be,ke=0){return(0,w.e)((vt,rt)=>{vt.subscribe((0,L.x)(rt,Mt=>(0,d.f)(rt,be,()=>rt.next(Mt),ke),()=>(0,d.f)(rt,be,()=>rt.complete(),ke),Mt=>(0,d.f)(rt,be,()=>rt.error(Mt),ke)))})}function O(be,ke=0){return(0,w.e)((vt,rt)=>{rt.add(be.schedule(()=>vt.subscribe(rt),ke))})}var P=a(5592),$=a(4971),f=a(4674);function M(be,ke){if(!be)throw new Error("Iterable cannot be null");return new P.y(vt=>{(0,d.f)(vt,ke,()=>{const rt=be[Symbol.asyncIterator]();(0,d.f)(vt,ke,()=>{rt.next().then(Mt=>{Mt.done?vt.complete():vt.next(Mt.value)})},0,!0)})})}var q=a(8382),ie=a(4026),k=a(4266),Te=a(3664),Se=a(5726),ye=a(9853),ce=a(541);function xe(be,ke){return ke?function ve(be,ke){if(null!=be){if((0,q.c)(be))return function R(be,ke){return(0,t.Xf)(be).pipe(O(ke),h(ke))}(be,ke);if((0,k.z)(be))return function B(be,ke){return new P.y(vt=>{let rt=0;return ke.schedule(function(){rt===be.length?vt.complete():(vt.next(be[rt++]),vt.closed||this.schedule())})})}(be,ke);if((0,ie.t)(be))return function F(be,ke){return(0,t.Xf)(be).pipe(O(ke),h(ke))}(be,ke);if((0,Se.D)(be))return M(be,ke);if((0,Te.T)(be))return function j(be,ke){return new P.y(vt=>{let rt;return(0,d.f)(vt,ke,()=>{rt=be[$.h](),(0,d.f)(vt,ke,()=>{let Mt,qe;try{({value:Mt,done:qe}=rt.next())}catch(_t){return void vt.error(_t)}qe?vt.complete():vt.next(Mt)},0,!0)}),()=>(0,f.m)(rt?.return)&&rt.return()})}(be,ke);if((0,ce.L)(be))return function _e(be,ke){return M((0,ce.Q)(be),ke)}(be,ke)}throw(0,ye.z)(be)}(be,ke):(0,t.Xf)(be)}},2438:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>B});var t=a(4829),d=a(5592),w=a(1631),L=a(4266),h=a(4674),O=a(7400);const R=["addListener","removeListener"],F=["addEventListener","removeEventListener"],P=["on","off"];function B(q,ie,k,Te){if((0,h.m)(k)&&(Te=k,k=void 0),Te)return B(q,ie,k).pipe((0,O.Z)(Te));const[Se,ye]=function M(q){return(0,h.m)(q.addEventListener)&&(0,h.m)(q.removeEventListener)}(q)?F.map(ce=>_e=>q[ce](ie,_e,k)):function f(q){return(0,h.m)(q.addListener)&&(0,h.m)(q.removeListener)}(q)?R.map($(q,ie)):function j(q){return(0,h.m)(q.on)&&(0,h.m)(q.off)}(q)?P.map($(q,ie)):[];if(!Se&&(0,L.z)(q))return(0,w.z)(ce=>B(ce,ie,k))((0,t.Xf)(q));if(!Se)throw new TypeError("Invalid event target");return new d.y(ce=>{const _e=(...ve)=>ce.next(1ye(_e)})}function $(q,ie){return k=>Te=>q[k](ie,Te)}},4829:(Pe,V,a)=>{"use strict";a.d(V,{Xf:()=>j});var t=a(7582),d=a(4266),w=a(4026),L=a(5592),h=a(8382),O=a(5726),R=a(9853),F=a(3664),P=a(541),B=a(4674),$=a(3894),f=a(4850);function j(ce){if(ce instanceof L.y)return ce;if(null!=ce){if((0,h.c)(ce))return function M(ce){return new L.y(_e=>{const ve=ce[f.L]();if((0,B.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ce);if((0,d.z)(ce))return function q(ce){return new L.y(_e=>{for(let ve=0;ve{ce.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,$.h)})}(ce);if((0,O.D)(ce))return Te(ce);if((0,F.T)(ce))return function k(ce){return new L.y(_e=>{for(const ve of ce)if(_e.next(ve),_e.closed)return;_e.complete()})}(ce);if((0,P.L)(ce))return function Se(ce){return Te((0,P.Q)(ce))}(ce)}throw(0,R.z)(ce)}function Te(ce){return new L.y(_e=>{(function ye(ce,_e){var ve,xe,be,ke;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ve=(0,t.KL)(ce);!(xe=yield ve.next()).done;)if(_e.next(xe.value),_e.closed)return}catch(vt){be={error:vt}}finally{try{xe&&!xe.done&&(ke=ve.return)&&(yield ke.call(ve))}finally{if(be)throw be.error}}_e.complete()})})(ce,_e).catch(ve=>_e.error(ve))})}},1687:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>w});var t=a(6321),d=a(4825);function w(L=0,h=t.z){return L<0&&(L=0),(0,d.H)(L,L,h)}},3019:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(7537),d=a(4829),w=a(6232),L=a(9940),h=a(7715);function O(...R){const F=(0,L.yG)(R),P=(0,L._6)(R,1/0),B=R;return B.length?1===B.length?(0,d.Xf)(B[0]):(0,t.J)(P)((0,h.D)(B,F)):w.E}},2096:(Pe,V,a)=>{"use strict";a.d(V,{of:()=>w});var t=a(9940),d=a(7715);function w(...L){const h=(0,t.yG)(L);return(0,d.D)(L,h)}},8504:(Pe,V,a)=>{"use strict";a.d(V,{_:()=>w});var t=a(5592),d=a(4674);function w(L,h){const O=(0,d.m)(L)?L:()=>L,R=F=>F.error(O());return new t.y(h?F=>h.schedule(R,0,F):R)}},4825:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>h});var t=a(5592),d=a(6321),w=a(671);function h(O=0,R,F=d.P){let P=-1;return null!=R&&((0,w.K)(R)?F=R:P=R),new t.y(B=>{let $=function L(O){return O instanceof Date&&!isNaN(O)}(O)?+O-F.now():O;$<0&&($=0);let f=0;return F.schedule(function(){B.closed||(B.next(f++),0<=P?this.schedule(void 0,P):B.complete())},$)})}},8251:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(305);function d(L,h,O,R,F){return new w(L,h,O,R,F)}class w extends t.Lv{constructor(h,O,R,F,P,B){super(h),this.onFinalize=P,this.shouldUnsubscribe=B,this._next=O?function($){try{O($)}catch(f){h.error(f)}}:super._next,this._error=F?function($){try{F($)}catch(f){h.error(f)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch($){h.error($)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var h;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:O}=this;super.unsubscribe(),!O&&(null===(h=this.onFinalize)||void 0===h||h.call(this))}}}},6306:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>L});var t=a(4829),d=a(8251),w=a(9360);function L(h){return(0,w.e)((O,R)=>{let B,F=null,P=!1;F=O.subscribe((0,d.x)(R,void 0,void 0,$=>{B=(0,t.Xf)(h($,L(h)(O))),F?(F.unsubscribe(),F=null,B.subscribe(R)):P=!0})),P&&(F.unsubscribe(),F=null,B.subscribe(R))})}},6328:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(1631),d=a(4674);function w(L,h){return(0,d.m)(h)?(0,t.z)(L,h,1):(0,t.z)(L,1)}},3620:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>L});var t=a(6321),d=a(9360),w=a(8251);function L(h,O=t.z){return(0,d.e)((R,F)=>{let P=null,B=null,$=null;const f=()=>{if(P){P.unsubscribe(),P=null;const M=B;B=null,F.next(M)}};function j(){const M=$+h,q=O.now();if(q{B=M,$=O.now(),P||(P=O.schedule(j,h),F.add(P))},()=>{f(),F.complete()},void 0,()=>{B=P=null}))})}},3572:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(9360),d=a(8251);function w(L){return(0,t.e)((h,O)=>{let R=!1;h.subscribe((0,d.x)(O,F=>{R=!0,O.next(F)},()=>{R||O.next(L),O.complete()}))})}},3997:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>L});var t=a(2737),d=a(9360),w=a(8251);function L(O,R=t.y){return O=O??h,(0,d.e)((F,P)=>{let B,$=!0;F.subscribe((0,w.x)(P,f=>{const j=R(f);($||!O(B,j))&&($=!1,B=j,P.next(f))}))})}function h(O,R){return O===R}},2181:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(9360),d=a(8251);function w(L,h){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>L.call(h,P,F++)&&R.next(P)))})}},4716:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(9360);function d(w){return(0,t.e)((L,h)=>{try{L.subscribe(h)}finally{h.add(w)}})}},7398:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w});var t=a(9360),d=a(8251);function w(L,h){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>{R.next(L.call(h,P,F++))}))})}},975:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});var t=a(7398);function d(w){return(0,t.U)(()=>w)}},7537:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>w});var t=a(1631),d=a(2737);function w(L=1/0){return(0,t.z)(d.y,L)}},1631:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>F});var t=a(7398),d=a(4829),w=a(9360),L=a(7103),h=a(8251),R=a(4674);function F(P,B,$=1/0){return(0,R.m)(B)?F((f,j)=>(0,t.U)((M,q)=>B(f,M,j,q))((0,d.Xf)(P(f,j))),$):("number"==typeof B&&($=B),(0,w.e)((f,j)=>function O(P,B,$,f,j,M,q,ie){const k=[];let Te=0,Se=0,ye=!1;const ce=()=>{ye&&!k.length&&!Te&&B.complete()},_e=xe=>Te{M&&B.next(xe),Te++;let be=!1;(0,d.Xf)($(xe,Se++)).subscribe((0,h.x)(B,ke=>{j?.(ke),M?_e(ke):B.next(ke)},()=>{be=!0},void 0,()=>{if(be)try{for(Te--;k.length&&Teve(ke)):ve(ke)}ce()}catch(ke){B.error(ke)}}))};return P.subscribe((0,h.x)(B,_e,()=>{ye=!0,ce()})),()=>{ie?.()}}(f,j,P,$)))}},6699:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>L});var t=a(9360),d=a(8251);function L(h,O){return(0,t.e)(function w(h,O,R,F,P){return(B,$)=>{let f=R,j=O,M=0;B.subscribe((0,d.x)($,q=>{const ie=M++;j=f?h(j,q,ie):(f=!0,q),F&&$.next(j)},P&&(()=>{f&&$.next(j),$.complete()})))}}(h,O,arguments.length>=2,!0))}},3020:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>h});var t=a(4829),d=a(8645),w=a(305),L=a(9360);function h(R={}){const{connector:F=(()=>new d.x),resetOnError:P=!0,resetOnComplete:B=!0,resetOnRefCountZero:$=!0}=R;return f=>{let j,M,q,ie=0,k=!1,Te=!1;const Se=()=>{M?.unsubscribe(),M=void 0},ye=()=>{Se(),j=q=void 0,k=Te=!1},ce=()=>{const _e=j;ye(),_e?.unsubscribe()};return(0,L.e)((_e,ve)=>{ie++,!Te&&!k&&Se();const xe=q=q??F();ve.add(()=>{ie--,0===ie&&!Te&&!k&&(M=O(ce,$))}),xe.subscribe(ve),!j&&ie>0&&(j=new w.Hp({next:be=>xe.next(be),error:be=>{Te=!0,Se(),M=O(ye,P,be),xe.error(be)},complete:()=>{k=!0,Se(),M=O(ye,B),xe.complete()}}),(0,t.Xf)(_e).subscribe(j))})(f)}}function O(R,F,...P){if(!0===F)return void R();if(!1===F)return;const B=new w.Hp({next:()=>{B.unsubscribe(),R()}});return(0,t.Xf)(F(...P)).subscribe(B)}},7081:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(7328),d=a(3020);function w(L,h,O){let R,F=!1;return L&&"object"==typeof L?({bufferSize:R=1/0,windowTime:h=1/0,refCount:F=!1,scheduler:O}=L):R=L??1/0,(0,d.B)({connector:()=>new t.t(R,h,O),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:F})}},836:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>d});var t=a(2181);function d(w){return(0,t.h)((L,h)=>w<=h)}},7921:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L});var t=a(5211),d=a(9940),w=a(9360);function L(...h){const O=(0,d.yG)(h);return(0,w.e)((R,F)=>{(O?(0,t.z)(h,R,O):(0,t.z)(h,R)).subscribe(F)})}},2689:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>w});var t=a(4664),d=a(2737);function w(){return(0,t.w)(d.y)}},4664:(Pe,V,a)=>{"use strict";a.d(V,{w:()=>L});var t=a(4829),d=a(9360),w=a(8251);function L(h,O){return(0,d.e)((R,F)=>{let P=null,B=0,$=!1;const f=()=>$&&!P&&F.complete();R.subscribe((0,w.x)(F,j=>{P?.unsubscribe();let M=0;const q=B++;(0,t.Xf)(h(j,q)).subscribe(P=(0,w.x)(F,ie=>F.next(O?O(j,ie,q,M++):ie),()=>{P=null,f()}))},()=>{$=!0,f()}))})}},8180:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(6232),d=a(9360),w=a(8251);function L(h){return h<=0?()=>t.E:(0,d.e)((O,R)=>{let F=0;O.subscribe((0,w.x)(R,P=>{++F<=h&&(R.next(P),h<=F&&R.complete())}))})}},9773:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>h});var t=a(9360),d=a(8251),w=a(4829),L=a(2420);function h(O){return(0,t.e)((R,F)=>{(0,w.Xf)(O).subscribe((0,d.x)(F,()=>F.complete(),L.Z)),!F.closed&&R.subscribe(F)})}},9397:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>h});var t=a(4674),d=a(9360),w=a(8251),L=a(2737);function h(O,R,F){const P=(0,t.m)(O)||R||F?{next:O,error:R,complete:F}:O;return P?(0,d.e)((B,$)=>{var f;null===(f=P.subscribe)||void 0===f||f.call(P);let j=!0;B.subscribe((0,w.x)($,M=>{var q;null===(q=P.next)||void 0===q||q.call(P,M),$.next(M)},()=>{var M;j=!1,null===(M=P.complete)||void 0===M||M.call(P),$.complete()},M=>{var q;j=!1,null===(q=P.error)||void 0===q||q.call(P,M),$.error(M)},()=>{var M,q;j&&(null===(M=P.unsubscribe)||void 0===M||M.call(P)),null===(q=P.finalize)||void 0===q||q.call(P)}))}):L.y}},2460:(Pe,V,a)=>{"use strict";a.d(V,{M:()=>R});var t=a(9360),d=a(8251),w=a(4829),L=a(2737),h=a(2420),O=a(9940);function R(...F){const P=(0,O.jO)(F);return(0,t.e)((B,$)=>{const f=F.length,j=new Array(f);let M=F.map(()=>!1),q=!1;for(let ie=0;ie{j[ie]=k,!q&&!M[ie]&&(M[ie]=!0,(q=M.every(L.y))&&(M=null))},h.Z));B.subscribe((0,d.x)($,ie=>{if(q){const k=[ie,...j];$.next(P?P(...k):k)}}))})}},1954:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>h});var t=a(7394);class d extends t.w0{constructor(R,F){super()}schedule(R,F=0){return this}}const w={setInterval(O,R,...F){const{delegate:P}=w;return P?.setInterval?P.setInterval(O,R,...F):setInterval(O,R,...F)},clearInterval(O){const{delegate:R}=w;return(R?.clearInterval||clearInterval)(O)},delegate:void 0};var L=a(9039);class h extends d{constructor(R,F){super(R,F),this.scheduler=R,this.work=F,this.pending=!1}schedule(R,F=0){var P;if(this.closed)return this;this.state=R;const B=this.id,$=this.scheduler;return null!=B&&(this.id=this.recycleAsyncId($,B,F)),this.pending=!0,this.delay=F,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId($,this.id,F),this}requestAsyncId(R,F,P=0){return w.setInterval(R.flush.bind(R,this),P)}recycleAsyncId(R,F,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return F;null!=F&&w.clearInterval(F)}execute(R,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(R,F);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,F){let B,P=!1;try{this.work(R)}catch($){P=!0,B=$||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:R,scheduler:F}=this,{actions:P}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,L.P)(P,this),null!=R&&(this.id=this.recycleAsyncId(F,R,null)),this.delay=null,super.unsubscribe()}}}},2631:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4552);class d{constructor(h,O=d.now){this.schedulerActionCtor=h,this.now=O}schedule(h,O=0,R){return new this.schedulerActionCtor(this,h).schedule(R,O)}}d.now=t.l.now;class w extends d{constructor(h,O=d.now){super(h,O),this.actions=[],this._active=!1}flush(h){const{actions:O}=this;if(this._active)return void O.push(h);let R;this._active=!0;do{if(R=h.execute(h.state,h.delay))break}while(h=O.shift());if(this._active=!1,R){for(;h=O.shift();)h.unsubscribe();throw R}}}},6321:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>L,z:()=>w});var t=a(1954);const w=new(a(2631).v)(t.o),L=w},4552:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},7599:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t={setTimeout(d,w,...L){const{delegate:h}=t;return h?.setTimeout?h.setTimeout(d,w,...L):setTimeout(d,w,...L)},clearTimeout(d){const{delegate:w}=t;return(w?.clearTimeout||clearTimeout)(d)},delegate:void 0}},4971:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});const d=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9940:(Pe,V,a)=>{"use strict";a.d(V,{_6:()=>O,jO:()=>L,yG:()=>h});var t=a(4674),d=a(671);function w(R){return R[R.length-1]}function L(R){return(0,t.m)(w(R))?R.pop():void 0}function h(R){return(0,d.K)(w(R))?R.pop():void 0}function O(R,F){return"number"==typeof w(R)?R.pop():F}},7453:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>h});const{isArray:t}=Array,{getPrototypeOf:d,prototype:w,keys:L}=Object;function h(R){if(1===R.length){const F=R[0];if(t(F))return{args:F,keys:null};if(function O(R){return R&&"object"==typeof R&&d(R)===w}(F)){const P=L(F);return{args:P.map(B=>F[B]),keys:P}}}return{args:R,keys:null}}},9039:(Pe,V,a)=>{"use strict";function t(d,w){if(d){const L=d.indexOf(w);0<=L&&d.splice(L,1)}}a.d(V,{P:()=>t})},2306:(Pe,V,a)=>{"use strict";function t(d){const L=d(h=>{Error.call(h),h.stack=(new Error).stack});return L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L}a.d(V,{d:()=>t})},2714:(Pe,V,a)=>{"use strict";function t(d,w){return d.reduce((L,h,O)=>(L[h]=w[O],L),{})}a.d(V,{n:()=>t})},1441:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L,x:()=>w});var t=a(2653);let d=null;function w(h){if(t.config.useDeprecatedSynchronousErrorHandling){const O=!d;if(O&&(d={errorThrown:!1,error:null}),h(),O){const{errorThrown:R,error:F}=d;if(d=null,R)throw F}}else h()}function L(h){t.config.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=h)}},7103:(Pe,V,a)=>{"use strict";function t(d,w,L,h=0,O=!1){const R=w.schedule(function(){L(),O?d.add(this.schedule(null,h)):this.unsubscribe()},h);if(d.add(R),!O)return R}a.d(V,{f:()=>t})},2737:(Pe,V,a)=>{"use strict";function t(d){return d}a.d(V,{y:()=>t})},4266:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t=d=>d&&"number"==typeof d.length&&"function"!=typeof d},5726:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>d});var t=a(4674);function d(w){return Symbol.asyncIterator&&(0,t.m)(w?.[Symbol.asyncIterator])}},4674:(Pe,V,a)=>{"use strict";function t(d){return"function"==typeof d}a.d(V,{m:()=>t})},8382:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>w});var t=a(4850),d=a(4674);function w(L){return(0,d.m)(L[t.L])}},3664:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>w});var t=a(4971),d=a(4674);function w(L){return(0,d.m)(L?.[t.h])}},2664:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(5592),d=a(4674);function w(L){return!!L&&(L instanceof t.y||(0,d.m)(L.lift)&&(0,d.m)(L.subscribe))}},4026:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>d});var t=a(4674);function d(w){return(0,t.m)(w?.then)}},541:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>L,Q:()=>w});var t=a(7582),d=a(4674);function w(h){return(0,t.FC)(this,arguments,function*(){const R=h.getReader();try{for(;;){const{value:F,done:P}=yield(0,t.qq)(R.read());if(P)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(F)}}finally{R.releaseLock()}})}function L(h){return(0,d.m)(h?.getReader)}},671:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>d});var t=a(4674);function d(w){return w&&(0,t.m)(w.schedule)}},9360:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>d,e:()=>w});var t=a(4674);function d(L){return(0,t.m)(L?.lift)}function w(L){return h=>{if(d(h))return h.lift(function(O){try{return L(O,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7398);const{isArray:d}=Array;function L(h){return(0,t.U)(O=>function w(h,O){return d(O)?h(...O):h(O)}(h,O))}},2420:(Pe,V,a)=>{"use strict";function t(){}a.d(V,{Z:()=>t})},8407:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w,z:()=>d});var t=a(2737);function d(...L){return w(L)}function w(L){return 0===L.length?t.y:1===L.length?L[0]:function(O){return L.reduce((R,F)=>F(R),O)}}},3894:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(2653),d=a(7599);function w(L){d.z.setTimeout(()=>{const{onUnhandledError:h}=t.config;if(!h)throw L;h(L)})}},9853:(Pe,V,a)=>{"use strict";function t(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(V,{z:()=>t})},5129:(Pe,V,a)=>{var t=a(1474).FilterCSS,d=a(1474).getDefaultWhiteList,w=a(8735);var h=new t;function B(Ee){return Ee.replace(f,"<").replace(j,">")}var f=//g,M=/"/g,q=/"/g,ie=/&#([a-zA-Z0-9]*);?/gim,k=/:?/gim,Te=/&newline;?/gim,Se=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ye=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ce=/u\s*r\s*l\s*\(.*/gi;function _e(Ee){return Ee.replace(M,""")}function ve(Ee){return Ee.replace(q,'"')}function xe(Ee){return Ee.replace(ie,function(J,Q){return String.fromCharCode("x"===Q[0]||"X"===Q[0]?parseInt(Q.substr(1),16):parseInt(Q,10))})}function be(Ee){return Ee.replace(k,":").replace(Te," ")}function ke(Ee){for(var Ze="",J=0,Q=Ee.length;J{var t=a(5129),d=a(4469),w=a(9278);function L(O,R){return new w(R).process(O)}(V=Pe.exports=L).filterXSS=L,V.FilterXSS=w,function(){for(var O in t)V[O]=t[O];for(var R in d)V[R]=d[R]}(),typeof window<"u"&&(window.filterXSS=Pe.exports),function h(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=Pe.exports)},4469:(Pe,V,a)=>{var t=a(8735);function d(f){var M,j=t.spaceIndex(f);return M=f.slice(1,-1===j?-1:j+1),"/"===(M=t.trim(M).toLowerCase()).slice(0,1)&&(M=M.slice(1)),"/"===M.slice(-1)&&(M=M.slice(0,-1)),M}function w(f){return"0;j--){var M=f[j];if(" "!==M)return"="===M?j:-1}}function $(f){return function B(f){return'"'===f[0]&&'"'===f[f.length-1]||"'"===f[0]&&"'"===f[f.length-1]}(f)?f.substr(1,f.length-2):f}V.parseTag=function L(f,j,M){"use strict";var q="",ie=0,k=!1,Te=!1,Se=0,ye=f.length,ce="",_e="";e:for(Se=0;Se"===ve||Se===ye-1){q+=M(f.slice(ie,k)),ce=d(_e=f.slice(k,Se+1)),q+=j(k,q.length,ce,_e,w(_e)),ie=Se+1,k=!1;continue}if('"'===ve||"'"===ve)for(var xe=1,be=f.charAt(Se-xe);""===be.trim()||"="===be;){if("="===be){Te=ve;continue e}be=f.charAt(Se-++xe)}}else if(ve===Te){Te=!1;continue}}return ie{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{var t=a(1474).FilterCSS,d=a(5129),w=a(4469),L=w.parseTag,h=w.parseAttr,O=a(8735);function R(f){return null==f}function $(f){(f=function P(f){var j={};for(var M in f)j[M]=f[M];return j}(f||{})).stripIgnoreTag&&(f.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),f.onIgnoreTag=d.onIgnoreTagStripAll),f.whiteList=f.whiteList||f.allowList?function B(f){var j={};for(var M in f)Array.isArray(f[M])?j[M.toLowerCase()]=f[M].map(function(q){return q.toLowerCase()}):j[M.toLowerCase()]=f[M];return j}(f.whiteList||f.allowList):d.whiteList,f.onTag=f.onTag||d.onTag,f.onTagAttr=f.onTagAttr||d.onTagAttr,f.onIgnoreTag=f.onIgnoreTag||d.onIgnoreTag,f.onIgnoreTagAttr=f.onIgnoreTagAttr||d.onIgnoreTagAttr,f.safeAttrValue=f.safeAttrValue||d.safeAttrValue,f.escapeHtml=f.escapeHtml||d.escapeHtml,this.options=f,!1===f.css?this.cssFilter=!1:(f.css=f.css||{},this.cssFilter=new t(f.css))}$.prototype.process=function(f){if(!(f=(f=f||"").toString()))return"";var M=this.options,q=M.whiteList,ie=M.onTag,k=M.onIgnoreTag,Te=M.onTagAttr,Se=M.onIgnoreTagAttr,ye=M.safeAttrValue,ce=M.escapeHtml,_e=this.cssFilter;M.stripBlankChar&&(f=d.stripBlankChar(f)),M.allowCommentTag||(f=d.stripCommentTag(f));var ve=!1;M.stripIgnoreTagBody&&(ve=d.StripTagBody(M.stripIgnoreTagBody,k),k=ve.onIgnoreTag);var xe=L(f,function(be,ke,vt,rt,Mt){var qe={sourcePosition:be,position:ke,isClosing:Mt,isWhite:Object.prototype.hasOwnProperty.call(q,vt)},_t=ie(vt,rt,qe);if(!R(_t))return _t;if(qe.isWhite){if(qe.isClosing)return"";var $e=function F(f){var j=O.spaceIndex(f);if(-1===j)return{html:"",closing:"/"===f[f.length-2]};var M="/"===(f=O.trim(f.slice(j+1,-1)))[f.length-1];return M&&(f=O.trim(f.slice(0,-1))),{html:f,closing:M}}(rt),Ee=q[vt],Ze=h($e.html,function(J,Q){var oe=-1!==O.indexOf(Ee,J),se=Te(vt,J,Q,oe);return R(se)?oe?(Q=ye(vt,J,Q,_e))?J+'="'+Q+'"':J:R(se=Se(vt,J,Q,oe))?void 0:se:se});return rt="<"+vt,Ze&&(rt+=" "+Ze),$e.closing&&(rt+=" /"),rt+">"}return R(_t=k(vt,rt,qe))?ce(rt):_t},ce);return ve&&(xe=ve.remove(xe)),xe},Pe.exports=$},6814:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>ie,EM:()=>di,HT:()=>L,JF:()=>Oi,JJ:()=>Kt,K0:()=>O,Mn:()=>$e,Mx:()=>Hr,O5:()=>X,Ov:()=>Wi,PC:()=>ir,PM:()=>Yn,S$:()=>j,Tn:()=>ke,UT:()=>Ee,V_:()=>F,Ye:()=>k,ax:()=>Z,b0:()=>q,bD:()=>ct,ez:()=>Ve,mk:()=>qn,p6:()=>fn,q:()=>w,qS:()=>Ar,sg:()=>Z,tP:()=>_r,uU:()=>vi,uf:()=>bt,w_:()=>h,x:()=>be});var t=a(5879);let d=null;function w(){return d}function L(T){d||(d=T)}class h{}const O=new t.OlP("DocumentToken");let R=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(P)},providedIn:"platform"})}return T})();const F=new t.OlP("Location Initialized");let P=(()=>{class T extends R{constructor(){super(),this._doc=(0,t.f3M)(O),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w().getBaseHref(this._doc)}onPopState(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("popstate",U,!1),()=>ee.removeEventListener("popstate",U)}onHashChange(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("hashchange",U,!1),()=>ee.removeEventListener("hashchange",U)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(U){this._location.pathname=U}pushState(U,ee,Ie){this._history.pushState(U,ee,Ie)}replaceState(U,ee,Ie){this._history.replaceState(U,ee,Ie)}forward(){this._history.forward()}back(){this._history.back()}historyGo(U=0){this._history.go(U)}getState(){return this._history.state}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return new T},providedIn:"platform"})}return T})();function B(T,le){if(0==T.length)return le;if(0==le.length)return T;let U=0;return T.endsWith("/")&&U++,le.startsWith("/")&&U++,2==U?T+le.substring(1):1==U?T+le:T+"/"+le}function $(T){const le=T.match(/#|\?|$/),U=le&&le.index||T.length;return T.slice(0,U-("/"===T[U-1]?1:0))+T.slice(U)}function f(T){return T&&"?"!==T[0]?"?"+T:T}let j=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(q)},providedIn:"root"})}return T})();const M=new t.OlP("appBaseHref");let q=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._removeListenerFns=[],this._baseHref=ee??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(O).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}prepareExternalUrl(U){return B(this._baseHref,U)}path(U=!1){const ee=this._platformLocation.pathname+f(this._platformLocation.search),Ie=this._platformLocation.hash;return Ie&&U?`${ee}${Ie}`:ee}pushState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(M,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),ie=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._baseHref="",this._removeListenerFns=[],null!=ee&&(this._baseHref=ee)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}path(U=!1){let ee=this._platformLocation.hash;return null==ee&&(ee="#"),ee.length>0?ee.substring(1):ee}prepareExternalUrl(U){const ee=B(this._baseHref,U);return ee.length>0?"#"+ee:ee}pushState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(M,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac})}return T})(),k=(()=>{class T{constructor(U){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=U;const ee=this._locationStrategy.getBaseHref();this._basePath=function ce(T){if(new RegExp("^(https?:)?//").test(T)){const[,U]=T.split(/\/\/[^\/]+/);return U}return T}($(ye(ee))),this._locationStrategy.onPopState(Ie=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ie.state,type:Ie.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(U=!1){return this.normalize(this._locationStrategy.path(U))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(U,ee=""){return this.path()==this.normalize(U+f(ee))}normalize(U){return T.stripTrailingSlash(function Se(T,le){if(!T||!le.startsWith(T))return le;const U=le.substring(T.length);return""===U||["/",";","?","#"].includes(U[0])?U:le}(this._basePath,ye(U)))}prepareExternalUrl(U){return U&&"/"!==U[0]&&(U="/"+U),this._locationStrategy.prepareExternalUrl(U)}go(U,ee="",Ie=null){this._locationStrategy.pushState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}replaceState(U,ee="",Ie=null){this._locationStrategy.replaceState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(U=0){this._locationStrategy.historyGo?.(U)}onUrlChange(U){return this._urlChangeListeners.push(U),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ee=>{this._notifyUrlChangeListeners(ee.url,ee.state)})),()=>{const ee=this._urlChangeListeners.indexOf(U);this._urlChangeListeners.splice(ee,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(U="",ee){this._urlChangeListeners.forEach(Ie=>Ie(U,ee))}subscribe(U,ee,Ie){return this._subject.subscribe({next:U,error:ee,complete:Ie})}static#e=this.normalizeQueryParams=f;static#t=this.joinWithSlash=B;static#n=this.stripTrailingSlash=$;static#r=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(j))};static#i=this.\u0275prov=t.Yz7({token:T,factory:function(){return function Te(){return new k((0,t.LFG)(j))}()},providedIn:"root"})}return T})();function ye(T){return T.replace(/\/index.html$/,"")}var ve=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(ve||{}),be=function(T){return T[T.Format=0]="Format",T[T.Standalone=1]="Standalone",T}(be||{}),ke=function(T){return T[T.Narrow=0]="Narrow",T[T.Abbreviated=1]="Abbreviated",T[T.Wide=2]="Wide",T[T.Short=3]="Short",T}(ke||{}),vt=function(T){return T[T.Short=0]="Short",T[T.Medium=1]="Medium",T[T.Long=2]="Long",T[T.Full=3]="Full",T}(vt||{}),rt=function(T){return T[T.Decimal=0]="Decimal",T[T.Group=1]="Group",T[T.List=2]="List",T[T.PercentSign=3]="PercentSign",T[T.PlusSign=4]="PlusSign",T[T.MinusSign=5]="MinusSign",T[T.Exponential=6]="Exponential",T[T.SuperscriptingExponent=7]="SuperscriptingExponent",T[T.PerMille=8]="PerMille",T[T.Infinity=9]="Infinity",T[T.NaN=10]="NaN",T[T.TimeSeparator=11]="TimeSeparator",T[T.CurrencyDecimal=12]="CurrencyDecimal",T[T.CurrencyGroup=13]="CurrencyGroup",T}(rt||{});function $e(T,le,U){const ee=(0,t.cg1)(T),gt=Zt([ee[t.wAp.DaysFormat],ee[t.wAp.DaysStandalone]],le);return Zt(gt,U)}function Ee(T,le,U){const ee=(0,t.cg1)(T),gt=Zt([ee[t.wAp.MonthsFormat],ee[t.wAp.MonthsStandalone]],le);return Zt(gt,U)}function oe(T,le){return Zt((0,t.cg1)(T)[t.wAp.DateFormat],le)}function se(T,le){return Zt((0,t.cg1)(T)[t.wAp.TimeFormat],le)}function ae(T,le){return Zt((0,t.cg1)(T)[t.wAp.DateTimeFormat],le)}function fe(T,le){const U=(0,t.cg1)(T),ee=U[t.wAp.NumberSymbols][le];if(typeof ee>"u"){if(le===rt.CurrencyDecimal)return U[t.wAp.NumberSymbols][rt.Decimal];if(le===rt.CurrencyGroup)return U[t.wAp.NumberSymbols][rt.Group]}return ee}function Je(T){if(!T[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${T[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Zt(T,le){for(let U=le;U>-1;U--)if(typeof T[U]<"u")return T[U];throw new Error("Locale data API: locale data undefined")}function dn(T){const[le,U]=T.split(":");return{hours:+le,minutes:+U}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xt={},nn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Et=function(T){return T[T.Short=0]="Short",T[T.ShortGMT=1]="ShortGMT",T[T.Long=2]="Long",T[T.Extended=3]="Extended",T}(Et||{}),Ht=function(T){return T[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T}(Ht||{}),zt=function(T){return T[T.DayPeriods=0]="DayPeriods",T[T.Days=1]="Days",T[T.Months=2]="Months",T[T.Eras=3]="Eras",T}(zt||{});function fn(T,le,U,ee){let Ie=function dt(T){if(we(T))return T;if("number"==typeof T&&!isNaN(T))return new Date(T);if("string"==typeof T){if(T=T.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(T)){const[Ie,gt=1,Ct=1]=T.split("-").map(Jt=>+Jt);return Sn(Ie,gt-1,Ct)}const U=parseFloat(T);if(!isNaN(T-U))return new Date(U);let ee;if(ee=T.match(At))return function ot(T){const le=new Date(0);let U=0,ee=0;const Ie=T[8]?le.setUTCFullYear:le.setFullYear,gt=T[8]?le.setUTCHours:le.setHours;T[9]&&(U=Number(T[9]+T[10]),ee=Number(T[9]+T[11])),Ie.call(le,Number(T[1]),Number(T[2])-1,Number(T[3]));const Ct=Number(T[4]||0)-U,Jt=Number(T[5]||0)-ee,Bn=Number(T[6]||0),dr=Math.floor(1e3*parseFloat("0."+(T[7]||0)));return gt.call(le,Ct,Jt,Bn,dr),le}(ee)}const le=new Date(T);if(!we(le))throw new Error(`Unable to convert "${T}" into a date`);return le}(T);le=hn(U,le)||le;let Jt,Ct=[];for(;le;){if(Jt=nn.exec(le),!Jt){Ct.push(le);break}{Ct=Ct.concat(Jt.slice(1));const yr=Ct.pop();if(!yr)break;le=yr}}let Bn=Ie.getTimezoneOffset();ee&&(Bn=Br(ee,Bn),Ie=function Zn(T,le,U){const ee=U?-1:1,Ie=T.getTimezoneOffset();return function oi(T,le){return(T=new Date(T.getTime())).setMinutes(T.getMinutes()+le),T}(T,ee*(Br(le,Ie)-Ie))}(Ie,ee,!0));let dr="";return Ct.forEach(yr=>{const Kn=function Ir(T){if(Or[T])return Or[T];let le;switch(T){case"G":case"GG":case"GGG":le=it(zt.Eras,ke.Abbreviated);break;case"GGGG":le=it(zt.Eras,ke.Wide);break;case"GGGGG":le=it(zt.Eras,ke.Narrow);break;case"y":le=_n(Ht.FullYear,1,0,!1,!0);break;case"yy":le=_n(Ht.FullYear,2,0,!0,!0);break;case"yyy":le=_n(Ht.FullYear,3,0,!1,!0);break;case"yyyy":le=_n(Ht.FullYear,4,0,!1,!0);break;case"Y":le=wr(1);break;case"YY":le=wr(2,!0);break;case"YYY":le=wr(3);break;case"YYYY":le=wr(4);break;case"M":case"L":le=_n(Ht.Month,1,1);break;case"MM":case"LL":le=_n(Ht.Month,2,1);break;case"MMM":le=it(zt.Months,ke.Abbreviated);break;case"MMMM":le=it(zt.Months,ke.Wide);break;case"MMMMM":le=it(zt.Months,ke.Narrow);break;case"LLL":le=it(zt.Months,ke.Abbreviated,be.Standalone);break;case"LLLL":le=it(zt.Months,ke.Wide,be.Standalone);break;case"LLLLL":le=it(zt.Months,ke.Narrow,be.Standalone);break;case"w":le=Dr(1);break;case"ww":le=Dr(2);break;case"W":le=Dr(1,!0);break;case"d":le=_n(Ht.Date,1);break;case"dd":le=_n(Ht.Date,2);break;case"c":case"cc":le=_n(Ht.Day,1);break;case"ccc":le=it(zt.Days,ke.Abbreviated,be.Standalone);break;case"cccc":le=it(zt.Days,ke.Wide,be.Standalone);break;case"ccccc":le=it(zt.Days,ke.Narrow,be.Standalone);break;case"cccccc":le=it(zt.Days,ke.Short,be.Standalone);break;case"E":case"EE":case"EEE":le=it(zt.Days,ke.Abbreviated);break;case"EEEE":le=it(zt.Days,ke.Wide);break;case"EEEEE":le=it(zt.Days,ke.Narrow);break;case"EEEEEE":le=it(zt.Days,ke.Short);break;case"a":case"aa":case"aaa":le=it(zt.DayPeriods,ke.Abbreviated);break;case"aaaa":le=it(zt.DayPeriods,ke.Wide);break;case"aaaaa":le=it(zt.DayPeriods,ke.Narrow);break;case"b":case"bb":case"bbb":le=it(zt.DayPeriods,ke.Abbreviated,be.Standalone,!0);break;case"bbbb":le=it(zt.DayPeriods,ke.Wide,be.Standalone,!0);break;case"bbbbb":le=it(zt.DayPeriods,ke.Narrow,be.Standalone,!0);break;case"B":case"BB":case"BBB":le=it(zt.DayPeriods,ke.Abbreviated,be.Format,!0);break;case"BBBB":le=it(zt.DayPeriods,ke.Wide,be.Format,!0);break;case"BBBBB":le=it(zt.DayPeriods,ke.Narrow,be.Format,!0);break;case"h":le=_n(Ht.Hours,1,-12);break;case"hh":le=_n(Ht.Hours,2,-12);break;case"H":le=_n(Ht.Hours,1);break;case"HH":le=_n(Ht.Hours,2);break;case"m":le=_n(Ht.Minutes,1);break;case"mm":le=_n(Ht.Minutes,2);break;case"s":le=_n(Ht.Seconds,1);break;case"ss":le=_n(Ht.Seconds,2);break;case"S":le=_n(Ht.FractionalSeconds,1);break;case"SS":le=_n(Ht.FractionalSeconds,2);break;case"SSS":le=_n(Ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":le=Qt(Et.Short);break;case"ZZZZZ":le=Qt(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":le=Qt(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":le=Qt(Et.Long);break;default:return null}return Or[T]=le,le}(yr);dr+=Kn?Kn(Ie,U,Bn):"''"===yr?"'":yr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),dr}function Sn(T,le,U){const ee=new Date(0);return ee.setFullYear(T,le,U),ee.setHours(0,0,0),ee}function hn(T,le){const U=function qe(T){return(0,t.cg1)(T)[t.wAp.LocaleId]}(T);if(xt[U]=xt[U]||{},xt[U][le])return xt[U][le];let ee="";switch(le){case"shortDate":ee=oe(T,vt.Short);break;case"mediumDate":ee=oe(T,vt.Medium);break;case"longDate":ee=oe(T,vt.Long);break;case"fullDate":ee=oe(T,vt.Full);break;case"shortTime":ee=se(T,vt.Short);break;case"mediumTime":ee=se(T,vt.Medium);break;case"longTime":ee=se(T,vt.Long);break;case"fullTime":ee=se(T,vt.Full);break;case"short":const Ie=hn(T,"shortTime"),gt=hn(T,"shortDate");ee=en(ae(T,vt.Short),[Ie,gt]);break;case"medium":const Ct=hn(T,"mediumTime"),Jt=hn(T,"mediumDate");ee=en(ae(T,vt.Medium),[Ct,Jt]);break;case"long":const Bn=hn(T,"longTime"),dr=hn(T,"longDate");ee=en(ae(T,vt.Long),[Bn,dr]);break;case"full":const yr=hn(T,"fullTime"),Kn=hn(T,"fullDate");ee=en(ae(T,vt.Full),[yr,Kn])}return ee&&(xt[U][le]=ee),ee}function en(T,le){return le&&(T=T.replace(/\{([^}]+)}/g,function(U,ee){return null!=le&&ee in le?le[ee]:U})),T}function Dn(T,le,U="-",ee,Ie){let gt="";(T<0||Ie&&T<=0)&&(Ie?T=1-T:(T=-T,gt=U));let Ct=String(T);for(;Ct.length0||Jt>-U)&&(Jt+=U),T===Ht.Hours)0===Jt&&-12===U&&(Jt=12);else if(T===Ht.FractionalSeconds)return function Wn(T,le){return Dn(T,3).substring(0,le)}(Jt,le);const Bn=fe(Ct,rt.MinusSign);return Dn(Jt,le,Bn,ee,Ie)}}function it(T,le,U=be.Format,ee=!1){return function(Ie,gt){return function Ut(T,le,U,ee,Ie,gt){switch(U){case zt.Months:return Ee(le,Ie,ee)[T.getMonth()];case zt.Days:return $e(le,Ie,ee)[T.getDay()];case zt.DayPeriods:const Ct=T.getHours(),Jt=T.getMinutes();if(gt){const dr=function Tt(T){const le=(0,t.cg1)(T);return Je(le),(le[t.wAp.ExtraData][2]||[]).map(ee=>"string"==typeof ee?dn(ee):[dn(ee[0]),dn(ee[1])])}(le),yr=function et(T,le,U){const ee=(0,t.cg1)(T);Je(ee);const gt=Zt([ee[t.wAp.ExtraData][0],ee[t.wAp.ExtraData][1]],le)||[];return Zt(gt,U)||[]}(le,Ie,ee),Kn=dr.findIndex(Jr=>{if(Array.isArray(Jr)){const[Jn,ei]=Jr,Ei=Ct>=Jn.hours&&Jt>=Jn.minutes,Ai=Ct0?Math.floor(Ie/60):Math.ceil(Ie/60);switch(T){case Et.Short:return(Ie>=0?"+":"")+Dn(Ct,2,gt)+Dn(Math.abs(Ie%60),2,gt);case Et.ShortGMT:return"GMT"+(Ie>=0?"+":"")+Dn(Ct,1,gt);case Et.Long:return"GMT"+(Ie>=0?"+":"")+Dn(Ct,2,gt)+":"+Dn(Math.abs(Ie%60),2,gt);case Et.Extended:return 0===ee?"Z":(Ie>=0?"+":"")+Dn(Ct,2,gt)+":"+Dn(Math.abs(Ie%60),2,gt);default:throw new Error(`Unknown zone width "${T}"`)}}}const Cn=0,An=4;function nr(T){return Sn(T.getFullYear(),T.getMonth(),T.getDate()+(An-T.getDay()))}function Dr(T,le=!1){return function(U,ee){let Ie;if(le){const gt=new Date(U.getFullYear(),U.getMonth(),1).getDay()-1,Ct=U.getDate();Ie=1+Math.floor((Ct+gt)/7)}else{const gt=nr(U),Ct=function In(T){const le=Sn(T,Cn,1).getDay();return Sn(T,0,1+(le<=An?An:An+7)-le)}(gt.getFullYear()),Jt=gt.getTime()-Ct.getTime();Ie=1+Math.round(Jt/6048e5)}return Dn(Ie,T,fe(ee,rt.MinusSign))}}function wr(T,le=!1){return function(U,ee){return Dn(nr(U).getFullYear(),T,fe(ee,rt.MinusSign),le)}}const Or={};function Br(T,le){T=T.replace(/:/g,"");const U=Date.parse("Jan 01, 1970 00:00:00 "+T)/6e4;return isNaN(U)?le:U}function we(T){return T instanceof Date&&!isNaN(T.valueOf())}const He=/^(\d+)?\.((\d+)(-(\d+))?)?$/,yt=22,Wt=".",Vt="0",Un=";",on=",",rr="#";function bt(T,le,U){return function Qe(T,le,U,ee,Ie,gt,Ct=!1){let Jt="",Bn=!1;if(isFinite(T)){let dr=function Ft(T){let ee,Ie,gt,Ct,Jt,le=Math.abs(T)+"",U=0;for((Ie=le.indexOf(Wt))>-1&&(le=le.replace(Wt,"")),(gt=le.search(/e/i))>0?(Ie<0&&(Ie=gt),Ie+=+le.slice(gt+1),le=le.substring(0,gt)):Ie<0&&(Ie=le.length),gt=0;le.charAt(gt)===Vt;gt++);if(gt===(Jt=le.length))ee=[0],Ie=1;else{for(Jt--;le.charAt(Jt)===Vt;)Jt--;for(Ie-=gt,ee=[],Ct=0;gt<=Jt;gt++,Ct++)ee[Ct]=Number(le.charAt(gt))}return Ie>yt&&(ee=ee.splice(0,yt-1),U=Ie-1,Ie=1),{digits:ee,exponent:U,integerLen:Ie}}(T);Ct&&(dr=function kt(T){if(0===T.digits[0])return T;const le=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===le?T.digits.push(0,0):1===le&&T.digits.push(0),T.integerLen+=2),T}(dr));let yr=le.minInt,Kn=le.minFrac,Jr=le.maxFrac;if(gt){const Fi=gt.match(He);if(null===Fi)throw new Error(`${gt} is not a valid digit info`);const ti=Fi[1],cs=Fi[3],Ts=Fi[5];null!=ti&&(yr=wn(ti)),null!=cs&&(Kn=wn(cs)),null!=Ts?Jr=wn(Ts):null!=cs&&Kn>Jr&&(Jr=Kn)}!function an(T,le,U){if(le>U)throw new Error(`The minimum number of digits after fraction (${le}) is higher than the maximum (${U}).`);let ee=T.digits,Ie=ee.length-T.integerLen;const gt=Math.min(Math.max(le,Ie),U);let Ct=gt+T.integerLen,Jt=ee[Ct];if(Ct>0){ee.splice(Math.max(T.integerLen,Ct));for(let Kn=Ct;Kn=5)if(Ct-1<0){for(let Kn=0;Kn>Ct;Kn--)ee.unshift(0),T.integerLen++;ee.unshift(1),T.integerLen++}else ee[Ct-1]++;for(;Ie=dr?ei.pop():Bn=!1),Jr>=10?1:0},0);yr&&(ee.unshift(yr),T.integerLen++)}(dr,Kn,Jr);let Jn=dr.digits,ei=dr.integerLen;const Ei=dr.exponent;let Ai=[];for(Bn=Jn.every(Fi=>!Fi);ei0?Ai=Jn.splice(ei,Jn.length):(Ai=Jn,Jn=[0]);const Hi=[];for(Jn.length>=le.lgSize&&Hi.unshift(Jn.splice(-le.lgSize,Jn.length).join(""));Jn.length>le.gSize;)Hi.unshift(Jn.splice(-le.gSize,Jn.length).join(""));Jn.length&&Hi.unshift(Jn.join("")),Jt=Hi.join(fe(U,ee)),Ai.length&&(Jt+=fe(U,Ie)+Ai.join("")),Ei&&(Jt+=fe(U,rt.Exponential)+"+"+Ei)}else Jt=fe(U,rt.Infinity);return Jt=T<0&&!Bn?le.negPre+Jt+le.negSuf:le.posPre+Jt+le.posSuf,Jt}(T,function Rt(T,le="-"){const U={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ee=T.split(Un),Ie=ee[0],gt=ee[1],Ct=-1!==Ie.indexOf(Wt)?Ie.split(Wt):[Ie.substring(0,Ie.lastIndexOf(Vt)+1),Ie.substring(Ie.lastIndexOf(Vt)+1)],Jt=Ct[0],Bn=Ct[1]||"";U.posPre=Jt.substring(0,Jt.indexOf(rr));for(let yr=0;yr{class T{constructor(U,ee,Ie,gt){this._iterableDiffers=U,this._keyValueDiffers=ee,this._ngEl=Ie,this._renderer=gt,this.initialClasses=Xn,this.stateMap=new Map}set klass(U){this.initialClasses=null!=U?U.trim().split(Zr):Xn}set ngClass(U){this.rawClass="string"==typeof U?U.trim().split(Zr):U}ngDoCheck(){for(const ee of this.initialClasses)this._updateState(ee,!0);const U=this.rawClass;if(Array.isArray(U)||U instanceof Set)for(const ee of U)this._updateState(ee,!0);else if(null!=U)for(const ee of Object.keys(U))this._updateState(ee,!!U[ee]);this._applyStateDiff()}_updateState(U,ee){const Ie=this.stateMap.get(U);void 0!==Ie?(Ie.enabled!==ee&&(Ie.changed=!0,Ie.enabled=ee),Ie.touched=!0):this.stateMap.set(U,{enabled:ee,changed:!0,touched:!0})}_applyStateDiff(){for(const U of this.stateMap){const ee=U[0],Ie=U[1];Ie.changed?(this._toggleClass(ee,Ie.enabled),Ie.changed=!1):Ie.touched||(Ie.enabled&&this._toggleClass(ee,!1),this.stateMap.delete(ee)),Ie.touched=!1}}_toggleClass(U,ee){(U=U.trim()).length>0&&U.split(Zr).forEach(Ie=>{ee?this._renderer.addClass(this._ngEl.nativeElement,Ie):this._renderer.removeClass(this._ngEl.nativeElement,Ie)})}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return T})();class pe{constructor(le,U,ee,Ie){this.$implicit=le,this.ngForOf=U,this.index=ee,this.count=Ie}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Z=(()=>{class T{set ngForOf(U){this._ngForOf=U,this._ngForOfDirty=!0}set ngForTrackBy(U){this._trackByFn=U}get ngForTrackBy(){return this._trackByFn}constructor(U,ee,Ie){this._viewContainer=U,this._template=ee,this._differs=Ie,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(U){U&&(this._template=U)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const U=this._ngForOf;!this._differ&&U&&(this._differ=this._differs.find(U).create(this.ngForTrackBy))}if(this._differ){const U=this._differ.diff(this._ngForOf);U&&this._applyChanges(U)}}_applyChanges(U){const ee=this._viewContainer;U.forEachOperation((Ie,gt,Ct)=>{if(null==Ie.previousIndex)ee.createEmbeddedView(this._template,new pe(Ie.item,this._ngForOf,-1,-1),null===Ct?void 0:Ct);else if(null==Ct)ee.remove(null===gt?void 0:gt);else if(null!==gt){const Jt=ee.get(gt);ee.move(Jt,Ct),K(Jt,Ie)}});for(let Ie=0,gt=ee.length;Ie{K(ee.get(Ie.currentIndex),Ie)})}static ngTemplateContextGuard(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return T})();function K(T,le){T.context.$implicit=le.item}let X=(()=>{class T{constructor(U,ee){this._viewContainer=U,this._context=new de,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ee}set ngIf(U){this._context.$implicit=this._context.ngIf=U,this._updateView()}set ngIfThen(U){Oe("ngIfThen",U),this._thenTemplateRef=U,this._thenViewRef=null,this._updateView()}set ngIfElse(U){Oe("ngIfElse",U),this._elseTemplateRef=U,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return T})();class de{constructor(){this.$implicit=null,this.ngIf=null}}function Oe(T,le){if(le&&!le.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,t.AaK)(le)}'.`)}let ir=(()=>{class T{constructor(U,ee,Ie){this._ngEl=U,this._differs=ee,this._renderer=Ie,this._ngStyle=null,this._differ=null}set ngStyle(U){this._ngStyle=U,!this._differ&&U&&(this._differ=this._differs.find(U).create())}ngDoCheck(){if(this._differ){const U=this._differ.diff(this._ngStyle);U&&this._applyChanges(U)}}_setStyle(U,ee){const[Ie,gt]=U.split("."),Ct=-1===Ie.indexOf("-")?void 0:t.JOm.DashCase;null!=ee?this._renderer.setStyle(this._ngEl.nativeElement,Ie,gt?`${ee}${gt}`:ee,Ct):this._renderer.removeStyle(this._ngEl.nativeElement,Ie,Ct)}_applyChanges(U){U.forEachRemovedItem(ee=>this._setStyle(ee.key,null)),U.forEachAddedItem(ee=>this._setStyle(ee.key,ee.currentValue)),U.forEachChangedItem(ee=>this._setStyle(ee.key,ee.currentValue))}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return T})(),_r=(()=>{class T{constructor(U){this._viewContainerRef=U,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(U){if(U.ngTemplateOutlet||U.ngTemplateOutletInjector){const ee=this._viewContainerRef;if(this._viewRef&&ee.remove(ee.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ie,ngTemplateOutletContext:gt,ngTemplateOutletInjector:Ct}=this;this._viewRef=ee.createEmbeddedView(Ie,gt,Ct?{injector:Ct}:void 0)}else this._viewRef=null}else this._viewRef&&U.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]})}return T})();function Yr(T,le){return new t.vHH(2100,!1)}class es{createSubscription(le,U){return(0,t.rg0)(()=>le.subscribe({next:U,error:ee=>{throw ee}}))}dispose(le){(0,t.rg0)(()=>le.unsubscribe())}}class _i{createSubscription(le,U){return le.then(U,ee=>{throw ee})}dispose(le){}}const Ti=new _i,hs=new es;let Wi=(()=>{class T{constructor(U){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=U}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(U){return this._obj?U!==this._obj?(this._dispose(),this.transform(U)):this._latestValue:(U&&this._subscribe(U),this._latestValue)}_subscribe(U){this._obj=U,this._strategy=this._selectStrategy(U),this._subscription=this._strategy.createSubscription(U,ee=>this._updateLatestValue(U,ee))}_selectStrategy(U){if((0,t.QGY)(U))return Ti;if((0,t.F4k)(U))return hs;throw Yr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(U,ee){U===this._obj&&(this._latestValue=ee,this._ref.markForCheck())}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.sBO,16))};static#t=this.\u0275pipe=t.Yjl({name:"async",type:T,pure:!1,standalone:!0})}return T})();const vr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Sr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let vi=(()=>{class T{constructor(U,ee,Ie){this.locale=U,this.defaultTimezone=ee,this.defaultOptions=Ie}transform(U,ee,Ie,gt){if(null==U||""===U||U!=U)return null;try{return fn(U,ee??this.defaultOptions?.dateFormat??"mediumDate",gt||this.locale,Ie??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ct){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16),t.Y36(vr,24),t.Y36(Sr,24))};static#t=this.\u0275pipe=t.Yjl({name:"date",type:T,pure:!0,standalone:!0})}return T})(),Kt=(()=>{class T{constructor(U){this._locale=U}transform(U,ee,Ie){if(!function $r(T){return!(null==T||""===T||T!=T)}(U))return null;Ie=Ie||this._locale;try{return bt(function bi(T){if("string"==typeof T&&!isNaN(Number(T)-parseFloat(T)))return Number(T);if("number"!=typeof T)throw new Error(`${T} is not a number`);return T}(U),Ie,ee)}catch(gt){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16))};static#t=this.\u0275pipe=t.Yjl({name:"number",type:T,pure:!0,standalone:!0})}return T})();let Ve=(()=>{class T{static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275mod=t.oAB({type:T});static#n=this.\u0275inj=t.cJS({})}return T})();const ct="browser",Yt="server";function Yn(T){return T===Yt}let di=(()=>{class T{static#e=this.\u0275prov=(0,t.Yz7)({token:T,providedIn:"root",factory:()=>new ns((0,t.LFG)(O),window)})}return T})();class ns{constructor(le,U){this.document=le,this.window=U,this.offset=()=>[0,0]}setOffset(le){this.offset=Array.isArray(le)?()=>le:le}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(le){this.supportsScrolling()&&this.window.scrollTo(le[0],le[1])}scrollToAnchor(le){if(!this.supportsScrolling())return;const U=function bs(T,le){const U=T.getElementById(le)||T.getElementsByName(le)[0];if(U)return U;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const ee=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let Ie=ee.currentNode;for(;Ie;){const gt=Ie.shadowRoot;if(gt){const Ct=gt.getElementById(le)||gt.querySelector(`[name="${le}"]`);if(Ct)return Ct}Ie=ee.nextNode()}}return null}(this.document,le);U&&(this.scrollToElement(U),U.focus())}setHistoryScrollRestoration(le){this.supportsScrolling()&&(this.window.history.scrollRestoration=le)}scrollToElement(le){const U=le.getBoundingClientRect(),ee=U.left+this.window.pageXOffset,Ie=U.top+this.window.pageYOffset,gt=this.offset();this.window.scrollTo(ee-gt[0],Ie-gt[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Oi{}},9862:(Pe,V,a)=>{"use strict";a.d(V,{JF:()=>He,LE:()=>ce,TP:()=>Je,UA:()=>Ze,WM:()=>j,eN:()=>Q});var t=a(5879),d=a(2096),w=a(7715),L=a(5592),h=a(6328),O=a(2181),R=a(7398),F=a(4716),P=a(4664),B=a(6814);class ${}class f{}class j{constructor(Le){this.normalizedNames=new Map,this.lazyUpdate=null,Le?"string"==typeof Le?this.lazyInit=()=>{this.headers=new Map,Le.split("\n").forEach(Ue=>{const bt=Ue.indexOf(":");if(bt>0){const Rt=Ue.slice(0,bt),kt=Rt.toLowerCase(),Ft=Ue.slice(bt+1).trim();this.maybeSetNormalizedName(Rt,kt),this.headers.has(kt)?this.headers.get(kt).push(Ft):this.headers.set(kt,[Ft])}})}:typeof Headers<"u"&&Le instanceof Headers?(this.headers=new Map,Le.forEach((Ue,bt)=>{this.setHeaderEntries(bt,Ue)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Le).forEach(([Ue,bt])=>{this.setHeaderEntries(Ue,bt)})}:this.headers=new Map}has(Le){return this.init(),this.headers.has(Le.toLowerCase())}get(Le){this.init();const Ue=this.headers.get(Le.toLowerCase());return Ue&&Ue.length>0?Ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Le){return this.init(),this.headers.get(Le.toLowerCase())||null}append(Le,Ue){return this.clone({name:Le,value:Ue,op:"a"})}set(Le,Ue){return this.clone({name:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({name:Le,value:Ue,op:"d"})}maybeSetNormalizedName(Le,Ue){this.normalizedNames.has(Ue)||this.normalizedNames.set(Ue,Le)}init(){this.lazyInit&&(this.lazyInit instanceof j?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Le=>this.applyUpdate(Le)),this.lazyUpdate=null))}copyFrom(Le){Le.init(),Array.from(Le.headers.keys()).forEach(Ue=>{this.headers.set(Ue,Le.headers.get(Ue)),this.normalizedNames.set(Ue,Le.normalizedNames.get(Ue))})}clone(Le){const Ue=new j;return Ue.lazyInit=this.lazyInit&&this.lazyInit instanceof j?this.lazyInit:this,Ue.lazyUpdate=(this.lazyUpdate||[]).concat([Le]),Ue}applyUpdate(Le){const Ue=Le.name.toLowerCase();switch(Le.op){case"a":case"s":let bt=Le.value;if("string"==typeof bt&&(bt=[bt]),0===bt.length)return;this.maybeSetNormalizedName(Le.name,Ue);const Rt=("a"===Le.op?this.headers.get(Ue):void 0)||[];Rt.push(...bt),this.headers.set(Ue,Rt);break;case"d":const kt=Le.value;if(kt){let Ft=this.headers.get(Ue);if(!Ft)return;Ft=Ft.filter(an=>-1===kt.indexOf(an)),0===Ft.length?(this.headers.delete(Ue),this.normalizedNames.delete(Ue)):this.headers.set(Ue,Ft)}else this.headers.delete(Ue),this.normalizedNames.delete(Ue)}}setHeaderEntries(Le,Ue){const bt=(Array.isArray(Ue)?Ue:[Ue]).map(kt=>kt.toString()),Rt=Le.toLowerCase();this.headers.set(Rt,bt),this.maybeSetNormalizedName(Le,Rt)}forEach(Le){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ue=>Le(this.normalizedNames.get(Ue),this.headers.get(Ue)))}}class q{encodeKey(Le){return Se(Le)}encodeValue(Le){return Se(Le)}decodeKey(Le){return decodeURIComponent(Le)}decodeValue(Le){return decodeURIComponent(Le)}}const k=/%(\d[a-f0-9])/gi,Te={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Se(Qe){return encodeURIComponent(Qe).replace(k,(Le,Ue)=>Te[Ue]??Le)}function ye(Qe){return`${Qe}`}class ce{constructor(Le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Le.encoder||new q,Le.fromString){if(Le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ie(Qe,Le){const Ue=new Map;return Qe.length>0&&Qe.replace(/^\?/,"").split("&").forEach(Rt=>{const kt=Rt.indexOf("="),[Ft,an]=-1==kt?[Le.decodeKey(Rt),""]:[Le.decodeKey(Rt.slice(0,kt)),Le.decodeValue(Rt.slice(kt+1))],wn=Ue.get(Ft)||[];wn.push(an),Ue.set(Ft,wn)}),Ue}(Le.fromString,this.encoder)}else Le.fromObject?(this.map=new Map,Object.keys(Le.fromObject).forEach(Ue=>{const bt=Le.fromObject[Ue],Rt=Array.isArray(bt)?bt.map(ye):[ye(bt)];this.map.set(Ue,Rt)})):this.map=null}has(Le){return this.init(),this.map.has(Le)}get(Le){this.init();const Ue=this.map.get(Le);return Ue?Ue[0]:null}getAll(Le){return this.init(),this.map.get(Le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Le,Ue){return this.clone({param:Le,value:Ue,op:"a"})}appendAll(Le){const Ue=[];return Object.keys(Le).forEach(bt=>{const Rt=Le[bt];Array.isArray(Rt)?Rt.forEach(kt=>{Ue.push({param:bt,value:kt,op:"a"})}):Ue.push({param:bt,value:Rt,op:"a"})}),this.clone(Ue)}set(Le,Ue){return this.clone({param:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({param:Le,value:Ue,op:"d"})}toString(){return this.init(),this.keys().map(Le=>{const Ue=this.encoder.encodeKey(Le);return this.map.get(Le).map(bt=>Ue+"="+this.encoder.encodeValue(bt)).join("&")}).filter(Le=>""!==Le).join("&")}clone(Le){const Ue=new ce({encoder:this.encoder});return Ue.cloneFrom=this.cloneFrom||this,Ue.updates=(this.updates||[]).concat(Le),Ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Le=>this.map.set(Le,this.cloneFrom.map.get(Le))),this.updates.forEach(Le=>{switch(Le.op){case"a":case"s":const Ue=("a"===Le.op?this.map.get(Le.param):void 0)||[];Ue.push(ye(Le.value)),this.map.set(Le.param,Ue);break;case"d":if(void 0===Le.value){this.map.delete(Le.param);break}{let bt=this.map.get(Le.param)||[];const Rt=bt.indexOf(ye(Le.value));-1!==Rt&&bt.splice(Rt,1),bt.length>0?this.map.set(Le.param,bt):this.map.delete(Le.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(Le,Ue){return this.map.set(Le,Ue),this}get(Le){return this.map.has(Le)||this.map.set(Le,Le.defaultValue()),this.map.get(Le)}delete(Le){return this.map.delete(Le),this}has(Le){return this.map.has(Le)}keys(){return this.map.keys()}}function be(Qe){return typeof ArrayBuffer<"u"&&Qe instanceof ArrayBuffer}function ke(Qe){return typeof Blob<"u"&&Qe instanceof Blob}function vt(Qe){return typeof FormData<"u"&&Qe instanceof FormData}class Mt{constructor(Le,Ue,bt,Rt){let kt;if(this.url=Ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Le.toUpperCase(),function xe(Qe){switch(Qe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Rt?(this.body=void 0!==bt?bt:null,kt=Rt):kt=bt,kt&&(this.reportProgress=!!kt.reportProgress,this.withCredentials=!!kt.withCredentials,kt.responseType&&(this.responseType=kt.responseType),kt.headers&&(this.headers=kt.headers),kt.context&&(this.context=kt.context),kt.params&&(this.params=kt.params)),this.headers||(this.headers=new j),this.context||(this.context=new ve),this.params){const Ft=this.params.toString();if(0===Ft.length)this.urlWithParams=Ue;else{const an=Ue.indexOf("?");this.urlWithParams=Ue+(-1===an?"?":anFr.set(Ar,Le.setHeaders[Ar]),wn)),Le.setParams&&(pr=Object.keys(Le.setParams).reduce((Fr,Ar)=>Fr.set(Ar,Le.setParams[Ar]),pr)),new Mt(Ue,bt,kt,{params:pr,headers:wn,context:jr,reportProgress:an,responseType:Rt,withCredentials:Ft})}}var qe=function(Qe){return Qe[Qe.Sent=0]="Sent",Qe[Qe.UploadProgress=1]="UploadProgress",Qe[Qe.ResponseHeader=2]="ResponseHeader",Qe[Qe.DownloadProgress=3]="DownloadProgress",Qe[Qe.Response=4]="Response",Qe[Qe.User=5]="User",Qe}(qe||{});class _t{constructor(Le,Ue=200,bt="OK"){this.headers=Le.headers||new j,this.status=void 0!==Le.status?Le.status:Ue,this.statusText=Le.statusText||bt,this.url=Le.url||null,this.ok=this.status>=200&&this.status<300}}class $e extends _t{constructor(Le={}){super(Le),this.type=qe.ResponseHeader}clone(Le={}){return new $e({headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class Ee extends _t{constructor(Le={}){super(Le),this.type=qe.Response,this.body=void 0!==Le.body?Le.body:null}clone(Le={}){return new Ee({body:void 0!==Le.body?Le.body:this.body,headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class Ze extends _t{constructor(Le){super(Le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Le.url||"(unknown url)"}`:`Http failure response for ${Le.url||"(unknown url)"}: ${Le.status} ${Le.statusText}`,this.error=Le.error||null}}function J(Qe,Le){return{body:Le,headers:Qe.headers,context:Qe.context,observe:Qe.observe,params:Qe.params,reportProgress:Qe.reportProgress,responseType:Qe.responseType,withCredentials:Qe.withCredentials}}let Q=(()=>{class Qe{constructor(Ue){this.handler=Ue}request(Ue,bt,Rt={}){let kt;if(Ue instanceof Mt)kt=Ue;else{let wn,pr;wn=Rt.headers instanceof j?Rt.headers:new j(Rt.headers),Rt.params&&(pr=Rt.params instanceof ce?Rt.params:new ce({fromObject:Rt.params})),kt=new Mt(Ue,bt,void 0!==Rt.body?Rt.body:null,{headers:wn,context:Rt.context,params:pr,reportProgress:Rt.reportProgress,responseType:Rt.responseType||"json",withCredentials:Rt.withCredentials})}const Ft=(0,d.of)(kt).pipe((0,h.b)(wn=>this.handler.handle(wn)));if(Ue instanceof Mt||"events"===Rt.observe)return Ft;const an=Ft.pipe((0,O.h)(wn=>wn instanceof Ee));switch(Rt.observe||"body"){case"body":switch(kt.responseType){case"arraybuffer":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&!(wn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return wn.body}));case"blob":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&!(wn.body instanceof Blob))throw new Error("Response is not a Blob.");return wn.body}));case"text":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&"string"!=typeof wn.body)throw new Error("Response is not a string.");return wn.body}));default:return an.pipe((0,R.U)(wn=>wn.body))}case"response":return an;default:throw new Error(`Unreachable: unhandled observe type ${Rt.observe}}`)}}delete(Ue,bt={}){return this.request("DELETE",Ue,bt)}get(Ue,bt={}){return this.request("GET",Ue,bt)}head(Ue,bt={}){return this.request("HEAD",Ue,bt)}jsonp(Ue,bt){return this.request("JSONP",Ue,{params:(new ce).append(bt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ue,bt={}){return this.request("OPTIONS",Ue,bt)}patch(Ue,bt,Rt={}){return this.request("PATCH",Ue,J(Rt,bt))}post(Ue,bt,Rt={}){return this.request("POST",Ue,J(Rt,bt))}put(Ue,bt,Rt={}){return this.request("PUT",Ue,J(Rt,bt))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG($))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function tt(Qe,Le){return Le(Qe)}function wt(Qe,Le){return(Ue,bt)=>Le.intercept(Ue,{handle:Rt=>Qe(Rt,bt)})}const Je=new t.OlP(""),Tt=new t.OlP(""),et=new t.OlP("");function Pt(){let Qe=null;return(Le,Ue)=>{null===Qe&&(Qe=((0,t.f3M)(Je,{optional:!0})??[]).reduceRight(wt,tt));const bt=(0,t.f3M)(t.HDt),Rt=bt.add();return Qe(Le,Ue).pipe((0,F.x)(()=>bt.remove(Rt)))}}let Zt=(()=>{class Qe extends ${constructor(Ue,bt){super(),this.backend=Ue,this.injector=bt,this.chain=null,this.pendingTasks=(0,t.f3M)(t.HDt)}handle(Ue){if(null===this.chain){const Rt=Array.from(new Set([...this.injector.get(Tt),...this.injector.get(et,[])]));this.chain=Rt.reduceRight((kt,Ft)=>function It(Qe,Le,Ue){return(bt,Rt)=>Ue.runInContext(()=>Le(bt,kt=>Qe(kt,Rt)))}(kt,Ft,this.injector),tt)}const bt=this.pendingTasks.add();return this.chain(Ue,Rt=>this.backend.handle(Rt)).pipe((0,F.x)(()=>this.pendingTasks.remove(bt)))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(f),t.LFG(t.lqb))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const Sn=/^\)\]\}',?\n/;let en=(()=>{class Qe{constructor(Ue){this.xhrFactory=Ue}handle(Ue){if("JSONP"===Ue.method)throw new t.vHH(-2800,!1);const bt=this.xhrFactory;return(bt.\u0275loadImpl?(0,w.D)(bt.\u0275loadImpl()):(0,d.of)(null)).pipe((0,P.w)(()=>new L.y(kt=>{const Ft=bt.build();if(Ft.open(Ue.method,Ue.urlWithParams),Ue.withCredentials&&(Ft.withCredentials=!0),Ue.headers.forEach((Xn,qn)=>Ft.setRequestHeader(Xn,qn.join(","))),Ue.headers.has("Accept")||Ft.setRequestHeader("Accept","application/json, text/plain, */*"),!Ue.headers.has("Content-Type")){const Xn=Ue.detectContentTypeHeader();null!==Xn&&Ft.setRequestHeader("Content-Type",Xn)}if(Ue.responseType){const Xn=Ue.responseType.toLowerCase();Ft.responseType="json"!==Xn?Xn:"text"}const an=Ue.serializeBody();let wn=null;const pr=()=>{if(null!==wn)return wn;const Xn=Ft.statusText||"OK",qn=new j(Ft.getAllResponseHeaders()),Ur=function hn(Qe){return"responseURL"in Qe&&Qe.responseURL?Qe.responseURL:/^X-Request-URL:/m.test(Qe.getAllResponseHeaders())?Qe.getResponseHeader("X-Request-URL"):null}(Ft)||Ue.url;return wn=new $e({headers:qn,status:Ft.status,statusText:Xn,url:Ur}),wn},jr=()=>{let{headers:Xn,status:qn,statusText:Ur,url:ai}=pr(),pe=null;204!==qn&&(pe=typeof Ft.response>"u"?Ft.responseText:Ft.response),0===qn&&(qn=pe?200:0);let Z=qn>=200&&qn<300;if("json"===Ue.responseType&&"string"==typeof pe){const K=pe;pe=pe.replace(Sn,"");try{pe=""!==pe?JSON.parse(pe):null}catch(D){pe=K,Z&&(Z=!1,pe={error:D,text:pe})}}Z?(kt.next(new Ee({body:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0})),kt.complete()):kt.error(new Ze({error:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0}))},Fr=Xn=>{const{url:qn}=pr(),Ur=new Ze({error:Xn,status:Ft.status||0,statusText:Ft.statusText||"Unknown Error",url:qn||void 0});kt.error(Ur)};let Ar=!1;const Hr=Xn=>{Ar||(kt.next(pr()),Ar=!0);let qn={type:qe.DownloadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),"text"===Ue.responseType&&Ft.responseText&&(qn.partialText=Ft.responseText),kt.next(qn)},Zr=Xn=>{let qn={type:qe.UploadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),kt.next(qn)};return Ft.addEventListener("load",jr),Ft.addEventListener("error",Fr),Ft.addEventListener("timeout",Fr),Ft.addEventListener("abort",Fr),Ue.reportProgress&&(Ft.addEventListener("progress",Hr),null!==an&&Ft.upload&&Ft.upload.addEventListener("progress",Zr)),Ft.send(an),kt.next({type:qe.Sent}),()=>{Ft.removeEventListener("error",Fr),Ft.removeEventListener("abort",Fr),Ft.removeEventListener("load",jr),Ft.removeEventListener("timeout",Fr),Ue.reportProgress&&(Ft.removeEventListener("progress",Hr),null!==an&&Ft.upload&&Ft.upload.removeEventListener("progress",Zr)),Ft.readyState!==Ft.DONE&&Ft.abort()}})))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.JF))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const Dn=new t.OlP("XSRF_ENABLED"),_n=new t.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),it=new t.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ut{}let Qt=(()=>{class Qe{constructor(Ue,bt,Rt){this.doc=Ue,this.platform=bt,this.cookieName=Rt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ue=this.doc.cookie||"";return Ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,B.Mx)(Ue,this.cookieName),this.lastCookieString=Ue),this.lastToken}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.K0),t.LFG(t.Lbi),t.LFG(_n))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function Cn(Qe,Le){const Ue=Qe.url.toLowerCase();if(!(0,t.f3M)(Dn)||"GET"===Qe.method||"HEAD"===Qe.method||Ue.startsWith("http://")||Ue.startsWith("https://"))return Le(Qe);const bt=(0,t.f3M)(Ut).getToken(),Rt=(0,t.f3M)(it);return null!=bt&&!Qe.headers.has(Rt)&&(Qe=Qe.clone({headers:Qe.headers.set(Rt,bt)})),Le(Qe)}var In=function(Qe){return Qe[Qe.Interceptors=0]="Interceptors",Qe[Qe.LegacyInterceptors=1]="LegacyInterceptors",Qe[Qe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Qe[Qe.NoXsrfProtection=3]="NoXsrfProtection",Qe[Qe.JsonpSupport=4]="JsonpSupport",Qe[Qe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Qe[Qe.Fetch=6]="Fetch",Qe}(In||{});function Dr(...Qe){const Le=[Q,en,Zt,{provide:$,useExisting:Zt},{provide:f,useExisting:en},{provide:Tt,useValue:Cn,multi:!0},{provide:Dn,useValue:!0},{provide:Ut,useClass:Qt}];for(const Ue of Qe)Le.push(...Ue.\u0275providers);return(0,t.MR2)(Le)}const Or=new t.OlP("LEGACY_INTERCEPTOR_FN");function Ir(){return function nr(Qe,Le){return{\u0275kind:Qe,\u0275providers:Le}}(In.LegacyInterceptors,[{provide:Or,useFactory:Pt},{provide:Tt,useExisting:Or,multi:!0}])}let He=(()=>{class Qe{static#e=this.\u0275fac=function(bt){return new(bt||Qe)};static#t=this.\u0275mod=t.oAB({type:Qe});static#n=this.\u0275inj=t.cJS({providers:[Dr(Ir())]})}return Qe})()},5879:(Pe,V,a)=>{"use strict";a.d(V,{$8M:()=>Va,$WT:()=>vi,$Z:()=>pm,AFp:()=>Rg,ALo:()=>qv,AaK:()=>f,AsE:()=>Qp,B6R:()=>_i,BQk:()=>xd,CHM:()=>W,CRH:()=>v0,DdM:()=>Vv,Dn7:()=>n0,EJc:()=>iT,EiD:()=>Dg,EpF:()=>o_,F$t:()=>p_,F4k:()=>a_,FYo:()=>jg,FiY:()=>Lo,G48:()=>UT,Gf:()=>m0,GfV:()=>Hg,GkF:()=>Hp,Gpc:()=>q,Gre:()=>G_,HDt:()=>H0,Hsn:()=>h_,Ikx:()=>eh,JOm:()=>Il,JVY:()=>Sa,JZr:()=>ye,KtG:()=>p,L6k:()=>Bo,LAX:()=>Hl,LFG:()=>Vt,LMc:()=>gw,LSH:()=>Gf,Lbi:()=>ep,Lck:()=>QD,MAs:()=>r_,MGl:()=>Od,MMx:()=>Nv,MR2:()=>zf,NdJ:()=>$p,O4$:()=>Ms,Ojb:()=>Yy,OlP:()=>Gr,Oqu:()=>Jp,P3R:()=>wg,PXZ:()=>IT,Q6J:()=>Bp,QGY:()=>Vp,QbO:()=>Ky,Qsj:()=>ub,R0b:()=>qi,RDi:()=>qr,Rgc:()=>gu,SBq:()=>Qc,SDv:()=>Av,Sil:()=>aT,Suo:()=>_0,TTD:()=>yr,TgZ:()=>Sd,Tol:()=>I_,VKq:()=>$v,VuI:()=>pw,W1O:()=>D0,WD2:()=>dr,WLB:()=>Wv,XFs:()=>Et,Xpm:()=>es,Xq5:()=>Hm,Xts:()=>zc,Y36:()=>Ql,YKP:()=>Pv,YNc:()=>e_,Yjl:()=>Vr,Yz7:()=>Je,Z0I:()=>Zt,ZZ4:()=>Nh,_Bn:()=>Iv,_UZ:()=>jp,_Vd:()=>Jc,_c5:()=>tw,_uU:()=>B_,aQg:()=>Lh,c2e:()=>j0,cJS:()=>et,cg1:()=>th,dDg:()=>MT,dqk:()=>en,dwT:()=>XE,eBb:()=>sl,eFA:()=>Q0,eJc:()=>vh,ekj:()=>Kp,eoX:()=>z0,f3M:()=>on,g9A:()=>Ng,h0i:()=>fl,hGG:()=>nw,hij:()=>Rd,iGM:()=>g0,ifc:()=>kt,ip1:()=>U0,jDz:()=>Lv,kEZ:()=>Gv,kL8:()=>nv,kcU:()=>fr,l5B:()=>Zv,lG2:()=>Gi,lcZ:()=>e0,lnq:()=>Xp,lqb:()=>Uo,lri:()=>G0,mCW:()=>$l,n5z:()=>Tc,oAB:()=>Wi,oJD:()=>Cg,oxw:()=>f_,pB0:()=>sa,pZz:()=>Ji,q3G:()=>al,qFp:()=>mw,qLn:()=>xa,qOj:()=>Op,qZA:()=>Md,qbA:()=>zv,qzn:()=>uo,rWj:()=>Z0,rg0:()=>Ie,s9C:()=>Wp,sBO:()=>jT,s_b:()=>jd,soG:()=>Vd,tb:()=>Ah,tp0:()=>Ja,uIk:()=>Pp,vHH:()=>ce,vpe:()=>jo,wAp:()=>uc,xDo:()=>qp,xi3:()=>t0,xp6:()=>dm,ynx:()=>Ad,z2F:()=>hc,z3N:()=>Js,zSh:()=>Jf,zW0:()=>km,zs3:()=>bo});var t=a(8645),d=a(7394),w=a(5592),L=a(3019),h=a(5619),O=a(2096),R=a(3020),F=a(4664),P=a(3997);function B(e){for(let n in e)if(e[n]===B)return n;throw Error("Could not find renamed property on target object.")}function $(e,n){for(const r in n)n.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=n[r])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)}function j(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const M=B({__forward_ref__:B});function q(e){return e.__forward_ref__=q,e.toString=function(){return f(this())},e}function ie(e){return k(e)?e():e}function k(e){return"function"==typeof e&&e.hasOwnProperty(M)&&e.__forward_ref__===q}function Te(e){return e&&!!e.\u0275providers}const ye="https://g.co/ng/security#xss";class ce extends Error{constructor(n,r){super(function _e(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,r)),this.code=n}}function ve(e){return"string"==typeof e?e:null==e?"":String(e)}function rt(e,n){throw new ce(-201,!1)}function Xe(e,n,r,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${r} ${i} ${n} <=Actual]`))}function Je(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function et(e){return{providers:e.providers||[],imports:e.imports||[]}}function Pt(e){return dn(e,Ye)||dn(e,xt)}function Zt(e){return null!==Pt(e)}function dn(e,n){return e.hasOwnProperty(n)?e[n]:null}function We(e){return e&&(e.hasOwnProperty(At)||e.hasOwnProperty(nn))?e[At]:null}const Ye=B({\u0275prov:B}),At=B({\u0275inj:B}),xt=B({ngInjectableDef:B}),nn=B({ngInjectorDef:B});var Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Et||{});let Ht;function fn(e){const n=Ht;return Ht=e,n}function Sn(e,n,r){const i=Pt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:r&Et.Optional?null:void 0!==n?n:void rt(f(e))}const en=globalThis,Or={},Ir="__NG_DI_FLAG__",Br="ngTempTokenPath",Zn=/\n/gm,ot="__source";let we;function yt(e){const n=we;return we=e,n}function Wt(e,n=Et.Default){if(void 0===we)throw new ce(-203,!1);return null===we?Sn(e,void 0,n):we.get(e,n&Et.Optional?null:void 0,n)}function Vt(e,n=Et.Default){return(function zt(){return Ht}()||Wt)(ie(e),n)}function on(e,n=Et.Default){return Vt(e,rr(n))}function rr(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ln(e){const n=[];for(let r=0;rn){g=u-1;break}}}for(;uu?"":o[Ce+1].toLowerCase();const nt=8&i?Ke:null;if(nt&&-1!==Xn(nt,z,0)||2&i&&z!==Ke){if(Ae(i))return!1;g=!0}}}}else{if(!g&&!Ae(i)&&!Ae(A))return!1;if(g&&Ae(A))continue;g=!1,i=A|1&i}}return Ae(i)||g}function Ae(e){return 0==(1&e)}function mt(e,n,r,i){if(null===n)return-1;let o=0;if(i||!r){let u=!1;for(;o-1)for(r++;r0?'="'+b+'"':"")+"]"}else 8&i?o+="."+g:4&i&&(o+=" "+g);else""!==o&&!Ae(g)&&(n+=ir(u,o),o=""),i=g,u=u||!Ae(i);r++}return""!==o&&(n+=ir(u,o)),n}function es(e){return bt(()=>{const n=ts(e),r={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||an,_:null,schemas:e.schemas||null,tView:null,id:""};wi(r);const i=e.dependencies;return r.directiveDefs=ui(i,!1),r.pipeDefs=ui(i,!0),r.id=function Ui(e){let n=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of r)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(r),r})}function _i(e,n,r){const i=e.\u0275cmp;i.directiveDefs=ui(n,!1),i.pipeDefs=ui(r,!0)}function Ti(e){return jn(e)||vr(e)}function hs(e){return null!==e}function Wi(e){return bt(()=>({type:e.type,bootstrap:e.bootstrap||an,declarations:e.declarations||an,imports:e.imports||an,exports:e.exports||an,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bi(e,n){if(null==e)return Ft;const r={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],u=o;Array.isArray(o)&&(u=o[1],o=o[0]),r[o]=i,n&&(n[o]=u)}return r}function Gi(e){return bt(()=>{const n=ts(e);return wi(n),n})}function Vr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function jn(e){return e[wn]||null}function vr(e){return e[pr]||null}function Sr(e){return e[jr]||null}function vi(e){const n=jn(e)||vr(e)||Sr(e);return null!==n&&n.standalone}function ci(e,n){const r=e[Fr]||null;if(!r&&!0===n)throw new Error(`Type ${f(e)} does not have '\u0275mod' property.`);return r}function ts(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Ft,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||an,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bi(e.inputs,n),outputs:Bi(e.outputs)}}function wi(e){e.features?.forEach(n=>n(e))}function ui(e,n){if(!e)return null;const r=n?Sr:Ti;return()=>("function"==typeof e?e():e).map(i=>r(i)).filter(hs)}const xr=0,Kt=1,Mn=2,hr=3,$r=4,bi=5,Nr=6,ze=7,Ve=8,ct=9,Yt=10,Bt=11,gr=12,Si=13,Yn=14,sr=15,Wr=16,Mi=17,di=18,ns=19,bs=20,Zi=21,Oi=22,Ii=23,Pi=24,Gn=25,zi=1,rs=2,Pr=7,Ri=9,pn=11;function Ot(e){return Array.isArray(e)&&"object"==typeof e[zi]}function qt(e){return Array.isArray(e)&&!0===e[zi]}function Kr(e){return 0!=(4&e.flags)}function ji(e){return e.componentOffset>-1}function ms(e){return 1==(1&e.flags)}function fi(e){return!!e.template}function Hs(e){return 0!=(512&e[Mn])}function os(e,n){return e.hasOwnProperty(Ar)?e[Ar]:null}let pi=null,ls=!1;function yi(e){const n=pi;return pi=e,n}const no={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Ps(e){if(!mo(e)||e.dirty){if(!e.producerMustRecompute(e)&&!so(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function go(e){e.dirty=!0,function ro(e){if(void 0===e.liveConsumerNode)return;const n=ls;ls=!0;try{for(const r of e.liveConsumerNode)r.dirty||go(r)}finally{ls=n}}(e),e.consumerMarkedDirty?.(e)}function wo(e){return e&&(e.nextProducerIndex=0),yi(e)}function So(e,n){if(yi(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(mo(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function so(e){Rs(e);for(let n=0;n0}function Rs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ko=null;function Ie(e){const n=yi(null);try{return e()}finally{yi(n)}}const Ct=()=>{},Jt=(()=>({...no,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Ct}))();class dr{constructor(n,r,i){this.previousValue=n,this.currentValue=r,this.firstChange=i}isFirstChange(){return this.firstChange}}function yr(){return Kn}function Kn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Jn),Jr}function Jr(){const e=Ei(this),n=e?.current;if(n){const r=e.previous;if(r===Ft)e.previous=n;else for(let i in n)r[i]=n[i];e.current=null,this.ngOnChanges(n)}}function Jn(e,n,r,i){const o=this.declaredInputs[r],u=Ei(e)||function Ai(e,n){return e[ei]=n}(e,{previous:Ft,current:null}),g=u.current||(u.current={}),b=u.previous,A=b[o];g[o]=new dr(A&&A.currentValue,n,b===Ft),e[i]=n}yr.ngInherit=!0;const ei="__ngSimpleChanges__";function Ei(e){return e[ei]||null}const ti=function(e,n,r){},cs="svg",Ts="math";function er(e){for(;Array.isArray(e);)e=e[xr];return e}function li(e,n){return er(n[e])}function Di(e,n){return er(n[e.index])}function Oo(e,n){return e.data[n]}function Yi(e,n){return e[n]}function Vi(e,n){const r=n[e];return Ot(r)?r:r[xr]}function us(e,n){return null==n?null:e[n]}function Po(e){e[Mi]=0}function ma(e){1024&e[Mn]||(e[Mn]|=1024,vo(e,1))}function xi(e){1024&e[Mn]&&(e[Mn]&=-1025,vo(e,-1))}function vo(e,n){let r=e[hr];if(null===r)return;r[bi]+=n;let i=r;for(r=r[hr];null!==r&&(1===n&&1===i[bi]||-1===n&&0===i[bi]);)r[bi]+=n,i=r,r=r[hr]}const Hn={lFrame:or(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ws(){return Hn.bindingsEnabled}function Ss(){return null!==Hn.skipHydrationRootTNode}function Nt(){return Hn.lFrame.lView}function mr(){return Hn.lFrame.tView}function W(e){return Hn.lFrame.contextLView=e,e[Ve]}function p(e){return Hn.lFrame.contextLView=null,e}function v(){let e=I();for(;null!==e&&64===e.type;)e=e.parent;return e}function I(){return Hn.lFrame.currentTNode}function te(){const e=Hn.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function me(e,n){const r=Hn.lFrame;r.currentTNode=e,r.isParent=n}function Ne(){return Hn.lFrame.isParent}function Fe(){Hn.lFrame.isParent=!1}function Xt(){const e=Hn.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Tn(){return Hn.lFrame.bindingIndex}function xn(){return Hn.lFrame.bindingIndex++}function Fn(e){const n=Hn.lFrame,r=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,r}function S(e){Hn.lFrame.inI18n=e}function y(e,n){const r=Hn.lFrame;r.bindingIndex=r.bindingRootIndex=e,G(n)}function G(e){Hn.lFrame.currentDirectiveIndex=e}function Me(){return Hn.lFrame.currentQueryIndex}function at(e){Hn.lFrame.currentQueryIndex=e}function ft(e){const n=e[Kt];return 2===n.type?n.declTNode:1===n.type?e[Nr]:null}function tn(e,n,r){if(r&Et.SkipSelf){let o=n,u=e;for(;!(o=o.parent,null!==o||r&Et.Host||(o=ft(u),null===o||(u=u[Yn],10&o.type))););if(null===o)return!1;n=o,e=u}const i=Hn.lFrame=Rr();return i.currentTNode=n,i.lView=e,!0}function kn(e){const n=Rr(),r=e[Kt];Hn.lFrame=n,n.currentTNode=r.firstChild,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex,n.inI18n=!1}function Rr(){const e=Hn.lFrame,n=null===e?null:e.child;return null===n?or(e):n}function or(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function hi(){const e=Hn.lFrame;return Hn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gs=hi;function Ns(){const e=hi();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bn(){return Hn.lFrame.selectedIndex}function tr(e){Hn.lFrame.selectedIndex=e}function ar(){const e=Hn.lFrame;return Oo(e.tView,e.selectedIndex)}function Ms(){Hn.lFrame.currentNamespace=cs}function Ji(){Hn.lFrame.currentNamespace=Ts}function fr(){!function ni(){Hn.lFrame.currentNamespace=null}()}let vl=!0;function ri(){return vl}function Qi(e){vl=e}function ao(e,n){for(let r=n.directiveStart,i=n.directiveEnd;r=i)break}else n[A]<0&&(e[Mi]+=65536),(b>13>16&&(3&e[Mn])===n&&(e[Mn]+=8192,yu(b,u)):yu(b,u)}const Xo=-1;class va{constructor(n,r,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=i}}function yc(e){return e!==Xo}function Ha(e){return 32767&e}function ya(e,n){let r=function Jd(e){return e>>16}(e),i=n;for(;r>0;)i=i[Yn],r--;return i}let El=!0;function qo(e){const n=El;return El=e,n}const Dl=255,Du=5;let bc=0;const co={};function Ec(e,n){const r=Qd(e,n);if(-1!==r)return r;const i=n[Kt];i.firstCreatePass&&(e.injectorIndex=n.length,Tu(i.data,e),Tu(n,null),Tu(i.blueprint,null));const o=Dc(e,n),u=e.injectorIndex;if(yc(o)){const g=Ha(o),b=ya(o,n),A=b[Kt].data;for(let z=0;z<8;z++)n[u+z]=b[g+z]|A[g+z]}return n[u+8]=o,u}function Tu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Qd(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,i=null,o=n;for(;null!==o;){if(i=ii(o),null===i)return Xo;if(r++,o=o[Yn],-1!==i.injectorIndex)return i.injectorIndex|r<<16}return Xo}function wu(e,n,r){!function Cu(e,n,r){let i;"string"==typeof r?i=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(i=r[Hr]),null==i&&(i=r[Hr]=bc++);const o=i&Dl;n.data[e+(o>>Du)]|=1<=0?n&Dl:Gh:n}(r);if("function"==typeof u){if(!tn(n,e,i))return i&Et.Host?Xd(o,0,i):qd(n,r,i,o);try{let g;if(g=u(i),null!=g||i&Et.Optional)return g;rt()}finally{Gs()}}else if("number"==typeof u){let g=null,b=Qd(e,n),A=Xo,z=i&Et.Host?n[sr][Nr]:null;for((-1===b||i&Et.SkipSelf)&&(A=-1===b?Dc(e,n):n[b+8],A!==Xo&&sf(i,!1)?(g=n[Kt],b=Ha(A),n=ya(A,n)):b=-1);-1!==b;){const ue=n[Kt];if(rf(u,b,ue.data)){const Ce=$h(b,n,r,g,i,z);if(Ce!==co)return Ce}A=n[b+8],A!==Xo&&sf(i,n[Kt].data[b+8]===z)&&rf(u,b,n)?(g=ue,b=Ha(A),n=ya(A,n)):b=-1}}return o}function $h(e,n,r,i,o,u){const g=n[Kt],b=g.data[e+8],ue=Cc(b,g,r,null==i?ji(b)&&El:i!=g&&0!=(3&b.type),o&Et.Host&&u===b);return null!==ue?ba(n,g,ue,b):co}function Cc(e,n,r,i,o){const u=e.providerIndexes,g=n.data,b=1048575&u,A=e.directiveStart,ue=u>>20,Ke=o?b+ue:e.directiveEnd;for(let nt=i?b:b+ue;nt=A&&St.type===r)return nt}if(o){const nt=g[A];if(nt&&fi(nt)&&nt.type===r)return A}return null}function ba(e,n,r,i){let o=e[r];const u=n.data;if(function bu(e){return e instanceof va}(o)){const g=o;g.resolving&&function be(e,n){const r=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new ce(-200,`Circular dependency in DI detected for ${e}${r}`)}(function xe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ve(e)}(u[r]));const b=qo(g.canSeeViewProviders);g.resolving=!0;const z=g.injectImpl?fn(g.injectImpl):null;tn(e,i,Et.Default);try{o=e[r]=g.factory(void 0,u,e,i),n.firstCreatePass&&r>=i.directiveStart&&function ds(e,n,r){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:u}=n.type.prototype;if(i){const g=Kn(n);(r.preOrderHooks??=[]).push(e,g),(r.preOrderCheckHooks??=[]).push(e,g)}o&&(r.preOrderHooks??=[]).push(0-e,o),u&&((r.preOrderHooks??=[]).push(e,u),(r.preOrderCheckHooks??=[]).push(e,u))}(r,u[r],n)}finally{null!==z&&fn(z),qo(b),g.resolving=!1,Gs()}}return o}function rf(e,n,r){return!!(r[n+(e>>Du)]&1<{const n=e.prototype.constructor,r=n[Ar]||Su(n),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const u=o[Ar]||Su(o);if(u&&u!==r)return u;o=Object.getPrototypeOf(o)}return u=>new u})}function Su(e){return k(e)?()=>{const n=Su(ie(e));return n&&n()}:os(e)}function ii(e){const n=e[Kt],r=n.type;return 2===r?n.declTNode:1===r?e[Nr]:null}function Va(e){return function Vh(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const r=e.attrs;if(r){const i=r.length;let o=0;for(;o{const i=function $a(e){return function(...r){if(e){const i=e(...r);for(const o in i)this[o]=i[o]}}}(n);function o(...u){if(this instanceof o)return i.apply(this,u),this;const g=new o(...u);return b.annotation=g,b;function b(A,z,ue){const Ce=A.hasOwnProperty(No)?A[No]:Object.defineProperty(A,No,{value:[]})[No];for(;Ce.length<=ue;)Ce.push(null);return(Ce[ue]=Ce[ue]||[]).push(g),A}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function za(e,n){e.forEach(r=>Array.isArray(r)?za(r,n):n(r))}function lf(e,n,r){n>=e.length?e.push(r):e.splice(n,0,r)}function wc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Al(e,n){const r=[];for(let i=0;i=0?e[1|i]=r:(i=~i,function Qh(e,n,r,i){let o=e.length;if(o==n)e.push(r,i);else if(1===o)e.push(i,e[0]),e[0]=r;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=r,e[n+1]=i}}(e,i,n,r)),i}function xu(e,n){const r=Ka(e,n);if(r>=0)return e[1|r]}function Ka(e,n){return function Ou(e,n,r){let i=0,o=e.length>>r;for(;o!==i;){const u=i+(o-i>>1),g=e[u<n?o=u:i=u+1}return~(o<|^->||--!>|)/g,og="\u200b$1\u200b";const Vu=new Map;let $u=0;const Gu="__ngContext__";function ps(e,n){Ot(n)?(e[Gu]=n[ns],function lg(e){Vu.set(e[ns],e)}(n)):e[Gu]=n}let Nc;function Zu(e,n){return Nc(e,n)}function il(e){const n=e[hr];return qt(n)?n[hr]:n}function Lc(e){return Ku(e[gr])}function zu(e){return Ku(e[$r])}function Ku(e){for(;null!==e&&!qt(e);)e=e[$r];return e}function Ta(e,n,r,i,o){if(null!=i){let u,g=!1;qt(i)?u=i:Ot(i)&&(g=!0,i=i[xr]);const b=er(i);0===e&&null!==r?null==o?kf(n,r,b):wa(n,r,b,o||null,!0):1===e&&null!==r?wa(n,r,b,o||null,!0):2===e?function H(e,n,r){const i=Uc(e,n);i&&function yg(e,n,r,i){e.removeChild(n,r,i)}(e,i,n,r)}(n,b,g):3===e&&n.destroyNode(b),null!=u&&function sn(e,n,r,i,o){const u=r[Pr];u!==er(r)&&Ta(n,e,i,u,o);for(let b=pn;bn.replace(sg,og))}(n))}function Ll(e,n,r){return e.createElement(n,r)}function Qu(e,n){const r=e[Ri],i=r.indexOf(n);xi(n),r.splice(i,1)}function Fl(e,n){if(e.length<=pn)return;const r=pn+n,i=e[r];if(i){const o=i[Wr];null!==o&&o!==e&&Qu(o,i),n>0&&(e[r-1][$r]=i[$r]);const u=wc(e,pn+n);!function Of(e,n){Ge(e,n,n[Bt],2,null,null),n[xr]=null,n[Nr]=null}(i[Kt],i);const g=u[di];null!==g&&g.detachView(u[Kt]),i[hr]=null,i[$r]=null,i[Mn]&=-129}return i}function Fc(e,n){if(!(256&n[Mn])){const r=n[Bt];n[Ii]&&ca(n[Ii]),n[Pi]&&ca(n[Pi]),r.destroyNode&&Ge(e,n,r,3,null,null),function Ju(e){let n=e[gr];if(!n)return kl(e[Kt],e);for(;n;){let r=null;if(Ot(n))r=n[gr];else{const i=n[pn];i&&(r=i)}if(!r){for(;n&&!n[$r]&&n!==e;)Ot(n)&&kl(n[Kt],n),n=n[hr];null===n&&(n=e),Ot(n)&&kl(n[Kt],n),r=n&&n[$r]}n=r}}(n)}}function kl(e,n){if(!(256&n[Mn])){n[Mn]&=-129,n[Mn]|=256,function Ff(e,n){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let i=0;i=0?i[g]():i[-g].unsubscribe(),u+=2}else r[u].call(i[r[u+1]]);null!==i&&(n[ze]=null);const o=n[Zi];if(null!==o){n[Zi]=null;for(let u=0;u-1){const{encapsulation:u}=e.data[i.directiveStart+o];if(u===kt.None||u===kt.Emulated)return null}return Di(i,r)}}function wa(e,n,r,i,o){e.insertBefore(n,r,i,o)}function kf(e,n,r){e.appendChild(n,r)}function Xu(e,n,r,i,o){null!==i?wa(e,n,r,i,o):kf(e,n,r)}function Uc(e,n){return e.parentNode(n)}function Bf(e,n,r){return qu(e,n,r)}function jc(e,n,r){return 40&e.type?Di(e,r):null}let Hc,Pn,Qr,mi,qu=jc;function l(e,n){qu=e,Hc=n}function C(e,n,r,i){const o=kc(e,i,n),u=n[Bt],b=Bf(i.parent||n[Nr],i,n);if(null!=o)if(Array.isArray(r))for(let A=0;Ae,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pn}()?.createHTML(e)||e}function qr(e){Qr=e}function gi(){if(void 0!==Qr)return Qr;if(typeof document<"u")return document;throw new ce(210,!1)}function ki(){if(void 0===mi&&(mi=null,en.trustedTypes))try{mi=en.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mi}function ks(e){return ki()?.createHTML(e)||e}function ko(e){return ki()?.createScriptURL(e)||e}class As{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ye})`}}class xs extends As{getTypeName(){return"HTML"}}class Ys extends As{getTypeName(){return"Style"}}class Bl extends As{getTypeName(){return"Script"}}class ia extends As{getTypeName(){return"URL"}}class Ul extends As{getTypeName(){return"ResourceURL"}}function Js(e){return e instanceof As?e.changingThisBreaksApplicationSecurity:e}function uo(e,n){const r=function jl(e){return e instanceof As&&e.getTypeName()||null}(e);if(null!=r&&r!==n){if("ResourceURL"===r&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${r} (see ${ye})`)}return r===n}function Sa(e){return new xs(e)}function Bo(e){return new Ys(e)}function sl(e){return new Bl(e)}function Hl(e){return new ia(e)}function sa(e){return new Ul(e)}function Vl(e){const n=new Vc(e);return function jf(){try{return!!(new window.DOMParser).parseFromString(cr(""),"text/html")}catch{return!1}}()?new Uf(n):n}class Uf{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const r=(new window.DOMParser).parseFromString(cr(n),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(n):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vc{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const r=this.inertDocument.createElement("template");return r.innerHTML=cr(n),r}}const ed=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $l(e){return(e=String(e)).match(ed)?e:"unsafe:"+e}function yo(e){const n={};for(const r of e.split(","))n[r]=!0;return n}function Ma(...e){const n={};for(const r of e)for(const i in r)r.hasOwnProperty(i)&&(n[i]=!0);return n}const $c=yo("area,br,col,hr,img,wbr"),td=yo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nd=yo("rp,rt"),Wl=Ma($c,Ma(td,yo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ma(nd,yo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ma(nd,td)),ol=yo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gc=Ma(ol,yo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),yo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),rd=yo("script,style,template");class xy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let r=n.firstChild,i=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?i=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,i&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=this.checkClobberedElement(r,r.nextSibling);if(o){r=o;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(n){const r=n.nodeName.toLowerCase();if(!Wl.hasOwnProperty(r))return this.sanitizedSomething=!0,!rd.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const r=n.nodeName.toLowerCase();Wl.hasOwnProperty(r)&&!$c.hasOwnProperty(r)&&(this.buf.push(""))}chars(n){this.buf.push(Eg(n))}checkClobberedElement(n,r){if(r&&(n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return r}}const Oy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iy=/([^\#-~ |!])/g;function Eg(e){return e.replace(/&/g,"&").replace(Oy,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Iy,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let id;function Dg(e,n){let r=null;try{id=id||Vl(e);let i=n?String(n):"";r=id.getInertBodyElement(i);let o=5,u=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=u,u=r.innerHTML,r=id.getInertBodyElement(i)}while(i!==u);return cr((new xy).sanitizeChildren(Wf(r)||r))}finally{if(r){const i=Wf(r)||r;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wf(e){return"content"in e&&function Py(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var al=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(al||{});function Cg(e){const n=Zc();return n?ks(n.sanitize(al.HTML,e)||""):uo(e,"HTML")?ks(Js(e)):Dg(gi(),ve(e))}function Gf(e){const n=Zc();return n?n.sanitize(al.URL,e)||"":uo(e,"URL")?Js(e):$l(ve(e))}function Tg(e){const n=Zc();if(n)return ko(n.sanitize(al.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return ko(Js(e));throw new ce(904,!1)}function wg(e,n,r){return function ky(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Tg:Gf}(n,r)(e)}function Zc(){const e=Nt();return e&&e[Yt].sanitizer}class Gr{constructor(n,r){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Je({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const zc=new Gr("ENVIRONMENT_INITIALIZER"),Sg=new Gr("INJECTOR",-1),Mg=new Gr("INJECTOR_DEF_TYPES");class Zf{get(n,r=Or){if(r===Or){const i=new Error(`NullInjectorError: No provider for ${f(n)}!`);throw i.name="NullInjectorError",i}return r}}function zf(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:Ag(0,e),\u0275fromNgModule:!0}}function Ag(e,...n){const r=[],i=new Set;let o;const u=g=>{r.push(g)};return za(n,g=>{const b=g;sd(b,u,[],i)&&(o||=[],o.push(b))}),void 0!==o&&xg(o,u),r}function xg(e,n){for(let r=0;r{n(u,i)})}}function sd(e,n,r,i){if(!(e=ie(e)))return!1;let o=null,u=We(e);const g=!u&&jn(e);if(u||g){if(g&&!g.standalone)return!1;o=e}else{const A=e.ngModule;if(u=We(A),!u)return!1;o=A}const b=i.has(o);if(g){if(b)return!1;if(i.add(o),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const z of A)sd(z,n,r,i)}}else{if(!u)return!1;{if(null!=u.imports&&!b){let z;i.add(o);try{za(u.imports,ue=>{sd(ue,n,r,i)&&(z||=[],z.push(ue))})}finally{}void 0!==z&&xg(z,n)}if(!b){const z=os(o)||(()=>new o);n({provide:o,useFactory:z,deps:an},o),n({provide:Mg,useValue:o,multi:!0},o),n({provide:zc,useValue:()=>Vt(o),multi:!0},o)}const A=u.providers;if(null!=A&&!b){const z=e;Kf(A,ue=>{n(ue,z)})}}}return o!==e&&void 0!==e.providers}function Kf(e,n){for(let r of e)Te(r)&&(r=r.\u0275providers),Array.isArray(r)?Kf(r,n):n(r)}const Uy=B({provide:String,useValue:B});function Yf(e){return null!==e&&"object"==typeof e&&Uy in e}function ll(e){return"function"==typeof e}const Jf=new Gr("Set Injector scope."),od={},Hy={};let Qf;function ad(){return void 0===Qf&&(Qf=new Zf),Qf}class Uo{}class ld extends Uo{get destroyed(){return this._destroyed}constructor(n,r,i,o){super(),this.parent=r,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qf(n,g=>this.processProvider(g)),this.records.set(Sg,Gl(void 0,this)),o.has("environment")&&this.records.set(Uo,Gl(void 0,this));const u=this.records.get(Jf);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(Mg.multi,an,Et.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const r=yt(this),i=fn(void 0);try{return n()}finally{yt(r),fn(i)}}get(n,r=Or,i=Et.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Zr))return n[Zr](this);i=rr(i);const u=yt(this),g=fn(void 0);try{if(!(i&Et.SkipSelf)){let A=this.records.get(n);if(void 0===A){const z=function Zy(e){return"function"==typeof e||"object"==typeof e&&e instanceof Gr}(n)&&Pt(n);A=z&&this.injectableDefInScope(z)?Gl(Xf(n),od):null,this.records.set(n,A)}if(null!=A)return this.hydrate(n,A)}return(i&Et.Self?ad():this.parent).get(n,r=i&Et.Optional&&r===Or?null:r)}catch(b){if("NullInjectorError"===b.name){if((b[Br]=b[Br]||[]).unshift(f(n)),u)throw b;return function Le(e,n,r,i){const o=e[Br];throw n[ot]&&o.unshift(n[ot]),e.message=function Ue(e,n,r,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=f(n);if(Array.isArray(n))o=n.map(f).join(" -> ");else if("object"==typeof n){let u=[];for(let g in n)if(n.hasOwnProperty(g)){let b=n[g];u.push(g+":"+("string"==typeof b?JSON.stringify(b):f(b)))}o=`{${u.join(", ")}}`}return`${r}${i?"("+i+")":""}[${o}]: ${e.replace(Zn,"\n ")}`}("\n"+e.message,o,r,i),e.ngTokenPath=o,e[Br]=null,e}(b,n,"R3InjectorError",this.source)}throw b}finally{fn(g),yt(u)}}resolveInjectorInitializers(){const n=yt(this),r=fn(void 0);try{const o=this.get(zc.multi,an,Et.Self);for(const u of o)u()}finally{yt(n),fn(r)}}toString(){const n=[],r=this.records;for(const i of r.keys())n.push(f(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ce(205,!1)}processProvider(n){let r=ll(n=ie(n))?n:ie(n&&n.provide);const i=function $y(e){return Yf(e)?Gl(void 0,e.useValue):Gl(Pg(e),od)}(n);if(ll(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Gl(void 0,od,!0),o.factory=()=>ln(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,i)}hydrate(n,r){return r.value===od&&(r.value=Hy,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Gy(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(n){if(!n.providedIn)return!1;const r=ie(n.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(n){const r=this._onDestroyHooks.indexOf(n);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Xf(e){const n=Pt(e),r=null!==n?n.factory:os(e);if(null!==r)return r;if(e instanceof Gr)throw new ce(204,!1);if(e instanceof Function)return function Vy(e){const n=e.length;if(n>0)throw Al(n,"?"),new ce(204,!1);const r=function Rn(e){return e&&(e[Ye]||e[xt])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new ce(204,!1)}function Pg(e,n,r){let i;if(ll(e)){const o=ie(e);return os(o)||Xf(o)}if(Yf(e))i=()=>ie(e.useValue);else if(function Ig(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...ln(e.deps||[]));else if(function Og(e){return!(!e||!e.useExisting)}(e))i=()=>Vt(ie(e.useExisting));else{const o=ie(e&&(e.useClass||e.provide));if(!function Wy(e){return!!e.deps}(e))return os(o)||Xf(o);i=()=>new o(...ln(e.deps))}return i}function Gl(e,n,r=!1){return{factory:e,value:n,multi:r?[]:void 0}}function qf(e,n){for(const r of e)Array.isArray(r)?qf(r,n):r&&Te(r)?qf(r.\u0275providers,n):n(r)}const Rg=new Gr("AppId",{providedIn:"root",factory:()=>zy}),zy="ng",Ng=new Gr("Platform Initializer"),ep=new Gr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ky=new Gr("AnimationModuleType"),Yy=new Gr("CSP nonce",{providedIn:"root",factory:()=>gi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Lg=(e,n,r)=>null;function lp(e,n,r=!1){return Lg(e,n,r)}class sb{}class Bg{}class ab{resolveComponentFactory(n){throw function ob(e){const n=Error(`No component factory found for ${f(e)}.`);return n.ngComponent=e,n}(n)}}let Jc=(()=>{class e{static#e=this.NULL=new ab}return e})();function lb(){return Kl(v(),Nt())}function Kl(e,n){return new Qc(Di(e,n))}let Qc=(()=>{class e{constructor(r){this.nativeElement=r}static#e=this.__NG_ELEMENT_ID__=lb}return e})();function cb(e){return e instanceof Qc?e.nativeElement:e}class jg{}let ub=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function db(){const e=Nt(),r=Vi(v().index,e);return(Ot(r)?r:e)[Bt]}()}return e})(),fb=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>null})}return e})();class Hg{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const pb=new Hg("16.2.10"),dp={};function Gg(e,n=null,r=null,i){const o=Zg(e,n,r,i);return o.resolveInjectorInitializers(),o}function Zg(e,n=null,r=null,i,o=new Set){const u=[r||an,By(e)];return i=i||("object"==typeof e?void 0:f(e)),new ld(u,n||ad(),i||null,o)}let bo=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Or;static#t=this.NULL=new Zf;static create(r,i){if(Array.isArray(r))return Gg({name:""},i,r,"");{const o=r.name??"";return Gg({name:o},r.parent,r.providers,o)}}static#n=this.\u0275prov=Je({token:e,providedIn:"any",factory:()=>Vt(Sg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function pp(e){return e.ngOriginalError}class xa{constructor(){this._console=console}handleError(n){const r=this._findOriginalError(n);this._console.error("ERROR",n),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(n){let r=n&&pp(n);for(;r&&pp(r);)r=pp(r);return r||null}}function gp(e){return n=>{setTimeout(e,void 0,n)}}const jo=class bb extends t.x{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,r,i){let o=n,u=r||(()=>null),g=i;if(n&&"object"==typeof n){const A=n;o=A.next?.bind(A),u=A.error?.bind(A),g=A.complete?.bind(A)}this.__isAsync&&(u=gp(u),o&&(o=gp(o)),g&&(g=gp(g)));const b=super.subscribe({next:o,error:u,complete:g});return n instanceof d.w0&&n.add(b),b}};function Kg(...e){}class qi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jo(!1),this.onMicrotaskEmpty=new jo(!1),this.onStable=new jo(!1),this.onError=new jo(!1),typeof Zone>"u")throw new ce(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Eb(){const e="function"==typeof en.requestAnimationFrame;let n=en[e?"requestAnimationFrame":"setTimeout"],r=en[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&r){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function Tb(e){const n=()=>{!function Cb(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(en,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_p(e),e.isCheckStableRunning=!0,mp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_p(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,i,o,u,g,b)=>{if(function Sb(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(b))return r.invokeTask(o,u,g,b);try{return Yg(e),r.invokeTask(o,u,g,b)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||e.shouldCoalesceRunChangeDetection)&&n(),Jg(e)}},onInvoke:(r,i,o,u,g,b,A)=>{try{return Yg(e),r.invoke(o,u,g,b,A)}finally{e.shouldCoalesceRunChangeDetection&&n(),Jg(e)}},onHasTask:(r,i,o,u)=>{r.hasTask(o,u),i===o&&("microTask"==u.change?(e._hasPendingMicrotasks=u.microTask,_p(e),mp(e)):"macroTask"==u.change&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(r,i,o,u)=>(r.handleError(o,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qi.isInAngularZone())throw new ce(909,!1)}static assertNotInAngularZone(){if(qi.isInAngularZone())throw new ce(909,!1)}run(n,r,i){return this._inner.run(n,r,i)}runTask(n,r,i,o){const u=this._inner,g=u.scheduleEventTask("NgZoneEvent: "+o,n,Db,Kg,Kg);try{return u.runTask(g,r,i)}finally{u.cancelTask(g)}}runGuarded(n,r,i){return this._inner.runGuarded(n,r,i)}runOutsideAngular(n){return this._outer.run(n)}}const Db={};function mp(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _p(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Yg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jg(e){e._nesting--,mp(e)}class wb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jo,this.onMicrotaskEmpty=new jo,this.onStable=new jo,this.onError=new jo}run(n,r,i){return n.apply(r,i)}runGuarded(n,r,i){return n.apply(r,i)}runOutsideAngular(n){return n()}runTask(n,r,i,o){return n.apply(r,i)}}const Qg=new Gr("",{providedIn:"root",factory:Xg});function Xg(){const e=on(qi);let n=!0;const r=new w.y(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),i=new w.y(o=>{let u;e.runOutsideAngular(()=>{u=e.onStable.subscribe(()=>{qi.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const g=e.onUnstable.subscribe(()=>{qi.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{u.unsubscribe(),g.unsubscribe()}});return(0,L.T)(r,i.pipe((0,R.B)()))}function oa(e){return e instanceof Function?e():e}let vp=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function Xc(e){for(;e;){e[Mn]|=64;const n=il(e);if(Hs(e)&&!n)return e;e=n}return null}const rm=new Gr("",{providedIn:"root",factory:()=>!1});let gd=null;function am(e,n){return e[n]??um()}function lm(e,n){const r=um();r.producerNode?.length&&(e[n]=gd,r.lView=e,gd=cm())}const Fb={...no,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Xc(e.lView)},lView:null};function cm(){return Object.create(Fb)}function um(){return gd??=cm(),gd}const ur={};function dm(e){fm(mr(),Nt(),bn()+e,!1)}function fm(e,n,r,i){if(!i)if(3==(3&n[Mn])){const u=e.preOrderCheckHooks;null!==u&&lo(n,u,r)}else{const u=e.preOrderHooks;null!==u&&Qo(n,u,0,r)}tr(r)}function Ql(e,n=Et.Default){const r=Nt();return null===r?Vt(e,n):ef(v(),r,ie(e),n)}function pm(){throw new Error("invalid")}function md(e,n,r,i,o,u,g,b,A,z,ue){const Ce=n.blueprint.slice();return Ce[xr]=o,Ce[Mn]=140|i,(null!==z||e&&2048&e[Mn])&&(Ce[Mn]|=2048),Po(Ce),Ce[hr]=Ce[Yn]=e,Ce[Ve]=r,Ce[Yt]=g||e&&e[Yt],Ce[Bt]=b||e&&e[Bt],Ce[ct]=A||e&&e[ct]||null,Ce[Nr]=u,Ce[ns]=function ag(){return $u++}(),Ce[Oi]=ue,Ce[bs]=z,Ce[sr]=2==n.type?e[sr]:Ce,Ce}function Xl(e,n,r,i,o){let u=e.data[n];if(null===u)u=yp(e,n,r,i,o),function E(){return Hn.lFrame.inI18n}()&&(u.flags|=32);else if(64&u.type){u.type=r,u.value=i,u.attrs=o;const g=te();u.injectorIndex=null===g?-1:g.injectorIndex}return me(u,!0),u}function yp(e,n,r,i,o){const u=I(),g=Ne(),A=e.data[n]=function Wb(e,n,r,i,o,u){let g=n?n.injectorIndex:-1,b=0;return Ss()&&(b|=128),{type:r,index:i,insertBeforeIndex:null,injectorIndex:g,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:b,providerIndexes:0,value:o,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,g?u:u&&u.parent,r,n,i,o);return null===e.firstChild&&(e.firstChild=A),null!==u&&(g?null==u.child&&null!==A.parent&&(u.child=A):null===u.next&&(u.next=A,A.prev=u)),A}function qc(e,n,r,i){if(0===r)return-1;const o=n.length;for(let u=0;uGn&&fm(e,n,Gn,!1),ti(b?2:0,o);const z=b?u:null,ue=wo(z);try{null!==z&&(z.dirty=!1),r(i,o)}finally{So(z,ue)}}finally{b&&null===n[Ii]&&lm(n,Ii),tr(g),ti(b?3:1,o)}}function bp(e,n,r){if(Kr(n)){const i=yi(null);try{const u=n.directiveEnd;for(let g=n.directiveStart;gnull;function _m(e,n,r,i){for(let o in e)if(e.hasOwnProperty(o)){r=null===r?{}:r;const u=e[o];null===i?vm(r,n,o,u):i.hasOwnProperty(o)&&vm(r,n,i[o],u)}return r}function vm(e,n,r,i){e.hasOwnProperty(r)?e[r].push(n,i):e[r]=[n,i]}function Qs(e,n,r,i,o,u,g,b){const A=Di(n,r);let ue,z=n.inputs;!b&&null!=z&&(ue=z[i])?(Ap(e,r,ue,i,o),ji(n)&&function zb(e,n){const r=Vi(n,e);16&r[Mn]||(r[Mn]|=64)}(r,n.index)):3&n.type&&(i=function Zb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=g?g(o,n.value||"",i):o,u.setProperty(A,i,o))}function Tp(e,n,r,i){if(Ws()){const o=null===i?null:{"":-1},u=function qb(e,n){const r=e.directiveRegistry;let i=null,o=null;if(r)for(let u=0;u0;){const r=e[--n];if("number"==typeof r&&r<0)return r}return 0})(g)!=b&&g.push(b),g.push(r,i,u)}}(e,n,i,qc(e,r,o.hostVars,ur),o)}function Ho(e,n,r,i,o,u){const g=Di(e,n);!function Sp(e,n,r,i,o,u,g){if(null==u)e.removeAttribute(n,o,r);else{const b=null==g?ve(u):g(u,i||"",o);e.setAttribute(n,o,b,r)}}(n[Bt],g,u,e.value,r,i,o)}function s1(e,n,r,i,o,u){const g=u[n];if(null!==g)for(let b=0;b{class e{constructor(){this.all=new Set,this.queue=new Map}create(r,i,o){const u=typeof Zone>"u"?null:Zone.current,g=function gt(e,n,r){const i=Object.create(Jt);r&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const o=g=>{i.cleanupFn=g};return i.ref={notify:()=>go(i),run:()=>{if(i.dirty=!1,i.hasRun&&!so(i))return;i.hasRun=!0;const g=wo(i);try{i.cleanupFn(),i.cleanupFn=Ct,i.fn(o)}finally{So(i,g)}},cleanup:()=>i.cleanupFn()},i.ref}(r,z=>{this.all.has(z)&&this.queue.set(z,u)},o);let b;this.all.add(g),g.notify();const A=()=>{g.cleanup(),b?.(),this.all.delete(g),this.queue.delete(g)};return b=i?.onDestroy(A),{destroy:A}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function vd(e,n,r){let i=r?e.styles:null,o=r?e.classes:null,u=0;if(null!==n)for(let g=0;g0){Im(e,1);const o=r.components;null!==o&&Rm(e,o,1)}}function Rm(e,n,r){for(let i=0;i-1&&(Fl(n,i),wc(r,i))}this._attachedToViewContainer=!1}Fc(this._lView[Kt],this._lView)}onDestroy(n){!function Fa(e,n){if(256==(256&e[Mn]))throw new ce(911,!1);null===e[Zi]&&(e[Zi]=[]),e[Zi].push(n)}(this._lView,n)}markForCheck(){Xc(this._cdRefInjectingView||this._lView)}detach(){this._lView[Mn]&=-129}reattach(){this._lView[Mn]|=128}detectChanges(){yd(this._lView[Kt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pf(e,n){Ge(e,n,n[Bt],2,null,null)}(this._lView[Kt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ce(902,!1);this._appRef=n}}class h1 extends tu{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;yd(n[Kt],n,n[Ve],!1)}checkNoChanges(){}get context(){return null}}class Nm extends Jc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const r=jn(n);return new nu(r,this.ngModule)}}function Lm(e){const n=[];for(let r in e)e.hasOwnProperty(r)&&n.push({propName:e[r],templateName:r});return n}class m1{constructor(n,r){this.injector=n,this.parentInjector=r}get(n,r,i){i=rr(i);const o=this.injector.get(n,dp,i);return o!==dp||r===dp?o:this.parentInjector.get(n,r,i)}}class nu extends Bg{get inputs(){const n=this.componentDef,r=n.inputTransforms,i=Lm(n.inputs);if(null!==r)for(const o of i)r.hasOwnProperty(o.propName)&&(o.transform=r[o.propName]);return i}get outputs(){return Lm(this.componentDef.outputs)}constructor(n,r){super(),this.componentDef=n,this.ngModule=r,this.componentType=n.type,this.selector=function zr(e){return e.map(_r).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!r}create(n,r,i,o){let u=(o=o||this.ngModule)instanceof Uo?o:o?.injector;u&&null!==this.componentDef.getStandaloneInjector&&(u=this.componentDef.getStandaloneInjector(u)||u);const g=u?new m1(n,u):n,b=g.get(jg,null);if(null===b)throw new ce(407,!1);const Ce={rendererFactory:b,sanitizer:g.get(fb,null),effectManager:g.get(Am,null),afterRenderEventManager:g.get(vp,null)},Ke=b.createRenderer(null,this.componentDef),nt=this.componentDef.selectors[0][0]||"div",St=i?function Ub(e,n,r,i){const u=i.get(rm,!1)||r===kt.ShadowDom,g=e.selectRootElement(n,u);return function jb(e){mm(e)}(g),g}(Ke,i,this.componentDef.encapsulation,g):Ll(Ke,nt,function g1(e){const n=e.toLowerCase();return"svg"===n?cs:"math"===n?Ts:null}(nt)),Ln=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Lt=null;null!==St&&(Lt=lp(St,g,!0));const Qn=Cp(0,null,null,1,0,null,null,null,null,null,null),Tr=md(null,Qn,null,Ln,null,null,Ce,Ke,g,null,Lt);let Xr,js;kn(Tr);try{const la=this.componentDef;let gc,kh=null;la.findHostDirectiveDefs?(gc=[],kh=new Map,la.findHostDirectiveDefs(la,gc,kh),gc.push(la)):gc=[la];const _w=function v1(e,n){const r=e[Kt],i=Gn;return e[i]=n,Xl(r,i,2,"#host",null)}(Tr,St),vw=function y1(e,n,r,i,o,u,g){const b=o[Kt];!function b1(e,n,r,i){for(const o of e)n.mergedAttrs=pe(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(vd(n,n.mergedAttrs,!0),null!==r&&lr(i,r,n))}(i,e,n,g);let A=null;null!==n&&(A=lp(n,o[ct]));const z=u.rendererFactory.createRenderer(n,r);let ue=16;r.signals?ue=4096:r.onPush&&(ue=64);const Ce=md(o,gm(r),null,ue,o[e.index],e,u,z,null,null,A);return b.firstCreatePass&&wp(b,e,i.length-1),_d(o,Ce),o[e.index]=Ce}(_w,St,la,gc,Tr,Ce,Ke);js=Oo(Qn,Gn),St&&function D1(e,n,r,i){if(i)qn(e,r,["ng-version",pb.full]);else{const{attrs:o,classes:u}=function Yr(e){const n=[],r=[];let i=1,o=2;for(;i0&&Mr(e,r,u.join(" "))}}(Ke,la,St,i),void 0!==r&&function C1(e,n,r){const i=e.projection=[];for(let o=0;o=0;i--){const o=e[i];o.hostVars=n+=o.hostVars,o.hostAttrs=pe(o.hostAttrs,r=pe(r,o.hostAttrs))}}(i)}function bd(e){return e===Ft?{}:e===an?[]:e}function S1(e,n){const r=e.viewQuery;e.viewQuery=r?(i,o)=>{n(i,o),r(i,o)}:n}function M1(e,n){const r=e.contentQueries;e.contentQueries=r?(i,o,u)=>{n(i,o,u),r(i,o,u)}:n}function A1(e,n){const r=e.hostBindings;e.hostBindings=r?(i,o)=>{n(i,o),r(i,o)}:n}function km(e){return n=>{n.findHostDirectiveDefs=Bm,n.hostDirectives=(Array.isArray(e)?e:e()).map(r=>"function"==typeof r?{directive:ie(r),inputs:Ft,outputs:Ft}:{directive:ie(r.directive),inputs:Um(r.inputs),outputs:Um(r.outputs)})}}function Bm(e,n,r){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const o=vr(i.directive);P1(o.declaredInputs,i.inputs),Bm(o,n,r),r.set(o,i),n.push(o)}}function Um(e){if(void 0===e||0===e.length)return Ft;const n={};for(let r=0;r(Qi(!0),Ll(i,o,function Jo(){return Hn.lFrame.currentNamespace}()));function Ad(e,n,r){const i=Nt(),o=mr(),u=e+Gn,g=o.firstCreatePass?function sE(e,n,r,i,o){const u=n.consts,g=us(u,i),b=Xl(n,e,8,"ng-container",g);return null!==g&&vd(b,g,!0),Tp(n,r,b,us(u,o)),null!==n.queries&&n.queries.elementStart(n,b),b}(u,o,i,n,r):o.data[u];me(g,!0);const b=s_(o,i,g,e);return i[u]=b,ri()&&C(o,i,b,g),ps(b,i),ms(g)&&(Ep(o,i,g),bp(o,g,i)),null!=r&&Dp(i,g),Ad}function xd(){let e=v();const n=mr();return Ne()?Fe():(e=e.parent,me(e,!1)),n.firstCreatePass&&(ao(n,e),Kr(e)&&n.queries.elementEnd(e)),xd}function Hp(e,n,r){return Ad(e,n,r),xd(),Hp}let s_=(e,n,r,i)=>(Qi(!0),Nl(n[Bt],""));function o_(){return Nt()}function Vp(e){return!!e&&"function"==typeof e.then}function a_(e){return!!e&&"function"==typeof e.subscribe}function $p(e,n,r,i){const o=Nt(),u=mr(),g=v();return function c_(e,n,r,i,o,u,g){const b=ms(i),z=e.firstCreatePass&&wm(e),ue=n[Ve],Ce=Tm(n);let Ke=!0;if(3&i.type||g){const jt=Di(i,n),gn=g?g(jt):jt,Ln=Ce.length,Lt=g?Tr=>g(er(Tr[i.index])):i.index;let Qn=null;if(!g&&b&&(Qn=function lE(e,n,r,i){const o=e.cleanup;if(null!=o)for(let u=0;uA?b[A]:null}"string"==typeof g&&(u+=2)}return null}(e,n,o,i.index)),null!==Qn)(Qn.__ngLastListenerFn__||Qn).__ngNextListenerFn__=u,Qn.__ngLastListenerFn__=u,Ke=!1;else{u=d_(i,n,ue,u,!1);const Tr=r.listen(gn,o,u);Ce.push(u,Tr),z&&z.push(o,Lt,Ln,Ln+1)}}else u=d_(i,n,ue,u,!1);const nt=i.outputs;let St;if(Ke&&null!==nt&&(St=nt[o])){const jt=St.length;if(jt)for(let gn=0;gn-1?Vi(e.index,n):n);let A=u_(n,r,i,g),z=u.__ngNextListenerFn__;for(;z;)A=u_(n,r,z,g)&&A,z=z.__ngNextListenerFn__;return o&&!1===A&&g.preventDefault(),A}}function f_(e=1){return function mn(e){return(Hn.lFrame.contextLView=function On(e,n){for(;e>0;)n=n[Yn],e--;return n}(e,Hn.lFrame.contextLView))[Ve]}(e)}function cE(e,n){let r=null;const i=function cn(e){const n=e.attrs;if(null!=n){const r=n.indexOf(5);if(!(1&r))return n[r+1]}return null}(e);for(let o=0;o>17&32767}function Gp(e){return 2|e}function ul(e){return(131068&e)>>2}function Zp(e,n){return-131069&e|n<<2}function zp(e){return 1|e}function C_(e,n,r,i,o){const u=e[r+1],g=null===n;let b=i?Oa(u):ul(u),A=!1;for(;0!==b&&(!1===A||g);){const ue=e[b+1];gE(e[b],n)&&(A=!0,e[b+1]=i?zp(ue):Gp(ue)),b=i?Oa(ue):ul(ue)}A&&(e[r+1]=i?Gp(u):zp(u))}function gE(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ka(e,n)>=0}const $i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T_(e){return e.substring($i.key,$i.keyEnd)}function w_(e,n){const r=$i.textEnd;return r===n?-1:(n=$i.keyEnd=function yE(e,n,r){for(;n32;)n++;return n}(e,$i.key=n,r),lc(e,n,r))}function lc(e,n,r){for(;n=0;r=w_(n,r))Fs(e,T_(n),!0)}function Do(e,n,r,i){const o=mr(),u=Fn(2);o.firstUpdatePass&&R_(o,null,u,i);const g=Nt();if(r!==ur&&vs(g,u,r)){const b=o.data[bn()];if(k_(b,i)&&!P_(o,u)){let A=i?b.classesWithoutHost:b.stylesWithoutHost;null!==A&&(r=j(A,r||"")),Up(o,b,g,r,i)}else!function xE(e,n,r,i,o,u,g,b){o===ur&&(o=an);let A=0,z=0,ue=0=e.expandoStartIndex}function R_(e,n,r,i){const o=e.data;if(null===o[r+1]){const u=o[bn()],g=P_(e,r);k_(u,i)&&null===n&&!g&&(n=!1),n=function CE(e,n,r,i){const o=function he(e){const n=Hn.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let u=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(r=au(r=Yp(null,e,n,r,i),n.attrs,i),u=null);else{const g=n.directiveStylingLast;if(-1===g||e[g]!==o)if(r=Yp(o,e,n,r,i),null===u){let A=function TE(e,n,r){const i=r?n.classBindings:n.styleBindings;if(0!==ul(i))return e[Oa(i)]}(e,n,i);void 0!==A&&Array.isArray(A)&&(A=Yp(null,e,n,A[1],i),A=au(A,n.attrs,i),function wE(e,n,r,i){e[Oa(r?n.classBindings:n.styleBindings)]=i}(e,n,i,A))}else u=function SE(e,n,r){let i;const o=n.directiveEnd;for(let u=1+n.directiveStylingLast;u0)&&(z=!0)):ue=r,o)if(0!==A){const Ke=Oa(e[b+1]);e[i+1]=Id(Ke,b),0!==Ke&&(e[Ke+1]=Zp(e[Ke+1],i)),e[b+1]=function dE(e,n){return 131071&e|n<<17}(e[b+1],i)}else e[i+1]=Id(b,0),0!==b&&(e[b+1]=Zp(e[b+1],i)),b=i;else e[i+1]=Id(A,0),0===b?b=i:e[A+1]=Zp(e[A+1],i),A=i;z&&(e[i+1]=Gp(e[i+1])),C_(e,ue,i,!0),C_(e,ue,i,!1),function hE(e,n,r,i,o){const u=o?e.residualClasses:e.residualStyles;null!=u&&"string"==typeof n&&Ka(u,n)>=0&&(r[i+1]=zp(r[i+1]))}(n,ue,e,i,u),g=Id(b,A),u?n.classBindings=g:n.styleBindings=g}(o,u,n,r,g,i)}}function Yp(e,n,r,i,o){let u=null;const g=r.directiveEnd;let b=r.directiveStylingLast;for(-1===b?b=r.directiveStart:b++;b0;){const A=e[o],z=Array.isArray(A),ue=z?A[1]:A,Ce=null===ue;let Ke=r[o+1];Ke===ur&&(Ke=Ce?an:void 0);let nt=Ce?xu(Ke,i):ue===i?Ke:void 0;if(z&&!Pd(nt)&&(nt=xu(A,i)),Pd(nt)&&(b=nt,g))return b;const St=e[o+1];o=g?Oa(St):ul(St)}if(null!==n){let A=u?n.residualClasses:n.residualStyles;null!=A&&(b=xu(A,i))}return b}function Pd(e){return void 0!==e}function k_(e,n){return 0!=(e.flags&(n?8:16))}function B_(e,n=""){const r=Nt(),i=mr(),o=e+Gn,u=i.firstCreatePass?Xl(i,o,1,n,null):i.data[o],g=U_(i,r,u,n,e);r[o]=g,ri()&&C(i,r,g,u),me(u,!1)}let U_=(e,n,r,i,o)=>(Qi(!0),Rl(n[Bt],i));function Jp(e){return Rd("",e,""),Jp}function Rd(e,n,r){const i=Nt(),o=ec(i,e,n,r);return o!==ur&&aa(i,bn(),o),Rd}function Qp(e,n,r,i,o){const u=Nt(),g=function tc(e,n,r,i,o,u){const b=cl(e,Tn(),r,o);return Fn(2),b?n+ve(r)+i+ve(o)+u:ur}(u,e,n,r,i,o);return g!==ur&&aa(u,bn(),g),Qp}function Xp(e,n,r,i,o,u,g){const b=Nt(),A=function nc(e,n,r,i,o,u,g,b){const z=Dd(e,Tn(),r,o,g);return Fn(3),z?n+ve(r)+i+ve(o)+u+ve(g)+b:ur}(b,e,n,r,i,o,u,g);return A!==ur&&aa(b,bn(),A),Xp}function qp(e,n,r,i,o,u,g,b,A,z,ue){const Ce=Nt(),Ke=function ic(e,n,r,i,o,u,g,b,A,z,ue,Ce){const Ke=Tn();let nt=fo(e,Ke,r,o,g,A);return nt=vs(e,Ke+4,ue)||nt,Fn(5),nt?n+ve(r)+i+ve(o)+u+ve(g)+b+ve(A)+z+ve(ue)+Ce:ur}(Ce,e,n,r,i,o,u,g,b,A,z,ue);return Ke!==ur&&aa(Ce,bn(),Ke),qp}function G_(e,n,r){Do(Fs,Wo,ec(Nt(),e,n,r),!0)}function eh(e,n,r){const i=Nt();return vs(i,xn(),n)&&Qs(mr(),ar(),i,e,n,i[Bt],r,!0),eh}const dl=void 0;var QE=["en",[["a","p"],["AM","PM"],dl],[["AM","PM"],dl,dl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],dl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],dl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",dl,"{1} 'at' {0}",dl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function JE(e){const r=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===i?1:5}];let cc={};function XE(e,n,r){"string"!=typeof n&&(r=n,n=e[uc.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),cc[n]=e,r&&(cc[n][uc.ExtraData]=r)}function th(e){const n=function qE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=rv(n);if(r)return r;const i=n.split("-")[0];if(r=rv(i),r)return r;if("en"===i)return QE;throw new ce(701,!1)}function nv(e){return th(e)[uc.PluralCase]}function rv(e){return e in cc||(cc[e]=en.ng&&en.ng.common&&en.ng.common.locales&&en.ng.common.locales[e]),cc[e]}var uc=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(uc||{});const dc="en-US",Nd={marker:"element"},Ld={marker:"ICU"};var Bs=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(Bs||{});let iv=dc;function sv(e){(function je(e,n){null==e&&Xe(n,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(iv=e.toLowerCase().replace(/_/g,"-"))}function ov(e,n,r){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?jc(e,0,r):er(r[o])}function av(e,n,r,i,o){const u=n.insertBeforeIndex;if(Array.isArray(u)){let g=i,b=null;if(3&n.type||(b=g,g=o),null!==g&&-1===n.componentOffset)for(let A=1;A1)for(let r=e.length-2;r>=0;r--){const i=e[r];cv(i)||iD(i,n)&&null===sD(i)&&oD(i,n.index)}}function cv(e){return!(64&e.type)}function iD(e,n){return cv(n)||e.index>n.index}function sD(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function oD(e,n){const r=e.insertBeforeIndex;Array.isArray(r)?r[0]=n:(l(ov,av),e.insertBeforeIndex=n)}function cD(e,n,r){const i=yp(e,r,64,null,null);return lv(n,i),i}function mD(){const e=[];let r,i,n=-1;function u(b,A){n=0;const z=function Fd(e,n){const r=n[e.currentCaseLViewIndex];return null===r?r:r<0?~r:r}(b,A);i=null!==z?b.remove[z]:an}function g(){if(n0?r[b]:(e.push(n,i),u(r[Kt].data[~b],r),g())}return 0===e.length?null:(i=e.pop(),n=e.pop(),g())}return function o(b,A){for(r=A;e.length;)e.pop();return u(b.value,A),g}}const kd=/\ufffd(\d+):?\d*\ufffd/gi,vD=/\ufffd(\d+)\ufffd/,vv=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,du="\ufffd",yD=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,bD=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,ED=/\uE500/g;function yv(e,n,r,i,o,u,g){const b=qc(e,i,1,null);let A=b<r.length&&r.push(A)}return{type:i,mainBinding:o,cases:n,values:r}}function nh(e){if(!e)return[];let n=0;const r=[],i=[],o=/[{}]/g;let u;for(o.lastIndex=0;u=o.exec(e);){const b=u.index;if("}"==u[0]){if(r.pop(),0==r.length){const A=e.substring(n,b);vv.test(A)?i.push(xD(A)):i.push(A),n=b+1}}else{if(0==r.length){const A=e.substring(n,b);i.push(A),n=b+1}r.push("{")}}const g=e.substring(n);return i.push(g),i}function OD(e,n,r,i,o,u,g,b){const A=[],z=[],ue=[];n.cases.push(u),n.create.push(A),n.remove.push(z),n.update.push(ue);const Ke=Vl(gi()).getInertBodyElement(g),nt=Wf(Ke)||Ke;return nt?Cv(e,n,r,i,A,z,ue,nt,o,b,0):0}function Cv(e,n,r,i,o,u,g,b,A,z,ue){let Ce=0,Ke=b.firstChild;for(;Ke;){const nt=qc(e,r,1,null);switch(Ke.nodeType){case Node.ELEMENT_NODE:const St=Ke,jt=St.tagName.toLowerCase();if(Wl.hasOwnProperty(jt)){rh(o,Nd,jt,A,nt),e.data[nt]=jt;const Qn=St.attributes;for(let Tr=0;Tr>>Bs.SHIFT;let Ce=e[ue];null===Ce&&(Ce=e[ue]=(g&Bs.COMMENT)===Bs.COMMENT?o.createComment(b):Rl(o,b)),z&&null!==r&&wa(o,r,Ce,i,!1)}})(o,A.create,ue,b&&8&b.type?o[b.index]:null),S(!0)}function Av(e,n,r){Sv(e,n,r),function Mv(){S(!1)}()}function ih(e,n,r,i,o){if(e=ie(e),Array.isArray(e))for(let u=0;u>20;if(ll(e)||!e.multi){const nt=new va(z,o,Ql),St=oh(A,n,o?ue:ue+Ke,Ce);-1===St?(wu(Ec(b,g),u,A),sh(u,e,n.length),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(nt),g.push(nt)):(r[St]=nt,g[St]=nt)}else{const nt=oh(A,n,ue+Ke,Ce),St=oh(A,n,ue,ue+Ke),gn=St>=0&&r[St];if(o&&!gn||!o&&!(nt>=0&&r[nt])){wu(Ec(b,g),u,A);const Ln=function JD(e,n,r,i,o){const u=new va(e,r,Ql);return u.multi=[],u.index=n,u.componentProviders=0,Ov(u,o,i&&!r),u}(o?YD:KD,r.length,o,i,z);!o&&gn&&(r[St].providerFactory=Ln),sh(u,e,n.length,0),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(Ln),g.push(Ln)}else sh(u,e,nt>-1?nt:St,Ov(r[o?St:nt],z,!o&&i));!o&&i&&gn&&r[St].componentProviders++}}}function sh(e,n,r,i){const o=ll(n),u=function jy(e){return!!e.useClass}(n);if(o||u){const A=(u?ie(n.useClass):n).prototype.ngOnDestroy;if(A){const z=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const ue=z.indexOf(r);-1===ue?z.push(r,[i,A]):z[ue+1].push(i,A)}else z.push(r,A)}}}function Ov(e,n,r){return r&&e.componentProviders++,e.multi.push(n)-1}function oh(e,n,r,i){for(let o=r;o{r.providersResolver=(i,o)=>function zD(e,n,r){const i=mr();if(i.firstCreatePass){const o=fi(e);ih(r,i.data,i.blueprint,o,!0),ih(n,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,n)}}class fl{}class Pv{}function QD(e,n){return new lh(e,n??null,[])}class lh extends fl{constructor(n,r,i){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nm(this);const o=ci(n);this._bootstrapComponents=oa(o.bootstrap),this._r3Injector=Zg(n,r,[{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver},...i],f(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ch extends Pv{constructor(n){super(),this.moduleType=n}create(n){return new lh(this.moduleType,n,[])}}class Rv extends fl{constructor(n){super(),this.componentFactoryResolver=new Nm(this),this.instance=null;const r=new ld([...n.providers,{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver}],n.parent||ad(),n.debugName,new Set(["environment"]));this.injector=r,n.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Nv(e,n,r=null){return new Rv({providers:e,parent:n,debugName:r,runEnvironmentInitializers:!0}).injector}let qD=(()=>{class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=Ag(0,r.type),o=i.length>0?Nv([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Je({token:e,providedIn:"environment",factory:()=>new e(Vt(Uo))})}return e})();function Lv(e){e.getStandaloneInjector=n=>n.get(qD).getOrCreateStandaloneInjector(e)}function Vv(e,n,r){const i=Xt()+e,o=Nt();return o[i]===ur?Vo(o,i,r?n.call(r):n()):ru(o,i)}function $v(e,n,r,i){return Kv(Nt(),Xt(),e,n,r,i)}function Wv(e,n,r,i,o){return Yv(Nt(),Xt(),e,n,r,i,o)}function Gv(e,n,r,i,o,u){return Jv(Nt(),Xt(),e,n,r,i,o,u)}function Zv(e,n,r,i,o,u,g){return function Qv(e,n,r,i,o,u,g,b,A){const z=n+r;return fo(e,z,o,u,g,b)?Vo(e,z+4,A?i.call(A,o,u,g,b):i(o,u,g,b)):pu(e,z+4)}(Nt(),Xt(),e,n,r,i,o,u,g)}function zv(e,n,r,i,o,u,g,b){const A=Xt()+e,z=Nt(),ue=fo(z,A,r,i,o,u);return vs(z,A+4,g)||ue?Vo(z,A+5,b?n.call(b,r,i,o,u,g):n(r,i,o,u,g)):ru(z,A+5)}function pu(e,n){const r=e[n];return r===ur?void 0:r}function Kv(e,n,r,i,o,u){const g=n+r;return vs(e,g,o)?Vo(e,g+1,u?i.call(u,o):i(o)):pu(e,g+1)}function Yv(e,n,r,i,o,u,g){const b=n+r;return cl(e,b,o,u)?Vo(e,b+2,g?i.call(g,o,u):i(o,u)):pu(e,b+2)}function Jv(e,n,r,i,o,u,g,b){const A=n+r;return Dd(e,A,o,u,g)?Vo(e,A+3,b?i.call(b,o,u,g):i(o,u,g)):pu(e,A+3)}function qv(e,n){const r=mr();let i;const o=e+Gn;r.firstCreatePass?(i=function fC(e,n){if(n)for(let r=n.length-1;r>=0;r--){const i=n[r];if(e===i.name)return i}}(n,r.pipeRegistry),r.data[o]=i,i.onDestroy&&(r.destroyHooks??=[]).push(o,i.onDestroy)):i=r.data[o];const u=i.factory||(i.factory=os(i.type)),b=fn(Ql);try{const A=qo(!1),z=u();return qo(A),function tE(e,n,r,i){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),n[r]=i}(r,Nt(),o,z),z}finally{fn(b)}}function e0(e,n,r){const i=e+Gn,o=Nt(),u=Yi(o,i);return hu(o,i)?Kv(o,Xt(),n,u.transform,r,u):u.transform(r)}function t0(e,n,r,i){const o=e+Gn,u=Nt(),g=Yi(u,o);return hu(u,o)?Yv(u,Xt(),n,g.transform,r,i,g):g.transform(r,i)}function n0(e,n,r,i,o){const u=e+Gn,g=Nt(),b=Yi(g,u);return hu(g,u)?Jv(g,Xt(),n,b.transform,r,i,o,b):b.transform(r,i,o)}function hu(e,n){return e[Kt].data[n].pure}function gC(){return this._results[Symbol.iterator]()}class dh{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new jo)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=dh.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=gC)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,r){return this._results.reduce(n,r)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,r){const i=this;i.dirty=!1;const o=function Ks(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Au(e,n,r){if(e.length!==n.length)return!1;for(let i=0;i0&&(r[o-1][$r]=n),i{class e{static#e=this.__NG_ELEMENT_ID__=bC}return e})();const vC=gu,yC=class extends vC{constructor(n,r,i){super(),this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){const o=function mC(e,n,r,i){const o=n.tView,b=md(e,o,r,4096&e[Mn]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);b[Wr]=e[n.index];const z=e[di];return null!==z&&(b[di]=z.createEmbeddedView(o)),xp(o,b,r),b}(this._declarationLView,this._declarationTContainer,n,{injector:r,hydrationInfo:i});return new tu(o)}};function bC(){return Bd(v(),Nt())}function Bd(e,n){return 4&e.type?new yC(n,e,Kl(e,n)):null}let jd=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=SC}return e})();function SC(){return u0(v(),Nt())}const MC=jd,l0=class extends MC{constructor(n,r,i){super(),this._lContainer=n,this._hostTNode=r,this._hostLView=i}get element(){return Kl(this._hostTNode,this._hostLView)}get injector(){return new _s(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dc(this._hostTNode,this._hostLView);if(yc(n)){const r=ya(n,this._hostLView),i=Ha(n);return new _s(r[Kt].data[i+8],r)}return new _s(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const r=c0(this._lContainer);return null!==r&&r[n]||null}get length(){return this._lContainer.length-pn}createEmbeddedView(n,r,i){let o,u;"number"==typeof i?o=i:null!=i&&(o=i.index,u=i.injector);const b=n.createEmbeddedViewImpl(r||{},u,null);return this.insertImpl(b,o,false),b}createComponent(n,r,i,o,u){const g=n&&!function zs(e){return"function"==typeof e}(n);let b;if(g)b=r;else{const jt=r||{};b=jt.index,i=jt.injector,o=jt.projectableNodes,u=jt.environmentInjector||jt.ngModuleRef}const A=g?n:new nu(jn(n)),z=i||this.parentInjector;if(!u&&null==A.ngModule){const gn=(g?z:this.parentInjector).get(Uo,null);gn&&(u=gn)}jn(A.componentType??{});const nt=A.create(z,o,null,u);return this.insertImpl(nt.hostView,b,false),nt}insert(n,r){return this.insertImpl(n,r,!1)}insertImpl(n,r,i){const o=n._lView;if(function $s(e){return qt(e[hr])}(o)){const A=this.indexOf(n);if(-1!==A)this.detach(A);else{const z=o[hr],ue=new l0(z,z[Nr],z[hr]);ue.detach(ue.indexOf(n))}}const g=this._adjustIndex(r),b=this._lContainer;return _C(b,o,g,!i),n.attachToViewContainerRef(),lf(fh(b),g,n),n}move(n,r){return this.insert(n,r)}indexOf(n){const r=c0(this._lContainer);return null!==r?r.indexOf(n):-1}remove(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);i&&(wc(fh(this._lContainer),r),Fc(i[Kt],i))}detach(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);return i&&null!=wc(fh(this._lContainer),r)?new tu(i):null}_adjustIndex(n,r=0){return n??this.length+r}};function c0(e){return e[8]}function fh(e){return e[8]||(e[8]=[])}function u0(e,n){let r;const i=n[e.index];return qt(i)?r=i:(r=Dm(i,n,null,e),n[e.index]=r,_d(n,r)),d0(r,n,e,i),new l0(r,e,n)}let d0=function f0(e,n,r,i){if(e[Pr])return;let o;o=8&r.type?er(i):function AC(e,n){const r=e[Bt],i=r.createComment(""),o=Di(n,e);return wa(r,Uc(r,o),i,function bg(e,n){return e.nextSibling(n)}(r,o),!1),i}(n,r),e[Pr]=o};class ph{constructor(n){this.queryList=n,this.matches=null}clone(){return new ph(this.queryList)}setDirty(){this.queryList.setDirty()}}class hh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const r=n.queries;if(null!==r){const i=null!==n.contentQueries?n.contentQueries[0]:r.length,o=[];for(let u=0;u0)i.push(g[b/2]);else{const z=u[b+1],ue=n[-A];for(let Ce=pn;Ce{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=on(U0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const o of this.appInits){const u=o();if(Vp(u))r.push(u);else if(a_(u)){const g=new Promise((b,A)=>{u.subscribe({complete:b,error:A})});r.push(g)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),0===r.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),j0=(()=>{class e{log(r){console.log(r)}warn(r){console.warn(r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Vd=new Gr("LocaleId",{providedIn:"root",factory:()=>on(Vd,Et.Optional|Et.SkipSelf)||function rT(){return typeof $localize<"u"&&$localize.locale||dc}()}),iT=new Gr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let H0=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new h.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class oT{constructor(n,r){this.ngModuleFactory=n,this.componentFactories=r}}let aT=(()=>{class e{compileModuleSync(r){return new ch(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const i=this.compileModuleSync(r),u=oa(ci(r).declarations).reduce((g,b)=>{const A=jn(b);return A&&g.push(new nu(A)),g},[]);return new oT(i,u)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const G0=new Gr(""),Z0=new Gr("");let Sh,MT=(()=>{class e{constructor(r,i,o){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Sh||(function AT(e){Sh=e}(o),o.addToWindow(i)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{qi.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let u=-1;i&&i>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==u),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:o})}whenStable(r,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(qi),Vt(z0),Vt(Z0))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac})}return e})(),z0=(()=>{class e{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return Sh?.findTestabilityInTree(this,r,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ia=null;const K0=new Gr("AllowMultipleToken"),Mh=new Gr("PlatformDestroyListeners"),Ah=new Gr("appBootstrapListener");class IT{constructor(n,r){this.name=n,this.token=r}}function Q0(e,n,r=[]){const i=`Platform: ${n}`,o=new Gr(i);return(u=[])=>{let g=xh();if(!g||g.injector.get(K0,!1)){const b=[...r,...u,{provide:o,useValue:!0}];e?e(b):function PT(e){if(Ia&&!Ia.get(K0,!1))throw new ce(400,!1);(function Y0(){!function ha(e){Ko=e}(()=>{throw new ce(600,!1)})})(),Ia=e;const n=e.get(q0);(function J0(e){e.get(Ng,null)?.forEach(r=>r())})(e)}(function X0(e=[],n){return bo.create({name:n,providers:[{provide:Jf,useValue:"platform"},{provide:Mh,useValue:new Set([()=>Ia=null])},...e]})}(b,i))}return function NT(e){const n=xh();if(!n)throw new ce(401,!1);return n}()}}function xh(){return Ia?.get(q0)??null}let q0=(()=>{class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const o=function LT(e="zone.js",n){return"noop"===e?new wb:"zone.js"===e?new qi(n):e}(i?.ngZone,function ey(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const u=function XD(e,n,r){return new lh(e,n,r)}(r.moduleType,this.injector,function sy(e){return[{provide:qi,useFactory:e},{provide:zc,multi:!0,useFactory:()=>{const n=on(kT,{optional:!0});return()=>n.initialize()}},{provide:iy,useFactory:FT},{provide:Qg,useFactory:Xg}]}(()=>o)),g=u.injector.get(xa,null);return o.runOutsideAngular(()=>{const b=o.onError.subscribe({next:A=>{g.handleError(A)}});u.onDestroy(()=>{Wd(this._modules,u),b.unsubscribe()})}),function ty(e,n,r){try{const i=r();return Vp(i)?i.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(g,o,()=>{const b=u.injector.get(Ch);return b.runInitializers(),b.donePromise.then(()=>(sv(u.injector.get(Vd,dc)||dc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(r,i=[]){const o=ny({},i);return function xT(e,n,r){const i=new ch(r);return Promise.resolve(i)}(0,0,r).then(u=>this.bootstrapModuleFactory(u,o))}_moduleDoBootstrap(r){const i=r.injector.get(hc);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!r.instance.ngDoBootstrap)throw new ce(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(Mh,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(bo))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ny(e,n){return Array.isArray(n)?n.reduce(ny,e):{...e,...n}}let hc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=on(iy),this.zoneIsStable=on(Qg),this.componentTypes=[],this.components=[],this.isStable=on(H0).hasPendingTasks.pipe((0,F.w)(r=>r?(0,O.of)(!1):this.zoneIsStable),(0,P.x)(),(0,R.B)()),this._injector=on(Uo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const o=r instanceof Bg;if(!this._injector.get(Ch).done)throw!o&&vi(r),new ce(405,!1);let g;g=o?r:this._injector.get(Jc).resolveComponentFactory(r),this.componentTypes.push(g.componentType);const b=function OT(e){return e.isBoundToModule}(g)?void 0:this._injector.get(fl),z=g.create(bo.NULL,[],i||g.selector,b),ue=z.location.nativeElement,Ce=z.injector.get(G0,null);return Ce?.registerApplication(ue),z.onDestroy(()=>{this.detachView(z.hostView),Wd(this.components,z),Ce?.unregisterApplication(ue)}),this._loadComponent(z),z}tick(){if(this._runningTick)throw new ce(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;Wd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(Ah,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Wd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new ce(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wd(e,n){const r=e.indexOf(n);r>-1&&e.splice(r,1)}const iy=new Gr("",{providedIn:"root",factory:()=>on(xa).handleError.bind(void 0)});function FT(){const e=on(qi),n=on(xa);return r=>e.runOutsideAngular(()=>n.handleError(r))}let kT=(()=>{class e{constructor(){this.zone=on(qi),this.applicationRef=on(hc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function UT(){}let jT=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HT}return e})();function HT(e){return function VT(e,n,r){if(ji(e)&&!r){const i=Vi(e.index,n);return new tu(i,i)}return 47&e.type?new tu(n[sr],n):null}(v(),Nt(),16==(16&e))}class cy{constructor(){}supports(n){return Ed(n)}create(n){return new KT(n)}}const zT=(e,n)=>n;class KT{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||zT}forEachItem(n){let r;for(r=this._itHead;null!==r;r=r._next)n(r)}forEachOperation(n){let r=this._itHead,i=this._removalsHead,o=0,u=null;for(;r||i;){const g=!i||r&&r.currentIndex{g=this._trackByFn(o,b),null!==r&&Object.is(r.trackById,g)?(i&&(r=this._verifyReinsertion(r,b,g,o)),Object.is(r.item,b)||this._addIdentityChange(r,b)):(r=this._mismatch(r,b,g,o),i=!0),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,r,i,o){let u;return null===n?u=this._itTail:(u=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._reinsertAfter(n,u,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._moveAfter(n,u,o)):n=this._addAfter(new YT(r,i),u,o),n}_verifyReinsertion(n,r,i,o){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==u?n=this._reinsertAfter(u,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const r=n._next;this._addToRemovals(this._unlink(n)),n=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,r,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,u=n._nextRemoved;return null===o?this._removalsHead=u:o._nextRemoved=u,null===u?this._removalsTail=o:u._prevRemoved=o,this._insertAfter(n,r,i),this._addToMoves(n,i),n}_moveAfter(n,r,i){return this._unlink(n),this._insertAfter(n,r,i),this._addToMoves(n,i),n}_addAfter(n,r,i){return this._insertAfter(n,r,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,r,i){const o=null===r?this._itHead:r._next;return n._next=o,n._prev=r,null===o?this._itTail=n:o._prev=n,null===r?this._itHead=n:r._next=n,null===this._linkedRecords&&(this._linkedRecords=new uy),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const r=n._prev,i=n._next;return null===r?this._itHead=i:r._next=i,null===i?this._itTail=r:i._prev=r,n}_addToMoves(n,r){return n.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uy),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,r){return n.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class YT{constructor(n,r){this.item=n,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class JT{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,r){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===r||r<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const r=n._prevDup,i=n._nextDup;return null===r?this._head=i:r._nextDup=i,null===i?this._tail=r:i._prevDup=r,null===this._head}}class uy{constructor(){this.map=new Map}put(n){const r=n.trackById;let i=this.map.get(r);i||(i=new JT,this.map.set(r,i)),i.add(n)}get(n,r){const o=this.map.get(n);return o?o.get(n,r):null}remove(n){const r=n.trackById;return this.map.get(r).remove(n)&&this.map.delete(r),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dy(e,n,r){const i=e.previousIndex;if(null===i)return i;let o=0;return r&&i{if(r&&r.key===o)this._maybeAddToChanges(r,i),this._appendAfter=r,r=r._next;else{const u=this._getOrCreateRecordForKey(o,i);r=this._insertBeforeOrAppend(r,u)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let i=r;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,r){if(n){const i=n._prev;return r._next=n,r._prev=i,n._prev=r,i&&(i._next=r),n===this._mapHead&&(this._mapHead=r),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(n,r){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,r);const u=o._prev,g=o._next;return u&&(u._next=g),g&&(g._prev=u),o._next=null,o._prev=null,o}const i=new XT(n);return this._records.set(n,i),i.currentValue=r,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,r){Object.is(r,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=r,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,r){n instanceof Map?n.forEach(r):Object.keys(n).forEach(i=>r(n[i],i))}}class XT{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function py(){return new Nh([new cy])}let Nh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:py});constructor(r){this.factories=r}static create(r,i){if(null!=i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||py()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(null!=i)return i;throw new ce(901,!1)}}return e})();function hy(){return new Lh([new fy])}let Lh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:hy});constructor(r){this.factories=r}static create(r,i){if(i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||hy()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(i)return i;throw new ce(901,!1)}}return e})();const tw=Q0(null,"core",[]);let nw=(()=>{class e{constructor(r){}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(hc))};static#t=this.\u0275mod=Wi({type:e});static#n=this.\u0275inj=et({})}return e})();function pw(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function gw(e,n){const r=jn(e),i=n.elementInjector||ad();return new nu(r).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}function mw(e){const n=jn(e);if(!n)return null;const r=new nu(n);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}},6223:(Pe,V,a)=>{"use strict";a.d(V,{Cf:()=>k,EJ:()=>Nr,F:()=>K,Fd:()=>di,Fj:()=>M,JJ:()=>Rn,JL:()=>We,JU:()=>F,Kr:()=>Si,On:()=>Yr,Q7:()=>Ii,QS:()=>Ds,UX:()=>qs,Wl:()=>B,YN:()=>ze,_:()=>Gi,_Y:()=>es,kI:()=>ye,oH:()=>vi,p4:()=>Oe,qQ:()=>bs,sg:()=>ts,u:()=>Mn,u5:()=>Co,wV:()=>Ti});var t=a(5879),d=a(6814),w=a(7715),L=a(9315),h=a(7398);let O=(()=>{class Y{constructor(N,ge){this._renderer=N,this._elementRef=ge,this.onChange=Re=>{},this.onTouched=()=>{}}setProperty(N,ge){this._renderer.setProperty(this._elementRef.nativeElement,N,ge)}registerOnTouched(N){this.onTouched=N}registerOnChange(N){this.onChange=N}setDisabledState(N){this.setProperty("disabled",N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:Y})}return Y})(),R=(()=>{class Y extends O{static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,features:[t.qOj]})}return Y})();const F=new t.OlP("NgValueAccessor"),P={provide:F,useExisting:(0,t.Gpc)(()=>B),multi:!0};let B=(()=>{class Y extends R{writeValue(N){this.setProperty("checked",N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(zn){return Re.onChange(zn.target.checked)})("blur",function(){return Re.onTouched()})},features:[t._Bn([P]),t.qOj]})}return Y})();const $={provide:F,useExisting:(0,t.Gpc)(()=>M),multi:!0},j=new t.OlP("CompositionEventMode");let M=(()=>{class Y extends O{constructor(N,ge,Re){super(N,ge),this._compositionMode=Re,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function f(){const Y=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(Y.toLowerCase())}())}writeValue(N){this.setProperty("value",N??"")}_handleInput(N){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(N)}_compositionStart(){this._composing=!0}_compositionEnd(N){this._composing=!1,this._compositionMode&&this.onChange(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(j,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("input",function(zn){return Re._handleInput(zn.target.value)})("blur",function(){return Re.onTouched()})("compositionstart",function(){return Re._compositionStart()})("compositionend",function(zn){return Re._compositionEnd(zn.target.value)})},features:[t._Bn([$]),t.qOj]})}return Y})();function q(Y){return null==Y||("string"==typeof Y||Array.isArray(Y))&&0===Y.length}function ie(Y){return null!=Y&&"number"==typeof Y.length}const k=new t.OlP("NgValidators"),Te=new t.OlP("NgAsyncValidators"),Se=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ye{static min(re){return ce(re)}static max(re){return _e(re)}static required(re){return ve(re)}static requiredTrue(re){return function xe(Y){return!0===Y.value?null:{required:!0}}(re)}static email(re){return function be(Y){return q(Y.value)||Se.test(Y.value)?null:{email:!0}}(re)}static minLength(re){return function ke(Y){return re=>q(re.value)||!ie(re.value)?null:re.value.lengthie(re.value)&&re.value.length>Y?{maxlength:{requiredLength:Y,actualLength:re.value.length}}:null}(re)}static pattern(re){return function rt(Y){if(!Y)return Mt;let re,N;return"string"==typeof Y?(N="","^"!==Y.charAt(0)&&(N+="^"),N+=Y,"$"!==Y.charAt(Y.length-1)&&(N+="$"),re=new RegExp(N)):(N=Y.toString(),re=Y),ge=>{if(q(ge.value))return null;const Re=ge.value;return re.test(Re)?null:{pattern:{requiredPattern:N,actualValue:Re}}}}(re)}static nullValidator(re){return null}static compose(re){return Q(re)}static composeAsync(re){return se(re)}}function ce(Y){return re=>{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N>Y?{max:{max:Y,actual:re.value}}:null}}function ve(Y){return q(Y.value)?{required:!0}:null}function Mt(Y){return null}function qe(Y){return null!=Y}function _t(Y){return(0,t.QGY)(Y)?(0,w.D)(Y):Y}function $e(Y){let re={};return Y.forEach(N=>{re=null!=N?{...re,...N}:re}),0===Object.keys(re).length?null:re}function Ee(Y,re){return re.map(N=>N(Y))}function J(Y){return Y.map(re=>function Ze(Y){return!Y.validate}(re)?re:N=>re.validate(N))}function Q(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){return $e(Ee(N,re))}}function oe(Y){return null!=Y?Q(J(Y)):null}function se(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){const ge=Ee(N,re).map(_t);return(0,L.D)(ge).pipe((0,h.U)($e))}}function ae(Y){return null!=Y?se(J(Y)):null}function fe(Y,re){return null===Y?[re]:Array.isArray(Y)?[...Y,re]:[Y,re]}function De(Y){return Y._rawValidators}function je(Y){return Y._rawAsyncValidators}function Xe(Y){return Y?Array.isArray(Y)?Y:[Y]:[]}function tt(Y,re){return Array.isArray(Y)?Y.includes(re):Y===re}function wt(Y,re){const N=Xe(re);return Xe(Y).forEach(Re=>{tt(N,Re)||N.push(Re)}),N}function It(Y,re){return Xe(re).filter(N=>!tt(Y,N))}class Je{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(re){this._rawValidators=re||[],this._composedValidatorFn=oe(this._rawValidators)}_setAsyncValidators(re){this._rawAsyncValidators=re||[],this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(re){this._onDestroyCallbacks.push(re)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(re=>re()),this._onDestroyCallbacks=[]}reset(re=void 0){this.control&&this.control.reset(re)}hasError(re,N){return!!this.control&&this.control.hasError(re,N)}getError(re,N){return this.control?this.control.getError(re,N):null}}class Tt extends Je{get formDirective(){return null}get path(){return null}}class et extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pt{constructor(re){this._cd=re}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Rn=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(et,2))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)},features:[t.qOj]})}return Y})(),We=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,10))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)("ng-submitted",Re.isSubmitted)},features:[t.qOj]})}return Y})();const Qt="VALID",Cn="INVALID",An="PENDING",In="DISABLED";function nr(Y){return(Ir(Y)?Y.validators:Y)||null}function wr(Y,re){return(Ir(re)?re.asyncValidators:Y)||null}function Ir(Y){return null!=Y&&!Array.isArray(Y)&&"object"==typeof Y}function Br(Y,re,N){const ge=Y.controls;if(!(re?Object.keys(ge):ge).length)throw new t.vHH(1e3,"");if(!ge[N])throw new t.vHH(1001,"")}function oi(Y,re,N){Y._forEachChild((ge,Re)=>{if(void 0===N[Re])throw new t.vHH(1002,"")})}class Zn{constructor(re,N){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(re),this._assignAsyncValidators(N)}get validator(){return this._composedValidatorFn}set validator(re){this._rawValidators=this._composedValidatorFn=re}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(re){this._rawAsyncValidators=this._composedAsyncValidatorFn=re}get parent(){return this._parent}get valid(){return this.status===Qt}get invalid(){return this.status===Cn}get pending(){return this.status==An}get disabled(){return this.status===In}get enabled(){return this.status!==In}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(re){this._assignValidators(re)}setAsyncValidators(re){this._assignAsyncValidators(re)}addValidators(re){this.setValidators(wt(re,this._rawValidators))}addAsyncValidators(re){this.setAsyncValidators(wt(re,this._rawAsyncValidators))}removeValidators(re){this.setValidators(It(re,this._rawValidators))}removeAsyncValidators(re){this.setAsyncValidators(It(re,this._rawAsyncValidators))}hasValidator(re){return tt(this._rawValidators,re)}hasAsyncValidator(re){return tt(this._rawAsyncValidators,re)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(re={}){this.touched=!0,this._parent&&!re.onlySelf&&this._parent.markAsTouched(re)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(re=>re.markAllAsTouched())}markAsUntouched(re={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(N=>{N.markAsUntouched({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}markAsDirty(re={}){this.pristine=!1,this._parent&&!re.onlySelf&&this._parent.markAsDirty(re)}markAsPristine(re={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(N=>{N.markAsPristine({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}markAsPending(re={}){this.status=An,!1!==re.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!re.onlySelf&&this._parent.markAsPending(re)}disable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=In,this.errors=null,this._forEachChild(ge=>{ge.disable({...re,onlySelf:!0})}),this._updateValue(),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!0))}enable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=Qt,this._forEachChild(ge=>{ge.enable({...re,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent}),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!1))}_updateAncestors(re){this._parent&&!re.onlySelf&&(this._parent.updateValueAndValidity(re),re.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(re){this._parent=re}getRawValue(){return this.value}updateValueAndValidity(re={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qt||this.status===An)&&this._runAsyncValidator(re.emitEvent)),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!re.onlySelf&&this._parent.updateValueAndValidity(re)}_updateTreeValidity(re={emitEvent:!0}){this._forEachChild(N=>N._updateTreeValidity(re)),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?In:Qt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(re){if(this.asyncValidator){this.status=An,this._hasOwnPendingAsyncValidator=!0;const N=_t(this.asyncValidator(this));this._asyncValidationSubscription=N.subscribe(ge=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ge,{emitEvent:re})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(re,N={}){this.errors=re,this._updateControlsErrors(!1!==N.emitEvent)}get(re){let N=re;return null==N||(Array.isArray(N)||(N=N.split(".")),0===N.length)?null:N.reduce((ge,Re)=>ge&&ge._find(Re),this)}getError(re,N){const ge=N?this.get(N):this;return ge&&ge.errors?ge.errors[re]:null}hasError(re,N){return!!this.getError(re,N)}get root(){let re=this;for(;re._parent;)re=re._parent;return re}_updateControlsErrors(re){this.status=this._calculateStatus(),re&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(re)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?In:this.errors?Cn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(An)?An:this._anyControlsHaveStatus(Cn)?Cn:Qt}_anyControlsHaveStatus(re){return this._anyControls(N=>N.status===re)}_anyControlsDirty(){return this._anyControls(re=>re.dirty)}_anyControlsTouched(){return this._anyControls(re=>re.touched)}_updatePristine(re={}){this.pristine=!this._anyControlsDirty(),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}_updateTouched(re={}){this.touched=this._anyControlsTouched(),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}_registerOnCollectionChange(re){this._onCollectionChange=re}_setUpdateStrategy(re){Ir(re)&&null!=re.updateOn&&(this._updateOn=re.updateOn)}_parentMarkedDirty(re){return!re&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(re){return null}_assignValidators(re){this._rawValidators=Array.isArray(re)?re.slice():re,this._composedValidatorFn=function Dr(Y){return Array.isArray(Y)?oe(Y):Y||null}(this._rawValidators)}_assignAsyncValidators(re){this._rawAsyncValidators=Array.isArray(re)?re.slice():re,this._composedAsyncValidatorFn=function Or(Y){return Array.isArray(Y)?ae(Y):Y||null}(this._rawAsyncValidators)}}class dt extends Zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(re,N){return this.controls[re]?this.controls[re]:(this.controls[re]=N,N.setParent(this),N._registerOnCollectionChange(this._onCollectionChange),N)}addControl(re,N,ge={}){this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}removeControl(re,N={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}setControl(re,N,ge={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],N&&this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}contains(re){return this.controls.hasOwnProperty(re)&&this.controls[re].enabled}setValue(re,N={}){oi(this,0,re),Object.keys(re).forEach(ge=>{Br(this,!0,ge),this.controls[ge].setValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(Object.keys(re).forEach(ge=>{const Re=this.controls[ge];Re&&Re.patchValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re={},N={}){this._forEachChild((ge,Re)=>{ge.reset(re?re[Re]:null,{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this._reduceChildren({},(re,N,ge)=>(re[ge]=N.getRawValue(),re))}_syncPendingControls(){let re=this._reduceChildren(!1,(N,ge)=>!!ge._syncPendingControls()||N);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){Object.keys(this.controls).forEach(N=>{const ge=this.controls[N];ge&&re(ge,N)})}_setUpControls(){this._forEachChild(re=>{re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(re){for(const[N,ge]of Object.entries(this.controls))if(this.contains(N)&&re(ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},(N,ge,Re)=>((ge.enabled||this.disabled)&&(N[Re]=ge.value),N))}_reduceChildren(re,N){let ge=re;return this._forEachChild((Re,yn)=>{ge=N(ge,Re,yn)}),ge}_allControlsDisabled(){for(const re of Object.keys(this.controls))if(this.controls[re].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(re){return this.controls.hasOwnProperty(re)?this.controls[re]:null}}class He extends dt{}const Wt=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Vt}),Vt="always";function Un(Y,re){return[...re.path,Y]}function on(Y,re,N=Vt){Qe(Y,re),re.valueAccessor.writeValue(Y.value),(Y.disabled||"always"===N)&&re.valueAccessor.setDisabledState?.(Y.disabled),function Ue(Y,re){re.valueAccessor.registerOnChange(N=>{Y._pendingValue=N,Y._pendingChange=!0,Y._pendingDirty=!0,"change"===Y.updateOn&&Rt(Y,re)})}(Y,re),function kt(Y,re){const N=(ge,Re)=>{re.valueAccessor.writeValue(ge),Re&&re.viewToModelUpdate(ge)};Y.registerOnChange(N),re._registerOnDestroy(()=>{Y._unregisterOnChange(N)})}(Y,re),function bt(Y,re){re.valueAccessor.registerOnTouched(()=>{Y._pendingTouched=!0,"blur"===Y.updateOn&&Y._pendingChange&&Rt(Y,re),"submit"!==Y.updateOn&&Y.markAsTouched()})}(Y,re),function $n(Y,re){if(re.valueAccessor.setDisabledState){const N=ge=>{re.valueAccessor.setDisabledState(ge)};Y.registerOnDisabledChange(N),re._registerOnDestroy(()=>{Y._unregisterOnDisabledChange(N)})}}(Y,re)}function rr(Y,re,N=!0){const ge=()=>{};re.valueAccessor&&(re.valueAccessor.registerOnChange(ge),re.valueAccessor.registerOnTouched(ge)),Le(Y,re),Y&&(re._invokeOnDestroyCallbacks(),Y._registerOnCollectionChange(()=>{}))}function ln(Y,re){Y.forEach(N=>{N.registerOnValidatorChange&&N.registerOnValidatorChange(re)})}function Qe(Y,re){const N=De(Y);null!==re.validator?Y.setValidators(fe(N,re.validator)):"function"==typeof N&&Y.setValidators([N]);const ge=je(Y);null!==re.asyncValidator?Y.setAsyncValidators(fe(ge,re.asyncValidator)):"function"==typeof ge&&Y.setAsyncValidators([ge]);const Re=()=>Y.updateValueAndValidity();ln(re._rawValidators,Re),ln(re._rawAsyncValidators,Re)}function Le(Y,re){let N=!1;if(null!==Y){if(null!==re.validator){const Re=De(Y);if(Array.isArray(Re)&&Re.length>0){const yn=Re.filter(zn=>zn!==re.validator);yn.length!==Re.length&&(N=!0,Y.setValidators(yn))}}if(null!==re.asyncValidator){const Re=je(Y);if(Array.isArray(Re)&&Re.length>0){const yn=Re.filter(zn=>zn!==re.asyncValidator);yn.length!==Re.length&&(N=!0,Y.setAsyncValidators(yn))}}}const ge=()=>{};return ln(re._rawValidators,ge),ln(re._rawAsyncValidators,ge),N}function Rt(Y,re){Y._pendingDirty&&Y.markAsDirty(),Y.setValue(Y._pendingValue,{emitModelToViewChange:!1}),re.viewToModelUpdate(Y._pendingValue),Y._pendingChange=!1}function Ft(Y,re){Qe(Y,re)}function Hr(Y,re){if(!Y.hasOwnProperty("model"))return!1;const N=Y.model;return!!N.isFirstChange()||!Object.is(re,N.currentValue)}function Xn(Y,re){Y._syncPendingControls(),re.forEach(N=>{const ge=N.control;"submit"===ge.updateOn&&ge._pendingChange&&(N.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1)})}function qn(Y,re){if(!re)return null;let N,ge,Re;return Array.isArray(re),re.forEach(yn=>{yn.constructor===M?N=yn:function Zr(Y){return Object.getPrototypeOf(Y.constructor)===R}(yn)?ge=yn:Re=yn}),Re||ge||N||null}const pe={provide:Tt,useExisting:(0,t.Gpc)(()=>K)},Z=(()=>Promise.resolve())();let K=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new dt({},oe(N),ae(ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(N){Z.then(()=>{const ge=this._findContainer(N.path);N.control=ge.registerControl(N.name,N.control),on(N.control,N,this.callSetDisabledState),N.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(N)})}getControl(N){return this.form.get(N.path)}removeControl(N){Z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name),this._directives.delete(N)})}addFormGroup(N){Z.then(()=>{const ge=this._findContainer(N.path),Re=new dt({});Ft(Re,N),ge.registerControl(N.name,Re),Re.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(N){Z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name)})}getFormGroup(N){return this.form.get(N.path)}updateModel(N,ge){Z.then(()=>{this.form.get(N.path).setValue(ge)})}setValue(N){this.control.setValue(N)}onSubmit(N){return this.submitted=!0,Xn(this.form,this._directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(N){return N.pop(),N.length?this.form.get(N):this.form}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(zn){return Re.onSubmit(zn)})("reset",function(){return Re.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([pe]),t.qOj]})}return Y})();function D(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}function X(Y){return"object"==typeof Y&&null!==Y&&2===Object.keys(Y).length&&"value"in Y&&"disabled"in Y}const de=class extends Zn{constructor(re=null,N,ge){super(nr(N),wr(ge,N)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(re),this._setUpdateStrategy(N),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ir(N)&&(N.nonNullable||N.initialValueIsDefault)&&(this.defaultValue=X(re)?re.value:re)}setValue(re,N={}){this.value=this._pendingValue=re,this._onChange.length&&!1!==N.emitModelToViewChange&&this._onChange.forEach(ge=>ge(this.value,!1!==N.emitViewToModelChange)),this.updateValueAndValidity(N)}patchValue(re,N={}){this.setValue(re,N)}reset(re=this.defaultValue,N={}){this._applyFormState(re),this.markAsPristine(N),this.markAsUntouched(N),this.setValue(this.value,N),this._pendingChange=!1}_updateValue(){}_anyControls(re){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(re){this._onChange.push(re)}_unregisterOnChange(re){D(this._onChange,re)}registerOnDisabledChange(re){this._onDisabledChange.push(re)}_unregisterOnDisabledChange(re){D(this._onDisabledChange,re)}_forEachChild(re){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(re){X(re)?(this.value=this._pendingValue=re.value,re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=re}},Oe=de,_r={provide:et,useExisting:(0,t.Gpc)(()=>Yr)},zr=(()=>Promise.resolve())();let Yr=(()=>{class Y extends et{constructor(N,ge,Re,yn,zn,Ni){super(),this._changeDetectorRef=zn,this.callSetDisabledState=Ni,this.control=new de,this._registered=!1,this.name="",this.update=new t.vpe,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,yn)}ngOnChanges(N){if(this._checkForErrors(),!this._registered||"name"in N){if(this._registered&&(this._checkName(),this.formDirective)){const ge=N.name.previousValue;this.formDirective.removeControl({name:ge,path:this._getPath(ge)})}this._setUpControl()}"isDisabled"in N&&this._updateDisabled(N),Hr(N,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){on(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(N){zr.then(()=>{this.control.setValue(N,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(N){const ge=N.isDisabled.currentValue,Re=0!==ge&&(0,t.VuI)(ge);zr.then(()=>{Re&&!this.control.disabled?this.control.disable():!Re&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(N){return this._parent?Un(N,this._parent):[N]}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,9),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(t.sBO,8),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([_r]),t.qOj,t.TTD]})}return Y})(),es=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Y})();const _i={provide:F,useExisting:(0,t.Gpc)(()=>Ti),multi:!0};let Ti=(()=>{class Y extends R{writeValue(N){this.setProperty("value",N??"")}registerOnChange(N){this.onChange=ge=>{N(""==ge?null:parseFloat(ge))}}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("input",function(zn){return Re.onChange(zn.target.value)})("blur",function(){return Re.onTouched()})},features:[t._Bn([_i]),t.qOj]})}return Y})();const hs={provide:F,useExisting:(0,t.Gpc)(()=>Gi),multi:!0};let Is=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({})}return Y})(),Bi=(()=>{class Y{constructor(){this._accessors=[]}add(N,ge){this._accessors.push([N,ge])}remove(N){for(let ge=this._accessors.length-1;ge>=0;--ge)if(this._accessors[ge][1]===N)return void this._accessors.splice(ge,1)}select(N){this._accessors.forEach(ge=>{this._isSameGroup(ge,N)&&ge[1]!==N&&ge[1].fireUncheck(N.value)})}_isSameGroup(N,ge){return!!N[0].control&&N[0]._parent===ge._control._parent&&N[1].name===ge.name}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:Is})}return Y})(),Gi=(()=>{class Y extends R{constructor(N,ge,Re,yn){super(N,ge),this._registry=Re,this._injector=yn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,t.f3M)(Wt,{optional:!0})??Vt}ngOnInit(){this._control=this._injector.get(et),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(N){this._state=N===this.value,this.setProperty("checked",this._state)}registerOnChange(N){this._fn=N,this.onChange=()=>{N(this.value),this._registry.select(this)}}setDisabledState(N){(this.setDisabledStateFired||N||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",N),this.setDisabledStateFired=!0}fireUncheck(N){this.writeValue(N)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(Bi),t.Y36(t.zs3))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(){return Re.onChange()})("blur",function(){return Re.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t._Bn([hs]),t.qOj]})}return Y})();const vr=new t.OlP("NgModelWithFormControlWarning"),Sr={provide:et,useExisting:(0,t.Gpc)(()=>vi)};let vi=(()=>{class Y extends et{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,yn,zn){super(),this._ngModelWarningConfig=yn,this.callSetDisabledState=zn,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(N),this._setAsyncValidators(ge),this.valueAccessor=qn(0,Re)}ngOnChanges(N){if(this._isControlChanged(N)){const ge=N.form.previousValue;ge&&rr(ge,this,!1),on(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Hr(N,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}_isControlChanged(N){return N.hasOwnProperty("form")}static#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8),t.Y36(Wt,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Sr]),t.qOj,t.TTD]})}return Y})();const ci={provide:Tt,useExisting:(0,t.Gpc)(()=>ts)};let ts=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(N),this._setAsyncValidators(ge)}ngOnChanges(N){this._checkFormPresent(),N.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Le(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(N){const ge=this.form.get(N.path);return on(ge,N,this.callSetDisabledState),ge.updateValueAndValidity({emitEvent:!1}),this.directives.push(N),ge}getControl(N){return this.form.get(N.path)}removeControl(N){rr(N.control||null,N,!1),function Ur(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}(this.directives,N)}addFormGroup(N){this._setUpFormContainer(N)}removeFormGroup(N){this._cleanUpFormContainer(N)}getFormGroup(N){return this.form.get(N.path)}addFormArray(N){this._setUpFormContainer(N)}removeFormArray(N){this._cleanUpFormContainer(N)}getFormArray(N){return this.form.get(N.path)}updateModel(N,ge){this.form.get(N.path).setValue(ge)}onSubmit(N){return this.submitted=!0,Xn(this.form,this.directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_updateDomValue(){this.directives.forEach(N=>{const ge=N.control,Re=this.form.get(N.path);ge!==Re&&(rr(ge||null,N),(Y=>Y instanceof de)(Re)&&(on(Re,N,this.callSetDisabledState),N.control=Re))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(N){const ge=this.form.get(N.path);Ft(ge,N),ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(N){if(this.form){const ge=this.form.get(N.path);ge&&function an(Y,re){return Le(Y,re)}(ge,N)&&ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qe(this.form,this),this._oldForm&&Le(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroup",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(zn){return Re.onSubmit(zn)})("reset",function(){return Re.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ci]),t.qOj,t.TTD]})}return Y})();const Kt={provide:et,useExisting:(0,t.Gpc)(()=>Mn)};let Mn=(()=>{class Y extends et{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,yn,zn){super(),this._ngModelWarningConfig=zn,this._added=!1,this.name=null,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,yn)}ngOnChanges(N){this._added||this._setUpControl(),Hr(N,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}get path(){return Un(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,13),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Kt]),t.qOj,t.TTD]})}return Y})();const hr={provide:F,useExisting:(0,t.Gpc)(()=>Nr),multi:!0};function $r(Y,re){return null==Y?`${re}`:(re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let Nr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){this.value=N;const Re=$r(this._getOptionId(N),N);this.setProperty("value",Re)}registerOnChange(N){this.onChange=ge=>{this.value=this._getOptionValue(ge),N(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(N){for(const ge of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ge),N))return ge;return null}_getOptionValue(N){const ge=function bi(Y){return Y.split(":")[0]}(N);return this._optionMap.has(ge)?this._optionMap.get(ge):N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(zn){return Re.onChange(zn.target.value)})("blur",function(){return Re.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([hr]),t.qOj]})}return Y})(),ze=(()=>{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption())}set ngValue(N){null!=this._select&&(this._select._optionMap.set(this.id,N),this._setElementValue($r(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._setElementValue(N),this._select&&this._select.writeValue(this._select.value)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Nr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();const Ve={provide:F,useExisting:(0,t.Gpc)(()=>gr),multi:!0};function ct(Y,re){return null==Y?`${re}`:("string"==typeof re&&(re=`'${re}'`),re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let gr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){let ge;if(this.value=N,Array.isArray(N)){const Re=N.map(yn=>this._getOptionId(yn));ge=(yn,zn)=>{yn._setSelected(Re.indexOf(zn.toString())>-1)}}else ge=(Re,yn)=>{Re._setSelected(!1)};this._optionMap.forEach(ge)}registerOnChange(N){this.onChange=ge=>{const Re=[],yn=ge.selectedOptions;if(void 0!==yn){const zn=yn;for(let Ni=0;Ni{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption(this))}set ngValue(N){null!=this._select&&(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._select?(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value)):this._setElementValue(N)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}_setSelected(N){this._renderer.setProperty(this._element.nativeElement,"selected",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(gr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();function sr(Y){return"number"==typeof Y?Y:parseFloat(Y)}let Wr=(()=>{class Y{constructor(){this._validator=Mt}ngOnChanges(N){if(this.inputName in N){const ge=this.normalizeInput(N[this.inputName].currentValue);this._enabled=this.enabled(ge),this._validator=this._enabled?this.createValidator(ge):Mt,this._onChange&&this._onChange()}}validate(N){return this._validator(N)}registerOnValidatorChange(N){this._onChange=N}enabled(N){return null!=N}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,features:[t.TTD]})}return Y})();const Mi={provide:k,useExisting:(0,t.Gpc)(()=>di),multi:!0};let di=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=N=>sr(N),this.createValidator=N=>_e(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("max",Re._enabled?Re.max:null)},inputs:{max:"max"},features:[t._Bn([Mi]),t.qOj]})}return Y})();const ns={provide:k,useExisting:(0,t.Gpc)(()=>bs),multi:!0};let bs=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=N=>sr(N),this.createValidator=N=>ce(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("min",Re._enabled?Re.min:null)},inputs:{min:"min"},features:[t._Bn([ns]),t.qOj]})}return Y})();const Zi={provide:k,useExisting:(0,t.Gpc)(()=>Ii),multi:!0};let Ii=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.VuI,this.createValidator=N=>ve}enabled(N){return N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("required",Re._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Zi]),t.qOj]})}return Y})(),qt=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[Is]})}return Y})();class Kr extends Zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(re){return this.controls[this._adjustIndex(re)]}push(re,N={}){this.controls.push(re),this._registerControl(re),this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}insert(re,N,ge={}){this.controls.splice(re,0,N),this._registerControl(N),this.updateValueAndValidity({emitEvent:ge.emitEvent})}removeAt(re,N={}){let ge=this._adjustIndex(re);ge<0&&(ge=0),this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),this.controls.splice(ge,1),this.updateValueAndValidity({emitEvent:N.emitEvent})}setControl(re,N,ge={}){let Re=this._adjustIndex(re);Re<0&&(Re=0),this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),this.controls.splice(Re,1),N&&(this.controls.splice(Re,0,N),this._registerControl(N)),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(re,N={}){oi(this,0,re),re.forEach((ge,Re)=>{Br(this,!1,Re),this.at(Re).setValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(re.forEach((ge,Re)=>{this.at(Re)&&this.at(Re).patchValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re=[],N={}){this._forEachChild((ge,Re)=>{ge.reset(re[Re],{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this.controls.map(re=>re.getRawValue())}clear(re={}){this.controls.length<1||(this._forEachChild(N=>N._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:re.emitEvent}))}_adjustIndex(re){return re<0?re+this.length:re}_syncPendingControls(){let re=this.controls.reduce((N,ge)=>!!ge._syncPendingControls()||N,!1);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){this.controls.forEach((N,ge)=>{re(N,ge)})}_updateValue(){this.value=this.controls.filter(re=>re.enabled||this.disabled).map(re=>re.value)}_anyControls(re){return this.controls.some(N=>N.enabled&&re(N))}_setUpControls(){this._forEachChild(re=>this._registerControl(re))}_allControlsDisabled(){for(const re of this.controls)if(re.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(re){re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)}_find(re){return this.at(re)??null}}function fi(Y){return!!Y&&(void 0!==Y.asyncValidators||void 0!==Y.validators||void 0!==Y.updateOn)}let Hs=(()=>{class Y{constructor(){this.useNonNullable=!1}get nonNullable(){const N=new Y;return N.useNonNullable=!0,N}group(N,ge=null){const Re=this._reduceControls(N);let yn={};return fi(ge)?yn=ge:null!==ge&&(yn.validators=ge.validator,yn.asyncValidators=ge.asyncValidator),new dt(Re,yn)}record(N,ge=null){const Re=this._reduceControls(N);return new He(Re,ge)}control(N,ge,Re){let yn={};return this.useNonNullable?(fi(ge)?yn=ge:(yn.validators=ge,yn.asyncValidators=Re),new de(N,{...yn,nonNullable:!0})):new de(N,ge,Re)}array(N,ge,Re){const yn=N.map(zn=>this._createControl(zn));return new Kr(yn,ge,Re)}_reduceControls(N){const ge={};return Object.keys(N).forEach(Re=>{ge[Re]=this._createControl(N[Re])}),ge}_createControl(N){return N instanceof de||N instanceof Zn?N:Array.isArray(N)?this.control(N[0],N.length>1?N[1]:null,N.length>2?N[2]:null):this.control(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Ds=(()=>{class Y extends Hs{group(N,ge=null){return super.group(N,ge)}control(N,ge,Re){return super.control(N,ge,Re)}array(N,ge,Re){return super.array(N,ge,Re)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Co=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[qt]})}return Y})(),qs=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:vr,useValue:N.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[qt]})}return Y})()},6593:(Pe,V,a)=>{"use strict";a.d(V,{Dx:()=>At,H7:()=>Cn,b2:()=>Zt,q6:()=>Je,se:()=>ke});var t=a(5879),d=a(6814);class w extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends w{static makeCurrent(){(0,d.HT)(new L)}onAndCancel(ot,we,He){return ot.addEventListener(we,He),()=>{ot.removeEventListener(we,He)}}dispatchEvent(ot,we){ot.dispatchEvent(we)}remove(ot){ot.parentNode&&ot.parentNode.removeChild(ot)}createElement(ot,we){return(we=we||this.getDefaultDocument()).createElement(ot)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ot){return ot.nodeType===Node.ELEMENT_NODE}isShadowRoot(ot){return ot instanceof DocumentFragment}getGlobalEventTarget(ot,we){return"window"===we?window:"document"===we?ot:"body"===we?ot.body:null}getBaseHref(ot){const we=function O(){return h=h||document.querySelector("base"),h?h.getAttribute("href"):null}();return null==we?null:function F(dt){R=R||document.createElement("a"),R.setAttribute("href",dt);const ot=R.pathname;return"/"===ot.charAt(0)?ot:`/${ot}`}(we)}resetBaseElement(){h=null}getUserAgent(){return window.navigator.userAgent}getCookie(ot){return(0,d.Mx)(document.cookie,ot)}}let R,h=null,B=(()=>{class dt{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const $=new t.OlP("EventManagerPlugins");let f=(()=>{class dt{constructor(we,He){this._zone=He,this._eventNameToPlugin=new Map,we.forEach(yt=>{yt.manager=this}),this._plugins=we.slice().reverse()}addEventListener(we,He,yt){return this._findPluginFor(He).addEventListener(we,He,yt)}getZone(){return this._zone}_findPluginFor(we){let He=this._eventNameToPlugin.get(we);if(He)return He;if(He=this._plugins.find(Wt=>Wt.supports(we)),!He)throw new t.vHH(5101,!1);return this._eventNameToPlugin.set(we,He),He}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG($),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class j{constructor(ot){this._doc=ot}}const M="ng-app-id";let q=(()=>{class dt{constructor(we,He,yt,Wt={}){this.doc=we,this.appId=He,this.nonce=yt,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.PM)(Wt),this.resetHostNodes()}addStyles(we){for(const He of we)1===this.changeUsageCount(He,1)&&this.onStyleAdded(He)}removeStyles(we){for(const He of we)this.changeUsageCount(He,-1)<=0&&this.onStyleRemoved(He)}ngOnDestroy(){const we=this.styleNodesInDOM;we&&(we.forEach(He=>He.remove()),we.clear());for(const He of this.getAllStyles())this.onStyleRemoved(He);this.resetHostNodes()}addHost(we){this.hostNodes.add(we);for(const He of this.getAllStyles())this.addStyleToHost(we,He)}removeHost(we){this.hostNodes.delete(we)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(we){for(const He of this.hostNodes)this.addStyleToHost(He,we)}onStyleRemoved(we){const He=this.styleRef;He.get(we)?.elements?.forEach(yt=>yt.remove()),He.delete(we)}collectServerRenderedStyles(){const we=this.doc.head?.querySelectorAll(`style[${M}="${this.appId}"]`);if(we?.length){const He=new Map;return we.forEach(yt=>{null!=yt.textContent&&He.set(yt.textContent,yt)}),He}return null}changeUsageCount(we,He){const yt=this.styleRef;if(yt.has(we)){const Wt=yt.get(we);return Wt.usage+=He,Wt.usage}return yt.set(we,{usage:He,elements:[]}),He}getStyleElement(we,He){const yt=this.styleNodesInDOM,Wt=yt?.get(He);if(Wt?.parentNode===we)return yt.delete(He),Wt.removeAttribute(M),Wt;{const Vt=this.doc.createElement("style");return this.nonce&&Vt.setAttribute("nonce",this.nonce),Vt.textContent=He,this.platformIsServer&&Vt.setAttribute(M,this.appId),Vt}}addStyleToHost(we,He){const yt=this.getStyleElement(we,He);we.appendChild(yt);const Wt=this.styleRef,Vt=Wt.get(He)?.elements;Vt?Vt.push(yt):Wt.set(He,{elements:[yt],usage:1})}resetHostNodes(){const we=this.hostNodes;we.clear(),we.add(this.doc.head)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0),t.LFG(t.AFp),t.LFG(t.Ojb,8),t.LFG(t.Lbi))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const ie={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},k=/%COMP%/g,_e=new t.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function be(dt,ot){return ot.map(we=>we.replace(k,dt))}let ke=(()=>{class dt{constructor(we,He,yt,Wt,Vt,Un,on,rr=null){this.eventManager=we,this.sharedStylesHost=He,this.appId=yt,this.removeStylesOnCompDestroy=Wt,this.doc=Vt,this.platformId=Un,this.ngZone=on,this.nonce=rr,this.rendererByCompId=new Map,this.platformIsServer=(0,d.PM)(Un),this.defaultRenderer=new vt(we,Vt,on,this.platformIsServer)}createRenderer(we,He){if(!we||!He)return this.defaultRenderer;this.platformIsServer&&He.encapsulation===t.ifc.ShadowDom&&(He={...He,encapsulation:t.ifc.Emulated});const yt=this.getOrCreateRenderer(we,He);return yt instanceof Ee?yt.applyToHost(we):yt instanceof $e&&yt.applyStyles(),yt}getOrCreateRenderer(we,He){const yt=this.rendererByCompId;let Wt=yt.get(He.id);if(!Wt){const Vt=this.doc,Un=this.ngZone,on=this.eventManager,rr=this.sharedStylesHost,ln=this.removeStylesOnCompDestroy,$n=this.platformIsServer;switch(He.encapsulation){case t.ifc.Emulated:Wt=new Ee(on,rr,He,this.appId,ln,Vt,Un,$n);break;case t.ifc.ShadowDom:return new _t(on,rr,we,He,Vt,Un,this.nonce,$n);default:Wt=new $e(on,rr,He,ln,Vt,Un,$n)}yt.set(He.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(f),t.LFG(q),t.LFG(t.AFp),t.LFG(_e),t.LFG(d.K0),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(t.Ojb))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class vt{constructor(ot,we,He,yt){this.eventManager=ot,this.doc=we,this.ngZone=He,this.platformIsServer=yt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ot,we){return we?this.doc.createElementNS(ie[we]||we,ot):this.doc.createElement(ot)}createComment(ot){return this.doc.createComment(ot)}createText(ot){return this.doc.createTextNode(ot)}appendChild(ot,we){(qe(ot)?ot.content:ot).appendChild(we)}insertBefore(ot,we,He){ot&&(qe(ot)?ot.content:ot).insertBefore(we,He)}removeChild(ot,we){ot&&ot.removeChild(we)}selectRootElement(ot,we){let He="string"==typeof ot?this.doc.querySelector(ot):ot;if(!He)throw new t.vHH(-5104,!1);return we||(He.textContent=""),He}parentNode(ot){return ot.parentNode}nextSibling(ot){return ot.nextSibling}setAttribute(ot,we,He,yt){if(yt){we=yt+":"+we;const Wt=ie[yt];Wt?ot.setAttributeNS(Wt,we,He):ot.setAttribute(we,He)}else ot.setAttribute(we,He)}removeAttribute(ot,we,He){if(He){const yt=ie[He];yt?ot.removeAttributeNS(yt,we):ot.removeAttribute(`${He}:${we}`)}else ot.removeAttribute(we)}addClass(ot,we){ot.classList.add(we)}removeClass(ot,we){ot.classList.remove(we)}setStyle(ot,we,He,yt){yt&(t.JOm.DashCase|t.JOm.Important)?ot.style.setProperty(we,He,yt&t.JOm.Important?"important":""):ot.style[we]=He}removeStyle(ot,we,He){He&t.JOm.DashCase?ot.style.removeProperty(we):ot.style[we]=""}setProperty(ot,we,He){ot[we]=He}setValue(ot,we){ot.nodeValue=we}listen(ot,we,He){if("string"==typeof ot&&!(ot=(0,d.q)().getGlobalEventTarget(this.doc,ot)))throw new Error(`Unsupported event target ${ot} for event ${we}`);return this.eventManager.addEventListener(ot,we,this.decoratePreventDefault(He))}decoratePreventDefault(ot){return we=>{if("__ngUnwrap__"===we)return ot;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ot(we)):ot(we))&&we.preventDefault()}}}function qe(dt){return"TEMPLATE"===dt.tagName&&void 0!==dt.content}class _t extends vt{constructor(ot,we,He,yt,Wt,Vt,Un,on){super(ot,Wt,Vt,on),this.sharedStylesHost=we,this.hostEl=He,this.shadowRoot=He.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const rr=be(yt.id,yt.styles);for(const ln of rr){const $n=document.createElement("style");Un&&$n.setAttribute("nonce",Un),$n.textContent=ln,this.shadowRoot.appendChild($n)}}nodeOrShadowRoot(ot){return ot===this.hostEl?this.shadowRoot:ot}appendChild(ot,we){return super.appendChild(this.nodeOrShadowRoot(ot),we)}insertBefore(ot,we,He){return super.insertBefore(this.nodeOrShadowRoot(ot),we,He)}removeChild(ot,we){return super.removeChild(this.nodeOrShadowRoot(ot),we)}parentNode(ot){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ot)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class $e extends vt{constructor(ot,we,He,yt,Wt,Vt,Un,on){super(ot,Wt,Vt,Un),this.sharedStylesHost=we,this.removeStylesOnCompDestroy=yt,this.styles=on?be(on,He.styles):He.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ee extends $e{constructor(ot,we,He,yt,Wt,Vt,Un,on){const rr=yt+"-"+He.id;super(ot,we,He,Wt,Vt,Un,on,rr),this.contentAttr=function ve(dt){return"_ngcontent-%COMP%".replace(k,dt)}(rr),this.hostAttr=function xe(dt){return"_nghost-%COMP%".replace(k,dt)}(rr)}applyToHost(ot){this.applyStyles(),this.setAttribute(ot,this.hostAttr,"")}createElement(ot,we){const He=super.createElement(ot,we);return super.setAttribute(He,this.contentAttr,""),He}}let Ze=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return!0}addEventListener(we,He,yt){return we.addEventListener(He,yt,!1),()=>this.removeEventListener(we,He,yt)}removeEventListener(we,He,yt){return we.removeEventListener(He,yt)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const J=["alt","control","meta","shift"],Q={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},oe={alt:dt=>dt.altKey,control:dt=>dt.ctrlKey,meta:dt=>dt.metaKey,shift:dt=>dt.shiftKey};let se=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return null!=dt.parseEventName(we)}addEventListener(we,He,yt){const Wt=dt.parseEventName(He),Vt=dt.eventCallback(Wt.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(we,Wt.domEventName,Vt))}static parseEventName(we){const He=we.toLowerCase().split("."),yt=He.shift();if(0===He.length||"keydown"!==yt&&"keyup"!==yt)return null;const Wt=dt._normalizeKey(He.pop());let Vt="",Un=He.indexOf("code");if(Un>-1&&(He.splice(Un,1),Vt="code."),J.forEach(rr=>{const ln=He.indexOf(rr);ln>-1&&(He.splice(ln,1),Vt+=rr+".")}),Vt+=Wt,0!=He.length||0===Wt.length)return null;const on={};return on.domEventName=yt,on.fullKey=Vt,on}static matchEventFullKeyCode(we,He){let yt=Q[we.key]||we.key,Wt="";return He.indexOf("code.")>-1&&(yt=we.code,Wt="code."),!(null==yt||!yt)&&(yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),J.forEach(Vt=>{Vt!==yt&&(0,oe[Vt])(we)&&(Wt+=Vt+".")}),Wt+=yt,Wt===He)}static eventCallback(we,He,yt){return Wt=>{dt.matchEventFullKeyCode(Wt,we)&&yt.runGuarded(()=>He(Wt))}}static _normalizeKey(we){return"esc"===we?"escape":we}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const Je=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:d.bD},{provide:t.g9A,useValue:function Xe(){L.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function wt(){return(0,t.RDi)(document),document},deps:[]}]),Tt=new t.OlP(""),et=[{provide:t.rWj,useClass:class P{addToWindow(ot){t.dqk.getAngularTestability=(He,yt=!0)=>{const Wt=ot.findTestabilityInTree(He,yt);if(null==Wt)throw new t.vHH(5103,!1);return Wt},t.dqk.getAllAngularTestabilities=()=>ot.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>ot.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(He=>{const yt=t.dqk.getAllAngularTestabilities();let Wt=yt.length,Vt=!1;const Un=function(on){Vt=Vt||on,Wt--,0==Wt&&He(Vt)};yt.forEach(on=>{on.whenStable(Un)})})}findTestabilityInTree(ot,we,He){return null==we?null:ot.getTestability(we)??(He?(0,d.q)().isShadowRoot(we)?this.findTestabilityInTree(ot,we.host,!0):this.findTestabilityInTree(ot,we.parentElement,!0):null)}},deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],Pt=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function tt(){return new t.qLn},deps:[]},{provide:$,useClass:Ze,multi:!0,deps:[d.K0,t.R0b,t.Lbi]},{provide:$,useClass:se,multi:!0,deps:[d.K0]},ke,q,f,{provide:t.FYo,useExisting:ke},{provide:d.JF,useClass:B,deps:[]},[]];let Zt=(()=>{class dt{constructor(we){}static withServerTransition(we){return{ngModule:dt,providers:[{provide:t.AFp,useValue:we.appId}]}}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(Tt,12))};static#t=this.\u0275mod=t.oAB({type:dt});static#n=this.\u0275inj=t.cJS({providers:[...Pt,...et],imports:[d.ez,t.hGG]})}return dt})(),At=(()=>{class dt{constructor(we){this._doc=we}getTitle(){return this._doc.title}setTitle(we){this._doc.title=we||""}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function Ye(){return new At((0,t.LFG)(d.K0))}(),yt},providedIn:"root"})}return dt})();typeof window<"u"&&window;let Cn=(()=>{class dt{static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new(He||dt):t.LFG(In),yt},providedIn:"root"})}return dt})(),In=(()=>{class dt extends Cn{constructor(we){super(),this._doc=we}sanitize(we,He){if(null==He)return null;switch(we){case t.q3G.NONE:return He;case t.q3G.HTML:return(0,t.qzn)(He,"HTML")?(0,t.z3N)(He):(0,t.EiD)(this._doc,String(He)).toString();case t.q3G.STYLE:return(0,t.qzn)(He,"Style")?(0,t.z3N)(He):He;case t.q3G.SCRIPT:if((0,t.qzn)(He,"Script"))return(0,t.z3N)(He);throw new t.vHH(5200,!1);case t.q3G.URL:return(0,t.qzn)(He,"URL")?(0,t.z3N)(He):(0,t.mCW)(String(He));case t.q3G.RESOURCE_URL:if((0,t.qzn)(He,"ResourceURL"))return(0,t.z3N)(He);throw new t.vHH(5201,!1);default:throw new t.vHH(5202,!1)}}bypassSecurityTrustHtml(we){return(0,t.JVY)(we)}bypassSecurityTrustStyle(we){return(0,t.L6k)(we)}bypassSecurityTrustScript(we){return(0,t.eBb)(we)}bypassSecurityTrustUrl(we){return(0,t.LAX)(we)}bypassSecurityTrustResourceUrl(we){return(0,t.pB0)(we)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function An(dt){return new In(dt.get(d.K0))}(t.LFG(t.zs3)),yt},providedIn:"root"})}return dt})()},1523:(Pe,V,a)=>{"use strict";a.d(V,{gz:()=>wi,jw:()=>es,sz:()=>it,m2:()=>X,OD:()=>D,eC:()=>tt,F0:()=>er,rH:()=>Di,Od:()=>ga,Bz:()=>v,lC:()=>bi});var t=a(5879),d=a(2664),w=a(7715),L=a(2096),h=a(5619),O=a(2572);const F=(0,a(2306).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"});var P=a(5211),B=a(4911),$=a(8407),f=a(8504),j=a(6232),M=a(5592),q=a(7394),ie=a(9360),k=a(8251);function Te(){return(0,ie.e)((E,S)=>{let y=null;E._refCount++;const x=(0,k.x)(S,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(y=null);const G=E._connection,he=y;y=null,G&&(!he||G===he)&&G.unsubscribe(),S.unsubscribe()});E.subscribe(x),x.closed||(y=E.connect())})}class Se extends M.y{constructor(S,y){super(),this.source=S,this.subjectFactory=y,this._subject=null,this._refCount=0,this._connection=null,(0,ie.A)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new q.w0;const y=this.getSubject();S.add(this.source.subscribe((0,k.x)(y,void 0,()=>{this._teardown(),y.complete()},x=>{this._teardown(),y.error(x)},()=>this._teardown()))),S.closed&&(this._connection=null,S=q.w0.EMPTY)}return S}refCount(){return Te()(this)}}var ye=a(8645),ce=a(6814),_e=a(7398),ve=a(4664),xe=a(8180),be=a(7921),ke=a(2181),vt=a(1631),rt=a(3572);function Mt(E=qe){return(0,ie.e)((S,y)=>{let x=!1;S.subscribe((0,k.x)(y,G=>{x=!0,y.next(G)},()=>x?y.complete():y.error(E())))})}function qe(){return new F}var _t=a(2737);function $e(E,S){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,(0,xe.q)(1),y?(0,rt.d)(S):Mt(()=>new F))}var Ee=a(6328),Ze=a(9397),J=a(6306),Q=a(6699);function oe(E){return E<=0?()=>j.E:(0,ie.e)((S,y)=>{let x=[];S.subscribe((0,k.x)(y,G=>{x.push(G),E{for(const G of x)y.next(G);y.complete()},void 0,()=>{x=null}))})}var ae=a(975),fe=a(4716),De=a(9773),je=a(7537),Xe=a(6593);const tt="primary",wt=Symbol("RouteTitle");class It{constructor(S){this.params=S||{}}has(S){return Object.prototype.hasOwnProperty.call(this.params,S)}get(S){if(this.has(S)){const y=this.params[S];return Array.isArray(y)?y[0]:y}return null}getAll(S){if(this.has(S)){const y=this.params[S];return Array.isArray(y)?y:[y]}return[]}get keys(){return Object.keys(this.params)}}function Je(E){return new It(E)}function Tt(E,S,y){const x=y.path.split("/");if(x.length>E.length||"full"===y.pathMatch&&(S.hasChildren()||x.lengthx[he]===G)}return E===S}function dn(E){return E.length>0?E[E.length-1]:null}function Rn(E){return(0,d.b)(E)?E:(0,t.QGY)(E)?(0,w.D)(Promise.resolve(E)):(0,L.of)(E)}const We={exact:function nn(E,S,y){if(!Wn(E.segments,S.segments)||!fn(E.segments,S.segments,y)||E.numberOfChildren!==S.numberOfChildren)return!1;for(const x in S.children)if(!E.children[x]||!nn(E.children[x],S.children[x],y))return!1;return!0},subset:Ht},Ye={exact:function xt(E,S){return Pt(E,S)},subset:function Et(E,S){return Object.keys(S).length<=Object.keys(E).length&&Object.keys(S).every(y=>Zt(E[y],S[y]))},ignored:()=>!0};function At(E,S,y){return We[y.paths](E.root,S.root,y.matrixParams)&&Ye[y.queryParams](E.queryParams,S.queryParams)&&!("exact"===y.fragment&&E.fragment!==S.fragment)}function Ht(E,S,y){return zt(E,S,S.segments,y)}function zt(E,S,y,x){if(E.segments.length>y.length){const G=E.segments.slice(0,y.length);return!(!Wn(G,y)||S.hasChildren()||!fn(G,y,x))}if(E.segments.length===y.length){if(!Wn(E.segments,y)||!fn(E.segments,y,x))return!1;for(const G in S.children)if(!E.children[G]||!Ht(E.children[G],S.children[G],x))return!1;return!0}{const G=y.slice(0,E.segments.length),he=y.slice(E.segments.length);return!!(Wn(E.segments,G)&&fn(E.segments,G,x)&&E.children[tt])&&zt(E.children[tt],S,he,x)}}function fn(E,S,y){return S.every((x,G)=>Ye[y](E[G].parameters,x.parameters))}class Sn{constructor(S=new hn([],{}),y={},x=null){this.root=S,this.queryParams=y,this.fragment=x}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return Ut.serialize(this)}}class hn{constructor(S,y){this.segments=S,this.children=y,this.parent=null,Object.values(y).forEach(x=>x.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qt(this)}}class en{constructor(S,y){this.path=S,this.parameters=y}get parameterMap(){return this._parameterMap||(this._parameterMap=Je(this.parameters)),this._parameterMap}toString(){return Ir(this)}}function Wn(E,S){return E.length===S.length&&E.every((y,x)=>y.path===S[x].path)}let Er=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return new it},providedIn:"root"})}return E})();class it{parse(S){const y=new Un(S);return new Sn(y.parseRootSegment(),y.parseQueryParams(),y.parseFragment())}serialize(S){const y=`/${Cn(S.root,!0)}`,x=function oi(E){const S=Object.keys(E).map(y=>{const x=E[y];return Array.isArray(x)?x.map(G=>`${In(y)}=${In(G)}`).join("&"):`${In(y)}=${In(x)}`}).filter(y=>!!y);return S.length?`?${S.join("&")}`:""}(S.queryParams);return`${y}${x}${"string"==typeof S.fragment?`#${function nr(E){return encodeURI(E)}(S.fragment)}`:""}`}}const Ut=new it;function Qt(E){return E.segments.map(S=>Ir(S)).join("/")}function Cn(E,S){if(!E.hasChildren())return Qt(E);if(S){const y=E.children[tt]?Cn(E.children[tt],!1):"",x=[];return Object.entries(E.children).forEach(([G,he])=>{G!==tt&&x.push(`${G}:${Cn(he,!1)}`)}),x.length>0?`${y}(${x.join("//")})`:y}{const y=function _n(E,S){let y=[];return Object.entries(E.children).forEach(([x,G])=>{x===tt&&(y=y.concat(S(G,x)))}),Object.entries(E.children).forEach(([x,G])=>{x!==tt&&(y=y.concat(S(G,x)))}),y}(E,(x,G)=>G===tt?[Cn(E.children[tt],!1)]:[`${G}:${Cn(x,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[tt]?`${Qt(E)}/${y[0]}`:`${Qt(E)}/(${y.join("//")})`}}function An(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function In(E){return An(E).replace(/%3B/gi,";")}function Dr(E){return An(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wr(E){return decodeURIComponent(E)}function Or(E){return wr(E.replace(/\+/g,"%20"))}function Ir(E){return`${Dr(E.path)}${function Br(E){return Object.keys(E).map(S=>`;${Dr(S)}=${Dr(E[S])}`).join("")}(E.parameters)}`}const Zn=/^[^\/()?;#]+/;function dt(E){const S=E.match(Zn);return S?S[0]:""}const ot=/^[^\/()?;=#]+/,He=/^[^=?&#]+/,Wt=/^[^&#]+/;class Un{constructor(S){this.url=S,this.remaining=S}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hn([],{}):new hn([],this.parseChildren())}parseQueryParams(){const S={};if(this.consumeOptional("?"))do{this.parseQueryParam(S)}while(this.consumeOptional("&"));return S}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const S=[];for(this.peekStartsWith("(")||S.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),S.push(this.parseSegment());let y={};this.peekStartsWith("/(")&&(this.capture("/"),y=this.parseParens(!0));let x={};return this.peekStartsWith("(")&&(x=this.parseParens(!1)),(S.length>0||Object.keys(y).length>0)&&(x[tt]=new hn(S,y)),x}parseSegment(){const S=dt(this.remaining);if(""===S&&this.peekStartsWith(";"))throw new t.vHH(4009,!1);return this.capture(S),new en(wr(S),this.parseMatrixParams())}parseMatrixParams(){const S={};for(;this.consumeOptional(";");)this.parseParam(S);return S}parseParam(S){const y=function we(E){const S=E.match(ot);return S?S[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const G=dt(this.remaining);G&&(x=G,this.capture(x))}S[wr(y)]=wr(x)}parseQueryParam(S){const y=function yt(E){const S=E.match(He);return S?S[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const Me=function Vt(E){const S=E.match(Wt);return S?S[0]:""}(this.remaining);Me&&(x=Me,this.capture(x))}const G=Or(y),he=Or(x);if(S.hasOwnProperty(G)){let Me=S[G];Array.isArray(Me)||(Me=[Me],S[G]=Me),Me.push(he)}else S[G]=he}parseParens(S){const y={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const x=dt(this.remaining),G=this.remaining[x.length];if("/"!==G&&")"!==G&&";"!==G)throw new t.vHH(4010,!1);let he;x.indexOf(":")>-1?(he=x.slice(0,x.indexOf(":")),this.capture(he),this.capture(":")):S&&(he=tt);const Me=this.parseChildren();y[he]=1===Object.keys(Me).length?Me[tt]:new hn([],Me),this.consumeOptional("//")}return y}peekStartsWith(S){return this.remaining.startsWith(S)}consumeOptional(S){return!!this.peekStartsWith(S)&&(this.remaining=this.remaining.substring(S.length),!0)}capture(S){if(!this.consumeOptional(S))throw new t.vHH(4011,!1)}}function on(E){return E.segments.length>0?new hn([],{[tt]:E}):E}function rr(E){const S={};for(const x of Object.keys(E.children)){const he=rr(E.children[x]);if(x===tt&&0===he.segments.length&&he.hasChildren())for(const[Me,at]of Object.entries(he.children))S[Me]=at;else(he.segments.length>0||he.hasChildren())&&(S[x]=he)}return function ln(E){if(1===E.numberOfChildren&&E.children[tt]){const S=E.children[tt];return new hn(E.segments.concat(S.segments),S.children)}return E}(new hn(E.segments,S))}function $n(E){return E instanceof Sn}function Le(E){let S;const G=on(function y(he){const Me={};for(const ft of he.children){const tn=y(ft);Me[ft.outlet]=tn}const at=new hn(he.url,Me);return he===E&&(S=at),at}(E.root));return S??G}function Ue(E,S,y,x){let G=E;for(;G.parent;)G=G.parent;if(0===S.length)return kt(G,G,G,y,x);const he=function wn(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new an(!0,0,E);let S=0,y=!1;const x=E.reduce((G,he,Me)=>{if("object"==typeof he&&null!=he){if(he.outlets){const at={};return Object.entries(he.outlets).forEach(([ft,tn])=>{at[ft]="string"==typeof tn?tn.split("/"):tn}),[...G,{outlets:at}]}if(he.segmentPath)return[...G,he.segmentPath]}return"string"!=typeof he?[...G,he]:0===Me?(he.split("/").forEach((at,ft)=>{0==ft&&"."===at||(0==ft&&""===at?y=!0:".."===at?S++:""!=at&&G.push(at))}),G):[...G,he]},[]);return new an(y,S,x)}(S);if(he.toRoot())return kt(G,G,new hn([],{}),y,x);const Me=function jr(E,S,y){if(E.isAbsolute)return new pr(S,!0,0);if(!y)return new pr(S,!1,NaN);if(null===y.parent)return new pr(y,!0,0);const x=bt(E.commands[0])?0:1;return function Fr(E,S,y){let x=E,G=S,he=y;for(;he>G;){if(he-=G,x=x.parent,!x)throw new t.vHH(4005,!1);G=x.segments.length}return new pr(x,!1,G-he)}(y,y.segments.length-1+x,E.numberOfDoubleDots)}(he,G,E),at=Me.processChildren?Zr(Me.segmentGroup,Me.index,he.commands):Hr(Me.segmentGroup,Me.index,he.commands);return kt(G,Me.segmentGroup,at,y,x)}function bt(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Rt(E){return"object"==typeof E&&null!=E&&E.outlets}function kt(E,S,y,x,G){let Me,he={};x&&Object.entries(x).forEach(([ft,tn])=>{he[ft]=Array.isArray(tn)?tn.map(kn=>`${kn}`):`${tn}`}),Me=E===S?y:Ft(E,S,y);const at=on(rr(Me));return new Sn(at,he,G)}function Ft(E,S,y){const x={};return Object.entries(E.children).forEach(([G,he])=>{x[G]=he===S?y:Ft(he,S,y)}),new hn(E.segments,x)}class an{constructor(S,y,x){if(this.isAbsolute=S,this.numberOfDoubleDots=y,this.commands=x,S&&x.length>0&&bt(x[0]))throw new t.vHH(4003,!1);const G=x.find(Rt);if(G&&G!==dn(x))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(S,y,x){this.segmentGroup=S,this.processChildren=y,this.index=x}}function Hr(E,S,y){if(E||(E=new hn([],{})),0===E.segments.length&&E.hasChildren())return Zr(E,S,y);const x=function Xn(E,S,y){let x=0,G=S;const he={match:!1,pathIndex:0,commandIndex:0};for(;G=y.length)return he;const Me=E.segments[G],at=y[x];if(Rt(at))break;const ft=`${at}`,tn=x0&&void 0===ft)break;if(ft&&tn&&"object"==typeof tn&&void 0===tn.outlets){if(!pe(ft,tn,Me))return he;x+=2}else{if(!pe(ft,{},Me))return he;x++}G++}return{match:!0,pathIndex:G,commandIndex:x}}(E,S,y),G=y.slice(x.commandIndex);if(x.match&&x.pathIndexhe!==tt)&&E.children[tt]&&1===E.numberOfChildren&&0===E.children[tt].segments.length){const he=Zr(E.children[tt],S,y);return new hn(E.segments,he.children)}return Object.entries(x).forEach(([he,Me])=>{"string"==typeof Me&&(Me=[Me]),null!==Me&&(G[he]=Hr(E.children[he],S,Me))}),Object.entries(E.children).forEach(([he,Me])=>{void 0===x[he]&&(G[he]=Me)}),new hn(E.segments,G)}}function qn(E,S,y){const x=E.segments.slice(0,S);let G=0;for(;G{"string"==typeof x&&(x=[x]),null!==x&&(S[y]=qn(new hn([],{}),0,x))}),S}function ai(E){const S={};return Object.entries(E).forEach(([y,x])=>S[y]=`${x}`),S}function pe(E,S,y){return E==y.path&&Pt(S,y.parameters)}const Z="imperative";class K{constructor(S,y){this.id=S,this.url=y}}class D extends K{constructor(S,y,x="imperative",G=null){super(S,y),this.type=0,this.navigationTrigger=x,this.restoredState=G}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class X extends K{constructor(S,y,x){super(S,y),this.urlAfterRedirects=x,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class de extends K{constructor(S,y,x,G){super(S,y),this.reason=x,this.code=G,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Oe extends K{constructor(S,y,x,G){super(S,y),this.reason=x,this.code=G,this.type=16}}class Ae extends K{constructor(S,y,x,G){super(S,y),this.error=x,this.target=G,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mt extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $t extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cn extends K{constructor(S,y,x,G,he){super(S,y),this.urlAfterRedirects=x,this.state=G,this.shouldActivate=he,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vn extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class En extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nn{constructor(S){this.route=S,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ir{constructor(S){this.route=S,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _r{constructor(S){this.snapshot=S,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zr{constructor(S){this.snapshot=S,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yr{constructor(S){this.snapshot=S,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class es{constructor(S){this.snapshot=S,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(S,y,x){this.routerEvent=S,this.position=y,this.anchor=x,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ti{}class hs{constructor(S){this.url=S}}class Is{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Bi,this.attachRef=null}}let Bi=(()=>{class E{constructor(){this.contexts=new Map}onChildOutletCreated(y,x){const G=this.getOrCreateContext(y);G.outlet=x,this.contexts.set(y,G)}onChildOutletDestroyed(y){const x=this.getContext(y);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const y=this.contexts;return this.contexts=new Map,y}onOutletReAttached(y){this.contexts=y}getOrCreateContext(y){let x=this.getContext(y);return x||(x=new Is,this.contexts.set(y,x)),x}getContext(y){return this.contexts.get(y)||null}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Gi{constructor(S){this._root=S}get root(){return this._root.value}parent(S){const y=this.pathFromRoot(S);return y.length>1?y[y.length-2]:null}children(S){const y=Vr(S,this._root);return y?y.children.map(x=>x.value):[]}firstChild(S){const y=Vr(S,this._root);return y&&y.children.length>0?y.children[0].value:null}siblings(S){const y=jn(S,this._root);return y.length<2?[]:y[y.length-2].children.map(G=>G.value).filter(G=>G!==S)}pathFromRoot(S){return jn(S,this._root).map(y=>y.value)}}function Vr(E,S){if(E===S.value)return S;for(const y of S.children){const x=Vr(E,y);if(x)return x}return null}function jn(E,S){if(E===S.value)return[S];for(const y of S.children){const x=jn(E,y);if(x.length)return x.unshift(S),x}return[]}class vr{constructor(S,y){this.value=S,this.children=y}toString(){return`TreeNode(${this.value})`}}function Sr(E){const S={};return E&&E.children.forEach(y=>S[y.value.outlet]=y),S}class vi extends Gi{constructor(S,y){super(S),this.snapshot=y,Kt(this,S)}toString(){return this.snapshot.toString()}}function ci(E,S){const y=function ts(E,S){const Me=new Ui([],{},{},"",{},tt,S,null,{});return new xr("",new vr(Me,[]))}(0,S),x=new h.X([new en("",{})]),G=new h.X({}),he=new h.X({}),Me=new h.X({}),at=new h.X(""),ft=new wi(x,G,Me,at,he,tt,S,y.root);return ft.snapshot=y.root,new vi(new vr(ft,[]),y)}class wi{constructor(S,y,x,G,he,Me,at,ft){this.urlSubject=S,this.paramsSubject=y,this.queryParamsSubject=x,this.fragmentSubject=G,this.dataSubject=he,this.outlet=Me,this.component=at,this._futureSnapshot=ft,this.title=this.dataSubject?.pipe((0,_e.U)(tn=>tn[wt]))??(0,L.of)(void 0),this.url=S,this.params=y,this.queryParams=x,this.fragment=G,this.data=he}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,_e.U)(S=>Je(S)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,_e.U)(S=>Je(S)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ui(E,S="emptyOnly"){const y=E.pathFromRoot;let x=0;if("always"!==S)for(x=y.length-1;x>=1;){const G=y[x],he=y[x-1];if(G.routeConfig&&""===G.routeConfig.path)x--;else{if(he.component)break;x--}}return function ys(E){return E.reduce((S,y)=>({params:{...S.params,...y.params},data:{...S.data,...y.data},resolve:{...y.data,...S.resolve,...y.routeConfig?.data,...y._resolvedData}}),{params:{},data:{},resolve:{}})}(y.slice(x))}class Ui{get title(){return this.data?.[wt]}constructor(S,y,x,G,he,Me,at,ft,tn){this.url=S,this.params=y,this.queryParams=x,this.fragment=G,this.data=he,this.outlet=Me,this.component=at,this.routeConfig=ft,this._resolve=tn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Je(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(x=>x.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xr extends Gi{constructor(S,y){super(y),this.url=S,Kt(this,y)}toString(){return Mn(this._root)}}function Kt(E,S){S.value._routerState=E,S.children.forEach(y=>Kt(E,y))}function Mn(E){const S=E.children.length>0?` { ${E.children.map(Mn).join(", ")} } `:"";return`${E.value}${S}`}function hr(E){if(E.snapshot){const S=E.snapshot,y=E._futureSnapshot;E.snapshot=y,Pt(S.queryParams,y.queryParams)||E.queryParamsSubject.next(y.queryParams),S.fragment!==y.fragment&&E.fragmentSubject.next(y.fragment),Pt(S.params,y.params)||E.paramsSubject.next(y.params),function et(E,S){if(E.length!==S.length)return!1;for(let y=0;yPt(y.parameters,S[x].parameters))}(E.url,S.url);return y&&!(!E.parent!=!S.parent)&&(!E.parent||$r(E.parent,S.parent))}let bi=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=tt,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(Bi),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb),this.inputBinder=(0,t.f3M)(ze,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(y){if(y.name){const{firstChange:x,previousValue:G}=y.name;if(x)return;this.isTrackedInParentContexts(G)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(G)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(y){return this.parentContexts.getContext(y)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const y=this.parentContexts.getContext(this.name);y?.route&&(y.attachRef?this.attach(y.attachRef,y.route):this.activateWith(y.route,y.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,!1);this.location.detach();const y=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(y.instance),y}attach(y,x){this.activated=y,this._activatedRoute=x,this.location.insert(y.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(y.instance)}deactivate(){if(this.activated){const y=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(y)}}activateWith(y,x){if(this.isActivated)throw new t.vHH(4013,!1);this._activatedRoute=y;const G=this.location,Me=y.snapshot.component,at=this.parentContexts.getOrCreateContext(this.name).children,ft=new Nr(y,at,G.injector);this.activated=G.createComponent(Me,{index:G.length,injector:ft,environmentInjector:x??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]})}return E})();class Nr{constructor(S,y,x){this.route=S,this.childContexts=y,this.parent=x}get(S,y){return S===wi?this.route:S===Bi?this.childContexts:this.parent.get(S,y)}}const ze=new t.OlP("");let Ve=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(y){this.unsubscribeFromRouteData(y),this.subscribeToRouteData(y)}unsubscribeFromRouteData(y){this.outletDataSubscriptions.get(y)?.unsubscribe(),this.outletDataSubscriptions.delete(y)}subscribeToRouteData(y){const{activatedRoute:x}=y,G=(0,O.a)([x.queryParams,x.params,x.data]).pipe((0,ve.w)(([he,Me,at],ft)=>(at={...he,...Me,...at},0===ft?(0,L.of)(at):Promise.resolve(at)))).subscribe(he=>{if(!y.isActivated||!y.activatedComponentRef||y.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(y);const Me=(0,t.qFp)(x.component);if(Me)for(const{templateName:at}of Me.inputs)y.activatedComponentRef.setInput(at,he[at]);else this.unsubscribeFromRouteData(y)});this.outletDataSubscriptions.set(y,G)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function Yt(E,S,y){if(y&&E.shouldReuseRoute(S.value,y.value.snapshot)){const x=y.value;x._futureSnapshot=S.value;const G=function Bt(E,S,y){return S.children.map(x=>{for(const G of y.children)if(E.shouldReuseRoute(x.value,G.value.snapshot))return Yt(E,x,G);return Yt(E,x)})}(E,S,y);return new vr(x,G)}{if(E.shouldAttach(S.value)){const he=E.retrieve(S.value);if(null!==he){const Me=he.route;return Me.value._futureSnapshot=S.value,Me.children=S.children.map(at=>Yt(E,at)),Me}}const x=function gr(E){return new wi(new h.X(E.url),new h.X(E.params),new h.X(E.queryParams),new h.X(E.fragment),new h.X(E.data),E.outlet,E.component,E)}(S.value),G=S.children.map(he=>Yt(E,he));return new vr(x,G)}}const Si="ngNavigationCancelingError";function Yn(E,S){const{redirectTo:y,navigationBehaviorOptions:x}=$n(S)?{redirectTo:S,navigationBehaviorOptions:void 0}:S,G=sr(!1,0,S);return G.url=y,G.navigationBehaviorOptions=x,G}function sr(E,S,y){const x=new Error("NavigationCancelingError: "+(E||""));return x[Si]=!0,x.cancellationCode=S,y&&(x.url=y),x}function Mi(E){return E&&E[Si]}let di=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275cmp=t.Xpm({type:E,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(x,G){1&x&&t._UZ(0,"router-outlet")},dependencies:[bi],encapsulation:2})}return E})();function rs(E){const S=E.children&&E.children.map(rs),y=S?{...E,children:S}:{...E};return!y.component&&!y.loadComponent&&(S||y.loadChildren)&&y.outlet&&y.outlet!==tt&&(y.component=di),y}function Pr(E){return E.outlet||tt}function Ri(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let S=E.parent;S;S=S.parent){const y=S.routeConfig;if(y?._loadedInjector)return y._loadedInjector;if(y?._injector)return y._injector}return null}class lt{constructor(S,y,x,G,he){this.routeReuseStrategy=S,this.futureState=y,this.currState=x,this.forwardEvent=G,this.inputBindingEnabled=he}activate(S){const y=this.futureState._root,x=this.currState?this.currState._root:null;this.deactivateChildRoutes(y,x,S),hr(this.futureState.root),this.activateChildRoutes(y,x,S)}deactivateChildRoutes(S,y,x){const G=Sr(y);S.children.forEach(he=>{const Me=he.value.outlet;this.deactivateRoutes(he,G[Me],x),delete G[Me]}),Object.values(G).forEach(he=>{this.deactivateRouteAndItsChildren(he,x)})}deactivateRoutes(S,y,x){const G=S.value,he=y?y.value:null;if(G===he)if(G.component){const Me=x.getContext(G.outlet);Me&&this.deactivateChildRoutes(S,y,Me.children)}else this.deactivateChildRoutes(S,y,x);else he&&this.deactivateRouteAndItsChildren(y,x)}deactivateRouteAndItsChildren(S,y){S.value.component&&this.routeReuseStrategy.shouldDetach(S.value.snapshot)?this.detachAndStoreRouteSubtree(S,y):this.deactivateRouteAndOutlet(S,y)}detachAndStoreRouteSubtree(S,y){const x=y.getContext(S.value.outlet),G=x&&S.value.component?x.children:y,he=Sr(S);for(const Me of Object.keys(he))this.deactivateRouteAndItsChildren(he[Me],G);if(x&&x.outlet){const Me=x.outlet.detach(),at=x.children.onOutletDeactivated();this.routeReuseStrategy.store(S.value.snapshot,{componentRef:Me,route:S,contexts:at})}}deactivateRouteAndOutlet(S,y){const x=y.getContext(S.value.outlet),G=x&&S.value.component?x.children:y,he=Sr(S);for(const Me of Object.keys(he))this.deactivateRouteAndItsChildren(he[Me],G);x&&(x.outlet&&(x.outlet.deactivate(),x.children.onOutletDeactivated()),x.attachRef=null,x.route=null)}activateChildRoutes(S,y,x){const G=Sr(y);S.children.forEach(he=>{this.activateRoutes(he,G[he.value.outlet],x),this.forwardEvent(new es(he.value.snapshot))}),S.children.length&&this.forwardEvent(new zr(S.value.snapshot))}activateRoutes(S,y,x){const G=S.value,he=y?y.value:null;if(hr(G),G===he)if(G.component){const Me=x.getOrCreateContext(G.outlet);this.activateChildRoutes(S,y,Me.children)}else this.activateChildRoutes(S,y,x);else if(G.component){const Me=x.getOrCreateContext(G.outlet);if(this.routeReuseStrategy.shouldAttach(G.snapshot)){const at=this.routeReuseStrategy.retrieve(G.snapshot);this.routeReuseStrategy.store(G.snapshot,null),Me.children.onOutletReAttached(at.contexts),Me.attachRef=at.componentRef,Me.route=at.route.value,Me.outlet&&Me.outlet.attach(at.componentRef,at.route.value),hr(at.route.value),this.activateChildRoutes(S,null,Me.children)}else{const at=Ri(G.snapshot);Me.attachRef=null,Me.route=G,Me.injector=at,Me.outlet&&Me.outlet.activateWith(G,Me.injector),this.activateChildRoutes(S,null,Me.children)}}else this.activateChildRoutes(S,null,x)}}class Ot{constructor(S){this.path=S,this.route=this.path[this.path.length-1]}}class qt{constructor(S,y){this.component=S,this.route=y}}function Kr(E,S,y){const x=E._root;return fi(x,S?S._root:null,y,[x.value])}function ms(E,S){const y=Symbol(),x=S.get(E,y);return x===y?"function"!=typeof E||(0,t.Z0I)(E)?S.get(E):E:x}function fi(E,S,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=Sr(S);return E.children.forEach(Me=>{(function Hs(E,S,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=E.value,Me=S?S.value:null,at=y?y.getContext(E.value.outlet):null;if(Me&&he.routeConfig===Me.routeConfig){const ft=function po(E,S,y){if("function"==typeof y)return y(E,S);switch(y){case"pathParamsChange":return!Wn(E.url,S.url);case"pathParamsOrQueryParamsChange":return!Wn(E.url,S.url)||!Pt(E.queryParams,S.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$r(E,S)||!Pt(E.queryParams,S.queryParams);default:return!$r(E,S)}}(Me,he,he.routeConfig.runGuardsAndResolvers);ft?G.canActivateChecks.push(new Ot(x)):(he.data=Me.data,he._resolvedData=Me._resolvedData),fi(E,S,he.component?at?at.children:null:y,x,G),ft&&at&&at.outlet&&at.outlet.isActivated&&G.canDeactivateChecks.push(new qt(at.outlet.component,Me))}else Me&&Ds(S,at,G),G.canActivateChecks.push(new Ot(x)),fi(E,null,he.component?at?at.children:null:y,x,G)})(Me,he[Me.value.outlet],y,x.concat([Me.value]),G),delete he[Me.value.outlet]}),Object.entries(he).forEach(([Me,at])=>Ds(at,y.getContext(Me),G)),G}function Ds(E,S,y){const x=Sr(E),G=E.value;Object.entries(x).forEach(([he,Me])=>{Ds(Me,G.component?S?S.children.getContext(he):null:S,y)}),y.canDeactivateChecks.push(new qt(G.component&&S&&S.outlet&&S.outlet.isActivated?S.outlet.component:null,G))}function Xs(E){return"function"==typeof E}function zn(E){return E instanceof F||"EmptyError"===E?.name}const Ni=Symbol("INITIAL_VALUE");function is(){return(0,ve.w)(E=>(0,O.a)(E.map(S=>S.pipe((0,xe.q)(1),(0,be.O)(Ni)))).pipe((0,_e.U)(S=>{for(const y of S)if(!0!==y){if(y===Ni)return Ni;if(!1===y||y instanceof Sn)return y}return!0}),(0,ke.h)(S=>S!==Ni),(0,xe.q)(1)))}function as(E){return(0,$.z)((0,Ze.b)(S=>{if($n(S))throw Yn(0,S)}),(0,_e.U)(S=>!0===S))}class Ki{constructor(S){this.segmentGroup=S||null}}class pi{constructor(S){this.urlTree=S}}function ls(E){return(0,f._)(new Ki(E))}function yi(E){return(0,f._)(new pi(E))}class Ps{constructor(S,y){this.urlSerializer=S,this.urlTree=y}noMatchError(S){return new t.vHH(4002,!1)}lineralizeSegments(S,y){let x=[],G=y.root;for(;;){if(x=x.concat(G.segments),0===G.numberOfChildren)return(0,L.of)(x);if(G.numberOfChildren>1||!G.children[tt])return(0,f._)(new t.vHH(4e3,!1));G=G.children[tt]}}applyRedirectCommands(S,y,x){return this.applyRedirectCreateUrlTree(y,this.urlSerializer.parse(y),S,x)}applyRedirectCreateUrlTree(S,y,x,G){const he=this.createSegmentGroup(S,y.root,x,G);return new Sn(he,this.createQueryParams(y.queryParams,this.urlTree.queryParams),y.fragment)}createQueryParams(S,y){const x={};return Object.entries(S).forEach(([G,he])=>{if("string"==typeof he&&he.startsWith(":")){const at=he.substring(1);x[G]=y[at]}else x[G]=he}),x}createSegmentGroup(S,y,x,G){const he=this.createSegments(S,y.segments,x,G);let Me={};return Object.entries(y.children).forEach(([at,ft])=>{Me[at]=this.createSegmentGroup(S,ft,x,G)}),new hn(he,Me)}createSegments(S,y,x,G){return y.map(he=>he.path.startsWith(":")?this.findPosParam(S,he,G):this.findOrReturn(he,x))}findPosParam(S,y,x){const G=x[y.path.substring(1)];if(!G)throw new t.vHH(4001,!1);return G}findOrReturn(S,y){let x=0;for(const G of y){if(G.path===S.path)return y.splice(x),G;x++}return S}}const ro={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function io(E,S,y,x,G){const he=go(E,S,y);return he.matched?(x=function ns(E,S){return E.providers&&!E._injector&&(E._injector=(0,t.MMx)(E.providers,S,`Route: ${E.path}`)),E._injector??S}(S,x),function To(E,S,y,x){const G=S.canMatch;if(!G||0===G.length)return(0,L.of)(!0);const he=G.map(Me=>{const at=ms(Me,E);return Rn(function ge(E){return E&&Xs(E.canMatch)}(at)?at.canMatch(S,y):E.runInContext(()=>at(S,y)))});return(0,L.of)(he).pipe(is(),as())}(x,S,y).pipe((0,_e.U)(Me=>!0===Me?he:{...ro}))):(0,L.of)(he)}function go(E,S,y){if(""===S.path)return"full"===S.pathMatch&&(E.hasChildren()||y.length>0)?{...ro}:{matched:!0,consumedSegments:[],remainingSegments:y,parameters:{},positionalParamSegments:{}};const G=(S.matcher||Tt)(y,E,S);if(!G)return{...ro};const he={};Object.entries(G.posParams??{}).forEach(([at,ft])=>{he[at]=ft.path});const Me=G.consumed.length>0?{...he,...G.consumed[G.consumed.length-1].parameters}:he;return{matched:!0,consumedSegments:G.consumed,remainingSegments:y.slice(G.consumed.length),parameters:Me,positionalParamSegments:G.posParams??{}}}function wo(E,S,y,x){return y.length>0&&function ca(E,S,y){return y.some(x=>Cs(E,S,x)&&Pr(x)!==tt)}(E,y,x)?{segmentGroup:new hn(S,so(x,new hn(y,E.children))),slicedSegments:[]}:0===y.length&&function ua(E,S,y){return y.some(x=>Cs(E,S,x))}(E,y,x)?{segmentGroup:new hn(E.segments,So(E,0,y,x,E.children)),slicedSegments:y}:{segmentGroup:new hn(E.segments,E.children),slicedSegments:y}}function So(E,S,y,x,G){const he={};for(const Me of x)if(Cs(E,y,Me)&&!G[Pr(Me)]){const at=new hn([],{});he[Pr(Me)]=at}return{...G,...he}}function so(E,S){const y={};y[tt]=S;for(const x of E)if(""===x.path&&Pr(x)!==tt){const G=new hn([],{});y[Pr(x)]=G}return y}function Cs(E,S,y){return(!(E.hasChildren()||S.length>0)||"full"!==y.pathMatch)&&""===y.path}class fa{constructor(S,y,x,G,he,Me,at){this.injector=S,this.configLoader=y,this.rootComponentType=x,this.config=G,this.urlTree=he,this.paramsInheritanceStrategy=Me,this.urlSerializer=at,this.allowRedirects=!0,this.applyRedirects=new Ps(this.urlSerializer,this.urlTree)}noMatchError(S){return new t.vHH(4002,!1)}recognize(){const S=wo(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,S,tt).pipe((0,J.K)(y=>{if(y instanceof pi)return this.allowRedirects=!1,this.urlTree=y.urlTree,this.match(y.urlTree);throw y instanceof Ki?this.noMatchError(y):y}),(0,_e.U)(y=>{const x=new Ui([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,{}),G=new vr(x,y),he=new xr("",G),Me=function Qe(E,S,y=null,x=null){return Ue(Le(E),S,y,x)}(x,[],this.urlTree.queryParams,this.urlTree.fragment);return Me.queryParams=this.urlTree.queryParams,he.url=this.urlSerializer.serialize(Me),this.inheritParamsAndData(he._root),{state:he,tree:Me}}))}match(S){return this.processSegmentGroup(this.injector,this.config,S.root,tt).pipe((0,J.K)(x=>{throw x instanceof Ki?this.noMatchError(x):x}))}inheritParamsAndData(S){const y=S.value,x=ui(y,this.paramsInheritanceStrategy);y.params=Object.freeze(x.params),y.data=Object.freeze(x.data),S.children.forEach(G=>this.inheritParamsAndData(G))}processSegmentGroup(S,y,x,G){return 0===x.segments.length&&x.hasChildren()?this.processChildren(S,y,x):this.processSegment(S,y,x,x.segments,G,!0)}processChildren(S,y,x){const G=[];for(const he of Object.keys(x.children))"primary"===he?G.unshift(he):G.push(he);return(0,w.D)(G).pipe((0,Ee.b)(he=>{const Me=x.children[he],at=function gs(E,S){const y=E.filter(x=>Pr(x)===S);return y.push(...E.filter(x=>Pr(x)!==S)),y}(y,he);return this.processSegmentGroup(S,at,Me,he)}),(0,Q.R)((he,Me)=>(he.push(...Me),he)),(0,rt.d)(null),function se(E,S){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,oe(1),y?(0,rt.d)(S):Mt(()=>new F))}(),(0,vt.z)(he=>{if(null===he)return ls(x);const Me=Zo(he);return function pa(E){E.sort((S,y)=>S.value.outlet===tt?-1:y.value.outlet===tt?1:S.value.outlet.localeCompare(y.value.outlet))}(Me),(0,L.of)(Me)}))}processSegment(S,y,x,G,he,Me){return(0,w.D)(y).pipe((0,Ee.b)(at=>this.processSegmentAgainstRoute(at._injector??S,y,at,x,G,he,Me).pipe((0,J.K)(ft=>{if(ft instanceof Ki)return(0,L.of)(null);throw ft}))),$e(at=>!!at),(0,J.K)(at=>{if(zn(at))return function Rs(E,S,y){return 0===S.length&&!E.children[y]}(x,G,he)?(0,L.of)([]):ls(x);throw at}))}processSegmentAgainstRoute(S,y,x,G,he,Me,at){return function mo(E,S,y,x){return!!(Pr(E)===x||x!==tt&&Cs(S,y,E))&&("**"===E.path||go(S,E,y).matched)}(x,G,he,Me)?void 0===x.redirectTo?this.matchSegmentAgainstRoute(S,G,x,he,Me,at):at&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(S,G,y,x,he,Me):ls(G):ls(G)}expandSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me){return"**"===G.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(S,x,G,Me):this.expandRegularSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me)}expandWildCardWithParamsAgainstRouteUsingRedirect(S,y,x,G){const he=this.applyRedirects.applyRedirectCommands([],x.redirectTo,{});return x.redirectTo.startsWith("/")?yi(he):this.applyRedirects.lineralizeSegments(x,he).pipe((0,vt.z)(Me=>{const at=new hn(Me,{});return this.processSegment(S,y,at,Me,G,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me){const{matched:at,consumedSegments:ft,remainingSegments:tn,positionalParamSegments:kn}=go(y,G,he);if(!at)return ls(y);const Rr=this.applyRedirects.applyRedirectCommands(ft,G.redirectTo,kn);return G.redirectTo.startsWith("/")?yi(Rr):this.applyRedirects.lineralizeSegments(G,Rr).pipe((0,vt.z)(or=>this.processSegment(S,x,y,or.concat(tn),Me,!1)))}matchSegmentAgainstRoute(S,y,x,G,he,Me){let at;if("**"===x.path){const ft=G.length>0?dn(G).parameters:{},tn=new Ui(G,ft,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x));at=(0,L.of)({snapshot:tn,consumedSegments:[],remainingSegments:[]}),y.children={}}else at=io(y,x,G,S).pipe((0,_e.U)(({matched:ft,consumedSegments:tn,remainingSegments:kn,parameters:Rr})=>ft?{snapshot:new Ui(tn,Rr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x)),consumedSegments:tn,remainingSegments:kn}:null));return at.pipe((0,ve.w)(ft=>null===ft?ls(y):this.getChildConfig(S=x._injector??S,x,G).pipe((0,ve.w)(({routes:tn})=>{const kn=x._loadedInjector??S,{snapshot:Rr,consumedSegments:or,remainingSegments:hi}=ft,{segmentGroup:Gs,slicedSegments:Ns}=wo(y,or,hi,tn);if(0===Ns.length&&Gs.hasChildren())return this.processChildren(kn,tn,Gs).pipe((0,_e.U)(On=>null===On?null:[new vr(Rr,On)]));if(0===tn.length&&0===Ns.length)return(0,L.of)([new vr(Rr,[])]);const mn=Pr(x)===he;return this.processSegment(kn,tn,Gs,Ns,mn?tt:he,!0).pipe((0,_e.U)(On=>[new vr(Rr,On)]))}))))}getChildConfig(S,y,x){return y.children?(0,L.of)({routes:y.children,injector:S}):y.loadChildren?void 0!==y._loadedRoutes?(0,L.of)({routes:y._loadedRoutes,injector:y._loadedInjector}):function os(E,S,y,x){const G=S.canLoad;if(void 0===G||0===G.length)return(0,L.of)(!0);const he=G.map(Me=>{const at=ms(Me,E);return Rn(function qs(E){return E&&Xs(E.canLoad)}(at)?at.canLoad(S,y):E.runInContext(()=>at(S,y)))});return(0,L.of)(he).pipe(is(),as())}(S,y,x).pipe((0,vt.z)(G=>G?this.configLoader.loadChildren(S,y).pipe((0,Ze.b)(he=>{y._loadedRoutes=he.routes,y._loadedInjector=he.injector})):function Li(E){return(0,f._)(sr(!1,3))}())):(0,L.of)({routes:[],injector:S})}}function hl(E){const S=E.value.routeConfig;return S&&""===S.path}function Zo(E){const S=[],y=new Set;for(const x of E){if(!hl(x)){S.push(x);continue}const G=S.find(he=>x.value.routeConfig===he.value.routeConfig);void 0!==G?(G.children.push(...x.children),y.add(G)):S.push(x)}for(const x of y){const G=Zo(x.children);S.push(new vr(x.value,G))}return S.filter(x=>!y.has(x))}function zo(E){return E.data||{}}function Ko(E){return E.resolve||{}}function xo(E){return"string"==typeof E.title||null===E.title}function T(E){return(0,ve.w)(S=>{const y=E(S);return y?(0,w.D)(y).pipe((0,_e.U)(()=>S)):(0,L.of)(S)})}const le=new t.OlP("ROUTES");let U=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(y){if(this.componentLoaders.get(y))return this.componentLoaders.get(y);if(y._loadedComponent)return(0,L.of)(y._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(y);const x=Rn(y.loadComponent()).pipe((0,_e.U)(gt),(0,Ze.b)(he=>{this.onLoadEndListener&&this.onLoadEndListener(y),y._loadedComponent=he}),(0,fe.x)(()=>{this.componentLoaders.delete(y)})),G=new Se(x,()=>new ye.x).pipe(Te());return this.componentLoaders.set(y,G),G}loadChildren(y,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,L.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const he=function ee(E,S,y,x){return Rn(E.loadChildren()).pipe((0,_e.U)(gt),(0,vt.z)(G=>G instanceof t.YKP||Array.isArray(G)?(0,L.of)(G):(0,w.D)(S.compileModuleAsync(G))),(0,_e.U)(G=>{x&&x(E);let he,Me,at=!1;return Array.isArray(G)?(Me=G,!0):(he=G.create(y).injector,Me=he.get(le,[],{optional:!0,self:!0}).flat()),{routes:Me.map(rs),injector:he}}))}(x,this.compiler,y,this.onLoadEndListener).pipe((0,fe.x)(()=>{this.childrenLoaders.delete(x)})),Me=new Se(he,()=>new ye.x).pipe(Te());return this.childrenLoaders.set(x,Me),Me}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function gt(E){return function Ie(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let Ct=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye.x,this.transitionAbortSubject=new ye.x,this.configLoader=(0,t.f3M)(U),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(Er),this.rootContexts=(0,t.f3M)(Bi),this.inputBindingEnabled=null!==(0,t.f3M)(ze,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=G=>this.events.next(new ir(G)),this.configLoader.onLoadStartListener=G=>this.events.next(new Nn(G))}complete(){this.transitions?.complete()}handleNavigationRequest(y){const x=++this.navigationId;this.transitions?.next({...this.transitions.value,...y,id:x})}setupNavigations(y,x,G){return this.transitions=new h.X({id:0,currentUrlTree:x,currentRawUrl:x,currentBrowserUrl:x,extractedUrl:y.urlHandlingStrategy.extract(x),urlAfterRedirects:y.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Z,restoredState:null,currentSnapshot:G.snapshot,targetSnapshot:null,currentRouterState:G,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ke.h)(he=>0!==he.id),(0,_e.U)(he=>({...he,extractedUrl:y.urlHandlingStrategy.extract(he.rawUrl)})),(0,ve.w)(he=>{this.currentTransition=he;let Me=!1,at=!1;return(0,L.of)(he).pipe((0,Ze.b)(ft=>{this.currentNavigation={id:ft.id,initialUrl:ft.rawUrl,extractedUrl:ft.extractedUrl,trigger:ft.source,extras:ft.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(ft=>{const tn=ft.currentBrowserUrl.toString(),kn=!y.navigated||ft.extractedUrl.toString()!==tn||tn!==ft.currentUrlTree.toString();if(!kn&&"reload"!==(ft.extras.onSameUrlNavigation??y.onSameUrlNavigation)){const or="";return this.events.next(new Oe(ft.id,this.urlSerializer.serialize(ft.rawUrl),or,0)),ft.resolve(null),j.E}if(y.urlHandlingStrategy.shouldProcessUrl(ft.rawUrl))return(0,L.of)(ft).pipe((0,ve.w)(or=>{const hi=this.transitions?.getValue();return this.events.next(new D(or.id,this.urlSerializer.serialize(or.extractedUrl),or.source,or.restoredState)),hi!==this.transitions?.getValue()?j.E:Promise.resolve(or)}),function _o(E,S,y,x,G,he){return(0,vt.z)(Me=>function da(E,S,y,x,G,he,Me="emptyOnly"){return new fa(E,S,y,x,G,Me,he).recognize()}(E,S,y,x,Me.extractedUrl,G,he).pipe((0,_e.U)(({state:at,tree:ft})=>({...Me,targetSnapshot:at,urlAfterRedirects:ft}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,y.config,this.urlSerializer,y.paramsInheritanceStrategy),(0,Ze.b)(or=>{he.targetSnapshot=or.targetSnapshot,he.urlAfterRedirects=or.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:or.urlAfterRedirects};const hi=new mt(or.id,this.urlSerializer.serialize(or.extractedUrl),this.urlSerializer.serialize(or.urlAfterRedirects),or.targetSnapshot);this.events.next(hi)}));if(kn&&y.urlHandlingStrategy.shouldProcessUrl(ft.currentRawUrl)){const{id:or,extractedUrl:hi,source:Gs,restoredState:Ns,extras:mn}=ft,On=new D(or,this.urlSerializer.serialize(hi),Gs,Ns);this.events.next(On);const bn=ci(0,this.rootComponentType).snapshot;return this.currentTransition=he={...ft,targetSnapshot:bn,urlAfterRedirects:hi,extras:{...mn,skipLocationChange:!1,replaceUrl:!1}},(0,L.of)(he)}{const or="";return this.events.next(new Oe(ft.id,this.urlSerializer.serialize(ft.extractedUrl),or,1)),ft.resolve(null),j.E}}),(0,Ze.b)(ft=>{const tn=new $t(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects),ft.targetSnapshot);this.events.next(tn)}),(0,_e.U)(ft=>(this.currentTransition=he={...ft,guards:Kr(ft.targetSnapshot,ft.currentSnapshot,this.rootContexts)},he)),function eo(E,S){return(0,vt.z)(y=>{const{targetSnapshot:x,currentSnapshot:G,guards:{canActivateChecks:he,canDeactivateChecks:Me}}=y;return 0===Me.length&&0===he.length?(0,L.of)({...y,guardsResult:!0}):function Pa(E,S,y,x){return(0,w.D)(E).pipe((0,vt.z)(G=>function ho(E,S,y,x,G){const he=S&&S.routeConfig?S.routeConfig.canDeactivate:null;if(!he||0===he.length)return(0,L.of)(!0);const Me=he.map(at=>{const ft=Ri(S)??G,tn=ms(at,ft);return Rn(function N(E){return E&&Xs(E.canDeactivate)}(tn)?tn.canDeactivate(E,S,y,x):ft.runInContext(()=>tn(E,S,y,x))).pipe($e())});return(0,L.of)(Me).pipe(is())}(G.component,G.route,y,S,x)),$e(G=>!0!==G,!0))}(Me,x,G,E).pipe((0,vt.z)(at=>at&&function Co(E){return"boolean"==typeof E}(at)?function ss(E,S,y,x){return(0,w.D)(S).pipe((0,Ee.b)(G=>(0,P.z)(function Vs(E,S){return null!==E&&S&&S(new _r(E)),(0,L.of)(!0)}(G.route.parent,x),function to(E,S){return null!==E&&S&&S(new Yr(E)),(0,L.of)(!0)}(G.route,x),function Ra(E,S,y){const x=S[S.length-1],he=S.slice(0,S.length-1).reverse().map(Me=>function ji(E){const S=E.routeConfig?E.routeConfig.canActivateChild:null;return S&&0!==S.length?{node:E,guards:S}:null}(Me)).filter(Me=>null!==Me).map(Me=>(0,B.P)(()=>{const at=Me.guards.map(ft=>{const tn=Ri(Me.node)??y,kn=ms(ft,tn);return Rn(function re(E){return E&&Xs(E.canActivateChild)}(kn)?kn.canActivateChild(x,E):tn.runInContext(()=>kn(x,E))).pipe($e())});return(0,L.of)(at).pipe(is())}));return(0,L.of)(he).pipe(is())}(E,G.path,y),function Go(E,S,y){const x=S.routeConfig?S.routeConfig.canActivate:null;if(!x||0===x.length)return(0,L.of)(!0);const G=x.map(he=>(0,B.P)(()=>{const Me=Ri(S)??y,at=ms(he,Me);return Rn(function Y(E){return E&&Xs(E.canActivate)}(at)?at.canActivate(S,E):Me.runInContext(()=>at(S,E))).pipe($e())}));return(0,L.of)(G).pipe(is())}(E,G.route,y))),$e(G=>!0!==G,!0))}(x,he,E,S):(0,L.of)(at)),(0,_e.U)(at=>({...y,guardsResult:at})))})}(this.environmentInjector,ft=>this.events.next(ft)),(0,Ze.b)(ft=>{if(he.guardsResult=ft.guardsResult,$n(ft.guardsResult))throw Yn(0,ft.guardsResult);const tn=new cn(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects),ft.targetSnapshot,!!ft.guardsResult);this.events.next(tn)}),(0,ke.h)(ft=>!!ft.guardsResult||(this.cancelNavigationTransition(ft,"",3),!1)),T(ft=>{if(ft.guards.canActivateChecks.length)return(0,L.of)(ft).pipe((0,Ze.b)(tn=>{const kn=new vn(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(kn)}),(0,ve.w)(tn=>{let kn=!1;return(0,L.of)(tn).pipe(function ha(E,S){return(0,vt.z)(y=>{const{targetSnapshot:x,guards:{canActivateChecks:G}}=y;if(!G.length)return(0,L.of)(y);let he=0;return(0,w.D)(G).pipe((0,Ee.b)(Me=>function Ao(E,S,y,x){const G=E.routeConfig,he=E._resolve;return void 0!==G?.title&&!xo(G)&&(he[wt]=G.title),function Na(E,S,y,x){const G=function La(E){return[...Object.keys(E),...Object.getOwnPropertySymbols(E)]}(E);if(0===G.length)return(0,L.of)({});const he={};return(0,w.D)(G).pipe((0,vt.z)(Me=>function oo(E,S,y,x){const G=Ri(S)??x,he=ms(E,G);return Rn(he.resolve?he.resolve(S,y):G.runInContext(()=>he(S,y)))}(E[Me],S,y,x).pipe($e(),(0,Ze.b)(at=>{he[Me]=at}))),oe(1),(0,ae.h)(he),(0,J.K)(Me=>zn(Me)?j.E:(0,f._)(Me)))}(he,E,S,x).pipe((0,_e.U)(Me=>(E._resolvedData=Me,E.data=ui(E,y).resolve,G&&xo(G)&&(E.data[wt]=G.title),null)))}(Me.route,x,E,S)),(0,Ze.b)(()=>he++),oe(1),(0,vt.z)(Me=>he===G.length?(0,L.of)(y):j.E))})}(y.paramsInheritanceStrategy,this.environmentInjector),(0,Ze.b)({next:()=>kn=!0,complete:()=>{kn||this.cancelNavigationTransition(tn,"",2)}}))}),(0,Ze.b)(tn=>{const kn=new En(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(kn)}))}),T(ft=>{const tn=kn=>{const Rr=[];kn.routeConfig?.loadComponent&&!kn.routeConfig._loadedComponent&&Rr.push(this.configLoader.loadComponent(kn.routeConfig).pipe((0,Ze.b)(or=>{kn.component=or}),(0,_e.U)(()=>{})));for(const or of kn.children)Rr.push(...tn(or));return Rr};return(0,O.a)(tn(ft.targetSnapshot.root)).pipe((0,rt.d)(),(0,xe.q)(1))}),T(()=>this.afterPreactivation()),(0,_e.U)(ft=>{const tn=function ct(E,S,y){const x=Yt(E,S._root,y?y._root:void 0);return new vi(x,S)}(y.routeReuseStrategy,ft.targetSnapshot,ft.currentRouterState);return this.currentTransition=he={...ft,targetRouterState:tn},he}),(0,Ze.b)(()=>{this.events.next(new Ti)}),((E,S,y,x)=>(0,_e.U)(G=>(new lt(S,G.targetRouterState,G.currentRouterState,y,x).activate(E),G)))(this.rootContexts,y.routeReuseStrategy,ft=>this.events.next(ft),this.inputBindingEnabled),(0,xe.q)(1),(0,Ze.b)({next:ft=>{Me=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects))),y.titleStrategy?.updateTitle(ft.targetRouterState.snapshot),ft.resolve(!0)},complete:()=>{Me=!0}}),(0,De.R)(this.transitionAbortSubject.pipe((0,Ze.b)(ft=>{throw ft}))),(0,fe.x)(()=>{Me||at||this.cancelNavigationTransition(he,"",1),this.currentNavigation?.id===he.id&&(this.currentNavigation=null)}),(0,J.K)(ft=>{if(at=!0,Mi(ft))this.events.next(new de(he.id,this.urlSerializer.serialize(he.extractedUrl),ft.message,ft.cancellationCode)),function Wr(E){return Mi(E)&&$n(E.url)}(ft)?this.events.next(new hs(ft.url)):he.resolve(!1);else{this.events.next(new Ae(he.id,this.urlSerializer.serialize(he.extractedUrl),ft,he.targetSnapshot??void 0));try{he.resolve(y.errorHandler(ft))}catch(tn){he.reject(tn)}}return j.E}))}))}cancelNavigationTransition(y,x,G){const he=new de(y.id,this.urlSerializer.serialize(y.extractedUrl),x,G);this.events.next(he),y.resolve(!1)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Jt(E){return E!==Z}let Bn=(()=>{class E{buildTitle(y){let x,G=y.root;for(;void 0!==G;)x=this.getResolvedTitleForRoute(G)??x,G=G.children.find(he=>he.outlet===tt);return x}getResolvedTitleForRoute(y){return y.data[wt]}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(dr)},providedIn:"root"})}return E})(),dr=(()=>{class E extends Bn{constructor(y){super(),this.title=y}updateTitle(y){const x=this.buildTitle(y);void 0!==x&&this.title.setTitle(x)}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(Xe.Dx))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),yr=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Jr)},providedIn:"root"})}return E})();class Kn{shouldDetach(S){return!1}store(S,y){}shouldAttach(S){return!1}retrieve(S){return null}shouldReuseRoute(S,y){return S.routeConfig===y.routeConfig}}let Jr=(()=>{class E extends Kn{static#e=this.\u0275fac=function(){let y;return function(G){return(y||(y=t.n5z(E)))(G||E)}}();static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const Jn=new t.OlP("",{providedIn:"root",factory:()=>({})});let ei=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Ei)},providedIn:"root"})}return E})(),Ei=(()=>{class E{shouldProcessUrl(y){return!0}extract(y){return y}merge(y,x){return y}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var Ai=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(Ai||{});function Hi(E,S){E.events.pipe((0,ke.h)(y=>y instanceof X||y instanceof de||y instanceof Ae||y instanceof Oe),(0,_e.U)(y=>y instanceof X||y instanceof Oe?Ai.COMPLETE:y instanceof de&&(0===y.code||1===y.code)?Ai.REDIRECTING:Ai.FAILED),(0,ke.h)(y=>y!==Ai.REDIRECTING),(0,xe.q)(1)).subscribe(()=>{S()})}function Fi(E){throw E}function ti(E,S,y){return S.parse("/")}const cs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ts={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let er=(()=>{class E{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this._events=new ye.x,this.options=(0,t.f3M)(Jn,{optional:!0})||{},this.pendingTasks=(0,t.f3M)(t.HDt),this.errorHandler=this.options.errorHandler||Fi,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ti,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(ei),this.routeReuseStrategy=(0,t.f3M)(yr),this.titleStrategy=(0,t.f3M)(Bn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,t.f3M)(le,{optional:!0})?.flat()??[],this.navigationTransitions=(0,t.f3M)(Ct),this.urlSerializer=(0,t.f3M)(Er),this.location=(0,t.f3M)(ce.Ye),this.componentInputBindingEnabled=!!(0,t.f3M)(ze,{optional:!0}),this.eventsSubscription=new q.w0,this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Sn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ci(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(y=>{this.lastSuccessfulId=y.id,this.currentPageId=this.browserPageId},y=>{this.console.warn(`Unhandled Navigation Error: ${y}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const y=this.navigationTransitions.events.subscribe(x=>{try{const{currentTransition:G}=this.navigationTransitions;if(null===G)return void(li(x)&&this._events.next(x));if(x instanceof D)Jt(G.source)&&(this.browserUrlTree=G.extractedUrl);else if(x instanceof Oe)this.rawUrlTree=G.rawUrl;else if(x instanceof mt){if("eager"===this.urlUpdateStrategy){if(!G.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl);this.setBrowserUrl(he,G)}this.browserUrlTree=G.urlAfterRedirects}}else if(x instanceof Ti)this.currentUrlTree=G.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl),this.routerState=G.targetRouterState,"deferred"===this.urlUpdateStrategy&&(G.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,G),this.browserUrlTree=G.urlAfterRedirects);else if(x instanceof de)0!==x.code&&1!==x.code&&(this.navigated=!0),(3===x.code||2===x.code)&&this.restoreHistory(G);else if(x instanceof hs){const he=this.urlHandlingStrategy.merge(x.url,G.currentRawUrl),Me={skipLocationChange:G.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Jt(G.source)};this.scheduleNavigation(he,Z,null,Me,{resolve:G.resolve,reject:G.reject,promise:G.promise})}x instanceof Ae&&this.restoreHistory(G,!0),x instanceof X&&(this.navigated=!0),li(x)&&this._events.next(x)}catch(G){this.navigationTransitions.transitionAbortSubject.next(G)}});this.eventsSubscription.add(y)}resetRootComponentType(y){this.routerState.root.component=y,this.navigationTransitions.rootComponentType=y}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const y=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Z,y)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(y=>{const x="popstate"===y.type?"popstate":"hashchange";"popstate"===x&&setTimeout(()=>{this.navigateToSyncWithBrowser(y.url,x,y.state)},0)}))}navigateToSyncWithBrowser(y,x,G){const he={replaceUrl:!0},Me=G?.navigationId?G:null;if(G){const ft={...G};delete ft.navigationId,delete ft.\u0275routerPageId,0!==Object.keys(ft).length&&(he.state=ft)}const at=this.parseUrl(y);this.scheduleNavigation(at,x,Me,he)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(y){this.config=y.map(rs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(y,x={}){const{relativeTo:G,queryParams:he,fragment:Me,queryParamsHandling:at,preserveFragment:ft}=x,tn=ft?this.currentUrlTree.fragment:Me;let Rr,kn=null;switch(at){case"merge":kn={...this.currentUrlTree.queryParams,...he};break;case"preserve":kn=this.currentUrlTree.queryParams;break;default:kn=he||null}null!==kn&&(kn=this.removeEmptyProps(kn));try{Rr=Le(G?G.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof y[0]||!y[0].startsWith("/"))&&(y=[]),Rr=this.currentUrlTree.root}return Ue(Rr,y,kn,tn??null)}navigateByUrl(y,x={skipLocationChange:!1}){const G=$n(y)?y:this.parseUrl(y),he=this.urlHandlingStrategy.merge(G,this.rawUrlTree);return this.scheduleNavigation(he,Z,null,x)}navigate(y,x={skipLocationChange:!1}){return function ws(E){for(let S=0;S{const he=y[G];return null!=he&&(x[G]=he),x},{})}scheduleNavigation(y,x,G,he,Me){if(this.disposed)return Promise.resolve(!1);let at,ft,tn;Me?(at=Me.resolve,ft=Me.reject,tn=Me.promise):tn=new Promise((Rr,or)=>{at=Rr,ft=or});const kn=this.pendingTasks.add();return Hi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(kn))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:G,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:y,extras:he,resolve:at,reject:ft,promise:tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),tn.catch(Rr=>Promise.reject(Rr))}setBrowserUrl(y,x){const G=this.urlSerializer.serialize(y);if(this.location.isCurrentPathEqualTo(G)||x.extras.replaceUrl){const Me={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(G,"",Me)}else{const he={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(G,"",he)}}restoreHistory(y,x=!1){if("computed"===this.canceledNavigationResolution){const he=this.currentPageId-this.browserPageId;0!==he?this.location.historyGo(he):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===he&&(this.resetState(y),this.browserUrlTree=y.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(y),this.resetUrlToCurrentUrlTree())}resetState(y){this.routerState=y.currentRouterState,this.currentUrlTree=y.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,y.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(y,x){return"computed"===this.canceledNavigationResolution?{navigationId:y,\u0275routerPageId:x}:{navigationId:y}}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function li(E){return!(E instanceof Ti||E instanceof hs)}let Di=(()=>{class E{constructor(y,x,G,he,Me,at){this.router=y,this.route=x,this.tabIndexAttribute=G,this.renderer=he,this.el=Me,this.locationStrategy=at,this.href=null,this.commands=null,this.onChanges=new ye.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const ft=Me.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ft||"area"===ft,this.isAnchorElement?this.subscription=y.events.subscribe(tn=>{tn instanceof X&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(y){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",y)}ngOnChanges(y){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(y){null!=y?(this.commands=Array.isArray(y)?y:[y],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(y,x,G,he,Me){return!!(null===this.urlTree||this.isAnchorElement&&(0!==y||x||G||he||Me||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const y=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",y)}applyAttributeValue(y,x){const G=this.renderer,he=this.el.nativeElement;null!==x?G.setAttribute(he,y,x):G.removeAttribute(he,y)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(wi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(ce.S$))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(x,G){1&x&&t.NdJ("click",function(Me){return G.onClick(Me.button,Me.ctrlKey,Me.shiftKey,Me.altKey,Me.metaKey)}),2&x&&t.uIk("target",G.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",t.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",t.VuI],replaceUrl:["replaceUrl","replaceUrl",t.VuI],routerLink:"routerLink"},standalone:!0,features:[t.Xq5,t.TTD]})}return E})(),ga=(()=>{class E{get isActive(){return this._isActive}constructor(y,x,G,he,Me){this.router=y,this.element=x,this.renderer=G,this.cdr=he,this.link=Me,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=y.events.subscribe(at=>{at instanceof X&&this.update()})}ngAfterContentInit(){(0,L.of)(this.links.changes,(0,L.of)(null)).pipe((0,je.J)()).subscribe(y=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const y=[...this.links.toArray(),this.link].filter(x=>!!x).map(x=>x.onChanges);this.linkInputChangesSubscription=(0,w.D)(y).pipe((0,je.J)()).subscribe(x=>{this._isActive!==this.isLinkActive(this.router)(x)&&this.update()})}set routerLinkActive(y){const x=Array.isArray(y)?y:y.split(" ");this.classes=x.filter(G=>!!G)}ngOnChanges(y){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const y=this.hasActiveLinks();this._isActive!==y&&(this._isActive=y,this.cdr.markForCheck(),this.classes.forEach(x=>{y?this.renderer.addClass(this.element.nativeElement,x):this.renderer.removeClass(this.element.nativeElement,x)}),y&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(y))})}isLinkActive(y){const x=function Oo(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return G=>!!G.urlTree&&y.isActive(G.urlTree,x)}hasActiveLinks(){const y=this.isLinkActive(this.router);return this.link&&y(this.link)||this.links.some(y)}static#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Di,8))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(x,G,he){if(1&x&&t.Suo(he,Di,5),2&x){let Me;t.iGM(Me=t.CRH())&&(G.links=Me)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]})}return E})();class Yi{}let Io=(()=>{class E{constructor(y,x,G,he,Me){this.router=y,this.injector=G,this.preloadingStrategy=he,this.loader=Me}setUpPreloading(){this.subscription=this.router.events.pipe((0,ke.h)(y=>y instanceof X),(0,Ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(y,x){const G=[];for(const he of x){he.providers&&!he._injector&&(he._injector=(0,t.MMx)(he.providers,y,`Route: ${he.path}`));const Me=he._injector??y,at=he._loadedInjector??Me;(he.loadChildren&&!he._loadedRoutes&&void 0===he.canLoad||he.loadComponent&&!he._loadedComponent)&&G.push(this.preloadConfig(Me,he)),(he.children||he._loadedRoutes)&&G.push(this.processRoutes(at,he.children??he._loadedRoutes))}return(0,w.D)(G).pipe((0,je.J)())}preloadConfig(y,x){return this.preloadingStrategy.preload(x,()=>{let G;G=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(y,x):(0,L.of)(null);const he=G.pipe((0,vt.z)(Me=>null===Me?(0,L.of)(void 0):(x._loadedRoutes=Me.routes,x._loadedInjector=Me.injector,this.processRoutes(Me.injector??y,Me.routes))));if(x.loadComponent&&!x._loadedComponent){const Me=this.loader.loadComponent(x);return(0,w.D)([he,Me]).pipe((0,je.J)())}return he})}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(er),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Yi),t.LFG(U))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const $s=new t.OlP("");let us=(()=>{class E{constructor(y,x,G,he,Me={}){this.urlSerializer=y,this.transitions=x,this.viewportScroller=G,this.zone=he,this.options=Me,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Me.scrollPositionRestoration=Me.scrollPositionRestoration||"disabled",Me.anchorScrolling=Me.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(y=>{y instanceof D?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=y.navigationTrigger,this.restoredId=y.restoredState?y.restoredState.navigationId:0):y instanceof X?(this.lastId=y.id,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.urlAfterRedirects).fragment)):y instanceof Oe&&0===y.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(y=>{y instanceof _i&&(y.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(y.position):y.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(y.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(y,x){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _i(y,"popstate"===this.lastSource?this.store[this.restoredId]:null,x))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(x){t.$Z()};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function xi(E,S){return{\u0275kind:E,\u0275providers:S}}function Yo(){const E=(0,t.f3M)(t.zs3);return S=>{const y=E.get(t.z2F);if(S!==y.components[0])return;const x=E.get(er),G=E.get(_a);1===E.get(Ro)&&x.initialNavigation(),E.get(Ss,null,t.XFs.Optional)?.setUpPreloading(),E.get($s,null,t.XFs.Optional)?.init(),x.resetRootComponentType(y.componentTypes[0]),G.closed||(G.next(),G.complete(),G.unsubscribe())}}const _a=new t.OlP("",{factory:()=>new ye.x}),Ro=new t.OlP("",{providedIn:"root",factory:()=>1}),Ss=new t.OlP("");function ml(E){return xi(0,[{provide:Ss,useExisting:Io},{provide:Yi,useExisting:E}])}const mr=new t.OlP("ROUTER_FORROOT_GUARD"),W=[ce.Ye,{provide:Er,useClass:it},er,Bi,{provide:wi,useFactory:function ma(E){return E.routerState.root},deps:[er]},U,[]];function p(){return new t.PXZ("Router",er)}let v=(()=>{class E{constructor(y){}static forRoot(y,x){return{ngModule:E,providers:[W,[],{provide:le,multi:!0,useValue:y},{provide:mr,useFactory:Ne,deps:[[er,new t.FiY,new t.tp0]]},{provide:Jn,useValue:x||{}},x?.useHash?{provide:ce.S$,useClass:ce.Do}:{provide:ce.S$,useClass:ce.b0},{provide:$s,useFactory:()=>{const E=(0,t.f3M)(ce.EM),S=(0,t.f3M)(t.R0b),y=(0,t.f3M)(Jn),x=(0,t.f3M)(Ct),G=(0,t.f3M)(Er);return y.scrollOffset&&E.setOffset(y.scrollOffset),new us(G,x,E,S,y)}},x?.preloadingStrategy?ml(x.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:p},x?.initialNavigation?Fe(x):[],x?.bindToComponentInputs?xi(8,[Ve,{provide:ze,useExisting:Ve}]).\u0275providers:[],[{provide:st,useFactory:Yo},{provide:t.tb,multi:!0,useExisting:st}]]}}static forChild(y){return{ngModule:E,providers:[{provide:le,multi:!0,useValue:y}]}}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(mr,8))};static#t=this.\u0275mod=t.oAB({type:E});static#n=this.\u0275inj=t.cJS({})}return E})();function Ne(E){return"guarded"}function Fe(E){return["disabled"===E.initialNavigation?xi(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const S=(0,t.f3M)(er);return()=>{S.setUpLocationChangeListener()}}},{provide:Ro,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?xi(2,[{provide:Ro,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:S=>{const y=S.get(ce.V_,Promise.resolve());return()=>y.then(()=>new Promise(x=>{const G=S.get(er),he=S.get(_a);Hi(G,()=>{x(!0)}),S.get(Ct).afterPreactivation=()=>(x(!0),he.closed?(0,L.of)(void 0):he),G.initialNavigation()}))}}]).\u0275providers:[]]}const st=new t.OlP("")},253:(Pe,V,a)=>{"use strict";a.d(V,{gY:()=>vo,Kz:()=>Da,DO:()=>ri,s5:()=>Ou,NG:()=>bc,jt:()=>Lo,TH:()=>Sc,Vi:()=>Ya,iD:()=>Pu,J4:()=>Cu,Be:()=>Eu,FF:()=>Lu,IJ:()=>Hc,Gk:()=>Po,gW:()=>us,k9:()=>Io,Iv:()=>Yu,_L:()=>Pf,dR:()=>kc});var t=a(5879),d=a(5592),w=a(6232),L=a(2096),h=a(8645),O=a(2438),R=a(4825),F=a(4829);const{isArray:P}=Array;function B(l){return 1===l.length&&P(l[0])?l[0]:l}var $=a(8251);function f(...l){return 1===(l=B(l)).length?(0,F.Xf)(l[0]):new d.y(function j(l){return C=>{let s=[];for(let c=0;s&&!C.closed&&c{if(s){for(let H=0;H{let m=s.map(()=>[]),H=s.map(()=>!1);c.add(()=>{m=H=null});for(let ne=0;!c.closed&&ne{if(m[ne].push(Be),m.every(Ge=>Ge.length)){const Ge=m.map(ut=>ut.shift());c.next(C?C(...Ge):Ge),m.some((ut,pt)=>!ut.length&&H[pt])&&c.complete()}},()=>{H[ne]=!0,!m[ne].length&&c.complete()}));return()=>{m=H=null}}):w.E}var k=a(5619),Te=a(5211),ye=a(9773),ce=a(2181),_e=a(8180),ve=a(9397),xe=a(7398),be=a(2460),ke=a(6321),vt=a(9360),rt=a(2420),qe=a(975),_t=a(1631);function $e(l,C){return C?s=>(0,Te.z)(C.pipe((0,_e.q)(1),function Mt(){return(0,vt.e)((l,C)=>{l.subscribe((0,$.x)(C,rt.Z))})}()),s.pipe($e(l))):(0,_t.z)((s,c)=>(0,F.Xf)(l(s,c)).pipe((0,_e.q)(1),(0,qe.h)(s)))}function Ee(l,C=ke.z){const s=(0,R.H)(l,C);return $e(()=>s)}var Ze=a(4664),se=(a(7921),a(3997),a(836),a(3020)),ae=a(6814),fe=a(6223),De={left:"right",right:"left",bottom:"top",top:"bottom"};function je(l){return l.replace(/left|right|bottom|top/g,function(C){return De[C]})}function Xe(l){return l.split("-")[0]}var tt={start:"end",end:"start"};function wt(l){return l.replace(/start|end/g,function(C){return tt[C]})}var It="top",Je="bottom",Tt="right",et="left",Pt="auto",Zt=[It,Je,Tt,et],dn="start",Rn="end",Ye="viewport",At="popper",nn=Zt.reduce(function(l,C){return l.concat([C+"-"+dn,C+"-"+Rn])},[]),Et=[].concat(Zt,[Pt]).reduce(function(l,C){return l.concat([C,C+"-"+dn,C+"-"+Rn])},[]),Er=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function it(l){if(null==l)return window;if("[object Window]"!==l.toString()){var C=l.ownerDocument;return C&&C.defaultView||window}return l}function Ut(l){return l instanceof it(l).Element||l instanceof Element}function Qt(l){return l instanceof it(l).HTMLElement||l instanceof HTMLElement}function Cn(l){return!(typeof ShadowRoot>"u")&&(l instanceof it(l).ShadowRoot||l instanceof ShadowRoot)}function An(l){return((Ut(l)?l.ownerDocument:l.document)||window.document).documentElement}var In=Math.max,nr=Math.min,Dr=Math.round;function wr(){var l=navigator.userAgentData;return null!=l&&l.brands&&Array.isArray(l.brands)?l.brands.map(function(C){return C.brand+"/"+C.version}).join(" "):navigator.userAgent}function Or(){return!/^((?!chrome|android).)*safari/i.test(wr())}function Ir(l,C,s){void 0===C&&(C=!1),void 0===s&&(s=!1);var c=l.getBoundingClientRect(),m=1,H=1;C&&Qt(l)&&(m=l.offsetWidth>0&&Dr(c.width)/l.offsetWidth||1,H=l.offsetHeight>0&&Dr(c.height)/l.offsetHeight||1);var Be=(Ut(l)?it(l):window).visualViewport,Ge=!Or()&&s,ut=(c.left+(Ge&&Be?Be.offsetLeft:0))/m,pt=(c.top+(Ge&&Be?Be.offsetTop:0))/H,sn=c.width/m,Gt=c.height/H;return{width:sn,height:Gt,top:pt,right:ut+sn,bottom:pt+Gt,left:ut,x:ut,y:pt}}function Br(l){var C=it(l);return{scrollLeft:C.pageXOffset,scrollTop:C.pageYOffset}}function oi(l){return Ir(An(l)).left+Br(l).scrollLeft}function dt(l){return it(l).getComputedStyle(l)}function we(l){return l?(l.nodeName||"").toLowerCase():null}function He(l){return"html"===we(l)?l:l.assignedSlot||l.parentNode||(Cn(l)?l.host:null)||An(l)}function yt(l){var C=dt(l);return/auto|scroll|overlay|hidden/.test(C.overflow+C.overflowY+C.overflowX)}function Wt(l){return["html","body","#document"].indexOf(we(l))>=0?l.ownerDocument.body:Qt(l)&&yt(l)?l:Wt(He(l))}function Vt(l,C){var s;void 0===C&&(C=[]);var c=Wt(l),m=c===(null==(s=l.ownerDocument)?void 0:s.body),H=it(c),ne=m?[H].concat(H.visualViewport||[],yt(c)?c:[]):c,Be=C.concat(ne);return m?Be:Be.concat(Vt(He(ne)))}function Un(l){return["table","td","th"].indexOf(we(l))>=0}function on(l){return Qt(l)&&"fixed"!==dt(l).position?l.offsetParent:null}function ln(l){for(var C=it(l),s=on(l);s&&Un(s)&&"static"===dt(s).position;)s=on(s);return s&&("html"===we(s)||"body"===we(s)&&"static"===dt(s).position)?C:s||function rr(l){var C=/firefox/i.test(wr());if(/Trident/i.test(wr())&&Qt(l)&&"fixed"===dt(l).position)return null;var m=He(l);for(Cn(m)&&(m=m.host);Qt(m)&&["html","body"].indexOf(we(m))<0;){var H=dt(m);if("none"!==H.transform||"none"!==H.perspective||"paint"===H.contain||-1!==["transform","perspective"].indexOf(H.willChange)||C&&"filter"===H.willChange||C&&H.filter&&"none"!==H.filter)return m;m=m.parentNode}return null}(l)||C}function $n(l,C){var s=C.getRootNode&&C.getRootNode();if(l.contains(C))return!0;if(s&&Cn(s)){var c=C;do{if(c&&l.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function Qe(l){return Object.assign({},l,{left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height})}function Ue(l,C,s){return C===Ye?Qe(function Zn(l,C){var s=it(l),c=An(l),m=s.visualViewport,H=c.clientWidth,ne=c.clientHeight,Be=0,Ge=0;if(m){H=m.width,ne=m.height;var ut=Or();(ut||!ut&&"fixed"===C)&&(Be=m.offsetLeft,Ge=m.offsetTop)}return{width:H,height:ne,x:Be+oi(l),y:Ge}}(l,s)):Ut(C)?function Le(l,C){var s=Ir(l,!1,"fixed"===C);return s.top=s.top+l.clientTop,s.left=s.left+l.clientLeft,s.bottom=s.top+l.clientHeight,s.right=s.left+l.clientWidth,s.width=l.clientWidth,s.height=l.clientHeight,s.x=s.left,s.y=s.top,s}(C,s):Qe(function ot(l){var C,s=An(l),c=Br(l),m=null==(C=l.ownerDocument)?void 0:C.body,H=In(s.scrollWidth,s.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),ne=In(s.scrollHeight,s.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),Be=-c.scrollLeft+oi(l),Ge=-c.scrollTop;return"rtl"===dt(m||s).direction&&(Be+=In(s.clientWidth,m?m.clientWidth:0)-H),{width:H,height:ne,x:Be,y:Ge}}(An(l)))}function kt(l){return l.split("-")[1]}function Ft(l){return["top","bottom"].indexOf(l)>=0?"x":"y"}function an(l){var Ge,C=l.reference,s=l.element,c=l.placement,m=c?Xe(c):null,H=c?kt(c):null,ne=C.x+C.width/2-s.width/2,Be=C.y+C.height/2-s.height/2;switch(m){case It:Ge={x:ne,y:C.y-s.height};break;case Je:Ge={x:ne,y:C.y+C.height};break;case Tt:Ge={x:C.x+C.width,y:Be};break;case et:Ge={x:C.x-s.width,y:Be};break;default:Ge={x:C.x,y:C.y}}var ut=m?Ft(m):null;if(null!=ut){var pt="y"===ut?"height":"width";switch(H){case dn:Ge[ut]=Ge[ut]-(C[pt]/2-s[pt]/2);break;case Rn:Ge[ut]=Ge[ut]+(C[pt]/2-s[pt]/2)}}return Ge}function pr(l){return Object.assign({},{top:0,right:0,bottom:0,left:0},l)}function jr(l,C){return C.reduce(function(s,c){return s[c]=l,s},{})}function Fr(l,C){void 0===C&&(C={});var c=C.placement,m=void 0===c?l.placement:c,H=C.strategy,ne=void 0===H?l.strategy:H,Be=C.boundary,Ge=void 0===Be?"clippingParents":Be,ut=C.rootBoundary,pt=void 0===ut?Ye:ut,sn=C.elementContext,Gt=void 0===sn?At:sn,un=C.altBoundary,Mr=void 0!==un&&un,lr=C.padding,Pn=void 0===lr?0:lr,Cr=pr("number"!=typeof Pn?Pn:jr(Pn,Zt)),si=l.rects.popper,br=l.elements[Mr?Gt===At?"reference":At:Gt],Lr=function Rt(l,C,s,c){var m="clippingParents"===C?function bt(l){var C=Vt(He(l)),c=["absolute","fixed"].indexOf(dt(l).position)>=0&&Qt(l)?ln(l):l;return Ut(c)?C.filter(function(m){return Ut(m)&&$n(m,c)&&"body"!==we(m)}):[]}(l):[].concat(C),H=[].concat(m,[s]),Be=H.reduce(function(Ge,ut){var pt=Ue(l,ut,c);return Ge.top=In(pt.top,Ge.top),Ge.right=nr(pt.right,Ge.right),Ge.bottom=nr(pt.bottom,Ge.bottom),Ge.left=In(pt.left,Ge.left),Ge},Ue(l,H[0],c));return Be.width=Be.right-Be.left,Be.height=Be.bottom-Be.top,Be.x=Be.left,Be.y=Be.top,Be}(Ut(br)?br:br.contextElement||An(l.elements.popper),Ge,pt,ne),kr=Ir(l.elements.reference),Qr=an({reference:kr,element:si,strategy:"absolute",placement:m}),qr=Qe(Object.assign({},si,Qr)),gi=Gt===At?qr:kr,mi={top:Lr.top-gi.top+Cr.top,bottom:gi.bottom-Lr.bottom+Cr.bottom,left:Lr.left-gi.left+Cr.left,right:gi.right-Lr.right+Cr.right},ki=l.modifiersData.offset;if(Gt===At&&ki){var ks=ki[m];Object.keys(mi).forEach(function(Xi){var ko=[Tt,Je].indexOf(Xi)>=0?1:-1,As=[It,Je].indexOf(Xi)>=0?"y":"x";mi[Xi]+=ks[As]*ko})}return mi}const Xn={name:"flip",enabled:!0,phase:"main",fn:function Zr(l){var C=l.state,s=l.options,c=l.name;if(!C.modifiersData[c]._skip){for(var m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0===ne||ne,Ge=s.fallbackPlacements,ut=s.padding,pt=s.boundary,sn=s.rootBoundary,Gt=s.altBoundary,un=s.flipVariations,Mr=void 0===un||un,lr=s.allowedAutoPlacements,Pn=C.options.placement,Cr=Xe(Pn),si=Ge||(Cr!==Pn&&Mr?function Hr(l){if(Xe(l)===Pt)return[];var C=je(l);return[wt(l),C,wt(C)]}(Pn):[je(Pn)]),br=[Pn].concat(si).reduce(function(Sa,Bo){return Sa.concat(Xe(Bo)===Pt?function Ar(l,C){void 0===C&&(C={});var m=C.boundary,H=C.rootBoundary,ne=C.padding,Be=C.flipVariations,Ge=C.allowedAutoPlacements,ut=void 0===Ge?Et:Ge,pt=kt(C.placement),sn=pt?Be?nn:nn.filter(function(Mr){return kt(Mr)===pt}):Zt,Gt=sn.filter(function(Mr){return ut.indexOf(Mr)>=0});0===Gt.length&&(Gt=sn);var un=Gt.reduce(function(Mr,lr){return Mr[lr]=Fr(l,{placement:lr,boundary:m,rootBoundary:H,padding:ne})[Xe(lr)],Mr},{});return Object.keys(un).sort(function(Mr,lr){return un[Mr]-un[lr]})}(C,{placement:Bo,boundary:pt,rootBoundary:sn,padding:ut,flipVariations:Mr,allowedAutoPlacements:lr}):Bo)},[]),Lr=C.rects.reference,kr=C.rects.popper,Qr=new Map,qr=!0,gi=br[0],mi=0;mi=0,As=ko?"width":"height",xs=Fr(C,{placement:ki,boundary:pt,rootBoundary:sn,altBoundary:Gt,padding:ut}),Ys=ko?Xi?Tt:et:Xi?Je:It;Lr[As]>kr[As]&&(Ys=je(Ys));var Bl=je(Ys),ia=[];if(H&&ia.push(xs[ks]<=0),Be&&ia.push(xs[Ys]<=0,xs[Bl]<=0),ia.every(function(Sa){return Sa})){gi=ki,qr=!1;break}Qr.set(ki,ia)}if(qr)for(var Js=function(Bo){var sl=br.find(function(Hl){var sa=Qr.get(Hl);if(sa)return sa.slice(0,Bo).every(function(Vl){return Vl})});if(sl)return gi=sl,"break"},uo=Mr?3:1;uo>0&&"break"!==Js(uo);uo--);C.placement!==gi&&(C.modifiersData[c]._skip=!0,C.placement=gi,C.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ur(l,C,s){return In(l,nr(C,s))}function pe(l){var C=Ir(l),s=l.offsetWidth,c=l.offsetHeight;return Math.abs(C.width-s)<=1&&(s=C.width),Math.abs(C.height-c)<=1&&(c=C.height),{x:l.offsetLeft,y:l.offsetTop,width:s,height:c}}const K={name:"preventOverflow",enabled:!0,phase:"main",fn:function Z(l){var C=l.state,s=l.options,c=l.name,m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0!==ne&&ne,Gt=s.tether,un=void 0===Gt||Gt,Mr=s.tetherOffset,lr=void 0===Mr?0:Mr,Pn=Fr(C,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),Cr=Xe(C.placement),cr=kt(C.placement),si=!cr,br=Ft(Cr),Lr=function qn(l){return"x"===l?"y":"x"}(br),kr=C.modifiersData.popperOffsets,Qr=C.rects.reference,qr=C.rects.popper,gi="function"==typeof lr?lr(Object.assign({},C.rects,{placement:C.placement})):lr,mi="number"==typeof gi?{mainAxis:gi,altAxis:gi}:Object.assign({mainAxis:0,altAxis:0},gi),ki=C.modifiersData.offset?C.modifiersData.offset[C.placement]:null,ks={x:0,y:0};if(kr){if(H){var Xi,ko="y"===br?It:et,As="y"===br?Je:Tt,xs="y"===br?"height":"width",Ys=kr[br],Bl=Ys+Pn[ko],ia=Ys-Pn[As],Ul=un?-qr[xs]/2:0,Js=cr===dn?Qr[xs]:qr[xs],uo=cr===dn?-qr[xs]:-Qr[xs],jl=C.elements.arrow,Sa=un&&jl?pe(jl):{width:0,height:0},Bo=C.modifiersData["arrow#persistent"]?C.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sl=Bo[ko],Hl=Bo[As],sa=Ur(0,Qr[xs],Sa[xs]),Vl=si?Qr[xs]/2-Ul-sa-sl-mi.mainAxis:Js-sa-sl-mi.mainAxis,Uf=si?-Qr[xs]/2+Ul+sa+Hl+mi.mainAxis:uo+sa+Hl+mi.mainAxis,Vc=C.elements.arrow&&ln(C.elements.arrow),jf=Vc?"y"===br?Vc.clientTop||0:Vc.clientLeft||0:0,ed=null!=(Xi=ki?.[br])?Xi:0,yo=Ys+Uf-ed,Ma=Ur(un?nr(Bl,Ys+Vl-ed-jf):Bl,Ys,un?In(ia,yo):ia);kr[br]=Ma,ks[br]=Ma-Ys}if(Be){var $c,Aa=kr[Lr],Wc="y"===Lr?"height":"width",Hf=Aa+Pn["x"===br?It:et],Wl=Aa-Pn["x"===br?Je:Tt],ol=-1!==[It,et].indexOf(Cr),Vf=null!=($c=ki?.[Lr])?$c:0,$f=ol?Hf:Aa-Qr[Wc]-qr[Wc]-Vf+mi.altAxis,Gc=ol?Aa+Qr[Wc]+qr[Wc]-Vf-mi.altAxis:Wl,rd=un&&ol?function ai(l,C,s){var c=Ur(l,C,s);return c>s?s:c}($f,Aa,Gc):Ur(un?$f:Hf,Aa,un?Gc:Wl);kr[Lr]=rd,ks[Lr]=rd-Aa}C.modifiersData[c]=ks}},requiresIfExists:["offset"]},Oe={name:"arrow",enabled:!0,phase:"main",fn:function X(l){var C,s=l.state,c=l.name,m=l.options,H=s.elements.arrow,ne=s.modifiersData.popperOffsets,Be=Xe(s.placement),Ge=Ft(Be),pt=[et,Tt].indexOf(Be)>=0?"height":"width";if(H&&ne){var sn=function(C,s){return pr("number"!=typeof(C="function"==typeof C?C(Object.assign({},s.rects,{placement:s.placement})):C)?C:jr(C,Zt))}(m.padding,s),Gt=pe(H),un="y"===Ge?It:et,Mr="y"===Ge?Je:Tt,lr=s.rects.reference[pt]+s.rects.reference[Ge]-ne[Ge]-s.rects.popper[pt],Pn=ne[Ge]-s.rects.reference[Ge],Cr=ln(H),cr=Cr?"y"===Ge?Cr.clientHeight||0:Cr.clientWidth||0:0,kr=cr/2-Gt[pt]/2+(lr/2-Pn/2),Qr=Ur(sn[un],kr,cr-Gt[pt]-sn[Mr]);s.modifiersData[c]=((C={})[Ge]=Qr,C.centerOffset=Qr-kr,C)}},effect:function de(l){var C=l.state,c=l.options.element,m=void 0===c?"[data-popper-arrow]":c;null!=m&&("string"==typeof m&&!(m=C.elements.popper.querySelector(m))||$n(C.elements.popper,m)&&(C.elements.arrow=m))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cn(l,C,s){void 0===s&&(s=!1);var c=Qt(C),m=Qt(C)&&function $t(l){var C=l.getBoundingClientRect(),s=Dr(C.width)/l.offsetWidth||1,c=Dr(C.height)/l.offsetHeight||1;return 1!==s||1!==c}(C),H=An(C),ne=Ir(l,m,s),Be={scrollLeft:0,scrollTop:0},Ge={x:0,y:0};return(c||!c&&!s)&&(("body"!==we(C)||yt(H))&&(Be=function mt(l){return l!==it(l)&&Qt(l)?function Ae(l){return{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}}(l):Br(l)}(C)),Qt(C)?((Ge=Ir(C,!0)).x+=C.clientLeft,Ge.y+=C.clientTop):H&&(Ge.x=oi(H))),{x:ne.left+Be.scrollLeft-Ge.x,y:ne.top+Be.scrollTop-Ge.y,width:ne.width,height:ne.height}}function vn(l){var C=new Map,s=new Set,c=[];function m(H){s.add(H.name),[].concat(H.requires||[],H.requiresIfExists||[]).forEach(function(Be){if(!s.has(Be)){var Ge=C.get(Be);Ge&&m(Ge)}}),c.push(H)}return l.forEach(function(H){C.set(H.name,H)}),l.forEach(function(H){s.has(H.name)||m(H)}),c}function Nn(l){var C;return function(){return C||(C=new Promise(function(s){Promise.resolve().then(function(){C=void 0,s(l())})})),C}}var _r={placement:"bottom",modifiers:[],strategy:"absolute"};function zr(){for(var l=arguments.length,C=new Array(l),s=0;s=0?-1:1,H="function"==typeof s?s(Object.assign({},C,{placement:l})):s,ne=H[0],Be=H[1];return ne=ne||0,Be=(Be||0)*m,[et,Tt].indexOf(c)>=0?{x:Be,y:ne}:{x:ne,y:Be}}(sn,C.rects,H),pt},{}),Be=ne[C.placement],ut=Be.y;null!=C.modifiersData.popperOffsets&&(C.modifiersData.popperOffsets.x+=Be.x,C.modifiersData.popperOffsets.y+=ut),C.modifiersData[c]=ne}};function xr(l,C){}function Kt(l,C){if(1&l&&(t.TgZ(0,"button",3),t._uU(1),t.YNc(2,xr,0,0,"ng-template",4),t.qZA()),2&l){const s=C.$implicit;t.Q6J("ngbPanelToggle",s),t.xp6(1),t.hij(" ",s.title," "),t.xp6(1),t.Q6J("ngTemplateOutlet",null==s.titleTpl?null:s.titleTpl.templateRef)}}function Mn(l,C){}function hr(l,C){}function $r(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",8),t.NdJ("ngbRef",function(m){t.CHM(s);const H=t.oxw().$implicit;return t.KtG(H.panelDiv=m)}),t.TgZ(1,"div",9),t.YNc(2,hr,0,0,"ng-template",4),t.qZA()()}if(2&l){const s=t.oxw().$implicit;t.s9C("id",s.id),t.uIk("aria-labelledby",s.id+"-header"),t.xp6(2),t.Q6J("ngTemplateOutlet",(null==s.contentTpl?null:s.contentTpl.templateRef)||null)}}const bi=function(l,C){return{$implicit:l,opened:C}};function Nr(l,C){if(1&l&&(t.TgZ(0,"div")(1,"div",5),t.YNc(2,Mn,0,0,"ng-template",6),t.qZA(),t.YNc(3,$r,3,3,"div",7),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(),m=t.MAs(1);t.Tol("accordion-item "+(s.cardClass||"")),t.xp6(1),t.Tol("accordion-header "+(s.type?"bg-"+s.type:c.type?"bg-"+c.type:"")),t.MGl("id","",s.id,"-header"),t.xp6(1),t.Q6J("ngTemplateOutlet",(null==s.headerTpl?null:s.headerTpl.templateRef)||m)("ngTemplateOutletContext",t.WLB(8,bi,s,s.isOpen)),t.xp6(1),t.Q6J("ngIf",!c.destroyOnHide||s.isOpen||s.transitionRunning)}}const Ve=["*"],Yn=["ngbDatepickerDayView",""],sr=["month"],Wr=["year"];function Mi(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.uIk("aria-label",c.i18n.getMonthFullName(s,c.date.year)),t.xp6(1),t.Oqu(c.i18n.getMonthShortName(s,c.date.year))}}function di(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.xp6(1),t.Oqu(c.i18n.getYearNumerals(s))}}function ns(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation-select",7),t.NdJ("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.select.emit(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.date)("disabled",s.disabled)("months",s.selectBoxes.months)("years",s.selectBoxes.years)}}function bs(l,C){1&l&&t._UZ(0,"div",11)}function Zi(l,C){1&l&&t._UZ(0,"div",11)}function Oi(l,C){if(1&l&&(t.YNc(0,bs,1,0,"div",9),t.TgZ(1,"div",10),t._uU(2),t.qZA(),t.YNc(3,Zi,1,0,"div",9)),2&l){const s=C.$implicit,c=C.index,m=t.oxw(2);t.Q6J("ngIf",c>0),t.xp6(2),t.hij(" ",m.i18n.getMonthLabel(s.firstDate)," "),t.xp6(1),t.Q6J("ngIf",c!==m.months.length-1)}}function Ii(l,C){if(1&l&&t.YNc(0,Oi,4,3,"ng-template",8),2&l){const s=t.oxw();t.Q6J("ngForOf",s.months)}}function Pi(l,C){if(1&l&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&l){const s=t.oxw(2);t.xp6(1),t.Oqu(s.i18n.getWeekLabel())}}function Gn(l,C){if(1&l&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&l){const s=C.$implicit;t.xp6(1),t.Oqu(s)}}function Es(l,C){if(1&l&&(t.TgZ(0,"div",2),t.YNc(1,Pi,2,1,"div",3),t.YNc(2,Gn,2,1,"div",4),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Q6J("ngIf",s.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.viewModel.weekdays)}}function zi(l,C){if(1&l&&(t.TgZ(0,"div",11),t._uU(1),t.qZA()),2&l){const s=t.oxw(2).$implicit,c=t.oxw();t.xp6(1),t.Oqu(c.i18n.getWeekNumerals(s.number))}}function rs(l,C){}function Pr(l,C){if(1&l&&t.YNc(0,rs,0,0,"ng-template",14),2&l){const s=t.oxw().$implicit,c=t.oxw(3);t.Q6J("ngTemplateOutlet",c.datepicker.dayTemplate)("ngTemplateOutletContext",s.context)}}function gs(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(m){const ne=t.CHM(s).$implicit;return t.oxw(3).doSelect(ne),t.KtG(m.preventDefault())}),t.YNc(1,Pr,1,2,"ng-template",13),t.qZA()}if(2&l){const s=C.$implicit;t.ekj("disabled",s.context.disabled)("hidden",s.hidden)("ngb-dp-today",s.context.today),t.Q6J("tabindex",s.tabindex),t.uIk("aria-label",s.ariaLabel),t.xp6(1),t.Q6J("ngIf",!s.hidden)}}function Ri(l,C){if(1&l&&(t.TgZ(0,"div",8),t.YNc(1,zi,2,1,"div",9),t.YNc(2,gs,2,9,"div",10),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.xp6(1),t.Q6J("ngIf",c.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.days)}}function ht(l,C){1&l&&t.YNc(0,Ri,3,2,"div",7),2&l&&t.Q6J("ngIf",!C.$implicit.collapsed)}const pn=["defaultDayTemplate"],lt=["content"];function Ot(l,C){if(1&l&&t._UZ(0,"div",8),2&l){const c=C.currentMonth,m=C.selected,H=C.disabled,ne=C.focused;t.Q6J("date",C.date)("currentMonth",c)("selected",m)("disabled",H)("focused",ne)}}function qt(l,C){if(1&l&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw(2);t.xp6(1),t.hij(" ",c.i18n.getMonthLabel(s.firstDate)," ")}}function Kr(l,C){if(1&l&&(t.TgZ(0,"div",10),t.YNc(1,qt,2,1,"div",11),t._UZ(2,"ngb-datepicker-month",12),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(2);t.xp6(1),t.Q6J("ngIf","none"===c.navigation||c.displayMonths>1&&"select"===c.navigation),t.xp6(1),t.Q6J("month",s.firstDate)}}function ji(l,C){if(1&l&&t.YNc(0,Kr,3,2,"div",9),2&l){const s=t.oxw();t.Q6J("ngForOf",s.model.months)}}function ms(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation",14),t.NdJ("navigate",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateEvent(m))})("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateDateSelect(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.model.firstDate)("months",s.model.months)("disabled",s.model.disabled)("showSelect","select"===s.model.navigation)("prevDisabled",s.model.prevDisabled)("nextDisabled",s.model.nextDisabled)("selectBoxes",s.model.selectBoxes)}}function fi(l,C){}function Hs(l,C){}const po=function(l){return{$implicit:l}},Ds=["dialog"];function _o(l,C){if(1&l&&(t.TgZ(0,"strong",3),t._uU(1),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Oqu(s.header)}}function ha(l,C){}function Ao(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",4),t.YNc(1,ha,0,0,"ng-template",5),t.TgZ(2,"button",6),t.NdJ("click",function(){t.CHM(s);const m=t.oxw();return t.KtG(m.hide())}),t.qZA()()}if(2&l){const s=t.oxw(),c=t.MAs(1);t.xp6(1),t.Q6J("ngTemplateOutlet",s.contentHeaderTpl||c)}}function Na(l,C){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.Tol(c.highlightClass),t.xp6(1),t.Oqu(s)}}function La(l,C){if(1&l&&t._uU(0),2&l){const s=t.oxw().$implicit;t.Oqu(s)}}function oo(l,C){if(1&l&&(t.YNc(0,Na,2,3,"span",1),t.YNc(1,La,1,1,"ng-template",null,2,t.W1O)),2&l){const s=C.odd,c=t.MAs(2);t.Q6J("ngIf",s)("ngIfElse",c)}}function xo(l,C){if(1&l&&t._UZ(0,"ngb-highlight",2),2&l){const c=C.term;t.Q6J("result",(0,C.formatter)(C.result))("term",c)}}function T(l,C){}const le=function(l,C,s){return{result:l,term:C,formatter:s}};function U(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"button",3),t.NdJ("mouseenter",function(){const H=t.CHM(s).index,ne=t.oxw();return t.KtG(ne.markActive(H))})("click",function(){const H=t.CHM(s).$implicit,ne=t.oxw();return t.KtG(ne.select(H))}),t.YNc(1,T,0,0,"ng-template",4),t.qZA()}if(2&l){const s=C.$implicit,c=C.index,m=t.oxw(),H=t.MAs(1);t.ekj("active",c===m.activeIdx),t.Q6J("id",m.id+"-"+c),t.xp6(1),t.Q6J("ngTemplateOutlet",m.resultTemplate||H)("ngTemplateOutletContext",t.kEZ(5,le,s,m.term,m.formatter))}}function ee(l){return parseInt(`${l}`,10)}function Ie(l){return null!=l?`${l}`:""}function Ct(l){return"string"==typeof l}function Jt(l){return!isNaN(ee(l))}function Bn(l){return"number"==typeof l&&isFinite(l)&&Math.floor(l)===l}function dr(l){return null!=l}function Kn(l){return Jt(l)?`0${l}`.slice(-2):""}function Jn(l,C){return l&&l.className&&l.className.split&&l.className.split(/\s+/).indexOf(C)>=0}function Ei(l){return(l||document.body).getBoundingClientRect()}function Hi(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Fi(l=document){const C=l?.activeElement;return C?C.shadowRoot?Fi(C.shadowRoot):C:null}const cs={animation:!0,transitionTimerDelayMs:5},Ts=()=>{},{transitionTimerDelayMs:er}=cs,ws=new Map,li=(l,C,s,c)=>{let m=c.context||{};const H=ws.get(C);if(H)switch(c.runningTransition){case"continue":return w.E;case"stop":l.run(()=>H.transition$.complete()),m=Object.assign(H.context,m),ws.delete(C)}const ne=s(C,c.animation,m)||Ts;if(!c.animation||"none"===window.getComputedStyle(C).transitionProperty)return l.run(()=>ne()),(0,L.of)(void 0).pipe(function Ai(l){return C=>new d.y(s=>C.subscribe({next:ne=>l.run(()=>s.next(ne)),error:ne=>l.run(()=>s.error(ne)),complete:()=>l.run(()=>s.complete())}))}(l));const Be=new h.x,Ge=new h.x,ut=Be.pipe(function Se(...l){return C=>(0,Te.z)(C,(0,L.of)(...l))}(!0));ws.set(C,{transition$:Be,complete:()=>{Ge.next(),Ge.complete()},context:m});const pt=function ti(l){const{transitionDelay:C,transitionDuration:s}=window.getComputedStyle(l);return 1e3*(parseFloat(C)+parseFloat(s))}(C);return l.runOutsideAngular(()=>{const sn=(0,O.R)(C,"transitionend").pipe((0,ye.R)(ut),(0,ce.h)(({target:un})=>un===C));f((0,R.H)(pt+er).pipe((0,ye.R)(ut)),sn,Ge).pipe((0,ye.R)(ut)).subscribe(()=>{ws.delete(C),l.run(()=>{ne(),Be.next(),Be.complete()})})}),Be.asObservable()},Oo=(l,C,s)=>{let{direction:c,maxSize:m,dimension:H}=s;const{classList:ne}=l;function Be(){ne.add("collapse"),"show"===c?ne.add("show"):ne.remove("show")}if(C)return m||(m=function ga(l,C){if(typeof navigator>"u")return"0px";const{classList:s}=l,c=s.contains("show");c||s.add("show"),l.style[C]="";const m=l.getBoundingClientRect()[C]+"px";return c||s.remove("show"),m}(l,H),s.maxSize=m,l.style[H]="show"!==c?m:"0px",ne.remove("collapse"),ne.remove("collapsing"),ne.remove("show"),Ei(l),ne.add("collapsing")),l.style[H]="show"===c?m:"0px",()=>{Be(),ne.remove("collapsing"),l.style[H]=""};Be()};let Yi=(()=>{class l{constructor(){this.animation=cs.animation}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Vi=(()=>{class l{constructor(s){this._ngbConfig=s,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),gl=0,Io=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0})}return l})(),$s=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0})}return l})(),us=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0})}return l})(),Po=(()=>{class l{constructor(){this.disabled=!1,this.id="ngb-panel-"+gl++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new t.vpe,this.hidden=new t.vpe}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ngb-panel"]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,$s,4),t.Suo(H,Io,4),t.Suo(H,us,4)),2&c){let ne;t.iGM(ne=t.CRH())&&(m.titleTpls=ne),t.iGM(ne=t.CRH())&&(m.headerTpls=ne),t.iGM(ne=t.CRH())&&(m.contentTpls=ne)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0})}return l})(),ma=(()=>{class l{constructor(s){this._El=s,this.ngbRef=new t.vpe}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0})}return l})(),xi=(()=>{class l{set ngbPanelToggle(s){s&&(this.panel=s)}constructor(s,c){this.accordion=s,this.panel=c}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>vo)),t.Y36(Po,9))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.accordion.toggle(m.panel.id)}),2&c&&(t.Ikx("disabled",m.panel.disabled),t.uIk("aria-expanded",m.panel.isOpen)("aria-controls",m.panel.id),t.ekj("collapsed",!m.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0})}return l})(),vo=(()=>{class l{constructor(s,c,m){this._ngZone=c,this._changeDetector=m,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new t.vpe,this.shown=new t.vpe,this.hidden=new t.vpe,this.animation=s.animation,this.type=s.type,this.closeOtherPanels=s.closeOthers}isExpanded(s){return this.activeIds.indexOf(s)>-1}expand(s){this._changeOpenState(this._findPanelById(s),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(s=>this._changeOpenState(s,!0))}collapse(s){this._changeOpenState(this._findPanelById(s),!1)}collapseAll(){this.panels.forEach(s=>{this._changeOpenState(s,!1)})}toggle(s){const c=this._findPanelById(s);c&&this._changeOpenState(c,!c.isOpen)}ngAfterContentChecked(){Ct(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(s=>{s.isOpen=!s.disabled&&this.activeIds.indexOf(s.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this.panels.forEach(s=>{const c=s.panelDiv;c?s.initClassDone||(s.initClassDone=!0,li(this._ngZone,c,Oo,{animation:!1,runningTransition:"continue",context:{direction:s.isOpen?"show":"hide",dimension:"height"}})):s.initClassDone=!1})})}_changeOpenState(s,c){if(null!=s&&!s.disabled&&s.isOpen!==c){let m=!1;this.panelChange.emit({panelId:s.id,nextState:c,preventDefault:()=>{m=!0}}),m||(s.isOpen=c,s.transitionRunning=!0,c&&this.closeOtherPanels&&this._closeOthers(s.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(s,c=!0){this.panels.forEach(m=>{m.id!==s&&m.isOpen&&(m.isOpen=!1,m.transitionRunning=c)})}_findPanelById(s){return this.panels.find(c=>c.id===s)||null}_updateActiveIds(){this.activeIds=this.panels.filter(s=>s.isOpen&&!s.disabled).map(s=>s.id)}_runTransitions(s){this._changeDetector.detectChanges(),this.panels.forEach(c=>{c.transitionRunning&&li(this._ngZone,c.panelDiv,Oo,{animation:s,runningTransition:"stop",context:{direction:c.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{c.transitionRunning=!1;const{id:H}=c;c.isOpen?(c.shown.emit(),this.shown.emit(H)):(c.hidden.emit(),this.hidden.emit(H))})})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(Vi),t.Y36(t.R0b),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-accordion"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Po,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.panels=ne)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-multiselectable",!m.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(c,m){1&c&&(t.YNc(0,Kt,3,3,"ng-template",0,1,t.W1O),t.YNc(2,Nr,4,11,"ng-template",2)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.panels))},dependencies:[ae.ax,ae.tP,xi,ma,Io,ae.O5],encapsulation:2})}return l})(),ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Nt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),rn=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Xt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Tn{static from(C){return C instanceof Tn?C:C?new Tn(C.year,C.month,C.day):null}constructor(C,s,c){this.year=Bn(C)?C:null,this.month=Bn(s)?s:null,this.day=Bn(c)?c:null}equals(C){return null!=C&&this.year===C.year&&this.month===C.month&&this.day===C.day}before(C){return!!C&&(this.year===C.year?this.month===C.month?this.day!==C.day&&this.dayC.day:this.month>C.month:this.year>C.year)}}function Vn(l,C){return!function Fn(l,C){return!l&&!C||!!l&&!!C&&l.equals(C)}(l,C)}function xn(l,C){return!(!l&&!C||l&&C&&l.year===C.year&&l.month===C.month)}function S(l,C,s){return l&&C&&l.before(C)?C:l&&s&&l.after(s)?s:l||null}function y(l,C){const{minDate:s,maxDate:c,disabled:m,markDisabled:H}=C;return!(null==l||m||H&&H(l,{year:l.year,month:l.month})||s&&l.before(s)||c&&l.after(c))}function kn(l){return new Tn(l.getFullYear(),l.getMonth()+1,l.getDate())}function Rr(l){const C=new Date(l.year,l.month-1,l.day,12);return isNaN(C.getTime())||C.setFullYear(l.year),C}let hi=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function or(){return new Gs}()},providedIn:"root"})}return l})(),Gs=(()=>{class l extends hi{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(s,c="d",m=1){let H=Rr(s),ne=!0,Be=H.getMonth();switch(c){case"y":H.setFullYear(H.getFullYear()+m);break;case"m":Be+=m,H.setMonth(Be),Be%=12,Be<0&&(Be+=12);break;case"d":H.setDate(H.getDate()+m),ne=!1;break;default:return s}return ne&&H.getMonth()!==Be&&H.setDate(0),kn(H)}getPrev(s,c="d",m=1){return this.getNext(s,c,-m)}getWeekday(s){let m=Rr(s).getDay();return 0===m?7:m}getWeekNumber(s,c){7===c&&(c=0);const ne=Rr(s[(11-c)%7]);ne.setDate(ne.getDate()+4-(ne.getDay()||7));const Be=ne.getTime();return ne.setMonth(0),ne.setDate(1),Math.floor(Math.round((Be-ne.getTime())/864e5)/7)+1}getToday(){return kn(new Date)}isValid(s){if(!(s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)&&0!==s.year))return!1;const c=Rr(s);return!isNaN(c.getTime())&&c.getFullYear()===s.year&&c.getMonth()+1===s.month&&c.getDate()===s.day}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),mn=(()=>{class l{getMonthLabel(s){return`${this.getMonthFullName(s.month,s.year)} ${this.getYearNumerals(s.year)}`}getDayNumerals(s){return`${s.day}`}getWeekNumerals(s){return`${s}`}getYearNumerals(s){return`${s}`}getWeekLabel(){return""}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(c){let m=null;return m=c?new c:function Ns(l){return new On(l)}(t.LFG(t.soG)),m},providedIn:"root"})}return l})(),On=(()=>{class l extends mn{constructor(s){super(),this._locale=s,this._monthsShort=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Abbreviated),this._monthsFull=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Wide)}getWeekdayLabel(s,c){const m=(0,ae.Mn)(this._locale,ae.x.Standalone,void 0===c?ae.Tn.Short:c);return m.map((ne,Be)=>m[(Be+1)%7])[s-1]||""}getMonthShortName(s){return this._monthsShort[s-1]||""}getMonthFullName(s){return this._monthsFull[s-1]||""}getDayAriaLabel(s){const c=new Date(s.year,s.month-1,s.day);return(0,ae.p6)(c,"fullDate",this._locale)}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.soG))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),bn=(()=>{class l{get model$(){return this._model$.pipe((0,ce.h)(s=>s.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,ce.h)(s=>null!==s))}set(s){let c=Object.keys(s).map(m=>this._VALIDATORS[m](s[m])).reduce((m,H)=>({...m,...H}),{});Object.keys(c).length>0&&this._nextState(c)}constructor(s,c){this._calendar=s,this._i18n=c,this._VALIDATORS={dayTemplateData:m=>{if(this._state.dayTemplateData!==m)return{dayTemplateData:m}},displayMonths:m=>{if(Bn(m=ee(m))&&m>0&&this._state.displayMonths!==m)return{displayMonths:m}},disabled:m=>{if(this._state.disabled!==m)return{disabled:m}},firstDayOfWeek:m=>{if(Bn(m=ee(m))&&m>=0&&this._state.firstDayOfWeek!==m)return{firstDayOfWeek:m}},focusVisible:m=>{if(this._state.focusVisible!==m&&!this._state.disabled)return{focusVisible:m}},markDisabled:m=>{if(this._state.markDisabled!==m)return{markDisabled:m}},maxDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.maxDate,H))return{maxDate:H}},minDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.minDate,H))return{minDate:H}},navigation:m=>{if(this._state.navigation!==m)return{navigation:m}},outsideDays:m=>{if(this._state.outsideDays!==m)return{outsideDays:m}},weekdays:m=>{const H=!0===m||!1===m?ae.Tn.Short:m,ne=!0!==m&&!1!==m||m;if(this._state.weekdayWidth!==H||this._state.weekdaysVisible!==ne)return{weekdayWidth:H,weekdaysVisible:ne}}},this._model$=new h.x,this._dateSelect$=new h.x,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:ae.Tn.Short,weekdaysVisible:!0}}focus(s){const c=this.toValidDate(s,null);null!=c&&!this._state.disabled&&Vn(this._state.focusDate,c)&&this._nextState({focusDate:s})}focusSelect(){y(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(s){const c=this.toValidDate(s,this._calendar.getToday());null!=c&&!this._state.disabled&&(!this._state.firstDate||xn(this._state.firstDate,c))&&this._nextState({firstDate:c})}select(s,c={}){const m=this.toValidDate(s,null);null!=m&&!this._state.disabled&&(Vn(this._state.selectedDate,m)&&this._nextState({selectedDate:m}),c.emitEvent&&y(m,this._state)&&this._dateSelect$.next(m))}toValidDate(s,c){const m=Tn.from(s);return void 0===c&&(c=this._calendar.getToday()),this._calendar.isValid(m)?m:c}getMonth(s){for(let c of this._state.months)if(s.month===c.number&&s.year===c.year)return c;throw new Error(`month ${s.month} of year ${s.year} not found`)}_nextState(s){const c=this._updateState(s);this._patchContexts(c),this._state=c,this._model$.next(this._state)}_patchContexts(s){const{months:c,displayMonths:m,selectedDate:H,focusDate:ne,focusVisible:Be,disabled:Ge,outsideDays:ut}=s;s.months.forEach(pt=>{pt.weeks.forEach(sn=>{sn.days.forEach(Gt=>{ne&&(Gt.context.focused=ne.equals(Gt.date)&&Be),Gt.tabindex=!Ge&&ne&&Gt.date.equals(ne)&&ne.month===pt.number?0:-1,!0===Ge&&(Gt.context.disabled=!0),void 0!==H&&(Gt.context.selected=null!==H&&H.equals(Gt.date)),pt.number!==Gt.date.month&&(Gt.hidden="hidden"===ut||"collapsed"===ut||m>1&&Gt.date.after(c[0].firstDate)&&Gt.date.before(c[m-1].lastDate))})})})}_updateState(s){const c=Object.assign({},this._state,s);let m=c.firstDate;if(("minDate"in s||"maxDate"in s)&&(function E(l,C){if(C&&l&&C.before(l))throw new Error(`'maxDate' ${C} should be greater than 'minDate' ${l}`)}(c.minDate,c.maxDate),c.focusDate=S(c.focusDate,c.minDate,c.maxDate),c.firstDate=S(c.firstDate,c.minDate,c.maxDate),m=c.focusDate),"disabled"in s&&(c.focusVisible=!1),"selectedDate"in s&&0===this._state.months.length&&(m=c.selectedDate),"focusVisible"in s||"focusDate"in s&&(c.focusDate=S(c.focusDate,c.minDate,c.maxDate),m=c.focusDate,0!==c.months.length&&c.focusDate&&!c.focusDate.before(c.firstDate)&&!c.focusDate.after(c.lastDate)))return c;if("firstDate"in s&&(c.firstDate=S(c.firstDate,c.minDate,c.maxDate),m=c.firstDate),m){const ne=function at(l,C,s,c,m){const{displayMonths:H,months:ne}=s,Be=ne.splice(0,ne.length);return Array.from({length:H},(ut,pt)=>{const sn=Object.assign(l.getNext(C,"m",pt),{day:1});if(ne[pt]=null,!m){const Gt=Be.findIndex(un=>un.firstDate.equals(sn));-1!==Gt&&(ne[pt]=Be.splice(Gt,1)[0])}return sn}).forEach((ut,pt)=>{null===ne[pt]&&(ne[pt]=function ft(l,C,s,c,m={}){const{dayTemplateData:H,minDate:ne,maxDate:Be,firstDayOfWeek:Ge,markDisabled:ut,outsideDays:pt,weekdayWidth:sn,weekdaysVisible:Gt}=s,un=l.getToday();m.firstDate=null,m.lastDate=null,m.number=C.month,m.year=C.year,m.weeks=m.weeks||[],m.weekdays=m.weekdays||[],C=function tn(l,C,s){const c=l.getDaysPerWeek(),m=new Tn(C.year,C.month,1),H=l.getWeekday(m)%c;return l.getPrev(m,"d",(c+H-s)%c)}(l,C,Ge),Gt||(m.weekdays.length=0);for(let Mr=0;MrCr.date),Ge),lr.collapsed="collapsed"===pt&&Pn[0].date.month!==m.number&&Pn[Pn.length-1].date.month!==m.number}return m}(l,ut,s,c,Be.shift()||{}))}),ne}(this._calendar,m,c,this._i18n,"dayTemplateData"in s||"firstDayOfWeek"in s||"markDisabled"in s||"minDate"in s||"maxDate"in s||"disabled"in s||"outsideDays"in s||"weekdaysVisible"in s);c.months=ne,c.firstDate=ne[0].firstDate,c.lastDate=ne[ne.length-1].lastDate,"selectedDate"in s&&!y(c.selectedDate,c)&&(c.selectedDate=null),"firstDate"in s&&(!c.focusDate||c.focusDate.before(c.firstDate)||c.focusDate.after(c.lastDate))&&(c.focusDate=m);const Be=!this._state.firstDate||this._state.firstDate.year!==c.firstDate.year,Ge=!this._state.firstDate||this._state.firstDate.month!==c.firstDate.month;"select"===c.navigation?(("minDate"in s||"maxDate"in s||0===c.selectBoxes.years.length||Be)&&(c.selectBoxes.years=function G(l,C,s){if(!l)return[];const c=C?Math.max(C.year,l.year-500):l.year-10,H=(s?Math.min(s.year,l.year+500):l.year+10)-c+1,ne=Array(H);for(let Be=0;Bene===s.month);m=m.slice(H)}if(c&&C.year===c.year){const H=m.findIndex(ne=>ne===c.month);m=m.slice(0,H+1)}return m}(this._calendar,c.firstDate,c.minDate,c.maxDate))):c.selectBoxes={years:[],months:[]},("arrows"===c.navigation||"select"===c.navigation)&&(Ge||Be||"minDate"in s||"maxDate"in s||"disabled"in s)&&(c.prevDisabled=c.disabled||function Me(l,C,s){const c=Object.assign(l.getPrev(C,"m"),{day:1});return null!=s&&(c.year===s.year&&c.month{class l{constructor(s){this.i18n=s}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(c,m){2&c&&t.ekj("bg-primary",m.selected)("text-white",m.selected)("text-muted",m.isMuted())("outside",m.isMuted())("active",m.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[t.jDz],attrs:Yn,decls:1,vars:1,template:function(c,m){1&c&&t._uU(0),2&c&&t.Oqu(m.i18n.getDayNumerals(m.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0})}return l})(),Ms=(()=>{class l{constructor(s,c){this.i18n=s,this._renderer=c,this.select=new t.vpe,this._month=-1,this._year=-1}changeMonth(s){this.select.emit(new Tn(this.date.year,ee(s),1))}changeYear(s){this.select.emit(new Tn(ee(s),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn),t.Y36(t.Qsj))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(c,m){if(1&c&&(t.Gf(sr,7,t.SBq),t.Gf(Wr,7,t.SBq)),2&c){let H;t.iGM(H=t.CRH())&&(m.monthSelect=H.first),t.iGM(H=t.CRH())&&(m.yearSelect=H.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[t.jDz],decls:6,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.select-month:Select month`,c=$localize`:@@ngb.datepicker.select-month:Select month`,m=$localize`:@@ngb.datepicker.select-year:Select year`,H=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",s,"title",c,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",m,"title",H,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(c,m){1&c&&(t.TgZ(0,"select",0,1),t.NdJ("change",function(ne){return m.changeMonth(ne.target.value)}),t.YNc(2,Mi,2,3,"option",2),t.qZA(),t.TgZ(3,"select",3,4),t.NdJ("change",function(ne){return m.changeYear(ne.target.value)}),t.YNc(5,di,2,2,"option",2),t.qZA()),2&c&&(t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.months),t.xp6(1),t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.years))},dependencies:[ae.ax],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0})}return l})(),Ji=(()=>{class l{constructor(s){this.i18n=s,this.navigation=tr,this.months=[],this.navigate=new t.vpe,this.select=new t.vpe}onClickPrev(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[t.jDz],decls:8,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.previous-month:Previous month`,c=$localize`:@@ngb.datepicker.previous-month:Previous month`,m=$localize`:@@ngb.datepicker.next-month:Next month`,H=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",s,"title",c,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",m,"title",H,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"],[1,"ngb-dp-arrow"]]},template:function(c,m){1&c&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(ne){return m.onClickPrev(ne)}),t._UZ(2,"span",2),t.qZA()(),t.YNc(3,ns,1,4,"ngb-datepicker-navigation-select",3),t.YNc(4,Ii,1,1,null,4),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(ne){return m.onClickNext(ne)}),t._UZ(7,"span",2),t.qZA()()),2&c&&(t.xp6(1),t.Q6J("disabled",m.prevDisabled),t.xp6(2),t.Q6J("ngIf",m.showSelect),t.xp6(1),t.Q6J("ngIf",!m.showSelect),t.xp6(2),t.Q6J("disabled",m.nextDisabled))},dependencies:[ae.O5,ae.ax,Ms],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0})}return l})();var fr=function(l){return l[l.Tab=9]="Tab",l[l.Enter=13]="Enter",l[l.Escape=27]="Escape",l[l.Space=32]="Space",l[l.PageUp=33]="PageUp",l[l.PageDown=34]="PageDown",l[l.End=35]="End",l[l.Home=36]="Home",l[l.ArrowLeft=37]="ArrowLeft",l[l.ArrowUp=38]="ArrowUp",l[l.ArrowRight=39]="ArrowRight",l[l.ArrowDown=40]="ArrowDown",l}(fr||{});let ni=(()=>{class l{processKey(s,c){const{state:m,calendar:H}=c;switch(s.which){case fr.PageUp:c.focusDate(H.getPrev(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.PageDown:c.focusDate(H.getNext(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.End:c.focusDate(s.shiftKey?m.maxDate:m.lastDate);break;case fr.Home:c.focusDate(s.shiftKey?m.minDate:m.firstDate);break;case fr.ArrowLeft:c.focusDate(H.getPrev(m.focusedDate,"d",1));break;case fr.ArrowUp:c.focusDate(H.getPrev(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.ArrowRight:c.focusDate(H.getNext(m.focusedDate,"d",1));break;case fr.ArrowDown:c.focusDate(H.getNext(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.Enter:case fr.Space:c.focusSelect();break;default:return}s.preventDefault(),s.stopPropagation()}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Jo=(()=>{class l{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=ae.Tn.Short}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ri=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function vl(){return new Qi}()},providedIn:"root"})}return l})(),Qi=(()=>{class l extends ri{fromModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),ds=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}return l})(),ao=(()=>{class l{set month(s){this.viewModel=this._service.getMonth(s)}constructor(s,c,m,H){this.i18n=s,this.datepicker=c,this._keyboardService=m,this._service=H}onKeyDown(s){this._keyboardService.processKey(s,this.datepicker)}doSelect(s){!s.context.disabled&&!s.hidden&&this.datepicker.onDateSelect(s.date)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn),t.Y36((0,t.Gpc)(()=>lo)),t.Y36(ni),t.Y36(bn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(c,m){1&c&&t.NdJ("keydown",function(ne){return m.onKeyDown(ne)})},inputs:{month:"month"},standalone:!0,features:[t.jDz],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,Es,3,2,"div",0),t.YNc(1,ht,1,1,"ng-template",1)),2&c&&(t.Q6J("ngIf",m.viewModel.weekdays.length>0),t.xp6(1),t.Q6J("ngForOf",m.viewModel.weeks))},dependencies:[ae.O5,ae.ax,ae.tP],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2})}return l})(),lo=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut){this._service=s,this._calendar=c,this._i18n=m,this._elementRef=Be,this._ngbDateAdapter=Ge,this._ngZone=ut,this.injector=(0,t.f3M)(t.zs3),this._controlValue=null,this._destroyed$=new h.x,this._publicState={},this.navigate=new t.vpe,this.dateSelect=new t.vpe,this.onChange=pt=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(pt=>this[pt]=H[pt]),s.dateSelect$.pipe((0,ye.R)(this._destroyed$)).subscribe(pt=>{this.dateSelect.emit(pt)}),s.model$.pipe((0,ye.R)(this._destroyed$)).subscribe(pt=>{const sn=pt.firstDate,Gt=this.model?this.model.firstDate:null;this._publicState={maxDate:pt.maxDate,minDate:pt.minDate,firstDate:pt.firstDate,lastDate:pt.lastDate,focusedDate:pt.focusDate,months:pt.months.map(Cr=>Cr.firstDate)};let un=!1;if(!sn.equals(Gt)&&(this.navigate.emit({current:Gt?{year:Gt.year,month:Gt.month}:null,next:{year:sn.year,month:sn.month},preventDefault:()=>un=!0}),un&&null!==Gt))return void this._service.open(Gt);const Mr=pt.selectedDate,lr=pt.focusDate,Pn=this.model?this.model.focusDate:null;this.model=pt,Vn(Mr,this._controlValue)&&(this._controlValue=Mr,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(Mr))),Vn(lr,Pn)&&Pn&&pt.focusVisible&&this.focus(),ne.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(s){this._service.focus(Tn.from(s))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{const s=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');s&&s.focus()})}navigateTo(s){this._service.open(Tn.from(s?s.day?s:{...s,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const s=(0,O.R)(this._contentEl.nativeElement,"focusin"),c=(0,O.R)(this._contentEl.nativeElement,"focusout"),{nativeElement:m}=this._elementRef;(0,M.T)(s,c).pipe((0,ce.h)(({target:H,relatedTarget:ne})=>!(Jn(H,"ngb-dp-day")&&Jn(ne,"ngb-dp-day")&&m.contains(H)&&m.contains(ne))),(0,ye.R)(this._destroyed$)).subscribe(({type:H})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===H})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const s={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(c=>s[c]=this[c]),this._service.set(s),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(s){const c={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(m=>m in s).forEach(m=>c[m]=this[m]),this._service.set(c),"startDate"in s){const{currentValue:m,previousValue:H}=s.startDate;xn(H,m)&&this.navigateTo(this.startDate)}}onDateSelect(s){this._service.focus(s),this._service.select(s,{emitEvent:!0})}onNavigateDateSelect(s){this._service.open(s)}onNavigateEvent(s){switch(s){case tr.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case tr.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this._service.set({disabled:s})}writeValue(s){this._controlValue=Tn.from(this._ngbDateAdapter.fromModel(s)),this._service.select(this._controlValue)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(bn),t.Y36(hi),t.Y36(mn),t.Y36(Jo),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ri),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,ds,7),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentTemplateFromContent=ne.first)}},viewQuery:function(c,m){if(1&c&&(t.Gf(pn,7),t.Gf(lt,7)),2&c){let H;t.iGM(H=t.CRH())&&(m._defaultDayTemplate=H.first),t.iGM(H=t.CRH())&&(m._contentEl=H.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("disabled",m.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},bn]),t.TTD,t.jDz],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(c,m){if(1&c&&(t.YNc(0,Ot,1,5,"ng-template",null,0,t.W1O),t.YNc(2,ji,1,1,"ng-template",null,1,t.W1O),t.TgZ(4,"div",2),t.YNc(5,ms,1,7,"ngb-datepicker-navigation",3),t.qZA(),t.TgZ(6,"div",4,5),t.YNc(8,fi,0,0,"ng-template",6),t.qZA(),t.YNc(9,Hs,0,0,"ng-template",7)),2&c){const H=t.MAs(3);t.xp6(5),t.Q6J("ngIf","none"!==m.navigation),t.xp6(1),t.ekj("ngb-dp-months",!m.contentTemplate),t.xp6(2),t.Q6J("ngTemplateOutlet",m.contentTemplate||(null==m.contentTemplateFromContent?null:m.contentTemplateFromContent.templateRef)||H)("ngTemplateOutletContext",t.VKq(7,po,m))("ngTemplateOutletInjector",m.injector),t.xp6(1),t.Q6J("ngTemplateOutlet",m.footerTemplate)}},dependencies:[ae.O5,ae.ax,ae.tP,ar,ao,Ji],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0})}return l})();const Qo=(l,C)=>!!C&&C.some(s=>s.contains(l)),yl=(l,C)=>!C||null!=function ei(l,C){return!C||typeof l.closest>"u"?null:l.closest(C)}(l,C),vu=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function bl(l,C,s,c,m,H,ne,Be){s&&l.runOutsideAngular((l=>vu?()=>setTimeout(()=>l(),100):l)(()=>{const ut=(0,O.R)(C,"keydown").pipe((0,ye.R)(m),(0,ce.h)(Gt=>Gt.which===fr.Escape),(0,ve.b)(Gt=>Gt.preventDefault())),pt=(0,O.R)(C,"mousedown").pipe((0,xe.U)(Gt=>{const un=Gt.target;return 2!==Gt.button&&!Qo(un,ne)&&("inside"===s?Qo(un,H)&&yl(un,Be):"outside"===s?!Qo(un,H):yl(un,Be)||!Qo(un,H))}),(0,ye.R)(m)),sn=(0,O.R)(C,"mouseup").pipe((0,be.M)(pt),(0,ce.h)(([Gt,un])=>un),Ee(0),(0,ye.R)(m));f([ut.pipe((0,xe.U)(Gt=>0)),sn.pipe((0,xe.U)(Gt=>1))]).subscribe(Gt=>l.run(()=>c(Gt)))}))}const Xo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function va(l){const C=Array.from(l.querySelectorAll(Xo)).filter(s=>-1!==s.tabIndex);return[C[0],C[C.length-1]]}const bu=(l,C,s,c=!1)=>{l.runOutsideAngular(()=>{const m=(0,O.R)(C,"focusin").pipe((0,ye.R)(s),(0,xe.U)(H=>H.target));(0,O.R)(C,"keydown").pipe((0,ye.R)(s),(0,ce.h)(H=>H.which===fr.Tab),(0,be.M)(m)).subscribe(([H,ne])=>{const[Be,Ge]=va(C);(ne===Be||ne===C)&&H.shiftKey&&(Ge.focus(),H.preventDefault()),ne===Ge&&!H.shiftKey&&(Be.focus(),H.preventDefault())}),c&&(0,O.R)(C,"click").pipe((0,ye.R)(s),(0,be.M)(m),(0,xe.U)(H=>H[1])).subscribe(H=>H.focus())})};let Bh=(()=>{class l{constructor(s){this._element=s.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const vc=/\s+/,Uh=/ +/gi,Kd={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},jh=/^left/,Hh=/^right/,yc=/^start/,Ha=/^end/;function ya({placement:l,baseClass:C},s){let c=Array.isArray(l)?l:l.split(vc),H=c.findIndex(ut=>"auto"===ut);H>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(ut){null==c.find(pt=>-1!==pt.search("^"+ut))&&c.splice(H++,1,ut)});const ne=c.map(ut=>function Yd(l,C){const[s,c]=Kd[l];return C&&c||s}(ut,s.isRTL()));return{placement:ne.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!C,phase:"write",fn({state:ut}){const pt=new RegExp(C+"(-[a-z]+)*","gi"),sn=ut.elements.popper,Gt=ut.placement;let un=sn.className;un=un.replace(pt,""),un+=` ${function Jd(l,C){let[s,c]=C.split("-");const m=s.replace(jh,"start").replace(Hh,"end");let H=[m];if(c){let ne=c;("left"===s||"right"===s)&&(ne=ne.replace(yc,"top").replace(Ha,"bottom")),H.push(`${m}-${ne}`)}return l&&(H=H.map(ne=>`${l}-${ne}`)),H.join(" ")}(C,Gt)}`,un=un.trim().replace(Uh," "),sn.className=un}},Xn,K,Oe,{enabled:!0,name:"flip",options:{fallbackPlacements:ne}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function El(l){return l}function qo(){const l=(0,t.f3M)(Bh);let C=null;return{createPopper(s){if(!C){let m=(s.updatePopperOptions||El)(ya(s,l));C=wi(s.hostElement,s.targetElement,m)}},update(){C&&C.update()},setOptions(s){if(C){let m=(s.updatePopperOptions||El)(ya(s,l));C.setOptions(m)}},destroy(){C&&(C.destroy(),C=null)}}}let Eu=(()=>{class l extends Jo{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s,this.restoreFocus=!0}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function Dl(l){return C=>(C.modifiers.push(Ui,{name:"offset",options:{offset:()=>l}}),C)}let bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function Du(){return new co}()},providedIn:"root"})}return l})(),co=(()=>{class l extends bc{parse(s){if(null!=s){const c=s.trim().split("-");if(1===c.length&&Jt(c[0]))return{year:ee(c[0]),month:null,day:null};if(2===c.length&&Jt(c[0])&&Jt(c[1]))return{year:ee(c[0]),month:ee(c[1]),day:null};if(3===c.length&&Jt(c[0])&&Jt(c[1])&&Jt(c[2]))return{year:ee(c[0]),month:ee(c[1]),day:ee(c[2])}}return null}format(s){return s?`${s.year}-${Jt(s.month)?Kn(s.month):""}-${Jt(s.day)?Kn(s.day):""}`:""}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Cu=(()=>{class l{get disabled(){return this._disabled}set disabled(s){this._disabled=""===s||s&&"false"!==s,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}constructor(s,c,m,H,ne,Be,Ge,ut,pt,sn){this._parserFormatter=s,this._elRef=c,this._vcRef=m,this._renderer=H,this._ngZone=ne,this._calendar=Be,this._dateAdapter=Ge,this._document=ut,this._changeDetector=pt,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._destroyCloseHandlers$=new h.x,this.dateSelect=new t.vpe,this.navigate=new t.vpe,this.closed=new t.vpe,this._onChange=Gt=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement","popperOptions"].forEach(Gt=>this[Gt]=sn[Gt]),this._positioning=qo()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}registerOnValidatorChange(s){this._validatorChange=s}setDisabledState(s){this.disabled=s}validate(s){const{value:c}=s;if(null!=c){const m=this._fromDateStruct(this._dateAdapter.fromModel(c));if(!m)return{ngbDate:{invalid:c}};if(this.minDate&&m.before(Tn.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:c}}};if(this.maxDate&&m.after(Tn.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:c}}}}return null}writeValue(s){this._model=this._fromDateStruct(this._dateAdapter.fromModel(s)),this._writeModelValue(this._model)}manualDateChange(s,c=!1){const m=s!==this._inputValue;m&&(this._inputValue=s,this._model=this._fromDateStruct(this._parserFormatter.parse(s))),(m||!c)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===s?null:s),c&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){let s;if(this._cRef=this._vcRef.createComponent(lo),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(c=>{this.writeValue(c),this._onChange(c),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,bu(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus()),s=Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this._ngZone.runOutsideAngular(()=>{this._cRef&&(this._positioning.createPopper({hostElement:s,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this.positionTarget&&!s)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._setCloseHandlers()}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let s=this._elWithFocus;Ct(this.restoreFocus)?s=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(s=this.restoreFocus),s&&s.focus?s.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(s){this.isOpen()&&this._cRef.instance.navigateTo(s)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(s){if((s.minDate||s.maxDate)&&(this._validatorChange(),this.isOpen()&&(s.minDate&&(this._cRef.instance.minDate=this.minDate),s.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(s))),s.datepickerClass){const{currentValue:c,previousValue:m}=s.datepickerClass;this._applyPopupClass(c,m)}s.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(s){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(c=>{void 0!==this[c]&&s.setInput(c,this[c])}),s.setInput("startDate",this.startDate||this._model)}_applyPopupClass(s,c){const m=this._cRef?.location.nativeElement;m&&(s&&this._renderer.addClass(m,s),c&&this._renderer.removeClass(m,c))}_applyPopupStyling(s){this._renderer.addClass(s,"dropdown-menu"),this._renderer.addClass(s,"show"),"body"===this.container&&this._renderer.addClass(s,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(s){s.navigate.subscribe(c=>this.navigate.emit(c)),s.dateSelect.subscribe(c=>{this.dateSelect.emit(c),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(s){const c=this._parserFormatter.format(s);this._inputValue=c,this._renderer.setProperty(this._elRef.nativeElement,"value",c),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(s)),this._onTouched())}_fromDateStruct(s){const c=s?new Tn(s.year,s.month,s.day):null;return this._calendar.isValid(c)?c:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(bc),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(hi),t.Y36(ri),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(Eu))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("input",function(ne){return m.manualDateChange(ne.target.value)})("change",function(ne){return m.manualDateChange(ne.target.value,!0)})("focus",function(){return m.onFocus()})("blur",function(){return m.onBlur()}),2&c&&t.Ikx("disabled",m.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:fe.Cf,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:Jo,useExisting:Eu}]),t.TTD]})}return l})();new Date(1882,10,12),new Date(2174,10,25);let Ou=(()=>{class l extends ri{fromModel(s){return s instanceof Date&&!isNaN(s.getTime())?this._fromNativeDate(s):null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?this._toNativeDate(s):null}_fromNativeDate(s){return{year:s.getFullYear(),month:s.getMonth()+1,day:s.getDate()}}_toNativeDate(s){const c=new Date(s.year,s.month-1,s.day,12);return c.setFullYear(s.year),c}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Iu=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),cf=(()=>{class l{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Sc=(()=>{class l{set disabled(s){this._disabled=""===s||!0===s,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}constructor(s,c){this.elementRef=s,this._renderer=c,this._disabled=!1}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(c,m){2&c&&(t.Ikx("tabIndex",m.disabled?-1:0),t.ekj("disabled",m.disabled))},inputs:{disabled:"disabled"},standalone:!0})}return l})(),Ya=(()=>{class l{constructor(s,c){this.dropdown=s,this.placement="bottom",this.isOpen=!1,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Sc,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.menuItems=ne)}},hostVars:4,hostBindings:function(c,m){1&c&&t.NdJ("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Enter",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Space",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.ekj("dropdown-menu",!0)("show",m.dropdown.isOpen())},standalone:!0})}return l})(),ta=(()=>{class l{constructor(s,c){this.dropdown=s,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0})}return l})(),Pu=(()=>{class l extends ta{constructor(s,c){super(s,c)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.dropdown.toggle()})("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0,features:[t._Bn([{provide:ta,useExisting:(0,t.Gpc)(()=>l)}]),t.qOj]})}return l})(),Lo=(()=>{class l{constructor(s,c,m,H,ne,Be){this._changeDetector=s,this._document=m,this._ngZone=H,this._elementRef=ne,this._renderer=Be,this._destroyCloseHandlers$=new h.x,this._bodyContainer=null,this._open=!1,this.openChange=new t.vpe,this.placement=c.placement,this.popperOptions=c.popperOptions,this.container=c.container,this.autoClose=c.autoClose,this._positioning=qo()}ngOnInit(){this.display||(this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(s){if(s.container&&this._open&&this._applyContainer(this.container),s.placement&&!s.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),s.dropdownClass){const{currentValue:c,previousValue:m}=s.dropdownClass;this._applyCustomDropdownClass(c,m)}s.autoClose&&this._open&&(this.autoClose=s.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:s=>this.popperOptions(Dl([0,2])(s))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,s=>{this.close(),0===s&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(s){const c=s.which,m=this._getMenuElements();let H=-1,ne=null;const Be=this._isEventFromToggle(s);if(!Be&&m.length&&m.forEach((Ge,ut)=>{Ge.contains(s.target)&&(ne=Ge),Ge===Fi(this._document)&&(H=ut)}),c!==fr.Space&&c!==fr.Enter){if(c!==fr.Tab){if(Be||ne){if(this.open(),m.length){switch(c){case fr.ArrowDown:H=Math.min(H+1,m.length-1);break;case fr.ArrowUp:if(this._isDropup()&&-1===H){H=m.length-1;break}H=Math.max(H-1,0);break;case fr.Home:H=0;break;case fr.End:H=m.length-1}m[H].focus()}s.preventDefault()}}else if(s.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===s.target)return void("body"!==this.container||s.shiftKey?s.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const Ge=this._menu.nativeElement.querySelectorAll(Xo);s.shiftKey&&s.target===Ge[0]?(this._anchor.nativeElement.focus(),s.preventDefault()):!s.shiftKey&&s.target===Ge[Ge.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,O.R)(s.target,"focusout").pipe((0,_e.q)(1)).subscribe(({relatedTarget:Ge})=>{this._elementRef.nativeElement.contains(Ge)||this.close()})}}else ne&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,O.R)(ne,"click").pipe((0,_e.q)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(s){return this._anchor.nativeElement.contains(s.target)}_getMenuElements(){const s=this._menu;return null==s?[]:s.menuItems.filter(c=>!c.disabled).map(c=>c.elementRef.nativeElement)}_positionMenu(){const s=this._menu;this.isOpen()&&s&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(s){return Array.isArray(s)?s[0]:s.split(" ")[0]}_resetContainer(){const s=this._renderer;this._menu&&s.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(s.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(s=null){if(this._resetContainer(),"body"===s){const c=this._renderer,m=this._menu.nativeElement,H=this._bodyContainer=this._bodyContainer||c.createElement("div");c.setStyle(H,"position","absolute"),c.setStyle(m,"position","static"),c.setStyle(H,"z-index","1055"),c.appendChild(H,m),c.appendChild(this._document.body,H)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(s,c){const m="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;m&&(c&&this._renderer.removeClass(m,c),s&&this._renderer.addClass(m,s))}_applyPlacementClasses(s){const c=this._menu;if(c){s||(s=this._getFirstPlacement(this.placement));const m=this._renderer,H=this._elementRef.nativeElement;m.removeClass(H,"dropup"),m.removeClass(H,"dropdown");const{nativeElement:ne}=c;"static"===this.display?(c.placement=null,m.setAttribute(ne,"data-bs-popper","static")):(c.placement=s,m.removeAttribute(ne,"data-bs-popper"));const Be=-1!==s.search("^top")?"dropup":"dropdown";m.addClass(H,Be);const Ge=this._bodyContainer;Ge&&(m.removeClass(Ge,"dropup"),m.removeClass(Ge,"dropdown"),m.addClass(Ge,Be))}}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.sBO),t.Y36(cf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdown",""]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,Ya,5),t.Suo(H,ta,5)),2&c){let ne;t.iGM(ne=t.CRH())&&(m._menu=ne.first),t.iGM(ne=t.CRH())&&(m._anchor=ne.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("show",m.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[t.TTD]})}return l})(),Ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class na{constructor(C,s,c){this.nodes=C,this.viewRef=s,this.componentRef=c}}class Mc{constructor(C,s,c,m,H,ne){this._componentType=C,this._injector=s,this._viewContainerRef=c,this._renderer=m,this._ngZone=H,this._applicationRef=ne,this._windowRef=null,this._contentRef=null}open(C,s,c=!1){this._windowRef||(this._contentRef=this._getContentRef(C,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:m}=this._windowRef.location,H=this._ngZone.onStable.pipe((0,_e.q)(1),(0,_t.z)(()=>li(this._ngZone,m,({classList:ne})=>ne.add("show"),{animation:c,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:H}}close(C=!1){return this._windowRef?li(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:C,runningTransition:"stop"}).pipe((0,ve.b)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,L.of)(void 0)}_getContentRef(C,s){if(C){if(C instanceof t.Rgc){const c=C.createEmbeddedView(s);return this._applicationRef.attachView(c),new na([c.rootNodes],c)}return new na([[this._renderer.createText(`${C}`)]])}return new na([])}}let Ac=(()=>{class l{constructor(s,c){this._el=s,this._zone=c}ngOnInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{li(this._zone,this._el.nativeElement,(s,c)=>{c&&Ei(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return li(this._zone,this._el.nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(c,m){2&c&&(t.Tol("modal-backdrop"+(m.backdropClass?" "+m.backdropClass:"")),t.ekj("show",!m.animation)("fade",m.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[t.jDz],decls:0,vars:0,template:function(c,m){},encapsulation:2})}return l})();class Da{update(C){}close(C){}dismiss(C){}}const Ru=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],uf=["animation","backdropClass"];class df{_applyWindowOptions(C,s){Ru.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}_applyBackdropOptions(C,s){uf.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}update(C){this._applyWindowOptions(this._windowCmptRef.instance,C),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,C)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,ye.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,ye.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(C,s,c,m){this._windowCmptRef=C,this._contentRef=s,this._backdropCmptRef=c,this._beforeDismiss=m,this._closed=new h.x,this._dismissed=new h.x,this._hidden=new h.x,C.instance.dismissEvent.subscribe(H=>{this.dismiss(H)}),this.result=new Promise((H,ne)=>{this._resolve=H,this._reject=ne}),this.result.then(null,()=>{})}close(C){this._windowCmptRef&&(this._closed.next(C),this._resolve(C),this._removeModalElements())}_dismiss(C){this._dismissed.next(C),this._reject(C),this._removeModalElements()}dismiss(C){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();!function yr(l){return l&&l.then}(s)?!1!==s&&this._dismiss(C):s.then(c=>{!1!==c&&this._dismiss(C)},()=>{})}else this._dismiss(C)}_removeModalElements(){const C=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,L.of)(void 0);C.subscribe(()=>{const{nativeElement:c}=this._windowCmptRef.location;c.parentNode.removeChild(c),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:c}=this._backdropCmptRef.location;c.parentNode.removeChild(c),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ie(C,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Fo=function(l){return l[l.BACKDROP_CLICK=0]="BACKDROP_CLICK",l[l.ESC=1]="ESC",l}(Fo||{});let Qa=(()=>{class l{constructor(s,c,m){this._document=s,this._elRef=c,this._zone=m,this._closed$=new h.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new t.vpe,this.shown=new h.x,this.hidden=new h.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Ct(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,c={animation:this.animation,runningTransition:"stop"},ne=ie(li(this._zone,s,()=>s.classList.remove("show"),c),li(this._zone,this._dialogEl.nativeElement,()=>{},c));return ne.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),ne}_show(){const s={animation:this.animation,runningTransition:"continue"};ie(li(this._zone,this._elRef.nativeElement,(H,ne)=>{ne&&Ei(H),H.classList.add("show")},s),li(this._zone,this._dialogEl.nativeElement,()=>{},s)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{(0,O.R)(s,"keydown").pipe((0,ye.R)(this._closed$),(0,ce.h)(m=>m.which===fr.Escape)).subscribe(m=>{this.keyboard?requestAnimationFrame(()=>{m.defaultPrevented||this._zone.run(()=>this.dismiss(Fo.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let c=!1;(0,O.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,ye.R)(this._closed$),(0,ve.b)(()=>c=!1),(0,Ze.w)(()=>(0,O.R)(s,"mouseup").pipe((0,ye.R)(this._closed$),(0,_e.q)(1))),(0,ce.h)(({target:m})=>s===m)).subscribe(()=>{c=!0}),(0,O.R)(s,"click").pipe((0,ye.R)(this._closed$)).subscribe(({target:m})=>{s===m&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!c&&this._zone.run(()=>this.dismiss(Fo.BACKDROP_CLICK))),c=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const c=s.querySelector("[ngbAutofocus]"),m=va(s)[0];(c||m||s).focus()}}_restoreFocus(){const s=this._document.body,c=this._elWithFocus;let m;m=c&&c.focus&&s.contains(c)?c:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>m.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&li(this._zone,this._elRef.nativeElement,({classList:s})=>(s.add("modal-static"),()=>s.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(ae.K0),t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-window"]],viewQuery:function(c,m){if(1&c&&t.Gf(Ds,7),2&c){let H;t.iGM(H=t.CRH())&&(m._dialogEl=H.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(c,m){2&c&&(t.uIk("aria-modal",!0)("aria-labelledby",m.ariaLabelledBy)("aria-describedby",m.ariaDescribedBy),t.Tol("modal d-block"+(m.windowClass?" "+m.windowClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(c,m){1&c&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2),t.Hsn(3),t.qZA()()),2&c&&t.Tol("modal-dialog"+(m.size?" modal-"+m.size:"")+(m.centered?" modal-dialog-centered":"")+m.fullscreenClass+(m.scrollable?" modal-dialog-scrollable":"")+(m.modalDialogClass?" "+m.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return l})(),ff=(()=>{class l{constructor(s){this._document=s}hide(){const s=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),c=this._document.body,m=c.style,{overflow:H,paddingRight:ne}=m;if(s>0){const Be=parseFloat(window.getComputedStyle(c).paddingRight);m.paddingRight=`${Be+s}px`}return m.overflow="hidden",()=>{s>0&&(m.paddingRight=ne),m.overflow=H}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ng=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge){this._applicationRef=s,this._injector=c,this._environmentInjector=m,this._document=H,this._scrollBar=ne,this._rendererFactory=Be,this._ngZone=Ge,this._activeWindowCmptHasChanged=new h.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new t.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const ut=this._windowCmpts[this._windowCmpts.length-1];bu(this._ngZone,ut.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(ut.location.nativeElement)}})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,c,m){const H=m.container instanceof HTMLElement?m.container:dr(m.container)?this._document.querySelector(m.container):this._document.body,ne=this._rendererFactory.createRenderer(null,null);if(!H)throw new Error(`The specified modal container "${m.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Be=new Da,Ge=(s=m.injector||s).get(t.lqb,null)||this._environmentInjector,ut=this._getContentRef(s,Ge,c,Be,m);let pt=!1!==m.backdrop?this._attachBackdrop(H):void 0,sn=this._attachWindowComponent(H,ut.nodes),Gt=new df(sn,ut,pt,m.beforeDismiss);return this._registerModalRef(Gt),this._registerWindowCmpt(sn),Gt.hidden.pipe((0,_e.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(ne.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Be.close=un=>{Gt.close(un)},Be.dismiss=un=>{Gt.dismiss(un)},Be.update=un=>{Gt.update(un)},Gt.update(m),1===this._modalRefs.length&&ne.addClass(this._document.body,"modal-open"),pt&&pt.instance&&pt.changeDetectorRef.detectChanges(),sn.changeDetectorRef.detectChanges(),Gt}get activeInstances(){return this._activeInstances}dismissAll(s){this._modalRefs.forEach(c=>c.dismiss(s))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(s){let c=(0,t.LMc)(Ac,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(c.hostView),s.appendChild(c.location.nativeElement),c}_attachWindowComponent(s,c){let m=(0,t.LMc)(Qa,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:c});return this._applicationRef.attachView(m.hostView),s.appendChild(m.location.nativeElement),m}_getContentRef(s,c,m,H,ne){return m?m instanceof t.Rgc?this._createFromTemplateRef(m,H):Ct(m)?this._createFromString(m):this._createFromComponent(s,c,m,H,ne):new na([])}_createFromTemplateRef(s,c){const H=s.createEmbeddedView({$implicit:c,close(ne){c.close(ne)},dismiss(ne){c.dismiss(ne)}});return this._applicationRef.attachView(H),new na([H.rootNodes],H)}_createFromString(s){const c=this._document.createTextNode(`${s}`);return new na([[c]])}_createFromComponent(s,c,m,H,ne){const Be=t.zs3.create({providers:[{provide:Da,useValue:H}],parent:s}),Ge=(0,t.LMc)(m,{environmentInjector:c,elementInjector:Be}),ut=Ge.location.nativeElement;return ne.scrollable&&ut.classList.add("component-host-scrollable"),this._applicationRef.attachView(Ge.hostView),new na([[ut]],Ge.hostView,Ge)}_setAriaHidden(s){const c=s.parentElement;c&&s!==this._document.body&&(Array.from(c.children).forEach(m=>{m!==s&&"SCRIPT"!==m.nodeName&&(this._ariaHiddenValues.set(m,m.getAttribute("aria-hidden")),m.setAttribute("aria-hidden","true"))}),this._setAriaHidden(c))}_revertAriaHidden(){this._ariaHiddenValues.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(s){const c=()=>{const m=this._modalRefs.indexOf(s);m>-1&&(this._modalRefs.splice(m,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(s),this._activeInstances.emit(this._modalRefs),s.result.then(c,c)}_registerWindowCmpt(s){this._windowCmpts.push(s),this._activeWindowCmptHasChanged.next(),s.onDestroy(()=>{const c=this._windowCmpts.indexOf(s);c>-1&&(this._windowCmpts.splice(c,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.z2F),t.LFG(t.zs3),t.LFG(t.lqb),t.LFG(ae.K0),t.LFG(ff),t.LFG(t.FYo),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Nu=(()=>{class l{constructor(s){this._ngbConfig=s,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Lu=(()=>{class l{constructor(s,c,m){this._injector=s,this._modalStack=c,this._config=m}open(s,c={}){const m={...this._config,animation:this._config.animation,...c};return this._modalStack.open(this._injector,s,m)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(s){this._modalStack.dismissAll(s)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.zs3),t.LFG(ng),t.LFG(Nu))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),pf=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({providers:[Lu]})}return l})(),xl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Oc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Ca{constructor(C,s){this.open=C,this.close=s,s||(this.close=C)}isManual(){return"manual"===this.open||"manual"===this.close}}const ju={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},rl=l=>l>0?Ee(l):C=>C;let $u=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ic=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),fs=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Lc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const zu=(l,C)=>{const{classList:s}=l;if(C)return s.add("fade"),Ei(l),s.add("show","showing"),()=>{s.remove("showing")};s.add("show")},Ku=({classList:l})=>(l.add("showing"),()=>{l.remove("show","showing")});let Ta=(()=>{class l{constructor(s){this._ngbConfig=s,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Rl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbToastHeader",""]],standalone:!0})}return l})(),Yu=(()=>{class l{constructor(s,c,m,H){this.ariaLive=s,this._zone=m,this._element=H,this.contentHeaderTpl=null,this.shown=new t.vpe,this.hidden=new t.vpe,null==this.ariaLive&&(this.ariaLive=c.ariaLive),this.delay=c.delay,this.autohide=c.autohide,this.animation=c.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(s){"autohide"in s&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const s=li(this._zone,this._element.nativeElement,Ku,{animation:this.animation,runningTransition:"stop"});return s.subscribe(()=>{this.hidden.emit()}),s}show(){const s=li(this._zone,this._element.nativeElement,zu,{animation:this.animation,runningTransition:"continue"});return s.subscribe(()=>{this.shown.emit()}),s}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.$8M("aria-live"),t.Y36(Ta),t.Y36(t.R0b),t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-toast"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Rl,7,t.Rgc),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentHeaderTpl=ne.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(c,m){2&c&&(t.uIk("aria-live",m.ariaLive),t.ekj("fade",m.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[t.TTD,t.jDz],ngContentSelectors:Ve,decls:5,vars:1,consts:function(){let s;return s=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",s,1,"btn-close",3,"click"]]},template:function(c,m){1&c&&(t.F$t(),t.YNc(0,_o,2,1,"ng-template",null,0,t.W1O),t.YNc(2,Ao,3,1,"ng-template",1),t.TgZ(3,"div",2),t.Hsn(4),t.qZA()),2&c&&(t.xp6(2),t.Q6J("ngIf",m.contentHeaderTpl||m.header))},dependencies:[ae.O5,ae.tP],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2})}return l})(),Nl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ll=(()=>{class l{constructor(s){this._ngbConfig=s,this.autoClose=!0,this.placement="auto",this.popperOptions=c=>c,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Of=0,If=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(c,m){2&c&&(t.Ikx("id",m.id),t.Tol("tooltip"+(m.tooltipClass?" "+m.tooltipClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(c,m){1&c&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA())},encapsulation:2,changeDetection:0})}return l})(),Pf=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,pt){this._elementRef=s,this._renderer=c,this._ngZone=Be,this._document=Ge,this._changeDetector=ut,this.shown=new t.vpe,this.hidden=new t.vpe,this._ngbTooltipWindowId="ngb-tooltip-"+Of++,this._windowRef=null,this.animation=ne.animation,this.autoClose=ne.autoClose,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this.triggers=ne.triggers,this.container=ne.container,this.disableTooltip=ne.disableTooltip,this.tooltipClass=ne.tooltipClass,this.openDelay=ne.openDelay,this.closeDelay=ne.closeDelay,this._popupService=new Mc(If,m,H,c,this._ngZone,pt),this._positioning=qo()}set ngbTooltip(s){this._ngbTooltip=s,!s&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(s){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:c,transition$:m}=this._popupService.open(this._ngbTooltip,s??this.tooltipContext,this.animation);this._windowRef=c,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:H=>this.popperOptions(H)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),m.subscribe(()=>this.shown.emit())}}close(s=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(s).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function Tf(l,C,s,c,m,H,ne=0,Be=0){const Ge=function Hu(l,C=ju){const s=(l||"").trim();if(0===s.length)return[];const c=s.split(/\s+/).map(H=>H.split(":")).map(H=>{let ne=C[H[0]]||H;return new Ca(ne[0],ne[1])}),m=c.filter(H=>H.isManual());if(m.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===m.length&&c.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return c}(s);if(1===Ge.length&&Ge[0].isManual())return()=>{};const ut=function Ol(l,C,s,c){return new d.y(m=>{const H=[],ne=()=>m.next(!0),Be=()=>m.next(!1),Ge=()=>m.next(!c());return s.forEach(ut=>{ut.open===ut.close?H.push(l.listen(C,ut.open,Ge)):H.push(l.listen(C,ut.open,ne),l.listen(C,ut.close,Be))}),()=>{H.forEach(ut=>ut())}})}(l,C,Ge,c).pipe(function Il(l,C,s){return c=>{let m=null;const H=c.pipe((0,xe.U)(Ge=>({open:Ge})),(0,ce.h)(Ge=>{const ut=s();return ut===Ge.open||m&&m.open!==ut?(m&&m.open!==Ge.open&&(m=null),!1):(m=Ge,!0)}),(0,se.B)()),ne=H.pipe((0,ce.h)(Ge=>Ge.open),rl(l)),Be=H.pipe((0,ce.h)(Ge=>!Ge.open),rl(C));return(0,M.T)(ne,Be).pipe((0,ce.h)(Ge=>Ge===m&&(m=null,Ge.open!==s())),(0,xe.U)(Ge=>Ge.open))}}(ne,Be,c)).subscribe(pt=>pt?m():H());return()=>ut.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:s}){s&&this.isOpen()&&(this._windowRef.instance.tooltipClass=s.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(Ll),t.Y36(t.R0b),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[t.TTD]})}return l})(),Ju=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rf=(()=>{class l{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(s){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const c=Ie(this.result),m=Array.isArray(this.term)?this.term:[this.term],H=ut=>this.accentSensitive?ut:Hi(ut),ne=m.map(ut=>function Jr(l){return l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(H(Ie(ut)))).filter(ut=>ut),Be=this.accentSensitive?c:Hi(c),Ge=ne.length?Be.split(new RegExp(`(${ne.join("|")})`,"gmi")):[c];if(this.accentSensitive)this.parts=Ge;else{let ut=0;this.parts=Ge.map(pt=>c.substring(ut,ut+=pt.length))}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[t.TTD,t.jDz],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(c,m){1&c&&t.YNc(0,oo,3,2,"ng-template",0),2&c&&t.Q6J("ngForOf",m.parts)},dependencies:[ae.O5,ae.ax],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0})}return l})(),Nf=(()=>{class l{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Ie,this.selectEvent=new t.vpe,this.activeChangeEvent=new t.vpe}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(c,m){1&c&&t.NdJ("mousedown",function(ne){return ne.preventDefault()}),2&c&&(t.Ikx("id",m.id),t.Tol("dropdown-menu show"+(m.popupClass?" "+m.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,xo,1,2,"ng-template",null,0,t.W1O),t.YNc(2,U,2,9,"ng-template",1)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.results))},dependencies:[Rf,ae.ax,ae.tP],encapsulation:2})}return l})(),Qu=(()=>{class l{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const Fl=new t.OlP("live announcer delay",{providedIn:"root",factory:function Fc(){return 100}});function kl(l,C=!1){let s=l.body.querySelector("#ngb-live");return null==s&&C&&(s=l.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),l.body.appendChild(s)),s}let Lf=(()=>{class l{constructor(s,c){this._document=s,this._delay=c}ngOnDestroy(){const s=kl(this._document);s&&s.parentElement.removeChild(s)}say(s){const c=kl(this._document,!0),m=this._delay;if(null!=c){c.textContent="";const H=()=>c.textContent=s;null===m?H():setTimeout(H,m)}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0),t.LFG(Fl))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Ff=0,kc=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,pt,sn,Gt){this._elementRef=s,this._renderer=m,this._live=Ge,this._document=ut,this._ngZone=pt,this._changeDetector=sn,this._subscription=null,this._closed$=new h.x,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-start",this.selectItem=new t.vpe,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Ff++,this._onTouched=()=>{},this._onChange=un=>{},this.container=ne.container,this.editable=ne.editable,this.focusFirst=ne.focusFirst,this.selectOnExact=ne.selectOnExact,this.showHint=ne.showHint,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this._valueChanges=(0,O.R)(s.nativeElement,"input").pipe((0,xe.U)(un=>un.target.value)),this._resubscribeTypeahead=new k.X(null),this._popupService=new Mc(Nf,H,c,m,this._ngZone,Gt),this._positioning=qo()}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:s}){s&&!s.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}writeValue(s){this._writeInputValue(this._formatItemForInput(s)),this.showHint&&(this._inputValueBackup=s)}setDisabledState(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(s){if(this.isPopupOpen())switch(s.which){case fr.ArrowDown:s.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case fr.ArrowUp:s.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case fr.Enter:case fr.Tab:{const c=this._windowRef.instance.getActive();dr(c)&&(s.preventDefault(),s.stopPropagation(),this._selectResult(c)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:s}=this._popupService.open();this._windowRef=s,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(c=>this._selectResultClosePopup(c)),this._windowRef.instance.activeChangeEvent.subscribe(c=>this.activeDescendant=c),"body"===this.container&&(this._renderer.setStyle(this._windowRef.location.nativeElement,"z-index","1055"),this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),bl(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(s){let c=!1;this.selectItem.emit({item:s,preventDefault:()=>{c=!0}}),this._resubscribeTypeahead.next(null),c||(this.writeValue(s),this._onChange(s))}_selectResultClosePopup(s){this._selectResult(s),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&null!=this._inputValueBackup){const s=this._inputValueBackup.toLowerCase(),c=this._formatItemForInput(this._windowRef.instance.getActive());s===c.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+c.substring(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,c.length])):this._writeInputValue(c)}}_formatItemForInput(s){return null!=s&&this.inputFormatter?this.inputFormatter(s):Ie(s)}_writeInputValue(s){this._renderer.setProperty(this._elementRef.nativeElement,"value",Ie(s))}_subscribeToUserInput(){const s=this._valueChanges.pipe((0,ve.b)(c=>{this._inputValueBackup=this.showHint?c:null,this._inputValueForSelectOnExact=this.selectOnExact?c:null,this._onChange(this.editable?c:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>(0,L.of)([]));this._subscription=this._resubscribeTypeahead.pipe((0,Ze.w)(()=>s)).subscribe(c=>{c&&0!==c.length?this.selectOnExact&&1===c.length&&this._formatItemForInput(c[0])===this._inputValueForSelectOnExact?(this._selectResult(c[0]),this._closePopup()):(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=c,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const m=c?c.length:0;this._live.say(0===m?"No results available":`${m} result${1===m?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(Qu),t.Y36(t.R0b),t.Y36(Lf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(c,m){1&c&&t.NdJ("blur",function(){return m.handleBlur()})("keydown",function(ne){return m.handleKeyDown(ne)}),2&c&&(t.Ikx("autocomplete",m.autocomplete),t.uIk("aria-autocomplete",m.showHint?"both":"list")("aria-activedescendant",m.activeDescendant)("aria-owns",m.isPopupOpen()?m.popupId:null)("aria-expanded",m.isPopupOpen()),t.ekj("open",m.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0}]),t.TTD]})}return l})(),Bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),jc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const qu=[ja,Nt,rn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,fs,Rc,Lc,Nl,Ju,Bc];let Hc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({imports:[qu,ja,Nt,rn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,fs,Rc,Lc,Nl,Ju,Bc]})}return l})()},363:(Pe,V,a)=>{"use strict";a.d(V,{zB:()=>Un,C5:()=>Wt,ir:()=>yt,w9:()=>qn,A0:()=>pe});var t=a(5879),d=a(6223),w=a(9773),L=a(6321),h=a(9360),O=a(4829),R=a(8251),P=a(4825);var $=a(7921),f=a(9397),j=a(3620),M=a(2181),q=a(7398),ie=a(1954),k=a(7394);const Te={schedule(Z){let K=requestAnimationFrame,D=cancelAnimationFrame;const{delegate:X}=Te;X&&(K=X.requestAnimationFrame,D=X.cancelAnimationFrame);const de=K(Oe=>{D=void 0,Z(Oe)});return new k.w0(()=>D?.(de))},requestAnimationFrame(...Z){const{delegate:K}=Te;return(K?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){const{delegate:K}=Te;return(K?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0};var ye=a(2631);const _e=new class ce extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Se extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=Te.requestAnimationFrame(()=>K.flush(void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&(Te.cancelAnimationFrame(D),K._scheduled=void 0)}});let be,xe=1;const ke={};function vt(Z){return Z in ke&&(delete ke[Z],!0)}const rt={setImmediate(Z){const K=xe++;return ke[K]=!0,be||(be=Promise.resolve()),be.then(()=>vt(K)&&Z()),K},clearImmediate(Z){vt(Z)}},{setImmediate:qe,clearImmediate:_t}=rt,$e={setImmediate(...Z){const{delegate:K}=$e;return(K?.setImmediate||qe)(...Z)},clearImmediate(Z){const{delegate:K}=$e;return(K?.clearImmediate||_t)(Z)},delegate:void 0},J=new class Ze extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Ee extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=$e.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&($e.clearImmediate(D),K._scheduled===D&&(K._scheduled=void 0))}});var oe=a(8645),se=a(2438),ae=a(3019),fe=a(6814);const De=["content"],je=["scroll"],Xe=["padding"],tt=function(Z){return{searchTerm:Z}};function wt(Z,K){if(1&Z&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&Z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.headerTemplate)("ngTemplateOutletContext",t.VKq(2,tt,D.filterValue))}}function It(Z,K){if(1&Z&&(t.TgZ(0,"div",8),t.GkF(1,7),t.qZA()),2&Z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.footerTemplate)("ngTemplateOutletContext",t.VKq(2,tt,D.filterValue))}}const Je=["*"],Tt=["searchInput"],et=["clearButton"];function Pt(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"span",15),t.NdJ("click",function(){t.CHM(D);const de=t.oxw().$implicit,Oe=t.oxw(2);return t.KtG(Oe.unselect(de))}),t._uU(1,"\xd7"),t.qZA(),t._UZ(2,"span",16)}if(2&Z){const D=t.oxw().$implicit,X=t.oxw(2);t.xp6(2),t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function Zt(Z,K){}const dn=function(Z,K,D){return{item:Z,clear:K,label:D}};function Rn(Z,K){if(1&Z&&(t.TgZ(0,"div",12),t.YNc(1,Pt,3,2,"ng-template",null,13,t.W1O),t.YNc(3,Zt,0,0,"ng-template",14),t.qZA()),2&Z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-value-disabled",D.disabled),t.xp6(3),t.Q6J("ngTemplateOutlet",de.labelTemplate||X)("ngTemplateOutletContext",t.kEZ(4,dn,D.value,de.clearItem,D.label))}}function We(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,Rn,4,8,"div",11),t.BQk()),2&Z){const D=t.oxw();t.xp6(1),t.Q6J("ngForOf",D.selectedItems)("ngForTrackBy",D.trackByOption)}}function Ye(Z,K){}const At=function(Z,K){return{items:Z,clear:K}};function xt(Z,K){if(1&Z&&t.YNc(0,Ye,0,0,"ng-template",14),2&Z){const D=t.oxw();t.Q6J("ngTemplateOutlet",D.multiLabelTemplate)("ngTemplateOutletContext",t.WLB(2,At,D.selectedValues,D.clearItem))}}function nn(Z,K){1&Z&&t._UZ(0,"div",19)}function Et(Z,K){}function Ht(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,nn,1,0,"ng-template",null,17,t.W1O),t.YNc(3,Et,0,0,"ng-template",18),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw();t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingSpinnerTemplate||D)}}function zt(Z,K){if(1&Z&&(t.TgZ(0,"span",20,21)(2,"span",22),t._uU(3,"\xd7"),t.qZA()()),2&Z){const D=t.oxw();t.s9C("title",D.clearAllText)}}function fn(Z,K){if(1&Z&&t._UZ(0,"span",28),2&Z){const D=t.oxw().$implicit,X=t.oxw(2);t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function Sn(Z,K){}const hn=function(Z,K,D,X){return{item:Z,item$:K,index:D,searchTerm:X}};function en(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"div",26),t.NdJ("click",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.toggleItem(Oe))})("mouseover",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.onItemHover(Oe))}),t.YNc(1,fn,1,2,"ng-template",null,27,t.W1O),t.YNc(3,Sn,0,0,"ng-template",14),t.qZA()}if(2&Z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-option-disabled",D.disabled)("ng-option-selected",D.selected)("ng-optgroup",D.children)("ng-option",!D.children)("ng-option-child",!!D.parent)("ng-option-marked",D===de.itemsList.markedItem),t.uIk("role",D.children?"group":"option")("aria-selected",D.selected)("id",null==D?null:D.htmlId),t.xp6(3),t.Q6J("ngTemplateOutlet",D.children?de.optgroupTemplate||X:de.optionTemplate||X)("ngTemplateOutletContext",t.l5B(17,hn,D.value,D,D.index,de.searchTerm))}}function Dn(Z,K){if(1&Z&&(t.TgZ(0,"span")(1,"span",31),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(2),t.Oqu(D.addTagText),t.xp6(1),t.hij('"',D.searchTerm,'"')}}function Wn(Z,K){}function _n(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"div",29),t.NdJ("mouseover",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.itemsList.unmarkItem())})("click",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.selectTag())}),t.YNc(1,Dn,4,2,"ng-template",null,30,t.W1O),t.YNc(3,Wn,0,0,"ng-template",14),t.qZA()}if(2&Z){const D=t.MAs(2),X=t.oxw(2);t.ekj("ng-option-marked",!X.itemsList.markedItem),t.xp6(3),t.Q6J("ngTemplateOutlet",X.tagTemplate||D)("ngTemplateOutletContext",t.VKq(4,tt,X.searchTerm))}}function Er(Z,K){if(1&Z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.notFoundText)}}function it(Z,K){}function Ut(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,Er,2,1,"ng-template",null,32,t.W1O),t.YNc(3,it,0,0,"ng-template",14),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.notFoundTemplate||D)("ngTemplateOutletContext",t.VKq(2,tt,X.searchTerm))}}function Qt(Z,K){if(1&Z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.typeToSearchText)}}function Cn(Z,K){}function An(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,Qt,2,1,"ng-template",null,34,t.W1O),t.YNc(3,Cn,0,0,"ng-template",18),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.typeToSearchTemplate||D)}}function In(Z,K){if(1&Z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.loadingText)}}function nr(Z,K){}function Dr(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,In,2,1,"ng-template",null,35,t.W1O),t.YNc(3,nr,0,0,"ng-template",14),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingTextTemplate||D)("ngTemplateOutletContext",t.VKq(2,tt,X.searchTerm))}}function wr(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"ng-dropdown-panel",23),t.NdJ("update",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.viewPortItems=de)})("scroll",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scroll.emit(de))})("scrollToEnd",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scrollToEnd.emit(de))})("outsideClick",function(){t.CHM(D);const de=t.oxw();return t.KtG(de.close())}),t.ynx(1),t.YNc(2,en,4,22,"div",24),t.YNc(3,_n,4,6,"div",25),t.BQk(),t.YNc(4,Ut,4,4,"ng-container",3),t.YNc(5,An,4,1,"ng-container",3),t.YNc(6,Dr,4,4,"ng-container",3),t.qZA()}if(2&Z){const D=t.oxw();t.ekj("ng-select-multiple",D.multiple),t.Q6J("virtualScroll",D.virtualScroll)("bufferAmount",D.bufferAmount)("appendTo",D.appendTo)("position",D.dropdownPosition)("headerTemplate",D.headerTemplate)("footerTemplate",D.footerTemplate)("filterValue",D.searchTerm)("items",D.itemsList.filteredItems)("markedItem",D.itemsList.markedItem)("ngClass",D.appendTo?D.classes:null)("id",D.dropdownId),t.xp6(2),t.Q6J("ngForOf",D.viewPortItems)("ngForTrackBy",D.trackByOption),t.xp6(1),t.Q6J("ngIf",D.showAddTag),t.xp6(1),t.Q6J("ngIf",D.showNoItemsFound()),t.xp6(1),t.Q6J("ngIf",D.showTypeToSearch()),t.xp6(1),t.Q6J("ngIf",D.loading&&0===D.itemsList.filteredItems.length)}}const Or=/[&<>"']/g,Ir=RegExp(Or.source),Br={"&":"&","<":"<",">":">",'"':""","'":"'"};function Zn(Z){return null!=Z}function dt(Z){return"object"==typeof Z&&Zn(Z)}function we(Z){return Z instanceof Function}let He=(()=>{class Z{constructor(D){this.element=D,this.escape=!0}ngOnChanges(D){this.element.nativeElement.innerHTML=this.escape?function oi(Z){return Z&&Ir.test(Z)?Z.replace(Or,K=>Br[K]):Z}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[t.TTD]})}return Z})(),yt=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-option-tmp",""]]})}return Z})(),Wt=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-optgroup-tmp",""]]})}return Z})(),Vt=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-label-tmp",""]]})}return Z})(),Un=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-multi-label-tmp",""]]})}return Z})(),on=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-header-tmp",""]]})}return Z})(),rr=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-footer-tmp",""]]})}return Z})(),ln=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-notfound-tmp",""]]})}return Z})(),$n=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-typetosearch-tmp",""]]})}return Z})(),Qe=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-loadingtext-tmp",""]]})}return Z})(),Le=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-tag-tmp",""]]})}return Z})(),Ue=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-loadingspinner-tmp",""]]})}return Z})();function bt(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Rt={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function kt(Z){return Z.replace(/[^\u0000-\u007E]/g,D=>Rt[D]||D)}class Ft{constructor(K,D){this._ngSelect=K,this._selectionModel=D,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let K=this.selectedItems.length-1;for(;K>=0;K--){const D=this.selectedItems[K];if(!D.disabled)return D}return null}setItems(K){this._items=K.map((D,X)=>this.mapItem(D,X)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(K){if(K.selected||this.maxItemsSelected)return;const D=this._ngSelect.multiple;D||this.clearSelected(),this._selectionModel.select(K,D,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(K)}unselect(K){K.selected&&(this._selectionModel.unselect(K,this._ngSelect.multiple),this._ngSelect.hideSelected&&Zn(K.index)&&this._ngSelect.multiple&&this._showSelected(K))}findItem(K){let D;return D=this._ngSelect.compareWith?X=>this._ngSelect.compareWith(X.value,K):this._ngSelect.bindValue?X=>!X.children&&this.resolveNested(X.value,this._ngSelect.bindValue)===K:X=>X.value===K||!X.children&&X.label&&X.label===this.resolveNested(K,this._ngSelect.bindLabel),this._items.find(X=>D(X))}addItem(K){const D=this.mapItem(K,this._items.length);return this._items.push(D),this._filteredItems.push(D),D}clearSelected(K=!1){this._selectionModel.clear(K),this._items.forEach(D=>{D.selected=K&&D.selected&&D.disabled,D.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(K){return K=kt(K).toLocaleLowerCase(),this.filteredItems.find(D=>kt(D.label).toLocaleLowerCase().substr(0,K.length)===K)}filter(K){if(!K)return void this.resetFilteredItems();this._filteredItems=[],K=this._ngSelect.searchFn?K:kt(K).toLocaleLowerCase();const D=this._ngSelect.searchFn||this._defaultSearchFn,X=this._ngSelect.hideSelected;for(const de of Array.from(this._groups.keys())){const Oe=[];for(const Ae of this._groups.get(de))X&&(Ae.parent&&Ae.parent.selected||Ae.selected)||D(K,this._ngSelect.searchFn?Ae.value:Ae)&&Oe.push(Ae);if(Oe.length>0){const[Ae]=Oe.slice(-1);if(Ae.parent){const mt=this._items.find($t=>$t===Ae.parent);this._filteredItems.push(mt)}this._filteredItems.push(...Oe)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(K=>!K.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(K){this._markedIndex=this._filteredItems.indexOf(K)}markSelectedOrDefault(K){if(0===this._filteredItems.length)return;const D=this._getLastMarkedIndex();this._markedIndex=D>-1?D:K?this.filteredItems.findIndex(X=>!X.disabled):-1}resolveNested(K,D){if(!dt(K))return K;if(-1===D.indexOf("."))return K[D];{const X=D.split(".");let de=K;for(let Oe=0,Ae=X.length;Oe-1===this.selectedItems.indexOf(D)))}_showSelected(K){if(this._filteredItems.push(K),K.parent){const D=K.parent;this._filteredItems.find(de=>de===D)||this._filteredItems.push(D)}else if(K.children)for(const D of K.children)D.selected=!1,this._filteredItems.push(D);this._filteredItems=[...this._filteredItems.sort((D,X)=>D.index-X.index)]}_hideSelected(K){this._filteredItems=this._filteredItems.filter(D=>D!==K),K.parent?K.parent.children.every(X=>X.selected)&&(this._filteredItems=this._filteredItems.filter(X=>X!==K.parent)):K.children&&(this._filteredItems=this.filteredItems.filter(D=>D.parent!==K))}_defaultSearchFn(K,D){return kt(D.label).toLocaleLowerCase().indexOf(K)>-1}_getNextItemIndex(K){return K>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(K){0===this._filteredItems.length||this._filteredItems.every(D=>D.disabled)||(this._markedIndex=this._getNextItemIndex(K),this.markedItem.disabled&&this._stepToItem(K))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const K=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&K<0?-1:Math.max(this.markedIndex,K)}_groupBy(K,D){const X=new Map;if(0===K.length)return X;if(Array.isArray(K[0].value[D])){for(const Ae of K){const mt=(Ae.value[D]||[]).map(($t,cn)=>this.mapItem($t,cn));X.set(Ae,mt)}return X}const de=we(this._ngSelect.groupBy),Oe=Ae=>{const mt=de?D(Ae.value):Ae.value[D];return Zn(mt)?mt:void 0};for(const Ae of K){const mt=Oe(Ae),$t=X.get(mt);$t?$t.push(Ae):X.set(mt,[Ae])}return X}_flatten(K){const D=we(this._ngSelect.groupBy),X=[];for(const de of Array.from(K.keys())){let Oe=X.length;if(void 0===de){const En=K.get(void 0)||[];X.push(...En.map(Nn=>(Nn.index=Oe++,Nn)));continue}const Ae=dt(de),mt={label:Ae?"":String(de),children:void 0,parent:null,index:Oe++,disabled:!this._ngSelect.selectableGroup,htmlId:bt()},$t=D?this._ngSelect.bindLabel:this._ngSelect.groupBy,cn=this._ngSelect.groupValue||(()=>Ae?de.value:{[$t]:de}),vn=K.get(de).map(En=>(En.parent=mt,En.children=void 0,En.index=Oe++,En));mt.children=vn,mt.value=cn(de,vn.map(En=>En.value)),X.push(mt),X.push(...vn)}return X}}var an=function(Z){return Z[Z.Tab=9]="Tab",Z[Z.Enter=13]="Enter",Z[Z.Esc=27]="Esc",Z[Z.Space=32]="Space",Z[Z.ArrowUp=38]="ArrowUp",Z[Z.ArrowDown=40]="ArrowDown",Z[Z.Backspace=8]="Backspace",Z}(an||{});let wn=(()=>{class Z{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(D,X,de){const Oe=this._dimensions,Ae=Oe.itemHeight*X,$t=Math.max(0,D)/Ae*X;let cn=Math.min(X,Math.ceil($t)+(Oe.itemsPerViewport+1));const En=Math.max(0,cn-Oe.itemsPerViewport);let Nn=Math.min(En,Math.floor($t)),ir=Oe.itemHeight*Math.ceil(Nn)-Oe.itemHeight*Math.min(Nn,de);return ir=isNaN(ir)?0:ir,Nn=isNaN(Nn)?-1:Nn,cn=isNaN(cn)?-1:cn,Nn-=de,Nn=Math.max(0,Nn),cn+=de,cn=Math.min(X,cn),{topPadding:ir,scrollHeight:Ae,start:Nn,end:cn}}setDimensions(D,X){const de=Math.max(1,Math.floor(X/D));this._dimensions={itemHeight:D,panelHeight:X,itemsPerViewport:de}}getScrollTo(D,X,de){const{panelHeight:Oe}=this.dimensions,Ae=D+X,$t=de+Oe;return Oe>=Ae&&de===D?null:Ae>$t?de+Ae-$t:D<=de?D:null}static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac})}return Z})();const pr=["top","right","bottom","left"],jr=typeof requestAnimationFrame<"u"?_e:J;let Fr=(()=>{class Z{constructor(D,X,de,Oe,Ae){this._renderer=D,this._zone=X,this._panelService=de,this._document=Ae,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.outsideClick=new t.vpe,this._destroy$=new oe.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=Oe.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(D){D!==this._itemsLength&&(this._itemsLength=D,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:D,panelHeight:X}=this._panelService.dimensions,de=this.markedItem.index*D;return X>de?0:de}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(D){if(D.items){const X=D.items;this._onItemsChange(X.currentValue,X.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(D,X=!1){if(!D)return;const de=this.items.indexOf(D);if(de<0||de>=this.itemsLength)return;let Oe;if(this.virtualScroll){const Ae=this._panelService.dimensions.itemHeight;Oe=this._panelService.getScrollTo(de*Ae,Ae,this._lastScrollPosition)}else{const Ae=this._dropdown.querySelector(`#${D.htmlId}`);Oe=this._panelService.getScrollTo(Ae.offsetTop,Ae.clientHeight,X?Ae.offsetTop:this._lastScrollPosition)}Zn(Oe)&&(this._scrollablePanel.scrollTop=Oe)}scrollToTag(){const D=this._scrollablePanel;D.scrollTop=D.scrollHeight-D.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),pr.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(D){pr.forEach(de=>{const Oe=`ng-select-${de}`;this._renderer.removeClass(this._dropdown,Oe),this._renderer.removeClass(this._select,Oe)});const X=`ng-select-${D}`;this._renderer.addClass(this._dropdown,X),this._renderer.addClass(this._select,X)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,se.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,w.R)(this._destroy$),function B(Z,K=L.z){return function F(Z){return(0,h.e)((K,D)=>{let X=!1,de=null,Oe=null,Ae=!1;const mt=()=>{if(Oe?.unsubscribe(),Oe=null,X){X=!1;const cn=de;de=null,D.next(cn)}Ae&&D.complete()},$t=()=>{Oe=null,Ae&&D.complete()};K.subscribe((0,R.x)(D,cn=>{X=!0,de=cn,Oe||(0,O.Xf)(Z(cn)).subscribe(Oe=(0,R.x)(D,mt,$t))},()=>{Ae=!0,(!X||!Oe||Oe.closed)&&D.complete()}))})}(()=>(0,P.H)(Z,K))}(0,jr)).subscribe(D=>{const X=D.path||D.composedPath&&D.composedPath();this._onContentScrolled(X&&0!==X.length?X[0].scrollTop:D.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,ae.T)((0,se.R)(this._document,"touchstart",{capture:!0}),(0,se.R)(this._document,"mousedown",{capture:!0})).pipe((0,w.R)(this._destroy$)).subscribe(D=>this._checkToClose(D))})}_checkToClose(D){if(this._select.contains(D.target)||this._dropdown.contains(D.target))return;const X=D.path||D.composedPath&&D.composedPath();D.target&&D.target.shadowRoot&&X&&X[0]&&this._select.contains(X[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(D,X){this.items=D||[],this._scrollToEndFired=!1,this.itemsLength=D.length,this.virtualScroll?this._updateItemsRange(X):(this._setVirtualHeight(),this._updateItems(X))}_updateItems(D){this.update.emit(this.items),!1!==D&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,D)})})}_updateItemsRange(D){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{D?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(D){this.virtualScroll&&this._renderItemsRange(D),this._lastScrollPosition=D,this._fireScrollToEnd(D)}_updateVirtualHeight(D){this._updateScrollHeight&&(this._virtualPadding.style.height=`${D}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(D=null){if(D&&this._lastScrollPosition===D)return;const X=this._panelService.calculateItems(D=D||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(X.scrollHeight),this._contentPanel.style.transform=`translateY(${X.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(X.start,X.end)),this.scroll.emit({start:X.start,end:X.end})}),Zn(D)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=D,this._lastScrollPosition=D)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[D]=this.items;return this.update.emit([D]),Promise.resolve().then(()=>{const de=this._dropdown.querySelector(`#${D.htmlId}`).clientHeight;return this._virtualPadding.style.height=de*this.itemsLength+"px",this._panelService.setDimensions(de,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(D){this._scrollToEndFired||0===D||D+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(D){if("auto"!==this.position)return this.position;const X=this._select.getBoundingClientRect(),de=document.documentElement.scrollTop||document.body.scrollTop;return X.top+window.pageYOffset+X.height+D.getBoundingClientRect().height>de+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect();this._dropdown.style.left=D.left-X.left+"px",this._dropdown.style.width=D.width+"px",this._dropdown.style.minWidth=D.width+"px"}_updateYPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect(),de=D.height;"top"===this._currentPosition?(this._dropdown.style.bottom=X.bottom-D.bottom+de+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=D.top-X.top+de+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,se.R)(this._dropdown,"mousedown").pipe((0,w.R)(this._destroy$)).subscribe(D=>{"INPUT"!==D.target.tagName&&D.preventDefault()})})}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(wn),t.Y36(t.SBq),t.Y36(fe.K0,8))};static#t=this.\u0275cmp=t.Xpm({type:Z,selectors:[["ng-dropdown-panel"]],viewQuery:function(X,de){if(1&X&&(t.Gf(De,7,t.SBq),t.Gf(je,7,t.SBq),t.Gf(Xe,7,t.SBq)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.contentElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.scrollElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.paddingElementRef=Oe.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[t.TTD],ngContentSelectors:Je,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(X,de){1&X&&(t.F$t(),t.YNc(0,wt,2,4,"div",0),t.TgZ(1,"div",1,2),t._UZ(3,"div",null,3),t.TgZ(5,"div",null,4),t.Hsn(7),t.qZA()(),t.YNc(8,It,2,4,"div",5)),2&X&&(t.Q6J("ngIf",de.headerTemplate),t.xp6(3),t.ekj("total-padding",de.virtualScroll),t.xp6(2),t.ekj("scrollable-content",de.virtualScroll&&de.items.length),t.xp6(3),t.Q6J("ngIf",de.footerTemplate))},dependencies:[fe.O5,fe.tP],encapsulation:2,changeDetection:0})}return Z})(),Ar=(()=>{class Z{get disabled(){return this._disabled}set disabled(D){this._disabled=this._isDisabled(D)}constructor(D){this.elementRef=D,this.stateChange$=new oe.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(D){D.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(D){return null!=D&&"false"!=`${D}`}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:Z,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[t.TTD],ngContentSelectors:Je,decls:1,vars:0,template:function(X,de){1&X&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0})}return Z})(),Hr=(()=>{class Z{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),Zr=(()=>{class Z{warn(D){console.warn(D)}static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})();const Xn=new t.OlP("ng-select-selection-model");let qn=(()=>{class Z{get items(){return this._items}set items(D){null===D&&(D=[]),this._itemsAreUsed=!0,this._items=D}get compareWith(){return this._compareWith}set compareWith(D){if(null!=D&&!we(D))throw Error("`compareWith` must be a function.");this._compareWith=D}get clearSearchOnAdd(){return Zn(this._clearSearchOnAdd)?this._clearSearchOnAdd:Zn(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(D){this._clearSearchOnAdd=D}get deselectOnClick(){return Zn(this._deselectOnClick)?this._deselectOnClick:Zn(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(D){this._deselectOnClick=D}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(D,X,de,Oe,Ae,mt,$t){this.classes=D,this.autoFocus=X,this.config=de,this._cd=mt,this._console=$t,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=cn=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new t.vpe,this.focusEvent=new t.vpe,this.changeEvent=new t.vpe,this.openEvent=new t.vpe,this.closeEvent=new t.vpe,this.searchEvent=new t.vpe,this.clearEvent=new t.vpe,this.addEvent=new t.vpe,this.removeEvent=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=bt(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new oe.x,this._keyPress$=new oe.x,this._onChange=cn=>{},this._onTouched=()=>{},this.clearItem=cn=>{const vn=this.selectedItems.find(En=>En.value===cn);this.unselect(vn)},this.trackByOption=(cn,vn)=>this.trackByFn?this.trackByFn(vn.value):vn,this._mergeGlobalConfig(de),this.itemsList=new Ft(this,Oe()),this.element=Ae.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(D=>D.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(D){D.multiple&&this.itemsList.clearSelected(),D.items&&this._setItems(D.items.currentValue||[]),D.isOpen&&(this._manualOpen=Zn(D.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Zn(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(D){if(an[D.which]){if(!1===this.keyDownFn(D))return;this.handleKeyCode(D)}else D.key&&1===D.key.length&&this._keyPress$.next(D.key.toLocaleLowerCase())}handleKeyCode(D){this.clearButton&&this.clearButton.nativeElement===D.target?this.handleKeyCodeClear(D):this.handleKeyCodeInput(D)}handleKeyCodeInput(D){switch(D.which){case an.ArrowDown:this._handleArrowDown(D);break;case an.ArrowUp:this._handleArrowUp(D);break;case an.Space:this._handleSpace(D);break;case an.Enter:this._handleEnter(D);break;case an.Tab:this._handleTab(D);break;case an.Esc:this.close(),D.preventDefault();break;case an.Backspace:this._handleBackspace()}}handleKeyCodeClear(D){D.which===an.Enter&&(this.handleClearClick(),D.preventDefault())}handleMousedown(D){const X=D.target;"INPUT"!==X.tagName&&D.preventDefault(),X.classList.contains("ng-clear-wrapper")?this.handleClearClick():X.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():X.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(D){this.itemsList.clearSelected(),this._handleWriteValue(D),this._cd.markForCheck()}registerOnChange(D){this._onChange=D}registerOnTouched(D){this._onTouched=D}setDisabledState(D){this._disabled=D,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(D){!D||D.disabled||this.disabled||(this.deselectOnClick&&D.selected?this.unselect(D):this.select(D),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(D){D.selected||(this.itemsList.select(D),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(D.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(D){D&&(this.itemsList.unselect(D),this.focus(),this._updateNgModel(),this.removeEvent.emit(D.value))}selectTag(){let D;D=we(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const X=de=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(de,null):this.itemsList.addItem(de);!function ot(Z){return Z instanceof Promise}(D)?D&&this.select(X(D)):D.then(de=>this.select(X(de))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const D=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(X=>X.label.toLowerCase()===D)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(X=>X.label.toLowerCase()===D))&&!this.loading}showNoItemsFound(){const D=0===this.itemsList.filteredItems.length;return(D&&!this._isTypeahead&&!this.loading||D&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(D){this._isComposing=!1,!this.searchWhileComposing&&this.filter(D)}filter(D){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=D,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(D),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:D,items:this.itemsList.filteredItems.map(X=>X.value)}),this.open())}onInputFocus(D){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(D),this.focused=!0)}onInputBlur(D){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(D),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(D){D.disabled||this.itemsList.markItem(D)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const D=this.selectedItems&&this.selectedItems[0];this.searchTerm=D&&D.label||null}_setItems(D){const X=D[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Zn(X)?!dt(X):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(D),D.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Zn(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const D=de=>{this.items=de.map(Oe=>({$ngOptionValue:Oe.value,$ngOptionLabel:Oe.elementRef.nativeElement.innerHTML,disabled:Oe.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},X=()=>{const de=(0,ae.T)(this.ngOptions.changes,this._destroy$);(0,ae.T)(...this.ngOptions.map(Oe=>Oe.stateChange$)).pipe((0,w.R)(de)).subscribe(Oe=>{const Ae=this.itemsList.findItem(Oe.value);Ae.disabled=Oe.disabled,Ae.label=Oe.label||Ae.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,$.O)(this.ngOptions),(0,w.R)(this._destroy$)).subscribe(de=>{this.bindLabel=this._defaultLabel,D(de),X()})}_isValidWriteValue(D){if(!Zn(D)||this.multiple&&""===D||Array.isArray(D)&&0===D.length)return!1;const X=de=>!(!Zn(this.compareWith)&&dt(de)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(de)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(D)?D.every(de=>X(de)):(this._console.warn("Multiple select ngModel should be array."),!1):X(D)}_handleWriteValue(D){if(!this._isValidWriteValue(D))return;const X=de=>{let Oe=this.itemsList.findItem(de);if(Oe)this.itemsList.select(Oe);else{const Ae=dt(de);Ae||!Ae&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(de,null)):this.bindValue&&(Oe={[this.bindLabel]:null,[this.bindValue]:de},this.itemsList.select(this.itemsList.mapItem(Oe,null)))}};this.multiple?D.forEach(de=>X(de)):X(D)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,w.R)(this._destroy$),(0,f.b)(D=>this._pressedKeys.push(D)),(0,j.b)(200),(0,M.h)(()=>this._pressedKeys.length>0),(0,q.U)(()=>this._pressedKeys.join(""))).subscribe(D=>{const X=this.itemsList.findByLabel(D);X&&(this.isOpen?(this.itemsList.markItem(X),this._scrollToMarked(),this._cd.markForCheck()):this.select(X)),this._pressedKeys=[]})}_setInputAttributes(){const D=this.searchInput.nativeElement,X={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const de of Object.keys(X))D.setAttribute(de,X[de])}_updateNgModel(){const D=[];for(const de of this.selectedItems)if(this.bindValue){let Oe=null;Oe=de.children?de.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(de.value,this.bindValue),D.push(Oe)}else D.push(de.value);const X=this.selectedItems.map(de=>de.value);this.multiple?(this._onChange(D),this.changeEvent.emit(X)):(this._onChange(Zn(D[0])?D[0]:null),this.changeEvent.emit(X[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(D){this.searchTerm=D,this._isTypeahead&&this.typeahead.next(D)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(D){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),D.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),D.preventDefault()):this.showAddTag?(this.selectTag(),D.preventDefault()):this.close():this.close()}_handleEnter(D){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}D.preventDefault()}_handleSpace(D){this.isOpen||this._manualOpen||(this.open(),D.preventDefault())}_handleArrowDown(D){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),D.preventDefault()}_handleArrowUp(D){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),D.preventDefault())}_nextItemIsTag(D){const X=this.itemsList.markedIndex+D;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(X<0||X===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const D=this.searchTerm&&this.searchTerm.trim();return D&&D.length>=this.minTermLength}_mergeGlobalConfig(D){this.placeholder=this.placeholder||D.placeholder,this.notFoundText=this.notFoundText||D.notFoundText,this.typeToSearchText=this.typeToSearchText||D.typeToSearchText,this.addTagText=this.addTagText||D.addTagText,this.loadingText=this.loadingText||D.loadingText,this.clearAllText=this.clearAllText||D.clearAllText,this.virtualScroll=Zn(this.virtualScroll)?this.virtualScroll:!!Zn(D.disableVirtualScroll)&&!D.disableVirtualScroll,this.openOnEnter=Zn(this.openOnEnter)?this.openOnEnter:D.openOnEnter,this.appendTo=this.appendTo||D.appendTo,this.bindValue=this.bindValue||D.bindValue,this.bindLabel=this.bindLabel||D.bindLabel,this.appearance=this.appearance||D.appearance}static#e=this.\u0275fac=function(X){return new(X||Z)(t.$8M("class"),t.$8M("autofocus"),t.Y36(Hr),t.Y36(Xn),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Zr))};static#t=this.\u0275cmp=t.Xpm({type:Z,selectors:[["ng-select"]],contentQueries:function(X,de,Oe){if(1&X&&(t.Suo(Oe,yt,5,t.Rgc),t.Suo(Oe,Wt,5,t.Rgc),t.Suo(Oe,Vt,5,t.Rgc),t.Suo(Oe,Un,5,t.Rgc),t.Suo(Oe,on,5,t.Rgc),t.Suo(Oe,rr,5,t.Rgc),t.Suo(Oe,ln,5,t.Rgc),t.Suo(Oe,$n,5,t.Rgc),t.Suo(Oe,Qe,5,t.Rgc),t.Suo(Oe,Le,5,t.Rgc),t.Suo(Oe,Ue,5,t.Rgc),t.Suo(Oe,Ar,5)),2&X){let Ae;t.iGM(Ae=t.CRH())&&(de.optionTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.optgroupTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.labelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.multiLabelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.headerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.footerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.notFoundTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.typeToSearchTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingTextTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.tagTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingSpinnerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.ngOptions=Ae)}},viewQuery:function(X,de){if(1&X&&(t.Gf(Fr,5),t.Gf(Tt,7),t.Gf(et,5)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.dropdownPanel=Oe.first),t.iGM(Oe=t.CRH())&&(de.searchInput=Oe.first),t.iGM(Oe=t.CRH())&&(de.clearButton=Oe.first)}},hostVars:20,hostBindings:function(X,de){1&X&&t.NdJ("keydown",function(Ae){return de.handleKeyDown(Ae)}),2&X&&t.ekj("ng-select-typeahead",de.typeahead)("ng-select-multiple",de.multiple)("ng-select-taggable",de.addTag)("ng-select-searchable",de.searchable)("ng-select-clearable",de.clearable)("ng-select-opened",de.isOpen)("ng-select",de.useDefaultClass)("ng-select-disabled",de.disabled)("ng-select-filtered",de.filtered)("ng-select-single",de.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[t._Bn([{provide:d.JU,useExisting:(0,t.Gpc)(()=>Z),multi:!0},wn]),t.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(X,de){if(1&X){const Oe=t.EpF();t.TgZ(0,"div",0),t.NdJ("mousedown",function(mt){return de.handleMousedown(mt)}),t.TgZ(1,"div",1)(2,"div",2),t._uU(3),t.qZA(),t.YNc(4,We,2,2,"ng-container",3),t.YNc(5,xt,1,5,null,3),t.TgZ(6,"div",4)(7,"input",5,6),t.NdJ("input",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.filter(mt.value))})("compositionstart",function(){return de.onCompositionStart()})("compositionend",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.onCompositionEnd(mt.value))})("focus",function(mt){return de.onInputFocus(mt)})("blur",function(mt){return de.onInputBlur(mt)})("change",function(mt){return mt.stopPropagation()}),t.qZA()()(),t.YNc(9,Ht,4,1,"ng-container",3),t.YNc(10,zt,4,1,"span",7),t.TgZ(11,"span",8),t._UZ(12,"span",9),t.qZA()(),t.YNc(13,wr,7,19,"ng-dropdown-panel",10)}2&X&&(t.ekj("ng-appearance-outline","outline"===de.appearance)("ng-has-value",de.hasValue),t.xp6(3),t.Oqu(de.placeholder),t.xp6(1),t.Q6J("ngIf",(!de.multiLabelTemplate||!de.multiple)&&de.selectedItems.length>0),t.xp6(1),t.Q6J("ngIf",de.multiple&&de.multiLabelTemplate&&de.selectedValues.length>0),t.xp6(1),t.uIk("aria-expanded",de.isOpen)("aria-owns",de.isOpen?de.dropdownId:null),t.xp6(1),t.Q6J("readOnly",!de.searchable||de.itemsList.maxItemsSelected)("disabled",de.disabled)("value",de.searchTerm?de.searchTerm:""),t.uIk("id",de.labelForId)("tabindex",de.tabIndex)("aria-activedescendant",de.isOpen?null==de.itemsList||null==de.itemsList.markedItem?null:de.itemsList.markedItem.htmlId:null)("aria-controls",de.isOpen?de.dropdownId:null),t.xp6(2),t.Q6J("ngIf",de.loading),t.xp6(1),t.Q6J("ngIf",de.showClear()),t.xp6(3),t.Q6J("ngIf",de.isOpen))},dependencies:[fe.mk,fe.sg,fe.O5,fe.tP,Fr,He],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return Z})();function Ur(){return new ai}class ai{constructor(){this._selected=[]}get value(){return this._selected}select(K,D,X){if(K.selected=!0,(!K.children||!D&&X)&&this._selected.push(K),D)if(K.parent){const de=K.parent.children.length,Oe=K.parent.children.filter(Ae=>Ae.selected).length;K.parent.selected=de===Oe}else K.children&&(this._setChildrenSelectedState(K.children,!0),this._removeChildren(K),this._selected=X&&this._activeChildren(K)?[...this._selected.filter(de=>de.parent!==K),K]:[...this._selected,...K.children.filter(de=>!de.disabled)])}unselect(K,D){if(this._selected=this._selected.filter(X=>X!==K),K.selected=!1,D)if(K.parent&&K.parent.selected){const X=K.parent.children;this._removeParent(K.parent),this._removeChildren(K.parent),this._selected.push(...X.filter(de=>de!==K&&!de.disabled)),K.parent.selected=!1}else K.children&&(this._setChildrenSelectedState(K.children,!1),this._removeChildren(K))}clear(K){this._selected=K?this._selected.filter(D=>D.disabled):[]}_setChildrenSelectedState(K,D){for(const X of K)X.disabled||(X.selected=D)}_removeChildren(K){this._selected=[...this._selected.filter(D=>D.parent!==K),...K.children.filter(D=>D.parent===K&&D.disabled&&D.selected)]}_removeParent(K){this._selected=this._selected.filter(D=>D!==K)}_activeChildren(K){return K.children.every(D=>!D.disabled||D.selected)}}let pe=(()=>{class Z{static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275mod=t.oAB({type:Z});static#n=this.\u0275inj=t.cJS({providers:[{provide:Xn,useValue:Ur}],imports:[fe.ez]})}return Z})()},9515:(Pe,V,a)=>{"use strict";a.d(V,{X$:()=>_t,Zw:()=>f,aw:()=>$e,sK:()=>Mt});var t=a(5879),d=a(2096),w=a(2664),L=a(9315),h=a(5211),O=a(4911),R=a(8180),F=a(7081),P=a(7398),B=a(6328),$=a(4664);class f{}let j=(()=>{class Ee extends f{getTranslation(J){return(0,d.of)({})}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class M{}let q=(()=>{class Ee{handle(J){return J.key}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();function ie(Ee,Ze){if(Ee===Ze)return!0;if(null===Ee||null===Ze)return!1;if(Ee!=Ee&&Ze!=Ze)return!0;let oe,se,ae,J=typeof Ee;if(J==typeof Ze&&"object"==J){if(!Array.isArray(Ee)){if(Array.isArray(Ze))return!1;for(se in ae=Object.create(null),Ee){if(!ie(Ee[se],Ze[se]))return!1;ae[se]=!0}for(se in Ze)if(!(se in ae)&&typeof Ze[se]<"u")return!1;return!0}if(!Array.isArray(Ze))return!1;if((oe=Ee.length)==Ze.length){for(se=0;se{Te(Ze[Q])?Q in Ee?J[Q]=Se(Ee[Q],Ze[Q]):Object.assign(J,{[Q]:Ze[Q]}):Object.assign(J,{[Q]:Ze[Q]})}),J}class ye{}let ce=(()=>{class Ee extends ye{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(J,Q){let oe;return oe="string"==typeof J?this.interpolateString(J,Q):"function"==typeof J?this.interpolateFunction(J,Q):J,oe}getValue(J,Q){let oe="string"==typeof Q?Q.split("."):[Q];Q="";do{Q+=oe.shift(),!k(J)||!k(J[Q])||"object"!=typeof J[Q]&&oe.length?oe.length?Q+=".":J=void 0:(J=J[Q],Q="")}while(oe.length);return J}interpolateFunction(J,Q){return J(Q)}interpolateString(J,Q){return Q?J.replace(this.templateMatcher,(oe,se)=>{let ae=this.getValue(Q,se);return k(ae)?ae:oe}):J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class _e{}let ve=(()=>{class Ee extends _e{compile(J,Q){return J}compileTranslations(J,Q){return J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class xe{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new t.vpe;onLangChange=new t.vpe;onDefaultLangChange=new t.vpe}const be=new t.OlP("USE_STORE"),ke=new t.OlP("USE_DEFAULT_LANG"),vt=new t.OlP("DEFAULT_LANGUAGE"),rt=new t.OlP("USE_EXTEND");let Mt=(()=>{class Ee{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new t.vpe;_onLangChange=new t.vpe;_onDefaultLangChange=new t.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(J){this.isolate?this._defaultLang=J:this.store.defaultLang=J}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(J){this.isolate?this._currentLang=J:this.store.currentLang=J}get langs(){return this.isolate?this._langs:this.store.langs}set langs(J){this.isolate?this._langs=J:this.store.langs=J}get translations(){return this.isolate?this._translations:this.store.translations}set translations(J){this.isolate?this._translations=J:this.store.translations=J}constructor(J,Q,oe,se,ae,fe=!0,De=!1,je=!1,Xe){this.store=J,this.currentLoader=Q,this.compiler=oe,this.parser=se,this.missingTranslationHandler=ae,this.useDefaultLang=fe,this.isolate=De,this.extend=je,Xe&&this.setDefaultLang(Xe)}setDefaultLang(J){if(J===this.defaultLang)return;let Q=this.retrieveTranslations(J);typeof Q<"u"?(null==this.defaultLang&&(this.defaultLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeDefaultLang(J)})):this.changeDefaultLang(J)}getDefaultLang(){return this.defaultLang}use(J){if(J===this.currentLang)return(0,d.of)(this.translations[J]);let Q=this.retrieveTranslations(J);return typeof Q<"u"?(this.currentLang||(this.currentLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeLang(J)}),Q):(this.changeLang(J),(0,d.of)(this.translations[J]))}retrieveTranslations(J){let Q;return(typeof this.translations[J]>"u"||this.extend)&&(this._translationRequests[J]=this._translationRequests[J]||this.getTranslation(J),Q=this._translationRequests[J]),Q}getTranslation(J){this.pending=!0;const Q=this.currentLoader.getTranslation(J).pipe((0,F.d)(1),(0,R.q)(1));return this.loadingTranslations=Q.pipe((0,P.U)(oe=>this.compiler.compileTranslations(oe,J)),(0,F.d)(1),(0,R.q)(1)),this.loadingTranslations.subscribe({next:oe=>{this.translations[J]=this.extend&&this.translations[J]?{...oe,...this.translations[J]}:oe,this.updateLangs(),this.pending=!1},error:oe=>{this.pending=!1}}),Q}setTranslation(J,Q,oe=!1){Q=this.compiler.compileTranslations(Q,J),this.translations[J]=(oe||this.extend)&&this.translations[J]?Se(this.translations[J],Q):Q,this.updateLangs(),this.onTranslationChange.emit({lang:J,translations:this.translations[J]})}getLangs(){return this.langs}addLangs(J){J.forEach(Q=>{-1===this.langs.indexOf(Q)&&this.langs.push(Q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(J,Q,oe){let se;if(Q instanceof Array){let ae={},fe=!1;for(let De of Q)ae[De]=this.getParsedResult(J,De,oe),(0,w.b)(ae[De])&&(fe=!0);if(fe){const De=Q.map(je=>(0,w.b)(ae[je])?ae[je]:(0,d.of)(ae[je]));return(0,L.D)(De).pipe((0,P.U)(je=>{let Xe={};return je.forEach((tt,wt)=>{Xe[Q[wt]]=tt}),Xe}))}return ae}if(J&&(se=this.parser.interpolate(this.parser.getValue(J,Q),oe)),typeof se>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(se=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Q),oe)),typeof se>"u"){let ae={key:Q,translateService:this};typeof oe<"u"&&(ae.interpolateParams=oe),se=this.missingTranslationHandler.handle(ae)}return typeof se<"u"?se:Q}get(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,B.b)(oe=>(oe=this.getParsedResult(oe,J,Q),(0,w.b)(oe)?oe:(0,d.of)(oe))));{let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);return(0,w.b)(oe)?oe:(0,d.of)(oe)}}getStreamOnTranslationChange(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,h.z)((0,O.P)(()=>this.get(J,Q)),this.onTranslationChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return"function"==typeof se.subscribe?se:(0,d.of)(se)})))}stream(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,h.z)((0,O.P)(()=>this.get(J,Q)),this.onLangChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return(0,w.b)(se)?se:(0,d.of)(se)})))}instant(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);if((0,w.b)(oe)){if(J instanceof Array){let se={};return J.forEach((ae,fe)=>{se[J[fe]]=J[fe]}),se}return J}return oe}set(J,Q,oe=this.currentLang){this.translations[oe][J]=this.compiler.compile(Q,oe),this.updateLangs(),this.onTranslationChange.emit({lang:oe,translations:this.translations[oe]})}changeLang(J){this.currentLang=J,this.onLangChange.emit({lang:J,translations:this.translations[J]}),null==this.defaultLang&&this.changeDefaultLang(J)}changeDefaultLang(J){this.defaultLang=J,this.onDefaultLangChange.emit({lang:J,translations:this.translations[J]})}reloadLang(J){return this.resetLang(J),this.getTranslation(J)}resetLang(J){this._translationRequests[J]=void 0,this.translations[J]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof J>"u"?void 0:(-1!==J.indexOf("-")&&(J=J.split("-")[0]),-1!==J.indexOf("_")&&(J=J.split("_")[0]),J)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,J}static \u0275fac=function(Q){return new(Q||Ee)(t.LFG(xe),t.LFG(f),t.LFG(_e),t.LFG(ye),t.LFG(M),t.LFG(ke),t.LFG(be),t.LFG(rt),t.LFG(vt))};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),_t=(()=>{class Ee{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(J,Q){this.translate=J,this._ref=Q}updateValue(J,Q,oe){let se=ae=>{this.value=void 0!==ae?ae:J,this.lastKey=J,this._ref.markForCheck()};if(oe){let ae=this.translate.getParsedResult(oe,J,Q);(0,w.b)(ae.subscribe)?ae.subscribe(se):se(ae)}this.translate.get(J,Q).subscribe(se)}transform(J,...Q){if(!J||!J.length)return J;if(ie(J,this.lastKey)&&ie(Q,this.lastParams))return this.value;let oe;if(k(Q[0])&&Q.length)if("string"==typeof Q[0]&&Q[0].length){let se=Q[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{oe=JSON.parse(se)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Q[0]}`)}}else"object"==typeof Q[0]&&!Array.isArray(Q[0])&&(oe=Q[0]);return this.lastKey=J,this.lastParams=Q,this.updateValue(J,oe),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(se=>{this.lastKey&&se.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(se=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(Q){return new(Q||Ee)(t.Y36(Mt,16),t.Y36(t.sBO,16))};static \u0275pipe=t.Yjl({name:"translate",type:Ee,pure:!1});static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),$e=(()=>{class Ee{static forRoot(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:M,useClass:q},xe,{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:rt,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},Mt]}}static forChild(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:M,useClass:q},{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:rt,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},Mt]}}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275mod=t.oAB({type:Ee});static \u0275inj=t.cJS({})}return Ee})()},7066:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>k});var w=a(8418);const h=function L(Te,Se){for(var ye=Te.length;ye--;)if((0,w.Z)(Te[ye][0],Se))return ye;return-1};var R=Array.prototype.splice;function ie(Te){var Se=-1,ye=null==Te?0:Te.length;for(this.clear();++Se-1},ie.prototype.set=function M(Te,Se){var ye=this.__data__,ce=h(ye,Te);return ce<0?(++this.size,ye.push([Te,Se])):ye[ce][1]=Se,this};const k=ie},2847:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Map")},8410:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ae});const w=(0,a(2656).Z)(Object,"create");var B=Object.prototype.hasOwnProperty;var M=Object.prototype.hasOwnProperty;function ye(fe){var De=-1,je=null==fe?0:fe.length;for(this.clear();++De{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Set")},342:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(8410);function R(P){var B=-1,$=null==P?0:P.length;for(this.__data__=new t.Z;++B<$;)this.add(P[B])}R.prototype.add=R.prototype.push=function w(P){return this.__data__.set(P,"__lodash_hash_undefined__"),this},R.prototype.has=function h(P){return this.__data__.has(P)};const F=R},8730:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(7066);var B=a(2847),$=a(8410);function q(k){var Te=this.__data__=new t.Z(k);this.size=Te.size}q.prototype.clear=function d(){this.__data__=new t.Z,this.size=0},q.prototype.delete=function L(k){var Te=this.__data__,Se=Te.delete(k);return this.size=Te.size,Se},q.prototype.get=function O(k){return this.__data__.get(k)},q.prototype.has=function F(k){return this.__data__.has(k)},q.prototype.set=function j(k,Te){var Se=this.__data__;if(Se instanceof t.Z){var ye=Se.__data__;if(!B.Z||ye.length<199)return ye.push([k,Te]),this.size=++Se.size,this;Se=this.__data__=new $.Z(ye)}return Se.set(k,Te),this.size=Se.size,this};const ie=q},6875:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Symbol},8475:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Uint8Array},9416:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>$});var w=a(5727),L=a(9977),h=a(9354),O=a(9229),R=a(7227),P=Object.prototype.hasOwnProperty;const $=function B(f,j){var M=(0,L.Z)(f),q=!M&&(0,w.Z)(f),ie=!M&&!q&&(0,h.Z)(f),k=!M&&!q&&!ie&&(0,R.Z)(f),Te=M||q||ie||k,Se=Te?function t(f,j){for(var M=-1,q=Array(f);++M{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){for(var h=-1,O=L.length,R=w.length;++h{"use strict";a.d(V,{Z:()=>L});var t=a(4331),d=a(9977);const L=function w(h,O,R){var F=O(h);return(0,d.Z)(h)?F:(0,t.Z)(F,R(h))}},3844:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(6875),d=Object.prototype,w=d.hasOwnProperty,L=d.toString,h=t.Z?t.Z.toStringTag:void 0;var P=Object.prototype.toString;var M=t.Z?t.Z.toStringTag:void 0;const ie=function q(k){return null==k?void 0===k?"[object Undefined]":"[object Null]":M&&M in Object(k)?function O(k){var Te=w.call(k,h),Se=k[h];try{k[h]=void 0;var ye=!0}catch{}var ce=L.call(k);return ye&&(Te?k[h]=Se:delete k[h]),ce}(k):function B(k){return P.call(k)}(k)}},2148:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Rn});var t=a(8730),d=a(342);const L=function w(We,Ye){for(var At=-1,xt=null==We?0:We.length;++Atzt))return!1;var Sn=Et.get(We),hn=Et.get(Ye);if(Sn&&hn)return Sn==Ye&&hn==We;var en=-1,Dn=!0,Wn=2&At?new d.Z:void 0;for(Et.set(We,Ye),Et.set(Ye,We);++en{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return function(L){return w(L)}}},9473:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>xe});var t=a(342);const h=function L(be){return be!=be},$=function B(be,ke){return!(null==be||!be.length)&&function F(be,ke,vt){return ke==ke?function O(be,ke,vt){for(var rt=vt-1,Mt=be.length;++rt-1},j=function f(be,ke,vt){for(var rt=-1,Mt=null==be?0:be.length;++rt=200){var Ze=ke?null:ce(be);if(Ze)return(0,Te.Z)(Ze);_t=!1,Mt=M.Z,Ee=new t.Z}else Ee=ke?[]:$e;e:for(;++rt{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w.has(L)}},7806:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d="object"==typeof global&&global&&global.Object===Object&&global},6721:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(6982),d=a(3774),w=a(0);const h=function L(O){return(0,t.Z)(O,w.Z,d.Z)}},2656:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>_e});var ve,t=a(4842),w=a(4131).Z["__core-js_shared__"],h=(ve=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"";var F=a(5829),P=a(8594),$=/^\[object .+?Constructor\]$/,ie=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function k(ve){return!(!(0,F.Z)(ve)||function O(ve){return!!h&&h in ve}(ve))&&((0,t.Z)(ve)?ie:$).test((0,P.Z)(ve))},_e=function ce(ve,xe){var be=function Se(ve,xe){return ve?.[xe]}(ve,xe);return Te(be)?be:void 0}},3774:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var w=a(3534),h=Object.prototype.propertyIsEnumerable,O=Object.getOwnPropertySymbols;const F=O?function(P){return null==P?[]:(P=Object(P),function t(P,B){for(var $=-1,f=null==P?0:P.length,j=0,M=[];++${"use strict";a.d(V,{Z:()=>be});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"DataView");var h=a(2847);const R=(0,t.Z)(d.Z,"Promise");var F=a(4402);const B=(0,t.Z)(d.Z,"WeakMap");var $=a(3844),f=a(8594),j="[object Map]",q="[object Promise]",ie="[object Set]",k="[object WeakMap]",Te="[object DataView]",Se=(0,f.Z)(L),ye=(0,f.Z)(h.Z),ce=(0,f.Z)(R),_e=(0,f.Z)(F.Z),ve=(0,f.Z)(B),xe=$.Z;(L&&xe(new L(new ArrayBuffer(1)))!=Te||h.Z&&xe(new h.Z)!=j||R&&xe(R.resolve())!=q||F.Z&&xe(new F.Z)!=ie||B&&xe(new B)!=k)&&(xe=function(ke){var vt=(0,$.Z)(ke),rt="[object Object]"==vt?ke.constructor:void 0,Mt=rt?(0,f.Z)(rt):"";if(Mt)switch(Mt){case Se:return Te;case ye:return j;case ce:return q;case _e:return ie;case ve:return k}return vt});const be=xe},9229:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=/^(?:0|[1-9]\d*)$/;const L=function w(h,O){var R=typeof h;return!!(O=O??9007199254740991)&&("number"==R||"symbol"!=R&&d.test(h))&&h>-1&&h%1==0&&h{"use strict";a.d(V,{Z:()=>w});var t=Object.prototype;const w=function d(L){var h=L&&L.constructor;return L===("function"==typeof h&&h.prototype||t)}},5527:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(7806),d="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=d&&"object"==typeof module&&module&&!module.nodeType&&module,h=w&&w.exports===d&&t.Z.process;const R=function(){try{return w&&w.require&&w.require("util").types||h&&h.binding&&h.binding("util")}catch{}}()},2667:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return function(h){return w(L(h))}}},4131:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7806),d="object"==typeof self&&self&&self.Object===Object&&self;const L=t.Z||d||Function("return this")()},7799:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=-1,h=Array(w.size);return w.forEach(function(O){h[++L]=O}),h}},8594:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=Function.prototype.toString;const L=function w(h){if(null!=h){try{return d.call(h)}catch{}try{return h+""}catch{}}return""}},1437:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>q});const h=function t(ie){return function(k){return ie?.[k]}}({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"});var O=a(2394),R=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,j=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const q=function M(ie){return(ie=(0,O.Z)(ie))&&ie.replace(R,h).replace(j,"")}},8418:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w===L||w!=w&&L!=L}},5727:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(3844),d=a(1196);const h=function L($){return(0,d.Z)($)&&"[object Arguments]"==(0,t.Z)($)};var O=Object.prototype,R=O.hasOwnProperty,F=O.propertyIsEnumerable;const B=h(function(){return arguments}())?h:function($){return(0,d.Z)($)&&R.call($,"callee")&&!F.call($,"callee")}},9977:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=Array.isArray},6247:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(4842),d=a(4018);const L=function w(h){return null!=h&&(0,d.Z)(h.length)&&!(0,t.Z)(h)}},9354:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(4131),L="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=L&&"object"==typeof module&&module&&!module.nodeType&&module,R=h&&h.exports===L?t.Z.Buffer:void 0;const B=(R?R.isBuffer:void 0)||function d(){return!1}},8658:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(2148);const w=function d(L,h){return(0,t.Z)(L,h)}},4842:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(3844),d=a(5829);const F=function R(P){if(!(0,d.Z)(P))return!1;var B=(0,t.Z)(P);return"[object Function]"==B||"[object GeneratorFunction]"==B||"[object AsyncFunction]"==B||"[object Proxy]"==B}},4018:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=function d(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=9007199254740991}},5829:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=typeof w;return null!=w&&("object"==L||"function"==L)}},1196:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return null!=w&&"object"==typeof w}},7106:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(3844),d=a(1196);const h=function L(O){return"symbol"==typeof O||(0,d.Z)(O)&&"[object Symbol]"==(0,t.Z)(O)}},7227:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>J});var t=a(3844),d=a(4018),w=a(1196),rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var _t=a(8733),$e=a(5527),Ee=$e.Z&&$e.Z.isTypedArray;const J=Ee?(0,_t.Z)(Ee):function Mt(Q){return(0,w.Z)(Q)&&(0,d.Z)(Q.length)&&!!rt[(0,t.Z)(Q)]}},0:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(9416),d=a(801);const h=(0,a(2667).Z)(Object.keys,Object);var R=Object.prototype.hasOwnProperty;var B=a(6247);const f=function $(j){return(0,B.Z)(j)?(0,t.Z)(j):function F(j){if(!(0,d.Z)(j))return h(j);var M=[];for(var q in Object(j))R.call(j,q)&&"constructor"!=q&&M.push(q);return M}(j)}},3534:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(){return[]}},2394:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(6875);var L=a(9977),h=a(7106),R=t.Z?t.Z.prototype:void 0,F=R?R.toString:void 0;const B=function P(j){if("string"==typeof j)return j;if((0,L.Z)(j))return function d(j,M){for(var q=-1,ie=null==j?0:j.length,k=Array(ie);++q{"use strict";a.d(V,{Z:()=>Er});var t=a(8730),d=a(2148);var R=a(5829);const P=function F(it){return it==it&&!(0,R.Z)(it)};var B=a(0);const M=function j(it,Ut){return function(Qt){return null!=Qt&&Qt[it]===Ut&&(void 0!==Ut||it in Object(Qt))}},ie=function q(it){var Ut=function $(it){for(var Ut=(0,B.Z)(it),Qt=Ut.length;Qt--;){var Cn=Ut[Qt],An=it[Cn];Ut[Qt]=[Cn,An,P(An)]}return Ut}(it);return 1==Ut.length&&Ut[0][2]?M(Ut[0][0],Ut[0][1]):function(Qt){return Qt===it||function h(it,Ut,Qt,Cn){var An=Qt.length,In=An,nr=!Cn;if(null==it)return!In;for(it=Object(it);An--;){var Dr=Qt[An];if(nr&&Dr[2]?Dr[1]!==it[Dr[0]]:!(Dr[0]in it))return!1}for(;++An{"use strict";a.d(V,{Z:()=>L});var t=a(2394),d=0;const L=function w(h){var O=++d;return(0,t.Z)(h)+O}},6283:(Pe,V,a)=>{"use strict";a.d(V,{Ry:()=>Zt,Rq:()=>Rn});var t=a(5879),d=a(2096),w=a(2438),L=a(1631),h=a(7398),O=a(9397),R=a(2181),F=a(6321),P=a(9360),B=a(8251),$=a(4829),j=a(4825);function ie(We,Ye,At,xt){const nn=window&&!!window.document&&window.document.documentElement;let Et=nn&&Ye?window:At;if(We&&(Et=We&&nn&&"string"==typeof We?function k(We,Ye,At){return(At?window.document:Ye).querySelector(We)}(We,At.nativeElement,xt):We,!Et))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return Et}function Te(We){return We&&!We.firstChange}const ye={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},ce={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class _e{constructor(Ye=!0){this.vertical=Ye,this.propsMap=Ye?ye:ce}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function ke(We){return["Window","global"].some(At=>Object.prototype.toString.call(We).includes(At))}function vt(We,Ye){return We?Ye.document.documentElement:null}function rt(We,Ye){const At=function $e({container:We,isWindow:Ye,axis:At}){const{offsetHeightKey:xt,clientHeightKey:nn}=_t(At);return Ee(We,Ye,xt,nn)}(Ye);return Ye.isWindow?function Mt(We,Ye,At){const{axis:xt,container:nn,isWindow:Et}=At,{offsetHeightKey:Ht,clientHeightKey:zt}=_t(xt),fn=We+J(vt(Et,nn),xt,Et),Sn=Ee(Ye.nativeElement,Et,Ht,zt),hn=function Ze(We,Ye,At){const xt=Ye.topKey();if(We.getBoundingClientRect)return We.getBoundingClientRect()[xt]+J(We,Ye,At)}(Ye.nativeElement,xt,Et)+Sn;return{height:We,scrolled:fn,totalToScroll:hn,isWindow:Et}}(At,We,Ye):function qe(We,Ye,At){const{axis:xt,container:nn}=At;return{height:We,scrolled:nn[xt.scrollTopKey()],totalToScroll:nn[xt.scrollHeightKey()],isWindow:!1}}(At,0,Ye)}function _t(We){return{offsetHeightKey:We.offsetHeightKey(),clientHeightKey:We.clientHeightKey()}}function Ee(We,Ye,At,xt){if(isNaN(We[At])){const nn=vt(Ye,We);return nn?nn[xt]:0}return We[At]}function J(We,Ye,At){const xt=Ye.pageYOffsetKey(),nn=Ye.scrollTopKey(),Et=Ye.offsetTopKey();return isNaN(window.pageYOffset)?vt(At,We)[nn]:We.ownerDocument?We.ownerDocument.defaultView[xt]:We[Et]}function Q(We,Ye={down:0,up:0},At){let xt,nn;if(We.totalToScroll<=0)return!1;const Et=We.isWindow?We.scrolled:We.height+We.scrolled;return At?(xt=(We.totalToScroll-Et)/We.totalToScroll,nn=(Ye?.down?Ye.down:0)/10):(xt=We.scrolled/(We.scrolled+(We.totalToScroll-Et)),nn=(Ye?.up?Ye.up:0)/10),xt<=nn}class wt{constructor({totalToScroll:Ye}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=Ye}updateScrollPosition(Ye){return this.lastScrollPosition=Ye}updateTotalToScroll(Ye){this.lastTotalToScroll!==Ye&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=Ye)}updateScroll(Ye,At){this.updateScrollPosition(Ye),this.updateTotalToScroll(At)}updateTriggeredFlag(Ye,At){At?this.triggered.down=Ye:this.triggered.up=Ye}isTriggeredScroll(Ye,At){return At?this.triggered.down===Ye:this.triggered.up===Ye}}function It(We){const{scrollContainer:Ye,scrollWindow:At,element:xt,fromRoot:nn}=We,Et=function xe({windowElement:We,axis:Ye}){return function be(We,Ye){const At=We.isWindow||Ye&&!Ye.nativeElement?Ye:Ye.nativeElement;return{...We,container:At}}({axis:Ye,isWindow:ke(We)},We)}({axis:new _e(!We.horizontal),windowElement:ie(Ye,At,xt,nn)}),Ht=new wt({totalToScroll:rt(xt,Et)}),fn={up:We.upDistance,down:We.downDistance};return function Je(We){let Ye=(0,w.R)(We.container,"scroll");return We.throttle&&(Ye=Ye.pipe(function M(We,Ye=F.z,At){const xt=(0,j.H)(We,Ye);return function f(We,Ye){return(0,P.e)((At,xt)=>{const{leading:nn=!0,trailing:Et=!1}=Ye??{};let Ht=!1,zt=null,fn=null,Sn=!1;const hn=()=>{fn?.unsubscribe(),fn=null,Et&&(Wn(),Sn&&xt.complete())},en=()=>{fn=null,Sn&&xt.complete()},Dn=_n=>fn=(0,$.Xf)(We(_n)).subscribe((0,B.x)(xt,hn,en)),Wn=()=>{if(Ht){Ht=!1;const _n=zt;zt=null,xt.next(_n),!Sn&&Dn(_n)}};At.subscribe((0,B.x)(xt,_n=>{Ht=!0,zt=_n,(!fn||fn.closed)&&(nn?Wn():Dn(_n))},()=>{Sn=!0,(!(Et&&Ht&&fn)||fn.closed)&&xt.complete()}))})}(()=>xt,At)}(We.throttle,void 0,{leading:!0,trailing:!0}))),Ye}({container:Et.container,throttle:We.throttle}).pipe((0,L.z)(()=>(0,d.of)(rt(xt,Et))),(0,h.U)(Sn=>function Tt(We,Ye,At){const{scrollDown:xt,fire:nn}=function se(We,Ye,At){const xt=function oe(We,Ye){return WeHt.updateScroll(Sn.scrolled,Sn.totalToScroll)),(0,R.h)(({fire:Sn,scrollDown:hn,stats:{totalToScroll:en}})=>function ve(We,Ye,At){return!!(We&&Ye||!At&&Ye)}(We.alwaysCallback,Sn,Ht.isTriggeredScroll(en,hn))),(0,O.b)(({scrollDown:Sn,stats:{totalToScroll:hn}})=>{Ht.updateTriggeredFlag(hn,Sn)}),(0,h.U)(Pt))}const et={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Pt(We){const{scrollDown:Ye,stats:{scrolled:At}}=We;return{type:Ye?et.DOWN:et.UP,payload:{currentScrollPosition:At}}}let Zt=(()=>{class We{constructor(At,xt){this.element=At,this.zone=xt,this.scrolled=new t.vpe,this.scrolledUp=new t.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:At,infiniteScrollDisabled:xt,infiniteScrollDistance:nn}){const Et=Te(At),Ht=Te(xt),zt=Te(nn),fn=!Ht&&!this.infiniteScrollDisabled||Ht&&!xt.currentValue||zt;(Et||Ht||zt)&&(this.destroyScroller(),fn&&this.setup())}setup(){(function Se(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=It({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(At=>this.handleOnScroll(At))})}handleOnScroll({type:At,payload:xt}){const nn=At===et.DOWN?this.scrolled:this.scrolledUp;(function dn(We){return We.observed??We.observers.length>0})(nn)&&this.zone.run(()=>nn.emit(xt))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#e=this.\u0275fac=function(xt){return new(xt||We)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275dir=t.lG2({type:We,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[t.TTD]})}return We})(),Rn=(()=>{class We{static#e=this.\u0275fac=function(xt){return new(xt||We)};static#t=this.\u0275mod=t.oAB({type:We});static#n=this.\u0275inj=t.cJS({})}return We})()},1002:(Pe,V,a)=>{"use strict";function t(d){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(d)}a.d(V,{Z:()=>t})},7582:(Pe,V,a)=>{"use strict";function f(Q,oe,se,ae){return new(se||(se=Promise))(function(De,je){function Xe(It){try{wt(ae.next(It))}catch(Je){je(Je)}}function tt(It){try{wt(ae.throw(It))}catch(Je){je(Je)}}function wt(It){It.done?De(It.value):function fe(De){return De instanceof se?De:new se(function(je){je(De)})}(It.value).then(Xe,tt)}wt((ae=ae.apply(Q,oe||[])).next())})}function ce(Q){return this instanceof ce?(this.v=Q,this):new ce(Q)}function _e(Q,oe,se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,ae=se.apply(Q,oe||[]),De=[];return fe={},je("next"),je("throw"),je("return"),fe[Symbol.asyncIterator]=function(){return this},fe;function je(Tt){ae[Tt]&&(fe[Tt]=function(et){return new Promise(function(Pt,Zt){De.push([Tt,et,Pt,Zt])>1||Xe(Tt,et)})})}function Xe(Tt,et){try{!function tt(Tt){Tt.value instanceof ce?Promise.resolve(Tt.value.v).then(wt,It):Je(De[0][2],Tt)}(ae[Tt](et))}catch(Pt){Je(De[0][3],Pt)}}function wt(Tt){Xe("next",Tt)}function It(Tt){Xe("throw",Tt)}function Je(Tt,et){Tt(et),De.shift(),De.length&&Xe(De[0][0],De[0][1])}}function xe(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,oe=Q[Symbol.asyncIterator];return oe?oe.call(Q):(Q=function ie(Q){var oe="function"==typeof Symbol&&Symbol.iterator,se=oe&&Q[oe],ae=0;if(se)return se.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&ae>=Q.length&&(Q=void 0),{value:Q&&Q[ae++],done:!Q}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Q),se={},ae("next"),ae("throw"),ae("return"),se[Symbol.asyncIterator]=function(){return this},se);function ae(De){se[De]=Q[De]&&function(je){return new Promise(function(Xe,tt){!function fe(De,je,Xe,tt){Promise.resolve(tt).then(function(wt){De({value:wt,done:Xe})},je)}(Xe,tt,(je=Q[De](je)).done,je.value)})}}}a.d(V,{FC:()=>_e,KL:()=>xe,mG:()=>f,qq:()=>ce}),"function"==typeof SuppressedError&&SuppressedError}},Pe=>{Pe(Pe.s=4515)}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/styles.css b/public/apps/webapp-schulverwaltung/styles.css index 9234a173..5a0d9f9b 100644 --- a/public/apps/webapp-schulverwaltung/styles.css +++ b/public/apps/webapp-schulverwaltung/styles.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined";.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:#333;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus{outline:none}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:#0000008a;background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}@charset "UTF-8";:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(208, 16, 24);--bs-orange: rgb(239, 124, 0);--bs-yellow: rgb(255, 168, 20);--bs-green: rgb(61, 134, 8);--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: rgba(78, 78, 78, .95);--bs-secondary: rgb(222, 222, 222);--bs-success: rgb(61, 134, 8);--bs-info: #0dcaf0;--bs-warning: rgb(255, 168, 20);--bs-danger: rgb(208, 16, 24);--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 78, 78, 78;--bs-secondary-rgb: 222, 222, 222;--bs-success-rgb: 61, 134, 8;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 168, 20;--bs-danger-rgb: 208, 16, 24;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgba(29, 29, 29, .98);--bs-secondary-text-emphasis: #595959;--bs-success-text-emphasis: #183603;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664308;--bs-danger-text-emphasis: #53060a;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgba(222, 222, 222, .99);--bs-secondary-bg-subtle: #f8f8f8;--bs-success-bg-subtle: #d8e7ce;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #ffeed0;--bs-danger-bg-subtle: #f6cfd1;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgba(188, 188, 188, .98);--bs-secondary-border-subtle: #f2f2f2;--bs-success-border-subtle: #b1cf9c;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffdca1;--bs-danger-border-subtle: #ec9fa3;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: "Roboto", sans-serif;--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 300;--bs-body-line-height: 1.625;--bs-body-color: rgb(0, 0, 0);--bs-body-color-rgb: 0, 0, 0;--bs-body-bg: rgb(255, 255, 255);--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(0, 0, 0, .75);--bs-secondary-color-rgb: 0, 0, 0;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(0, 0, 0, .5);--bs-tertiary-color-rgb: 0, 0, 0;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: rgb(0, 0, 0);--bs-link-color-rgb: 0, 0, 0;--bs-link-decoration: underline;--bs-link-hover-color: rgb(234, 22, 31);--bs-link-hover-color-rgb: 234, 22, 31;--bs-code-color: #d63384;--bs-highlight-color: rgb(0, 0, 0);--bs-highlight-bg: #ffeed0;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width: .25rem;--bs-focus-ring-opacity: .25;--bs-focus-ring-color: rgba(78, 78, 78, .25);--bs-form-valid-color: rgb(61, 134, 8);--bs-form-valid-border-color: rgb(61, 134, 8);--bs-form-invalid-color: rgb(208, 16, 24);--bs-form-invalid-border-color: rgb(208, 16, 24)}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, .75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, .5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: rgba(153, 153, 153, .97);--bs-secondary-text-emphasis: #ebebeb;--bs-success-text-emphasis: #8bb66b;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffcb72;--bs-danger-text-emphasis: #e37074;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: rgba(14, 14, 14, .99);--bs-secondary-bg-subtle: #2c2c2c;--bs-success-bg-subtle: #0c1b02;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332204;--bs-danger-bg-subtle: #2a0305;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: rgba(45, 45, 45, .97);--bs-secondary-border-subtle: #858585;--bs-success-border-subtle: #255005;--bs-info-border-subtle: #087990;--bs-warning-border-subtle: #99650c;--bs-danger-border-subtle: #7d0a0e;--bs-light-border-subtle: #495057;--bs-dark-border-subtle: #343a40;--bs-heading-color: inherit;--bs-link-color: rgba(153, 153, 153, .97);--bs-link-hover-color: rgba(174, 174, 174, .976);--bs-link-color-rgb: 153, 153, 153;--bs-link-hover-color-rgb: 174, 174, 174;--bs-code-color: #e685b5;--bs-highlight-color: #dee2e6;--bs-highlight-bg: #664308;--bs-border-color: #495057;--bs-border-color-translucent: rgba(255, 255, 255, .15);--bs-form-valid-color: #8bb66b;--bs-form-valid-border-color: #8bb66b;--bs-form-invalid-color: #e37074;--bs-form-invalid-border-color: #e37074}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:300;line-height:1.2;color:var(--bs-heading-color)}h1,.h1{font-size:calc(1.4625rem + 2.55vw)}@media (min-width: 1200px){h1,.h1{font-size:3.375rem}}h2,.h2{font-size:calc(1.3125rem + .75vw)}@media (min-width: 1200px){h2,.h2{font-size:1.875rem}}h3,.h3{font-size:calc(1.2875rem + .45vw)}@media (min-width: 1200px){h3,.h3{font-size:1.625rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:calc(1.25625rem + .075vw)}@media (min-width: 1200px){h5,.h5{font-size:1.3125rem}}h6,.h6{font-size:1.125rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}:root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}.table-primary{--bs-table-color: #000;--bs-table-bg: rgba(222, 222, 222, .99);--bs-table-border-color: rgba(177, 177, 177, .992);--bs-table-striped-bg: rgba(211, 211, 211, .9905);--bs-table-striped-color: #000;--bs-table-active-bg: rgba(199, 199, 199, .991);--bs-table-active-color: #000;--bs-table-hover-bg: rgba(205, 205, 205, .99075);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #f8f8f8;--bs-table-border-color: #c6c6c6;--bs-table-striped-bg: #ececec;--bs-table-striped-color: #000;--bs-table-active-bg: #dfdfdf;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e5e5;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d8e7ce;--bs-table-border-color: #adb9a5;--bs-table-striped-bg: #cddbc4;--bs-table-striped-color: #000;--bs-table-active-bg: #c2d0b9;--bs-table-active-color: #000;--bs-table-hover-bg: #c8d6bf;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #a6c3ca;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #ffeed0;--bs-table-border-color: #ccbea6;--bs-table-striped-bg: #f2e2c6;--bs-table-striped-color: #000;--bs-table-active-bg: #e6d6bb;--bs-table-active-color: #000;--bs-table-hover-bg: #ecdcc0;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f6cfd1;--bs-table-border-color: #c5a6a7;--bs-table-striped-bg: #eac5c7;--bs-table-striped-color: #000;--bs-table-active-bg: #ddbabc;--bs-table-active-color: #000;--bs-table-hover-bg: #e4bfc1;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #c6c7c8;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #4d5154;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.625}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.625em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.625;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:0}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:0}.form-control-color.form-control-sm{height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.625rem;padding-left:1.5em;margin-bottom:1rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg: var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.3125em;vertical-align:top;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-check-input:checked{background-color:#4e4e4ef2;border-color:#4e4e4ef2}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4e4e4ef2;border-color:#4e4e4ef2;--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28171, 171, 171, 0.975%29'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#cececefb}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#cececefb}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-control-plaintext~label:after,.form-floating>.form-select~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:0}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>:disabled~label,.form-floating>.form-control:disabled~label{color:#6c757d}.form-floating>:disabled~label:after,.form-floating>.form-control:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:var(--bs-form-valid-color)}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28208, 16, 24%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28208, 16, 24%29' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28208, 16, 24%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28208, 16, 24%29' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:var(--bs-form-invalid-color)}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: 1.5rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.625;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: 2.5rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .25;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(65, 65, 65, .9575);--bs-btn-hover-border-color: rgba(61, 61, 61, .96);--bs-btn-focus-shadow-rgb: 107, 107, 107;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(61, 61, 61, .96);--bs-btn-active-border-color: rgba(57, 57, 57, .9625);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgba(78, 78, 78, .95);--bs-btn-disabled-border-color: rgba(78, 78, 78, .95)}.btn-secondary{--bs-btn-color: #000;--bs-btn-bg: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #e3e3e3;--bs-btn-hover-border-color: #e1e1e1;--bs-btn-focus-shadow-rgb: 189, 189, 189;--bs-btn-active-color: #000;--bs-btn-active-bg: #e5e5e5;--bs-btn-active-border-color: #e1e1e1;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(222, 222, 222);--bs-btn-disabled-border-color: rgb(222, 222, 222)}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #347207;--bs-btn-hover-border-color: #316b06;--bs-btn-focus-shadow-rgb: 90, 152, 45;--bs-btn-active-color: #fff;--bs-btn-active-bg: #316b06;--bs-btn-active-border-color: #2e6506;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(61, 134, 8);--bs-btn-disabled-border-color: rgb(61, 134, 8)}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffb537;--bs-btn-hover-border-color: #ffb12c;--bs-btn-focus-shadow-rgb: 217, 143, 17;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffb943;--bs-btn-active-border-color: #ffb12c;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(255, 168, 20);--bs-btn-disabled-border-color: rgb(255, 168, 20)}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #b10e14;--bs-btn-hover-border-color: #a60d13;--bs-btn-focus-shadow-rgb: 215, 52, 59;--bs-btn-active-color: #fff;--bs-btn-active-bg: #a60d13;--bs-btn-active-border-color: #9c0c12;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(208, 16, 24);--bs-btn-disabled-border-color: rgb(208, 16, 24)}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(78, 78, 78, .95);--bs-btn-hover-border-color: rgba(78, 78, 78, .95);--bs-btn-focus-shadow-rgb: 78, 78, 78;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(78, 78, 78, .95);--bs-btn-active-border-color: rgba(78, 78, 78, .95);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgba(78, 78, 78, .95);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgba(78, 78, 78, .95);--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(222, 222, 222);--bs-btn-hover-border-color: rgb(222, 222, 222);--bs-btn-focus-shadow-rgb: 222, 222, 222;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(222, 222, 222);--bs-btn-active-border-color: rgb(222, 222, 222);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(222, 222, 222);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(222, 222, 222);--bs-gradient: none}.btn-outline-success{--bs-btn-color: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(61, 134, 8);--bs-btn-hover-border-color: rgb(61, 134, 8);--bs-btn-focus-shadow-rgb: 61, 134, 8;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(61, 134, 8);--bs-btn-active-border-color: rgb(61, 134, 8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(61, 134, 8);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(61, 134, 8);--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 168, 20);--bs-btn-hover-border-color: rgb(255, 168, 20);--bs-btn-focus-shadow-rgb: 255, 168, 20;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 168, 20);--bs-btn-active-border-color: rgb(255, 168, 20);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(255, 168, 20);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(255, 168, 20);--bs-gradient: none}.btn-outline-danger{--bs-btn-color: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(208, 16, 24);--bs-btn-hover-border-color: rgb(208, 16, 24);--bs-btn-focus-shadow-rgb: 208, 16, 24;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(208, 16, 24);--bs-btn-active-border-color: rgb(208, 16, 24);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(208, 16, 24);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(208, 16, 24);--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 38, 38, 38;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg)}.btn-sm{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: var(--bs-body-color);--bs-dropdown-bg: var(--bs-body-bg);--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: var(--bs-border-radius);--bs-dropdown-border-width: var(--bs-border-width);--bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: var(--bs-box-shadow);--bs-dropdown-link-color: var(--bs-body-color);--bs-dropdown-link-hover-color: var(--bs-body-color);--bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: var(--bs-tertiary-color);--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius, 0)}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius: var(--bs-border-radius);--bs-alert-link-color: inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: var(--bs-primary-text-emphasis);--bs-alert-bg: var(--bs-primary-bg-subtle);--bs-alert-border-color: var(--bs-primary-border-subtle);--bs-alert-link-color: var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color: var(--bs-secondary-text-emphasis);--bs-alert-bg: var(--bs-secondary-bg-subtle);--bs-alert-border-color: var(--bs-secondary-border-subtle);--bs-alert-link-color: var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color: var(--bs-success-text-emphasis);--bs-alert-bg: var(--bs-success-bg-subtle);--bs-alert-border-color: var(--bs-success-border-subtle);--bs-alert-link-color: var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color: var(--bs-info-text-emphasis);--bs-alert-bg: var(--bs-info-bg-subtle);--bs-alert-border-color: var(--bs-info-border-subtle);--bs-alert-link-color: var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color: var(--bs-warning-text-emphasis);--bs-alert-bg: var(--bs-warning-bg-subtle);--bs-alert-border-color: var(--bs-warning-border-subtle);--bs-alert-link-color: var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color: var(--bs-danger-text-emphasis);--bs-alert-bg: var(--bs-danger-bg-subtle);--bs-alert-border-color: var(--bs-danger-border-subtle);--bs-alert-link-color: var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color: var(--bs-light-text-emphasis);--bs-alert-bg: var(--bs-light-bg-subtle);--bs-alert-border-color: var(--bs-light-border-subtle);--bs-alert-link-color: var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color: var(--bs-dark-text-emphasis);--bs-alert-bg: var(--bs-dark-bg-subtle);--bs-alert-border-color: var(--bs-dark-border-subtle);--bs-alert-link-color: var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(78, 78, 78, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;--bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: var(--bs-body-bg);--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: var(--bs-border-width);--bs-modal-border-radius: var(--bs-border-radius-lg);--bs-modal-box-shadow: var(--bs-box-shadow-sm);--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: var(--bs-border-width);--bs-modal-title-line-height: 1.625;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: var(--bs-body-bg);--bs-tooltip-bg: var(--bs-emphasis-color);--bs-tooltip-border-radius: var(--bs-border-radius);--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.625;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#000!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity, 1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-primary:hover,.link-primary:focus{color:RGBA(61,61,61,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,61,61,var(--bs-link-underline-opacity, 1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-secondary:hover,.link-secondary:focus{color:RGBA(229,229,229,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(229,229,229,var(--bs-link-underline-opacity, 1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity, 1))!important}.link-success:hover,.link-success:focus{color:RGBA(49,107,6,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(49,107,6,var(--bs-link-underline-opacity, 1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity, 1))!important}.link-info:hover,.link-info:focus{color:RGBA(61,213,243,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity, 1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity, 1))!important}.link-warning:hover,.link-warning:focus{color:RGBA(255,185,67,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(255,185,67,var(--bs-link-underline-opacity, 1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity, 1))!important}.link-danger:hover,.link-danger:focus{color:RGBA(166,13,19,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(166,13,19,var(--bs-link-underline-opacity, 1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity, 1))!important}.link-light:hover,.link-light:focus{color:RGBA(249,250,251,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity, 1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity, 1))!important}.link-dark:hover,.link-dark:focus{color:RGBA(26,30,33,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, .75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, .75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, .5));text-underline-offset:.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute!important}.stretched-link:after{position:absolute;inset:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color: rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color: rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color: rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color: rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color: rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color: rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color: rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity: 1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.4625rem + 2.55vw)!important}.fs-2{font-size:calc(1.3125rem + .75vw)!important}.fs-3{font-size:calc(1.2875rem + .45vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:calc(1.25625rem + .075vw)!important}.fs-6{font-size:1.125rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium,.fw-semibold{font-weight:500!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.625!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity: 1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity: 1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:3.375rem!important}.fs-2{font-size:1.875rem!important}.fs-3{font-size:1.625rem!important}.fs-4{font-size:1.5rem!important}.fs-5{font-size:1.3125rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url(roboto-v30-latin-ext_latin-100.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url(roboto-v30-latin-ext_latin-300.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(roboto-v30-latin-ext_latin-400.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url(roboto-v30-latin-ext_latin-500.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url(roboto-v30-latin-ext_latin-700.woff) format("woff")}h1,.h1{font-weight:100;line-height:1.15;margin:0 0 .5em}h2,.h2{font-weight:300;line-height:1.2;margin:0 0 .5em}h3,.h3{font-weight:300;line-height:1.23;margin:0 0 .5em}h4,.h4{font-weight:300;line-height:1.16;margin:0 0 .5em}h5,.h5{font-weight:300;line-height:1.19;margin:0 0 .5em}h6,.h6{font-weight:300;line-height:1.16;margin:0 0 .5em}.erz-container{margin:0 auto;padding:0 1rem 0 0}.erz-container-limited{max-width:960px;margin-left:0}.erz-container-padding-y{padding-top:1rem;padding-bottom:1rem}@media (max-width: 575.98px){.erz-container-padding-x-responsive{padding-left:0;padding-right:0}}.table th{padding-top:.25rem;padding-bottom:.25rem;font-weight:500}.table-fixed{table-layout:fixed}@media screen and (max-width: 820px){erz-evaluate-absences-list>div>table thead,erz-edit-absences-list>div>table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}erz-evaluate-absences-list>div>table tr,erz-edit-absences-list>div>table tr{border-bottom:2px solid #ddd;display:block}erz-evaluate-absences-list>div>table td,erz-edit-absences-list>div>table td{border-bottom:1px solid #ddd;display:block;text-align:right;min-height:50px}erz-evaluate-absences-list>div>table td:before,erz-edit-absences-list>div>table td:before{content:attr(data-label);float:left}}.form-check-label{margin-left:1rem}a:hover,a:focus{text-decoration:underline;text-decoration-color:#ea161f;color:#000}.btn-link{text-decoration:none}.btn-outline-secondary{color:#000;border-color:#000}.btn-outline-secondary:hover{border-color:#000;background:#e6e6e6}.btn-icon{padding:.5rem;text-decoration:none}.btn-icon:hover{text-decoration:none}ngb-datepicker-navigation-select>.custom-select{font-size:1rem!important}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2.5rem!important;height:2.5rem!important}[ngbDatepickerDayView]{width:2.5rem!important;height:2.5rem!important;line-height:2.5rem!important}.ngb-dp-months{padding:.5rem 2rem;background:#f8f9fa}.ngb-dp-weekday{color:#ea161f!important}@media (max-width: 575.98px){.ngb-dp-months{padding:.5rem}}.btn .material-icons{display:block}math{display:inline;text-indent:0}math[display=block]{display:block;text-align:center}mfrac{display:inline-block!important;vertical-align:-50%;border-collapse:collapse;text-align:center}mfrac>*{display:block!important}mfrac>*+*{display:inline-block!important;vertical-align:top}mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}mi{font-style:italic}mo{margin-right:.2em;margin-left:.2em}.ng-select-container{border-radius:.25rem!important}.ng-optgroup{border-bottom:1px solid #ccc;color:inherit!important;font-weight:400!important;color:#33333d!important}.ng-option{padding-left:10px!important;padding-top:3px!important;padding-bottom:3px!important;font-weight:400!important;color:#33333d!important}.ng-option-selected{font-weight:400!important;color:#33333d!important}.ng-placeholder{color:#495057!important}.ng-value{padding-left:4px!important}.tooltip-template .tooltip-inner{max-width:100%;border:2px solid;background-color:#fff;color:#000} +@import"https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined";.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:#333;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus{outline:none}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:#0000008a;background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}@charset "UTF-8";:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(208, 16, 24);--bs-orange: rgb(239, 124, 0);--bs-yellow: rgb(255, 168, 20);--bs-green: rgb(61, 134, 8);--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: rgba(78, 78, 78, .95);--bs-secondary: rgb(222, 222, 222);--bs-success: rgb(61, 134, 8);--bs-info: #0dcaf0;--bs-warning: rgb(255, 168, 20);--bs-danger: rgb(208, 16, 24);--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 78, 78, 78;--bs-secondary-rgb: 222, 222, 222;--bs-success-rgb: 61, 134, 8;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 168, 20;--bs-danger-rgb: 208, 16, 24;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgba(29, 29, 29, .98);--bs-secondary-text-emphasis: #595959;--bs-success-text-emphasis: #183603;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664308;--bs-danger-text-emphasis: #53060a;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgba(222, 222, 222, .99);--bs-secondary-bg-subtle: #f8f8f8;--bs-success-bg-subtle: #d8e7ce;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #ffeed0;--bs-danger-bg-subtle: #f6cfd1;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgba(188, 188, 188, .98);--bs-secondary-border-subtle: #f2f2f2;--bs-success-border-subtle: #b1cf9c;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffdca1;--bs-danger-border-subtle: #ec9fa3;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: "Roboto", sans-serif;--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 300;--bs-body-line-height: 1.625;--bs-body-color: rgb(0, 0, 0);--bs-body-color-rgb: 0, 0, 0;--bs-body-bg: rgb(255, 255, 255);--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(0, 0, 0, .75);--bs-secondary-color-rgb: 0, 0, 0;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(0, 0, 0, .5);--bs-tertiary-color-rgb: 0, 0, 0;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: rgb(0, 0, 0);--bs-link-color-rgb: 0, 0, 0;--bs-link-decoration: underline;--bs-link-hover-color: rgb(234, 22, 31);--bs-link-hover-color-rgb: 234, 22, 31;--bs-code-color: #d63384;--bs-highlight-color: rgb(0, 0, 0);--bs-highlight-bg: #ffeed0;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width: .25rem;--bs-focus-ring-opacity: .25;--bs-focus-ring-color: rgba(78, 78, 78, .25);--bs-form-valid-color: rgb(61, 134, 8);--bs-form-valid-border-color: rgb(61, 134, 8);--bs-form-invalid-color: rgb(208, 16, 24);--bs-form-invalid-border-color: rgb(208, 16, 24)}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, .75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, .5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: rgba(153, 153, 153, .97);--bs-secondary-text-emphasis: #ebebeb;--bs-success-text-emphasis: #8bb66b;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffcb72;--bs-danger-text-emphasis: #e37074;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: rgba(14, 14, 14, .99);--bs-secondary-bg-subtle: #2c2c2c;--bs-success-bg-subtle: #0c1b02;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332204;--bs-danger-bg-subtle: #2a0305;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: rgba(45, 45, 45, .97);--bs-secondary-border-subtle: #858585;--bs-success-border-subtle: #255005;--bs-info-border-subtle: #087990;--bs-warning-border-subtle: #99650c;--bs-danger-border-subtle: #7d0a0e;--bs-light-border-subtle: #495057;--bs-dark-border-subtle: #343a40;--bs-heading-color: inherit;--bs-link-color: rgba(153, 153, 153, .97);--bs-link-hover-color: rgba(174, 174, 174, .976);--bs-link-color-rgb: 153, 153, 153;--bs-link-hover-color-rgb: 174, 174, 174;--bs-code-color: #e685b5;--bs-highlight-color: #dee2e6;--bs-highlight-bg: #664308;--bs-border-color: #495057;--bs-border-color-translucent: rgba(255, 255, 255, .15);--bs-form-valid-color: #8bb66b;--bs-form-valid-border-color: #8bb66b;--bs-form-invalid-color: #e37074;--bs-form-invalid-border-color: #e37074}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:300;line-height:1.2;color:var(--bs-heading-color)}h1,.h1{font-size:calc(1.4625rem + 2.55vw)}@media (min-width: 1200px){h1,.h1{font-size:3.375rem}}h2,.h2{font-size:calc(1.3125rem + .75vw)}@media (min-width: 1200px){h2,.h2{font-size:1.875rem}}h3,.h3{font-size:calc(1.2875rem + .45vw)}@media (min-width: 1200px){h3,.h3{font-size:1.625rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:calc(1.25625rem + .075vw)}@media (min-width: 1200px){h5,.h5{font-size:1.3125rem}}h6,.h6{font-size:1.125rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}:root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}.table-primary{--bs-table-color: #000;--bs-table-bg: rgba(222, 222, 222, .99);--bs-table-border-color: rgba(177, 177, 177, .992);--bs-table-striped-bg: rgba(211, 211, 211, .9905);--bs-table-striped-color: #000;--bs-table-active-bg: rgba(199, 199, 199, .991);--bs-table-active-color: #000;--bs-table-hover-bg: rgba(205, 205, 205, .99075);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #f8f8f8;--bs-table-border-color: #c6c6c6;--bs-table-striped-bg: #ececec;--bs-table-striped-color: #000;--bs-table-active-bg: #dfdfdf;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e5e5;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d8e7ce;--bs-table-border-color: #adb9a5;--bs-table-striped-bg: #cddbc4;--bs-table-striped-color: #000;--bs-table-active-bg: #c2d0b9;--bs-table-active-color: #000;--bs-table-hover-bg: #c8d6bf;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #a6c3ca;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #ffeed0;--bs-table-border-color: #ccbea6;--bs-table-striped-bg: #f2e2c6;--bs-table-striped-color: #000;--bs-table-active-bg: #e6d6bb;--bs-table-active-color: #000;--bs-table-hover-bg: #ecdcc0;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f6cfd1;--bs-table-border-color: #c5a6a7;--bs-table-striped-bg: #eac5c7;--bs-table-striped-color: #000;--bs-table-active-bg: #ddbabc;--bs-table-active-color: #000;--bs-table-hover-bg: #e4bfc1;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #c6c7c8;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #4d5154;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.625}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.625em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.625;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:0}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:0}.form-control-color.form-control-sm{height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.625rem;padding-left:1.5em;margin-bottom:1rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg: var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.3125em;vertical-align:top;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-check-input:checked{background-color:#4e4e4ef2;border-color:#4e4e4ef2}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4e4e4ef2;border-color:#4e4e4ef2;--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28171, 171, 171, 0.975%29'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#cececefb}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#cececefb}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-control-plaintext~label:after,.form-floating>.form-select~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:0}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>:disabled~label,.form-floating>.form-control:disabled~label{color:#6c757d}.form-floating>:disabled~label:after,.form-floating>.form-control:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:var(--bs-form-valid-color)}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28208, 16, 24%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28208, 16, 24%29' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28208, 16, 24%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28208, 16, 24%29' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:var(--bs-form-invalid-color)}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: 1.5rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.625;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: 2.5rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .25;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(65, 65, 65, .9575);--bs-btn-hover-border-color: rgba(61, 61, 61, .96);--bs-btn-focus-shadow-rgb: 107, 107, 107;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(61, 61, 61, .96);--bs-btn-active-border-color: rgba(57, 57, 57, .9625);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgba(78, 78, 78, .95);--bs-btn-disabled-border-color: rgba(78, 78, 78, .95)}.btn-secondary{--bs-btn-color: #000;--bs-btn-bg: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #e3e3e3;--bs-btn-hover-border-color: #e1e1e1;--bs-btn-focus-shadow-rgb: 189, 189, 189;--bs-btn-active-color: #000;--bs-btn-active-bg: #e5e5e5;--bs-btn-active-border-color: #e1e1e1;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(222, 222, 222);--bs-btn-disabled-border-color: rgb(222, 222, 222)}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #347207;--bs-btn-hover-border-color: #316b06;--bs-btn-focus-shadow-rgb: 90, 152, 45;--bs-btn-active-color: #fff;--bs-btn-active-bg: #316b06;--bs-btn-active-border-color: #2e6506;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(61, 134, 8);--bs-btn-disabled-border-color: rgb(61, 134, 8)}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffb537;--bs-btn-hover-border-color: #ffb12c;--bs-btn-focus-shadow-rgb: 217, 143, 17;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffb943;--bs-btn-active-border-color: #ffb12c;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(255, 168, 20);--bs-btn-disabled-border-color: rgb(255, 168, 20)}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #b10e14;--bs-btn-hover-border-color: #a60d13;--bs-btn-focus-shadow-rgb: 215, 52, 59;--bs-btn-active-color: #fff;--bs-btn-active-bg: #a60d13;--bs-btn-active-border-color: #9c0c12;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(208, 16, 24);--bs-btn-disabled-border-color: rgb(208, 16, 24)}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(78, 78, 78, .95);--bs-btn-hover-border-color: rgba(78, 78, 78, .95);--bs-btn-focus-shadow-rgb: 78, 78, 78;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(78, 78, 78, .95);--bs-btn-active-border-color: rgba(78, 78, 78, .95);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgba(78, 78, 78, .95);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgba(78, 78, 78, .95);--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(222, 222, 222);--bs-btn-hover-border-color: rgb(222, 222, 222);--bs-btn-focus-shadow-rgb: 222, 222, 222;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(222, 222, 222);--bs-btn-active-border-color: rgb(222, 222, 222);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(222, 222, 222);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(222, 222, 222);--bs-gradient: none}.btn-outline-success{--bs-btn-color: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(61, 134, 8);--bs-btn-hover-border-color: rgb(61, 134, 8);--bs-btn-focus-shadow-rgb: 61, 134, 8;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(61, 134, 8);--bs-btn-active-border-color: rgb(61, 134, 8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(61, 134, 8);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(61, 134, 8);--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 168, 20);--bs-btn-hover-border-color: rgb(255, 168, 20);--bs-btn-focus-shadow-rgb: 255, 168, 20;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 168, 20);--bs-btn-active-border-color: rgb(255, 168, 20);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(255, 168, 20);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(255, 168, 20);--bs-gradient: none}.btn-outline-danger{--bs-btn-color: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(208, 16, 24);--bs-btn-hover-border-color: rgb(208, 16, 24);--bs-btn-focus-shadow-rgb: 208, 16, 24;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(208, 16, 24);--bs-btn-active-border-color: rgb(208, 16, 24);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(208, 16, 24);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(208, 16, 24);--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 38, 38, 38;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg)}.btn-sm{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: var(--bs-body-color);--bs-dropdown-bg: var(--bs-body-bg);--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: var(--bs-border-radius);--bs-dropdown-border-width: var(--bs-border-width);--bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: var(--bs-box-shadow);--bs-dropdown-link-color: var(--bs-body-color);--bs-dropdown-link-hover-color: var(--bs-body-color);--bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: var(--bs-tertiary-color);--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius, 0)}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius: var(--bs-border-radius);--bs-alert-link-color: inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: var(--bs-primary-text-emphasis);--bs-alert-bg: var(--bs-primary-bg-subtle);--bs-alert-border-color: var(--bs-primary-border-subtle);--bs-alert-link-color: var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color: var(--bs-secondary-text-emphasis);--bs-alert-bg: var(--bs-secondary-bg-subtle);--bs-alert-border-color: var(--bs-secondary-border-subtle);--bs-alert-link-color: var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color: var(--bs-success-text-emphasis);--bs-alert-bg: var(--bs-success-bg-subtle);--bs-alert-border-color: var(--bs-success-border-subtle);--bs-alert-link-color: var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color: var(--bs-info-text-emphasis);--bs-alert-bg: var(--bs-info-bg-subtle);--bs-alert-border-color: var(--bs-info-border-subtle);--bs-alert-link-color: var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color: var(--bs-warning-text-emphasis);--bs-alert-bg: var(--bs-warning-bg-subtle);--bs-alert-border-color: var(--bs-warning-border-subtle);--bs-alert-link-color: var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color: var(--bs-danger-text-emphasis);--bs-alert-bg: var(--bs-danger-bg-subtle);--bs-alert-border-color: var(--bs-danger-border-subtle);--bs-alert-link-color: var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color: var(--bs-light-text-emphasis);--bs-alert-bg: var(--bs-light-bg-subtle);--bs-alert-border-color: var(--bs-light-border-subtle);--bs-alert-link-color: var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color: var(--bs-dark-text-emphasis);--bs-alert-bg: var(--bs-dark-bg-subtle);--bs-alert-border-color: var(--bs-dark-border-subtle);--bs-alert-link-color: var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(78, 78, 78, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;--bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: var(--bs-body-bg);--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: var(--bs-border-width);--bs-modal-border-radius: var(--bs-border-radius-lg);--bs-modal-box-shadow: var(--bs-box-shadow-sm);--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: var(--bs-border-width);--bs-modal-title-line-height: 1.625;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: var(--bs-body-bg);--bs-tooltip-bg: var(--bs-emphasis-color);--bs-tooltip-border-radius: var(--bs-border-radius);--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.625;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#000!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity, 1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-primary:hover,.link-primary:focus{color:RGBA(61,61,61,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,61,61,var(--bs-link-underline-opacity, 1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-secondary:hover,.link-secondary:focus{color:RGBA(229,229,229,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(229,229,229,var(--bs-link-underline-opacity, 1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity, 1))!important}.link-success:hover,.link-success:focus{color:RGBA(49,107,6,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(49,107,6,var(--bs-link-underline-opacity, 1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity, 1))!important}.link-info:hover,.link-info:focus{color:RGBA(61,213,243,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity, 1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity, 1))!important}.link-warning:hover,.link-warning:focus{color:RGBA(255,185,67,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(255,185,67,var(--bs-link-underline-opacity, 1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity, 1))!important}.link-danger:hover,.link-danger:focus{color:RGBA(166,13,19,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(166,13,19,var(--bs-link-underline-opacity, 1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity, 1))!important}.link-light:hover,.link-light:focus{color:RGBA(249,250,251,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity, 1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity, 1))!important}.link-dark:hover,.link-dark:focus{color:RGBA(26,30,33,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, .75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, .75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, .5));text-underline-offset:.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute!important}.stretched-link:after{position:absolute;inset:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color: rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color: rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color: rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color: rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color: rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color: rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color: rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity: 1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.4625rem + 2.55vw)!important}.fs-2{font-size:calc(1.3125rem + .75vw)!important}.fs-3{font-size:calc(1.2875rem + .45vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:calc(1.25625rem + .075vw)!important}.fs-6{font-size:1.125rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium,.fw-semibold{font-weight:500!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.625!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity: 1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity: 1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:3.375rem!important}.fs-2{font-size:1.875rem!important}.fs-3{font-size:1.625rem!important}.fs-4{font-size:1.5rem!important}.fs-5{font-size:1.3125rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url(roboto-v30-latin-ext_latin-100.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url(roboto-v30-latin-ext_latin-300.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(roboto-v30-latin-ext_latin-400.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url(roboto-v30-latin-ext_latin-500.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url(roboto-v30-latin-ext_latin-700.woff) format("woff")}h1,.h1{font-weight:100;line-height:1.15;margin:0 0 .5em}h2,.h2{font-weight:300;line-height:1.2;margin:0 0 .5em}h3,.h3{font-weight:300;line-height:1.23;margin:0 0 .5em}h4,.h4{font-weight:300;line-height:1.16;margin:0 0 .5em}h5,.h5{font-weight:300;line-height:1.19;margin:0 0 .5em}h6,.h6{font-weight:300;line-height:1.16;margin:0 0 .5em}.erz-container{margin:0 auto;padding:0}.erz-container-limited{max-width:960px;margin-left:0}.table th{padding-top:.25rem;padding-bottom:.25rem;font-weight:500}.table-fixed{table-layout:fixed}@media screen and (max-width: 820px){erz-evaluate-absences-list>div>table thead,erz-edit-absences-list>div>table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}erz-evaluate-absences-list>div>table tr,erz-edit-absences-list>div>table tr{border-bottom:2px solid #ddd;display:block}erz-evaluate-absences-list>div>table td,erz-edit-absences-list>div>table td{border-bottom:1px solid #ddd;display:block;text-align:right;min-height:50px}erz-evaluate-absences-list>div>table td:before,erz-edit-absences-list>div>table td:before{content:attr(data-label);float:left}}.form-check-label{margin-left:1rem}a:hover,a:focus{text-decoration:underline;text-decoration-color:#ea161f;color:#000}.btn-link{text-decoration:none}.btn-outline-secondary{color:#000;border-color:#000}.btn-outline-secondary:hover{border-color:#000;background:#e6e6e6}.btn-icon{padding:.5rem;text-decoration:none}.btn-icon:hover{text-decoration:none}ngb-datepicker-navigation-select>.custom-select{font-size:1rem!important}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2.5rem!important;height:2.5rem!important}[ngbDatepickerDayView]{width:2.5rem!important;height:2.5rem!important;line-height:2.5rem!important}.ngb-dp-months{padding:.5rem 2rem;background:#f8f9fa}.ngb-dp-weekday{color:#ea161f!important}@media (max-width: 575.98px){.ngb-dp-months{padding:.5rem}}.btn .material-icons{display:block}math{display:inline;text-indent:0}math[display=block]{display:block;text-align:center}mfrac{display:inline-block!important;vertical-align:-50%;border-collapse:collapse;text-align:center}mfrac>*{display:block!important}mfrac>*+*{display:inline-block!important;vertical-align:top}mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}mi{font-style:italic}mo{margin-right:.2em;margin-left:.2em}.ng-select-container{border-radius:.25rem!important}.ng-optgroup{border-bottom:1px solid #ccc;color:inherit!important;font-weight:400!important;color:#33333d!important}.ng-option{padding-left:10px!important;padding-top:3px!important;padding-bottom:3px!important;font-weight:400!important;color:#33333d!important}.ng-option-selected{font-weight:400!important;color:#33333d!important}.ng-placeholder{color:#495057!important}.ng-value{padding-left:4px!important}.tooltip-template .tooltip-inner{max-width:100%;border:2px solid;background-color:#fff;color:#000}