1import{a as Bi}from"./chunk-FMXFANQ7.js";import{m as Hi}from"./chunk-76ELRI6Z.js";import{a as Ri,c as Oi,d as Li}from"./chunk-2XO3EBZW.js";import{a as He}from"./chunk-YP4L6TZM.js";import{E as ji,e as Yi,z as Et}from"./chunk-DFY4WFKI.js";import{$ as Le,Cb as Ei,Fa as wi,G as D,H as gt,I as C,K as X,Kb as Ti,L as I,M as G,Oa as At,Pb as ki,Qb as Ii,Sb as Mt,Ta as Si,U as fi,Ua as Ci,Ub as Ni,V as yt,Vb as Ye,W as vt,X as Oe,Xb as xi,Y as _i,Yb as Fi,a as ae,aa as Be,ac as Pi,b as _t,ba as gi,bc as je,c as hi,ca as bt,da as Dt,e as Re,ec as Vi,fc as re,g as Ee,ha as wt,l as ui,m as mi,mb as Ai,na as yi,qa as vi,sa as J,ta as bi,tb as Mi,u as pi,wa as St,ya as Ct,za as Di}from"./chunk-PRGFSS4W.js";var zi=(()=>{class a{static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=St({type:a,selectors:[["app-patient-root"]],decls:1,vars:0,template:function(i,n){i&1&&At(0,"router-outlet")},dependencies:[Pi],encapsulation:2})}}return a})();function Ki(){return new Oe}var Tt=new X("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>G(Mi)}),_e="Method not implemented",se=class{locale;_localeChanges=new Ee;localeChanges=this._localeChanges;setTime(t,e,i,n){throw new Error(_e)}getHours(t){throw new Error(_e)}getMinutes(t){throw new Error(_e)}getSeconds(t){throw new Error(_e)}parseTime(t,e){throw new Error(_e)}addSeconds(t,e){throw new Error(_e)}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return t==null||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}compareTime(t,e){return this.getHours(t)-this.getHours(e)||this.getMinutes(t)-this.getMinutes(e)||this.getSeconds(t)-this.getSeconds(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}sameTime(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareTime(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}},kt=new X("mat-date-formats");var g=(function(a){return a[a.State=0]="State",a[a.Transition=1]="Transition",a[a.Sequence=2]="Sequence",a[a.Group=3]="Group",a[a.Animate=4]="Animate",a[a.Keyframes=5]="Keyframes",a[a.Style=6]="Style",a[a.Trigger=7]="Trigger",a[a.Reference=8]="Reference",a[a.AnimateChild=9]="AnimateChild",a[a.AnimateRef=10]="AnimateRef",a[a.Query=11]="Query",a[a.Stagger=12]="Stagger",a})(g||{}),B="*";function ze(a,t){return{type:g.Trigger,name:a,definitions:t,options:{}}}function ge(a,t=null){return{type:g.Animate,styles:t,timings:a}}function Ui(a,t=null){return{type:g.Sequence,steps:a,options:t}}function Y(a){return{type:g.Style,styles:a,offset:null}}function Ke(a,t,e){return{type:g.State,name:a,styles:t,options:e}}function Ue(a){return{type:g.Keyframes,steps:a}}function ye(a,t,e=null){return{type:g.Transition,expr:a,animation:t,options:e}}var $=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>
1i()),e.length=0}},oe=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,i=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++n==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,o)=>Math.max(s,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(n)})}getPosition(){let t=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},ve="!";var It=new X("MAT_INPUT_VALUE_ACCESSOR");var qe=new X("ngx-mat-date-formats"),O=class extends se{isSameTime(t,e){return t==null||e==null?!0:this.getHour(t)===this.getHour(e)&&this.getMinute(t)===this.getMinute(e)&&this.getSecond(t)===this.getSecond(e)}copyTime(t,e){this.setHour(t,this.getHour(e)),this.setMinute(t,this.getMinute(e)),this.setSecond(t,this.getSecond(e))}compareDateWithTime(t,e,i){let n=super.compareDate(t,e)||this.getHour(t)-this.getHour(e)||this.getMinute(t)-this.getMinute(e);return i&&(n=n||this.getSecond(t)-this.getSecond(e)),n}setTimeByDefaultValues(t,e){if(!Array.isArray(e))throw Error("@Input DefaultTime should be an array");this.setHour(t,e[0]||0),this.setMinute(t,e[1]||0),this.setSecond(t,e[2]||0)}},de=class{constructor(t,e){this.start=t,this.end=e}},De=(()=>{class a{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new Ee,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){let n=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:n})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static{this.\u0275fac=function(i){bi()}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})(),oa=(()=>{class a extends De{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new a(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(i){return new(i||a)(I(O))}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})(),la=(()=>{class a extends De{constructor(e){super(new de(null,null),e)}add(e){let{start:i,end:n}=this.selection;i==null?i=e:n==null?n=e:(i=e,n=null),super.updateSelection(new de(i,n),this)}isValid(){let{start:e,end:i}=this.selection;return e==null&&i==null?!0:e!=null&&i!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(i)&&this._adapter.compareDate(e,i)<=0:(e==null||this._isValidDateInstance(e))&&(i==null||this._isValidDateInstance(i))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new a(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(i){return new(i||a)(I(O))}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})();function da(a,t){return a||new oa(t)}var vo={provide:De,deps:[[new Le,new Be,De],O],useFactory:da};function ca(a,t){return a||new la(t)}var bo={provide:De,deps:[[new Le,new Be,De],O],useFactory:ca};function $i(a){return Error(`NgxMatDatetimePicker: No provider found for ${a}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentDateModule, or provide a custom implementation.`)}var qi=new X("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY"),ha=(()=>{class a{constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:n,end:r}=i;return n==null?n=e:r==null&&e&&this._dateAdapter.compareDate(e,n)>=0?r=e:(n=e,r=null),new de(n,r)}createPreview(e,i){let n=null,r=null;return i.start&&!i.end&&e&&(n=i.start,r=e),new de(n,r)}createDrag(e,i,n){let r=i.start,s=i.end;if(!r||!s)return null;
1let o=this._dateAdapter,l=o.compareDate(r,s)!==0,d=o.getYear(n)-o.getYear(e),h=o.getMonth(n)-o.getMonth(e),c=o.getDate(n)-o.getDate(e);return l&&o.sameDate(e,i.start)?(r=n,o.compareDate(n,s)>0&&(s=o.addCalendarYears(s,d),s=o.addCalendarMonths(s,h),s=o.addCalendarDays(s,c))):l&&o.sameDate(e,i.end)?(s=n,o.compareDate(n,r)<0&&(r=o.addCalendarYears(r,d),r=o.addCalendarMonths(r,h),r=o.addCalendarDays(r,c))):(r=o.addCalendarYears(r,d),r=o.addCalendarMonths(r,h),r=o.addCalendarDays(r,c),s=o.addCalendarYears(s,d),s=o.addCalendarMonths(s,h),s=o.addCalendarDays(s,c)),new de(r,s)}static{this.\u0275fac=function(i){return new(i||a)(I(O))}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})();function ua(a,t){return a||new ha(t)}var Do={provide:qi,deps:[[new Le,new Be,qi],O],useFactory:ua};var le;try{le=typeof Intl<"u"}catch(a){le=!1}var ma={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},pa=$e(31,a=>String(a+1)),fa={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},_a=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function $e(a,t){let e=Array(a);for(let i=0;i<a;i++)e[i]=t(i);return e}var Gi=(()=>{class a extends O{constructor(e,i){super(),this.useUtcForDisplay=!0,super.setLocale(e),this.useUtcForDisplay=!i.TRIDENT,this._clampDate=i.TRIDENT||i.EDGE}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){if(le){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return $e(12,n=>this._stripDirectionalityCharacters(this._format(i,new Date(2017,n,1))))}return ma[e]}getDateNames(){if(le){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return $e(31,i=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,i+1))))}return pa}getDayOfWeekNames(e){if(le){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return $e(7,n=>this._stripDirectionalityCharacters(this._format(i,new Date(2017,0,n+1))))}return fa[e]}getYearName(e){if(le){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(i,e))}return String(this.getYear(e))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,n){if(i<0||i>11)throw Error(`Invalid month index "${i}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);let r=this._createDateWithOverflow(e,i,n);if(r.getMonth()!=i)throw Error(`Invalid date "${n}" for month with index "${i}".`);return r}today(){return new Date}parse(e){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(le){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e),e.setFullYear(Math.max(1,Math.min(9999,e.getFullYear())))),i=_t(ae({},i),{timeZone:"utc"});let n=new Intl.DateTimeFormat(this.locale,i);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+i)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(_a.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}getHour(e){return e.getHours()}getMinute(e){return e.getMinutes()}getSecond(e){return e.getSeconds()}setHour(e,i){e.setHours(i)}setMinute(e,i){e.setMinutes(i)}setSecond(e,i){e.setSeconds(i)}_createDateWithOverflow(e,i,n){let r=new Date(e,i,n);return e>=0&&e<100&&r.setFullYear(this.getYear(r)-1900),r}_2digit(e){return("00"+e).slice(-2)}_stripDirectionalityCharacters(e){return e.replace(/[\u200e\u200f]/g,"")}_format(e,i){let n=new Date;return n.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),n.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(n)}static{this.\u0275fac=function(i){return new(i||a)(I(Tt,8),I(Yi))}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})();var be=class{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}},ga=(()=>{class a{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pe
1ndingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=ji(e),n=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&n.blur&&n.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let n=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(n),this._cvaOnChange(n),this._onTouched(),this._formatValue(n),this.dateInput.emit(new be(this,this._elementRef.nativeElement)),this.dateChange.emit(new be(this,this._elementRef.nativeElement))}})}constructor(e,i,n){if(this._elementRef=e,this._dateAdapter=i,this._dateFormats=n,this.dateChange=new yt,this.dateInput=new yt,this.stateChanges=new Ee,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Re.EMPTY,this._localeSubscription=Re.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=r=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=r=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),o=this._getMinDate();return!o||!s||this._dateAdapter.compareDateWithTime(o,s)<=0?null:{matDatetimePickerMin:{min:o,actual:s}}},this._maxValidator=r=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),o=this._getMaxDate();return!o||!s||this._dateAdapter.compareDateWithTime(o,s)>=0?null:{matDatetimePickerMax:{max:o,actual:s}}},this._lastValueValid=!1,!this._dateAdapter)throw $i("NgxMatDateAdapter");if(!this._dateFormats)throw $i("NGX_MAT_DATE_FORMATS");this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ya(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];Et(e,"altKey")&&e.keyCode===40&&i.every(r=>!Et(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=this._lastValueValid,n=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._dateAdapter.getValidDateOrNull(n);let r=this._dateAdapter.isSameTime(n,this.value),l=!(this._dateAdapter.sameDate(n,this.value)&&r);!n||l?this._cvaOnChange(n):(e&&!this.value&&this._cvaOnChange(n),i!==this._lastValueValid&&this._validatorOnChange()),l&&(this._assignValue(n),this.dateInput.emit(new be(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new be(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static{this.\u0275fac=function(i){return new(i||a)(J(Dt),J(O,8),J(qe,8))}}static{this.\u0275dir=Ct({type:a,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[gi]})}}return a})();function ya(a,t){let e=Object.keys(a);for(let i of e){let{previousValue:n,currentValue:r}=a[i];if(t.isDateInstance(n)&&t.isDateInstance(r)){if(!t.sameDate(n,r))return!0}else return!0}return!1}var wo={transformPanel:ze("transformPanel",[ye("void => enter-dropdown",ge("120ms cubic-bezier(0, 0, 0.2, 1)",Ue([Y({opacity:0,transform:"scale(1, 0.8)"}),Y({opacity:1,transform:"scale(1, 1)"})]))),ye("void => enter-dialog",ge("150ms cubic-bezier(0, 0, 0.2, 1)",Ue([Y({opacity:0,transform:"scale(0.7)"}),Y({transform:"none",opacity:1})]))),ye("* => void",ge("100ms linear",Y({opacity:0}
1)))]),fadeInCalendar:ze("fadeInCalendar",[Ke("void",Y({opacity:0})),Ke("enter",Y({opacity:1})),ye("void => *",ge("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};var va={provide:Ri,useExisting:gt(()=>Wi),multi:!0},ba={provide:Oi,useExisting:gt(()=>Wi),multi:!0},Wi=(()=>{class a extends ga{set ngxMatDatetimePicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}constructor(e,i,n,r){super(e,i,n),this._formField=r,this._closedSubscription=Re.EMPTY,this._validator=Li.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static{this.\u0275fac=function(i){return new(i||a)(J(Dt),J(O,8),J(qe,8),J(Hi,8))}}static{this.\u0275dir=Ct({type:a,selectors:[["input","ngxMatDatetimePicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,n){i&1&&Ci("input",function(s){return n._onInput(s.target.value)})("change",function(){return n._onChange()})("blur",function(){return n._onBlur()})("keydown",function(s){return n._onKeydown(s)}),i&2&&(Si("disabled",n.disabled),wi("aria-haspopup",n._datepicker?"dialog":null)("aria-owns",(n._datepicker==null?null:n._datepicker.opened)&&n._datepicker.id||null)("min",n.min?n._dateAdapter.toIso8601(n.min):null)("max",n.max?n._dateAdapter.toIso8601(n.max):null)("data-mat-calendar",n._datepicker?n._datepicker.id:null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["ngxMatDatepickerInput"],standalone:!1,features:[Ai([va,ba,{provide:It,useExisting:a}]),Di]})}}return a})();function Qi(a){return new D(3e3,!1)}function Da(){return new D(3100,!1)}function wa(){return new D(3101,!1)}function Sa(a){return new D(3001,!1)}function Ca(a){return new D(3003,!1)}function Aa(a){return new D(3004,!1)}function Xi(a,t){return new D(3005,!1)}function Ji(){return new D(3006,!1)}function en(){return new D(3007,!1)}function tn(a,t){return new D(3008,!1)}function nn(a){return new D(3002,!1)}function an(a,t,e,i,n){return new D(3010,!1)}function rn(){return new D(3011,!1)}function sn(){return new D(3012,!1)}function on(){return new D(3200,!1)}function ln(){return new D(3202,!1)}function dn(){return new D(3013,!1)}function cn(a){return new D(3014,!1)}function hn(a){return new D(3015,!1)}function un(a){return new D(3016,!1)}function mn(a,t){return new D(3404,!1)}function Ma(a){return new D(3502,!1)}function pn(a){return new D(3503,!1)}function fn(){return new D(3300,!1)}function _n(a){return new D(3504,!1)}function gn(a){return new D(3301,!1)}function yn(a,t){return new D(3302,!1)}function vn(a){return new D(3303,!1)}function bn(a,t){return new D(3400,!1)}function Dn(a){return new D(3401,!1)}function wn(a){return new D(3402,!1)}function Sn(a,t){return new D(3505,!1)}function Q(a){switch(a.length){case 0:return new $;case 1:return a[0];default:return new oe(a)}}function Pt(a,t,e=new Map,i=new Map){let n=[],r=[],s=-1,o=null;if(t.forEach(l=>{let d=l.get("offset"),h=d==s,c=h&&o||new Map;l.forEach((v,y)=>{let m=y,_=v;if(y!=="offset")switch(m=a.normalizePropertyName(m,n),_){case ve:_=e.get(y);break;case B:_=i.get(y);break;default:_=a.normalizeStyleValue(y,m,_,n);break}c.set(m,_)}),h||r.push(c),o=c,s=d}),n.length)throw Ma(n);return r}function Ge(a,t,e,i){switch(t){case"start":a.onStart(()=>i(e&&Nt(e,"start",a)));break;case"done":a.onDone(()=>
vendor: 58,058 bytes, line 1
1i(e&&Nt(e,"done",a)));break;case"destroy":a.onDestroy(()=>i(e&&Nt(e,"destroy",a)));break}}function Nt(a,t,e){let i=e.totalTime,n=!!e.disabled,r=We(a.element,a.triggerName,a.fromState,a.toState,t||a.phaseName,i??a.totalTime,n),s=a._data;return s!=null&&(r._data=s),r}function We(a,t,e,i,n="",r=0,s){return{element:a,triggerName:t,fromState:e,toState:i,phaseName:n,totalTime:r,disabled:!!s}}function P(a,t,e){let i=a.get(t);return i||a.set(t,i=e),i}function Vt(a){let t=a.indexOf(":"),e=a.substring(1,t),i=a.slice(t+1);return[e,i]}var Ea=typeof document>"u"?null:document.documentElement;function Qe(a){let t=a.parentNode||a.host||null;return t===Ea?null:t}function Ta(a){return a.substring(1,6)=="ebkit"}var ce=null,Zi=!1;function Cn(a){ce||(ce=ka()||{},Zi=ce.style?"WebkitAppearance"in ce.style:!1);let t=!0;return ce.style&&!Ta(a)&&(t=a in ce.style,!t&&Zi&&(t="Webkit"+a.charAt(0).toUpperCase()+a.slice(1)in ce.style)),t}function ka(){return typeof document<"u"?document.body:null}function Rt(a,t){for(;t;){if(t===a)return!0;t=Qe(t)}return!1}function Ot(a,t,e){if(e)return Array.from(a.querySelectorAll(t));let i=a.querySelector(t);return i?[i]:[]}var Ia=1e3,Lt="{{",Na="}}",Bt="ng-enter",Ze="ng-leave",Te="ng-trigger",ke=".ng-trigger",Yt="ng-animating",Xe=".ng-animating";function q(a){if(typeof a=="number")return a;let t=a.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xt(parseFloat(t[1]),t[2])}function xt(a,t){return t==="s"?a*Ia:a}function Ie(a,t,e){return a.hasOwnProperty("duration")?a:Fa(a,t,e)}var xa=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Fa(a,t,e){let i,n=0,r="";if(typeof a=="string"){let s=a.match(xa);if(s===null)return t.push(Qi(a)),{duration:0,delay:0,easing:""};i=xt(parseFloat(s[1]),s[2]);let o=s[3];o!=null&&(n=xt(parseFloat(o),s[4]));let l=s[5];l&&(r=l)}else i=a;if(!e){let s=!1,o=t.length;i<0&&(t.push(Da()),s=!0),n<0&&(t.push(wa()),s=!0),s&&t.splice(o,0,Qi(a))}return{duration:i,delay:n,easing:r}}function An(a){return a.length?a[0]instanceof Map?a:a.map(t=>new Map(Object.entries(t))):[]}function H(a,t,e){t.forEach((i,n)=>{let r=Je(n);e&&!e.has(n)&&e.set(n,a.style[r]),a.style[r]=i})}function ee(a,t){t.forEach((e,i)=>{let n=Je(i);a.style[n]=""})}function we(a){return Array.isArray(a)?a.length==1?a[0]:Ui(a):a}function Mn(a,t,e){let i=t.params||{},n=jt(a);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||e.push(Sa(r))})}var Ft=new RegExp(`${Lt}\\s*(.+?)\\s*${Na}`,"g");function jt(a){let t=[];if(typeof a=="string"){let e;for(;e=Ft.exec(a);)t.push(e[1]);Ft.lastIndex=0}return t}function Se(a,t,e){let i=`${a}`,n=i.replace(Ft,(r,s)=>{let o=t[s];return o==null&&(e.push(Ca(s)),o=""),o.toString()});return n==i?a:n}var Pa=/-+([a-z0-9])/g;function Je(a){return a.replace(Pa,(...t)=>t[1].toUpperCase())}function En(a,t){return a===0||t===0}function Tn(a,t,e){if(e.size&&t.length){let i=t[0],n=[];if(e.forEach((r,s)=>{i.has(s)||n.push(s),i.set(s,r)}),n.length)for(let r=1;r<t.length;r++){let s=t[r];n.forEach(o=>s.set(o,et(a,o)))}}return t}function V(a,t,e){switch(t.type){case g.Trigger:return a.visitTrigger(t,e);case g.State:return a.visitState(t,e);case g.Transition:return a.visitTransition(t,e);case g.Sequence:return a.visitSequence(t,e);case g.Group:return a.visitGroup(t,e);case g.Animate:return a.visitAnimate(t,e);case g.Keyframes:return a.visitKeyframes(t,e);case g.Style:return a.visitStyle(t,e);case g.Reference:return a.visitReference(t,e);case g.AnimateChild:return a.visitAnimateChild(t,e);case g.AnimateRef:return a.visitAnimateRef(t,e);case g.Query:return a.visitQuery(t,e);case g.Stagger:return a.visitStagger(t,e);default:throw Aa(t.type)}}function et(a,t){return window.getComputedStyle(a)[t]}var ai=(()=>{class a{validateStyleProperty(e){return Cn(e)}containsElement(e,i){return Rt(e,i)}getParentElement(e){return Qe(e)}query(e,i,n){return Ot(e,i,n)}computeStyle(e,i,n){return n||""}animate(e,i,n,r,s,o=[],l){return new $(n,r)}static \u0275fac=function(i){return new(i||a)};static \u0275prov=C({token:a,factory:a.\u0275fac})}return a})(),ue=class{static NOOP=new ai},me=class{};var Va=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"]),rt=class extends me{normalizePropertyName(t,e){return Je(t)}normalizeStyleValue(t,e,i,n){let r="",s=i.toString().trim();if(Va.has(e)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(Xi(t,i))}return s+r}};var st="*";function Ra(a,t){let e=[];return typeof a=="string"?a.split(/\s*,\s*/).forEach(i=>Oa(i,e,t)):e.push(a),e}function Oa(a,t,e){if(a[0]==":"){let l=La(a,e);if(typeof l=="function"){t.push(l);return}a=l}let i=a.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(hn(a)),t;let n=i[1],r=i[2],s=i[3];t.push(kn(n,s));let o=n==st&&s==st;r[0]=="<"&&!o&&t.push(kn(s,n))}function La(a,t){switch(a){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(un(a)),"* => *"}}var tt=new Set(["true","1"]),it=new Set(["false","0"]);function kn(a,t){let e=tt.has(a)||it.has(a),i=tt.has(t)||it.has(t);return(n,r)=>{let s=a==st||a==n,o=t==st||t==r;return!s&&e&&typeof n=="boolean"&&(s=n?tt.has(a):it.has(a)),!o&&i&&typeof r=="boolean"&&(o=r?tt.has(t):it.has(t)),s&&o}}var Bn=":self",Ba=new RegExp(`s*${Bn}s*,?`,"g");function Yn(a,t,e,i){return new qt(a).build(t,e,i)}var In="",qt=class{_driver;constructor(t){this._driver=t}build(t,e,i){let n=new Gt(e);return this._resetContextStyleTimingState(n),V(this,we(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector=In,t.collectedStyles=new Map,t.collectedStyles.set(In,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0,r=[],s=[];return t.name.charAt(0)=="@"&&e.errors.push(Ji()),t.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),o.type==g.State){let l=o,d=l.name;d.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=d}else if(o.type==g.Transition){let l=this.visitTransition(o,e);i+=l.queryCount,n+=l.depCount,s.push(l)}else e.errors.push(en())}),{type:g.Trigger,name:t.name,states:r,transitions:s,queryCount:i,depCount:n,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){let r=new Set,s=n||{};i.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{jt(l).forEach(d=>{s.hasOwnProperty(d)||r.add(d)})})}),r.size&&e.errors.push(tn(t.name,[...r.values()]))}return{type:g.State,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=V(this,we(t.animation),e),n=Ra(t.expr,e.errors);return{type:g.Transition,matchers:n,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:he(t.options)}}visitSequence(t,e){return{type:g.Sequence,steps:t.steps.map(i=>V(this,i,e)),options:he(t.options)}}visitGroup(t,e){let i=e.currentTime,n=0,r=t.steps.map(s=>{e.currentTime=i;let o=V(this,s,e);return n=Math.max(n,e.currentTime),o});return e.currentTime=n,{type:g.Group,steps:r,options:he(t.options)}}visitAnimate(t,e){let i=za(t.timings,e.errors);e.currentAnimateTimings=i;let n,r=t.styles?t.styles:Y({});if(r.type==g.Keyframes)n=this.visitKeyframes(r,e);else{let s=t.styles,o=!1;if(!s){o=!0;let d={};i.easing&&(d.easing=i.easing),s=Y(d)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,e);l.isEmptyStep=o,n=l}return e.currentAnimateTimings=null,{type:g.Animate,timings:i,style:n,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],n=Array.isArray(t.styles)?t.styles:[t.styles];for(let o of n)typeof o=="string"?o===B?i.push(o):e.errors.push(nn(o)):i.push(new Map(Object.entries(o)));let r=!1,s=null;return i.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(s=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Lt)>=0){r=!0;break}}}),{type:g.Style,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,n=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,l)=>{let d=e.collectedStyles.get(e.currentQuerySelector),h=d.get(l),c=!0;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(e.errors.push(an(l,h.startTime,h.endTime,r,n)),c=!1),r=h.startTime),c&&d.set(l,{startTime:r,endTime:n}),e.options&&Mn(o,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:g.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(rn()),i;let n=1,r=0,s=[],o=!1,l=!1,d=0,h=t.steps.map(A=>{let M=this._makeStyleAst(A,e),N=M.offset!=null?M.offset:Ha(M.styles),T=0;return N!=null&&(r++,T=M.offset=N),l=l||T<0||T>1,o=o||T<d,d=T,s.push(T),M});l&&e.errors.push(sn()),o&&e.errors.push(on());let c=t.steps.length,v=0;r>0&&r<c?e.errors.push(ln()):r==0&&(v=n/(c-1));let y=c-1,m=e.currentTime,_=e.currentAnimateTimings,w=_.duration;return h.forEach((A,M)=>{let N=v>0?M==y?1:v*M:s[M],T=N*w;e.currentTime=m+_.delay+T,_.duration=T,this._validateStyleAst(A,e),A.offset=N,i.styles.push(A)}),i}visitReference(t,e){return{type:g.Reference,animation:V(this,we(t.animation),e),options:he(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:g.AnimateChild,options:he(t.options)}}visitAnimateRef(t,e){return{type:g.AnimateRef,animation:this.visitReference(t.animation,e),options:he(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;let[r,s]=Ya(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,P(e.collectedStyles,e.currentQuerySelector,new Map);let o=V(this,we(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:g.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:he(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(dn());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Ie(t.timings,e.errors,!0);return{type:g.Stagger,animation:V(this,we(t.animation),e),timings:i,options:null}}};function Ya(a){let t=!!a.split(/\s*,\s*/).find(e=>e==Bn);return t&&(a=a.replace(Ba,"")),a=a.replace(/@\*/g,ke).replace(/@\w+/g,e=>ke+"-"+e.slice(1)).replace(/:animating/g,Xe),[a,t]}function ja(a){return a?ae({},a):null}var Gt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(t){this.errors=t}};function Ha(a){if(typeof a=="string")return null;let t=null;if(Array.isArray(a))a.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(a instanceof Map&&a.has("offset")){let e=a;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function za(a,t){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number"){let r=Ie(a,t).duration;return Ht(r,0,"")}let e=a;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Ht(0,0,"");return r.dynamic=!0,r.strValue=e,r}let n=Ie(e,t);return Ht(n.duration,n.delay,n.easing)}function he(a){return a?(a=ae({},a),a.params&&(a.params=ja(a.params))):a={},a}function Ht(a,t,e){return{duration:a,delay:t,easing:e}}function ri(a,t,e,i,n,r,s=null,o=!1){return{type:1,element:a,keyframes:t,preStyleProps:e,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:s,subTimeline:o}}var xe=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},Ka=1,Ua=":enter",$a=new RegExp(Ua,"g"),qa=":leave",Ga=new RegExp(qa,"g");function jn(a,t,e,i,n,r=new Map,s=new Map,o,l,d=[]){return new Wt().buildKeyframes(a,t,e,i,n,r,s,o,l,d)}var Wt=class{buildKeyframes(t,e,i,n,r,s,o,l,d,h=[]){d=d||new xe;let c=new Qt(t,e,d,n,r,h,[]);c.options=l;let v=l.delay?q(l.delay):0;c.currentTimeline.delayNextStep(v),c.currentTimeline.setStyles([s],null,c.errors,l),V(this,i,c);let y=c.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let _=y.length-1;_>=0;_--){let w=y[_];if(w.element===e){m=w;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,c.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[ri(e,[],[],[],0,v,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,n,n.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let n of t){let r=n?.delay;if(r){let s=typeof r=="number"?r:q(Se(r,n?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let r=e.currentTimeline.currentTime,s=i.duration!=null?q(i.duration):null,o=i.delay!=null?q(i.delay):null;return s!==0&&t.forEach(l=>{let d=e.appendInstructionToTimeline(l,s,o);r=Math.max(r,d.duration+d.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),V(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,n=e,r=t.options;if(r&&(r.params||r.delay)&&(n=e.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==g.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ot);let s=q(r.delay);n.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>V(this,s,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],n=e.currentTimeline.currentTime,r=t.options&&t.options.delay?q(t.options.delay):0;t.steps.forEach(s=>{let o=e.createSubContext(t.options);r&&o.delayNextStep(r),V(this,s,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,n=e.params?Se(i,e.params,e.errors):i;return Ie(n,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());let r=t.style;r.type==g.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(l=>{let d=l.offset||0;o.forwardTime(d*r),o.setStyles(l.styles,l.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+r),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,n=t.options||{},r=n.delay?q(n.delay):0;r&&(e.previousNode.type===g.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ot);let s=i,o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let l=null;o.forEach((d,h)=>{e.currentQueryIndex=h;let c=e.createSubContext(t.options,d);r&&c.delayNextStep(r),d===e.element&&(l=c.currentTimeline),V(this,t.animation,c),c.currentTimeline.applyStylesToKeyframe();let v=c.currentTimeline.currentTime;s=Math.max(s,v)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,n=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=i.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;V(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}},ot={},Qt=class a{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=ot;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,i,n,r,s,o,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=s,this.timelines=o,this.currentTimeline=l||new lt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,n=this.options;i.duration!=null&&(n.duration=q(i.duration)),i.delay!=null&&(n.delay=q(i.delay));let r=i.params;if(r){let s=n.params;s||(s=this.options.params={}),Object.keys(r).forEach(o=>{(!e||!s.hasOwnProperty(o))&&(s[o]=Se(r[o],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(n=>{i[n]=e[n]})}}return t}createSubContext(t=null,e,i){let n=e||this.element,r=new a(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=ot,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let n={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},r=new Zt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,r,s){let o=[];if(n&&o.push(this.element),t.length>0){t=t.replace($a,"."+this._enterClassName),t=t.replace(Ga,"."+this._leaveClassName);let l=i!=1,d=this._driver.query(this.element,t,l);i!==0&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),o.push(...d)}return!r&&o.length==0&&s.push(cn(e)),o}},lt=class a{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new a(this._driver,t,e||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+=Ka,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||B),this._currentKeyframe.set(e,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&this._previousKeyframe.set("easing",e);let r=n&&n.params||{},s=Wa(t,this._globalTimelineStyles);for(let[o,l]of s){let d=Se(l,r,i);this._pendingStyles.set(o,d),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,d)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let n=this._styleSummary.get(i);(!n||e.time>n.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((o,l)=>{let d=new Map([...this._backFill,...o]);d.forEach((h,c)=>{h===ve?t.add(c):h===B&&e.add(c)}),i||d.set("offset",l/this.duration),n.push(d)});let r=[...t.values()],s=[...e.values()];if(i){let o=n[0],l=new Map(o);o.set("offset",0),l.set("offset",1),n=[o,l]}return ri(this.element,n,r,s,this.duration,this.startTime,this.easing,!1)}},Zt=class extends lt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,i,n,r,s,o=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],s=i+e,o=e/s,l=new Map(t[0]);l.set("offset",0),r.push(l);let d=new Map(t[0]);d.set("offset",Nn(o)),r.push(d);let h=t.length-1;for(let c=1;c<=h;c++){let v=new Map(t[c]),y=v.get("offset"),m=e+y*i;v.set("offset",Nn(m/s)),r.push(v)}i=s,e=0,n="",t=r}return ri(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}};function Nn(a,t=3){let e=Math.pow(10,t-1);return Math.round(a*e)/e}function Wa(a,t){let e=new Map,i;return a.forEach(n=>{if(n==="*"){i??=t.keys();for(let r of i)e.set(r,B)}else for(let[r,s]of n)e.set(r,s)}),e}function xn(a,t,e,i,n,r,s,o,l,d,h,c,v){return{type:0,element:a,triggerName:t,isRemovalTransition:n,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:o,queriedElements:l,preStyleProps:d,postStyleProps:h,totalTime:c,errors:v}}var zt={},dt=class{_triggerName;ast;_stateStyles;constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return Qa(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){let n=this._stateStyles.get("*");return t!==void 0&&(n=this._stateStyles.get(t?.toString())||n),n?n.buildStyles(e,i):new Map}build(t,e,i,n,r,s,o,l,d,h){let c=[],v=this.ast.options&&this.ast.options.params||zt,y=o&&o.params||zt,m=this.buildStyles(i,y,c),_=l&&l.params||zt,w=this.buildStyles(n,_,c),A=new Set,M=new Map,N=new Map,T=n==="void",pe={params:Hn(_,v),delay:this.ast.options?.delay},K=h?[]:jn(t,e,this.ast.animation,r,s,m,w,pe,d,c),x=0;return K.forEach(F=>{x=Math.max(F.duration+F.delay,x)}),c.length?xn(e,this._triggerName,i,n,T,m,w,[],[],M,N,x,c):(K.forEach(F=>{let te=F.element,fe=P(M,te,new Set);F.preStyleProps.forEach(ie=>fe.add(ie));let oi=P(N,te,new Set);F.postStyleProps.forEach(ie=>oi.add(ie)),te!==e&&A.add(te)}),xn(e,this._triggerName,i,n,T,m,w,K,[...A.values()],M,N,x))}};function Qa(a,t,e,i,n){return a.some(r=>r(t,e,i,n))}function Hn(a,t){let e=ae({},t);return Object.entries(a).forEach(([i,n])=>{n!=null&&(e[i]=n)}),e}var Xt=class{styles;defaultParams;normalizer;constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,n=Hn(t,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,o)=>{s&&(s=Se(s,n,e));let l=this.normalizer.normalizePropertyName(o,e);s=this.normalizer.normalizeStyleValue(o,l,s,e),i.set(o,s)})}),i}};function Za(a,t,e){return new Jt(a,t,e)}var Jt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,e.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new Xt(n.style,r,i))}),Fn(this.states,"true","1"),Fn(this.states,"false","0"),e.transitions.forEach(n=>{this.transitionFactories.push(new dt(t,n,this.states))}),this.fallbackTransition=Xa(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function Xa(a,t,e){let i=[(s,o)=>!0],n={type:g.Sequence,steps:[],options:null},r={type:g.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new dt(a,r,t)}function Fn(a,t,e){a.has(t)?a.has(e)||a.set(e,a.get(t)):a.has(e)&&a.set(t,a.get(e))}var Ja=new xe,ei=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i}register(t,e){let i=[],n=[],r=Yn(this._driver,e,i,n);if(i.length)throw pn(i);this._animations.set(t,r)}_buildPlayer(t,e,i){let n=t.element,r=Pt(this._normalizer,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let n=[],r=this._animations.get(t),s,o=new Map;if(r?(s=jn(this._driver,e,r,Bt,Ze,new Map,new Map,i,Ja,n),s.forEach(h=>{let c=P(o,h.element,new Map);h.postStyleProps.forEach(v=>c.set(v,null))})):(n.push(fn()),s=[]),n.length)throw _n(n);o.forEach((h,c)=>{h.forEach((v,y)=>{h.set(y,this._driver.computeStyle(c,y,B))})});let l=s.map(h=>{let c=o.get(h.element);return this._buildPlayer(h,new Map,c)}),d=Q(l);return this._playersById.set(t,d),d.onDestroy(()=>this.destroy(t)),this.players.push(d),d}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw gn(t);return e}listen(t,e,i,n){let r=We(e,"","","");return Ge(this._getPlayer(t),i,r,n),()=>{}}command(t,e,i,n){if(i=="register"){this.register(t,n[0]);return}if(i=="create"){let s=n[0]||{};this.create(t,e,s);return}let r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t);break}}},Pn="ng-animate-queued",er=".ng-animate-queued",Kt="ng-animate-disabled",tr=".ng-animate-disabled",ir="ng-star-inserted",nr=".ng-star-inserted",ar=[],zn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",Fe=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),n=i?t.value:t;if(this.value=or(n),i){let r=t,{value:s}=r,o=hi(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(n=>{i[n]==null&&(i[n]=e[n])})}}},Ne="void",Ut=new Fe(Ne),ti=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+t,j(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.has(e))throw yn(i,e);if(i==null||i.length==0)throw vn(e);if(!lr(i))throw bn(i,e);let r=P(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};r.push(s);let o=P(this._engine.statesByElement,t,new Map);return o.has(e)||(j(t,Te),j(t,Te+"-"+e),o.set(e,Ut)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||o.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw Dn(t);return e}trigger(t,e,i,n=!0){let r=this._getTrigger(e),s=new Pe(this.id,e,t),o=this._engine.statesByElement.get(t);o||(j(t,Te),j(t,Te+"-"+e),this._engine.statesByElement.set(t,o=new Map));let l=o.get(e),d=new Fe(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&d.absorbOptions(l.options),o.set(e,d),l||(l=Ut),!(d.value===Ne)&&l.value===d.value){if(!hr(l.params,d.params)){let _=[],w=r.matchStyles(l.value,l.params,_),A=r.matchStyles(d.value,d.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{ee(t,w),H(t,A)})}return}let v=P(this._engine.playersByElement,t,[]);v.forEach(_=>{_.namespaceId==this.id&&_.triggerName==e&&_.queued&&_.destroy()});let y=r.matchTransition(l.value,d.value,t,d.params),m=!1;if(!y){if(!n)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:y,fromState:l,toState:d,player:s,isFallbackTransition:m}),m||(j(t,Pn),s.onStart(()=>{Ce(t,Pn)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let w=this._engine.playersByElement.get(t);if(w){let A=w.indexOf(s);A>=0&&w.splice(A,1)}}),this.players.push(s),v.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(n=>n.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,ke,!0);i.forEach(n=>{if(n[z])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(s=>s.triggerLeaveAnimation(n,e,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(t,e,i,n){let r=this._engine.statesByElement.get(t),s=new Map;if(r){let o=[];if(r.forEach((l,d)=>{if(s.set(d,l.value),this._triggers.has(d)){let h=this.trigger(t,d,Ne,n);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Q(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let n=new Set;e.forEach(r=>{let s=r.name;if(n.has(s))return;n.add(s);let l=this._triggers.get(s).fallbackTransition,d=i.get(s)||Ut,h=new Fe(Ne),c=new Pe(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:d,toState:h,player:c,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(t):[];if(r&&r.length)n=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{let r=t[z];(!r||r===zn)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){j(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,s=this._elementListeners.get(r);s&&s.forEach(o=>{if(o.name==i.triggerName){let l=We(r,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Ge(i.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((i,n)=>{let r=i.transition.ast.depCount,s=n.transition.ast.depCount;return r==0||s==0?r-s:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},ii=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new ti(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,o=this.driver.getParentElement(e);for(;o;){let l=n.get(o);if(l){let d=i.indexOf(l);i.splice(d+1,0,t),s=!0;break}o=this.driver.getParentElement(o)}s||i.unshift(t)}else i.push(t);return n.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&e.add(r)}}return e}trigger(t,e,i,n){if(nt(e)){let r=this._fetchNamespace(t);if(r)return r.trigger(e,i,n),!0}return!1}insertNode(t,e,i,n){if(!nt(e))return;let r=e[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),j(t,Kt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ce(t,Kt))}removeNode(t,e,i){if(nt(e)){let n=t?this._fetchNamespace(t):null;n?n.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,n,r){this.collectedLeaveElements.push(e),e[z]={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,e,i,n,r){return nt(e)?this._fetchNamespace(t).listen(e,i,n,r):()=>{}}_buildInstruction(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,ke,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Xe,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Q(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[z];if(e&&e.setForRemoval){if(t[z]=zn,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Kt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,tr,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];j(n,ir)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,t)}finally{for(let n=0;n<i.length;n++)i[n]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Q(e).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(t){throw wn(t)}_flushAnimations(t,e){let i=new xe,n=[],r=new Map,s=[],o=new Map,l=new Map,d=new Map,h=new Set;this.disabledNodes.forEach(u=>{h.add(u);let p=this.driver.query(u,er,!0);for(let f=0;f<p.length;f++)h.add(p[f])});let c=this.bodyNode,v=Array.from(this.statesByElement.keys()),y=On(v,this.collectedEnterElements),m=new Map,_=0;y.forEach((u,p)=>{let f=Bt+_++;m.set(p,f),u.forEach(b=>j(b,f))});let w=[],A=new Set,M=new Set;for(let u=0;u<this.collectedLeaveElements.length;u++){let p=this.collectedLeaveElements[u],f=p[z];f&&f.setForRemoval&&(w.push(p),A.add(p),f.hasAnimation?this.driver.query(p,nr,!0).forEach(b=>A.add(b)):M.add(p))}let N=new Map,T=On(v,Array.from(A));T.forEach((u,p)=>{let f=Ze+_++;N.set(p,f),u.forEach(b=>j(b,f))}),t.push(()=>{y.forEach((u,p)=>{let f=m.get(p);u.forEach(b=>Ce(b,f))}),T.forEach((u,p)=>{let f=N.get(p);u.forEach(b=>Ce(b,f))}),w.forEach(u=>{this.processLeaveNode(u)})});let pe=[],K=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(e).forEach(f=>{let b=f.player,E=f.element;if(pe.push(b),this.collectedEnterElements.length){let k=E[z];if(k&&k.setForMove){if(k.previousTriggersValues&&k.previousTriggersValues.has(f.triggerName)){let ne=k.previousTriggersValues.get(f.triggerName),L=this.statesByElement.get(f.element);if(L&&L.has(f.triggerName)){let Ve=L.get(f.triggerName);Ve.value=ne,L.set(f.triggerName,Ve)}}b.destroy();return}}let U=!c||!this.driver.containsElement(c,E),R=N.get(E),Z=m.get(E),S=this._buildInstruction(f,i,Z,R,U);if(S.errors&&S.errors.length){K.push(S);return}if(U){b.onStart(()=>ee(E,S.fromStyles)),b.onDestroy(()=>H(E,S.toStyles)),n.push(b);return}if(f.isFallbackTransition){b.onStart(()=>ee(E,S.fromStyles)),b.onDestroy(()=>H(E,S.toStyles)),n.push(b);return}let ci=[];S.timelines.forEach(k=>{k.stretchStartingKeyframe=!0,this.disabledNodes.has(k.element)||ci.push(k)}),S.timelines=ci,i.append(E,S.timelines);let na={instruction:S,player:b,element:E};s.push(na),S.queriedElements.forEach(k=>P(o,k,[]).push(b)),S.preStyleProps.forEach((k,ne)=>{if(k.size){let L=l.get(ne);L||l.set(ne,L=new Set),k.forEach((Ve,ft)=>L.add(ft))}}),S.postStyleProps.forEach((k,ne)=>{let L=d.get(ne);L||d.set(ne,L=new Set),k.forEach((Ve,ft)=>L.add(ft))})});if(K.length){let u=[];K.forEach(p=>{u.push(Sn(p.triggerName,p.errors))}),pe.forEach(p=>p.destroy()),this.reportError(u)}let x=new Map,F=new Map;s.forEach(u=>{let p=u.element;i.has(p)&&(F.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,x))}),n.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(b=>{P(x,p,[]).push(b),b.destroy()})});let te=w.filter(u=>Ln(u,l,d)),fe=new Map;Rn(fe,this.driver,M,d,B).forEach(u=>{Ln(u,l,d)&&te.push(u)});let ie=new Map;y.forEach((u,p)=>{Rn(ie,this.driver,new Set(u),l,ve)}),te.forEach(u=>{let p=fe.get(u),f=ie.get(u);fe.set(u,new Map([...p?.entries()??[],...f?.entries()??[]]))});let pt=[],li=[],di={};s.forEach(u=>{let{element:p,player:f,instruction:b}=u;if(i.has(p)){if(h.has(p)){f.onDestroy(()=>H(p,b.toStyles)),f.disabled=!0,f.overrideTotalTime(b.totalTime),n.push(f);return}let E=di;if(F.size>1){let R=p,Z=[];for(;R=R.parentNode;){let S=F.get(R);if(S){E=S;break}Z.push(R)}Z.forEach(S=>F.set(S,E))}let U=this._buildAnimation(f.namespaceId,b,x,r,ie,fe);if(f.setRealPlayer(U),E===di)pt.push(f);else{let R=this.playersByElement.get(E);R&&R.length&&(f.parentPlayer=Q(R)),n.push(f)}}else ee(p,b.fromStyles),f.onDestroy(()=>H(p,b.toStyles)),li.push(f),h.has(p)&&n.push(f)}),li.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let f=Q(p);u.setRealPlayer(f)}}),n.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u<w.length;u++){let p=w[u],f=p[z];if(Ce(p,Ze),f&&f.hasAnimation)continue;let b=[];if(o.size){let U=o.get(p);U&&U.length&&b.push(...U);let R=this.driver.query(p,Xe,!0);for(let Z=0;Z<R.length;Z++){let S=o.get(R[Z]);S&&S.length&&b.push(...S)}}let E=b.filter(U=>!U.destroyed);E.length?dr(this,p,E):this.processLeaveNode(p)}return w.length=0,pt.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),pt}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,r){let s=[];if(e){let o=this.playersByQueriedElement.get(t);o&&(s=o)}else{let o=this.playersByElement.get(t);if(o){let l=!r||r==Ne;o.forEach(d=>{d.queued||!l&&d.triggerName!=n||s.push(d)})}}return(i||n)&&(s=s.filter(o=>!(i&&i!=o.namespaceId||n&&n!=o.triggerName))),s}_beforeAnimationBuild(t,e,i){let n=e.triggerName,r=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:n;for(let l of e.timelines){let d=l.element,h=d!==r,c=P(i,d,[]);this._getPreviousPlayers(d,h,s,o,e.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),c.push(y)})}ee(r,e.fromStyles)}_buildAnimation(t,e,i,n,r,s){let o=e.triggerName,l=e.element,d=[],h=new Set,c=new Set,v=e.timelines.map(m=>{let _=m.element;h.add(_);let w=_[z];if(w&&w.removedBeforeQueried)return new $(m.duration,m.delay);let A=_!==l,M=cr((i.get(_)||ar).map(x=>x.getRealPlayer())).filter(x=>{let F=x;return F.element?F.element===_:!1}),N=r.get(_),T=s.get(_),pe=Pt(this._normalizer,m.keyframes,N,T),K=this._buildPlayer(m,pe,M);if(m.subTimeline&&n&&c.add(_),A){let x=new Pe(t,o,_);x.setRealPlayer(K),d.push(x)}return K});d.forEach(m=>{P(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>sr(this.playersByQueriedElement,m.element,m))}),h.forEach(m=>j(m,Yt));let y=Q(v);return y.onDestroy(()=>{h.forEach(m=>Ce(m,Yt)),H(l,e.toStyles)}),c.forEach(m=>{P(n,m,[]).push(y)}),y}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new $(t.duration,t.delay)}},Pe=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(n=>Ge(t,i,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){P(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function sr(a,t,e){let i=a.get(t);if(i){if(i.length){let n=i.indexOf(e);i.splice(n,1)}i.length==0&&a.delete(t)}return i}function or(a){return a??null}function nt(a){return a&&a.nodeType===1}function lr(a){return a=="start"||a=="done"}function Vn(a,t){let e=a.style.display;return a.style.display=t??"none",e}function Rn(a,t,e,i,n){let r=[];e.forEach(l=>r.push(Vn(l)));let s=[];i.forEach((l,d)=>{let h=new Map;l.forEach(c=>{let v=t.computeStyle(d,c,n);h.set(c,v),(!v||v.length==0)&&(d[z]=rr,s.push(d))}),a.set(d,h)});let o=0;return e.forEach(l=>Vn(l,r[o++])),s}function On(a,t){let e=new Map;if(a.forEach(o=>e.set(o,[])),t.length==0)return e;let i=1,n=new Set(t),r=new Map;function s(o){if(!o)return i;let l=r.get(o);if(l)return l;let d=o.parentNode;return e.has(d)?l=d:n.has(d)?l=i:l=s(d),r.set(o,l),l}return t.forEach(o=>{let l=s(o);l!==i&&e.get(l).push(o)}),e}function j(a,t){a.classList?.add(t)}function Ce(a,t){a.classList?.remove(t)}function dr(a,t,e){Q(e).onDone(()=>a.processLeaveNode(t))}function cr(a){let t=[];return Kn(a,t),t}function Kn(a,t){for(let e=0;e<a.length;e++){let i=a[e];i instanceof oe?Kn(i.players,t):t.push(i)}}function hr(a,t){let e=Object.keys(a),i=Object.keys(t);if(e.length!=i.length)return!1;for(let n=0;n<e.length;n++){let r=e[n];if(!t.hasOwnProperty(r)||a[r]!==t[r])return!1}return!0}function Ln(a,t,e){let i=e.get(a);if(!i)return!1;let n=t.get(a);return n?i.forEach(r=>n.add(r)):t.set(a,i),e.delete(a),!0}var Ae=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new ii(t.body,e,i),this._timelineEngine=new ei(t.body,e,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(t,e,i,n,r){let s=t+"-"+n,o=this._triggerCache[s];if(!o){let l=[],d=[],h=Yn(this._driver,r,l,d);if(l.length)throw mn(n,l);o=Za(n,h,this._normalizer),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if(i.charAt(0)=="@"){let[r,s]=Vt(i),o=n;this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,r){if(i.charAt(0)=="@"){let[s,o]=Vt(i);return this._timelineEngine.listen(s,e,o,r)}return this._transitionEngine.listen(t,e,i,n,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function ur(a,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=$t(t[0]),t.length>1&&(i=$t(t[t.length-1]))):t instanceof Map&&(e=$t(t)),e||i?new mr(a,e,i):null}var mr=(()=>{class a{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n;let r=a.initialStylesByElement.get(e);r||a.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&H(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(H(this._element,this._initialStyles),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(ee(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),H(this._element,this._initialStyles),this._state=3)}}return a})();function $t(a){let t=null;return a.forEach((e,i)=>{pr(i)&&(t=t||new Map,t.set(i,e))}),t}function pr(a){return a==="display"||a==="position"}var ct=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let t=this.keyframes,e=this._triggerWebAnimation(this.element,t,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=t.length?t[t.length-1]:new Map;let i=()=>this._onFinish();return e.addEventListener("finish",i),this.onDestroy(()=>{e.removeEventListener("finish",i)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){let n=this._convertKeyframesToObject(e);try{return t.animate(n,i)}catch(r){return null}}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){let t=this._buildPlayer();t&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),t.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=t*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!=="offset"&&t.set(n,this._finished?i:et(this.element,n))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},ht=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return Rt(t,e)}getParentElement(t){return Qe(t)}query(t,e,i){return Ot(t,e,i)}computeStyle(t,e,i){return et(t,e)}animate(t,e,i,n,r,s=[]){let o=n==0?"both":"forwards",l={duration:i,delay:n,fill:o};r&&(l.easing=r);let d=new Map,h=s.filter(y=>y instanceof ct);En(i,n)&&h.forEach(y=>{y.currentSnapshot.forEach((m,_)=>d.set(_,m))});let c=An(e).map(y=>new Map(y));c=Tn(t,c,d);let v=ur(t,c);return new ct(t,c,l,v)}};var at="@",Un="@.disabled",ut=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,i,n){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i,n){if(n){this.delegate.removeChild(t,e,i,n);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==at&&e==Un?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i,n){return this.delegate.listen(t,e,i,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},ni=class extends ut{factory;constructor(t,e,i,n,r){super(e,i,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==at?e.charAt(1)=="."&&e==Un?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i,n){if(e.charAt(0)==at){let r=fr(t),s=e.slice(1),o="";return s.charAt(0)!=at&&([s,o]=_r(s)),this.engine.listen(this.namespaceId,r,s,o,l=>{let d=l._data||-1;this.factory.scheduleListenerCallback(d,i,l)})}return this.delegate.listen(t,e,i,n)}};function fr(a){switch(a){case"body":return document.body;case"document":return document;case"window":return window;default:return a}}function _r(a){let t=a.indexOf("."),e=a.substring(0,t),i=a.slice(t+1);return[e,i]}var mt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,e.onRemovalComplete=(n,r)=>{r?.removeChild(null,n)}}createRenderer(t,e){let n=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let d=this._rendererCache,h=d.get(n);if(!h){let c=()=>d.delete(n);h=new ut("",n,this.engine,c),d.set(n,h)}return h}let r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let o=d=>{Array.isArray(d)?d.forEach(o):this.engine.registerTrigger(r,s,t,d.name,d)};return e.data.animation.forEach(o),new ni(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[s,o]=r;s(o)}),this._animationCallbacksBuffer=[]})}),n.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var yr=(()=>{class a extends Ae{constructor(e,i,n){super(e,i,n)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||a)(I(fi),I(ue),I(me))};static \u0275prov=C({token:a,factory:a.\u0275fac})}return a})();function vr(){return new rt}function br(){return new mt(G(ki),G(Ae),G(vt))}var $n=[{provide:me,useFactory:vr},{provide:Ae,useClass:yr},{provide:vi,useFactory:br}],zo=[{provide:ue,useClass:ai},{provide:wt,useValue:"NoopAnimations"},...$n],Dr=[{provide:ue,useFactory:()=>new ht},{provide:wt,useFactory:()=>"BrowserAnimations"},...$n];function qn(){return yi("NgEagerAnimations"),[...Dr]}var Gn=(()=>{class a{get agencyTimeZone(){return localStorage.getItem("timeZone")||Intl.DateTimeFormat().resolvedOptions().timeZone}set agencyTimeZone(e){localStorage.setItem("timeZone",e)}
1get agencyCurrentDate(){return new Date(new Date().toLocaleString("en-US",{timeZone:this.agencyTimeZone}))}getCurrentDateInTimeZone(e){let i=e||this.agencyTimeZone;return new Date(new Date().toLocaleString("en-US",{timeZone:i}))}getOffsetBetweenTimeZones(e,i,n){let r=new Date(e.toLocaleString("en-US",{timeZone:i})),s=new Date(e.toLocaleString("en-US",{timeZone:n}));return r.getTime()-s.getTime()}getAgencyTimeZoneInMilitaryFormat(){let e=this.getOffsetBetweenTimeZones(new Date,this.agencyTimeZone,"UTC"),i=Math.round(e),n=Math.floor(i/36e5),r=Math.floor(i%36e5/6e4),s=Math.abs(n).toString().padStart(2,"0"),o=Math.abs(r).toString().padStart(2,"0");return`${i>=0?"+":"-"}${s}:${o}`}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var wr=[`${re.endpoint}file/upload`,`${re.endpoint}file/download`],Wn=(()=>{class a{constructor(){this.timeZoneService=G(Gn)}intercept(e,i){if(!e.url.startsWith(re.endpoint)||wr.some(l=>e.url.startsWith(l)))return i.handle(e);let n=this.convertDates(structuredClone(e.body),Me.ToUTC),r=new Mt({}),s=Object.assign(new Mt,e.params);for(let l of s.keys())r=r.appendAll({[l]:this.convertDates(s.getAll(l),Me.ToUTC)});let o=e.clone({body:n,params:r});return i.handle(o).pipe(mi(l=>{if(l instanceof Ni){let d=this.convertDates(l.body,Me.ToAgency);return l.clone({body:d})}return l}))}convertDates(e,i){return Array.isArray(e)?e.map(n=>this.convertDates(n,i)):e instanceof Date?i===Me.ToUTC?new Date(e.getTime()+i*this.getDiffBetweenAgencyAndLocal(e)).toISOString():new Date(e.getTime()+i*this.getDiffBetweenAgencyAndLocal(e)):typeof e=="string"&&this.isValidateDate(e)?i===Me.ToUTC?new Date(new Date(e).getTime()+i*this.getDiffBetweenAgencyAndLocal(new Date(e))).toISOString():new Date(new Date(e).getTime()+i*this.getDiffBetweenAgencyAndLocal(new Date(e))):(e!==null&&typeof e=="object"&&Object.keys(e).forEach(n=>{e[n]=this.convertDates(e[n],i)}),e)}isValidateDate(e){let i=new Date(e);if(isNaN(i.getTime()))return!1;let n=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(.\d{1,9})?(Z|([+-]\d{2}:\d{2})))?$/,r=/\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) [ \d]\d \d{4} \d{2}:\d{2}:\d{2} GMT[+-]\d{4}\b/;return n.test(e)||r.test(e)}getDiffBetweenAgencyAndLocal(e){return this.timeZoneService.getOffsetBetweenTimeZones(e,this.timeZoneService.agencyTimeZone,Intl.DateTimeFormat().resolvedOptions().timeZone)}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})(),Me=(function(a){return a[a.ToUTC=-1]="ToUTC",a[a.ToAgency=1]="ToAgency",a})(Me||{});var Qn=(()=>{class a{intercept(e,i){return e=e.clone({setHeaders:{"time-zone-offset":(-new Date().getTimezoneOffset()/60).toString()}}),i.handle(e)}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})();var si=(()=>{class a extends Gi{format(e,i){return Ti(e,i,"en-US")}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=bt(a)))(n||a)}})()}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})(),Zn={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"MM/dd/yyyy, hh:mm a",monthYearLabel:"MMM, yyyy",dateA11yLabel:"MM/dd/yyyy, hh:mm a",monthYearA11yLabel:"MMM, yyyy"}},Xn={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"MM/dd/yyyy",monthYearLabel:"MMM, yyyy",dateA11yLabel:"MM/dd/yyyy",monthYearA11yLabel:"MMM, yyyy"}};var Ar=[`${re.endpoint}file/download`],Jn=(()=>{class a{constructor(e,i){this.localStorageService=e,this.router=i}intercept(e,i){if(!e.url.startsWith(re.endpoint)||Ar.some(s=>e.url.startsWith(s)))return i.handle(e);let n=e,r=this.localStorageService.token;return r&&(n=e.clone({setHeaders:{Authorization:`Bearer ${r}`}})),i.handle(n).pipe(pi(s=>(s.status===401&&(this.localStorageService.clear(),this.router.navigateByUrl("/identity/sign-in").then(()=>console.log("User is logged out"))),ui(()=>s))))}
1static{this.\u0275fac=function(i){return new(i||a)(I(He),I(je))}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac})}}return a})();var ea=(()=>{class a{constructor(e,i){this.localStorageService=e,this.router=i}canActivate(){return this.localStorageService.token?!0:(this.router.navigateByUrl("/identity/sign-in"),!1)}static{this.\u0275fac=function(i){return new(i||a)(I(He),I(je))}}static{this.\u0275prov=C({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var ta=[{path:"identity",loadChildren:()=>import("./chunk-2PXXCSU2.js").then(a=>a.IdentityRoutes)},{path:"",loadChildren:()=>import("./chunk-PCOL4SIZ.js").then(a=>a.HomeRouting),canActivate:[ea]}];var ia={providers:[_i(),Vi(ta),xi(Fi()),Ei(),Bi(),qn(),{provide:Ye,useClass:Jn,multi:!0},{provide:Ye,useClass:Wn,multi:!0},{provide:Ye,useClass:Qn,multi:!0},{provide:Oe,useFactory:Ki},{provide:O,useClass:si},{provide:qe,useValue:Zn},{provide:se,useClass:si},{provide:kt,useValue:Xn}]};Ii(zi,ia).catch(a=>console.error(a));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.