PageSourceSearch

https://leasing.mynd.co/main-QJAGF5Y3.js

js mynd.co collected 2026-10-01 13:52:17 UTC 126,333 bytes, 1 lines download raw bytes

vendor: 57,884 bytes, line 1
1import{c as Oa}from"./chunk-2GEPLAW5.js";import{a as Ra}from"./chunk-OYXYYKZG.js";import{l as Da,m as ka}from"./chunk-6VSTODBE.js";import{c as Va}from"./chunk-C3FSHPUI.js";import{a as gi}from"./chunk-J3AIAH6O.js";import{a as Ss,b as _s}from"./chunk-NXYR3ROU.js";import"./chunk-NANQOQVD.js";import{$ as $o,$a as va,A as uo,Aa as pt,B as mo,Ba as sa,C as ho,Ca as oa,D as fo,Da as Tn,E as go,Ea as aa,F as yo,Fa as Cn,G as Ao,Ga as ca,H as vo,Ha as ci,I as So,Ia as la,J as _o,K as Eo,Ka as li,Kb as Pa,L as To,La as pa,M as Co,N as bo,Na as ua,O as wo,P as Po,Q as Mo,Qa as pi,Qb as Ma,R as Io,Ra as da,Rb as Ia,S as Oo,Sa as ma,T as No,U as Ro,Ua as ha,V as Do,W as ko,Wa as fa,X as Fo,Xa as ga,Y as xo,Ya as ya,Yb as Na,Z as Lo,_ as Uo,_a as Aa,aa as zo,ab as Sa,ba as jo,bb as _a,cb as Ea,db as ve,ea as Vo,fa as Ko,fb as Ta,ga as Bo,h as gn,ha as qo,i as yn,ia as vn,j as ni,ja as Sn,jb as Ca,k as Js,ka as Wo,l as eo,la as ai,m as to,ma as Ho,n as ri,na as Go,o as An,oa as _n,p as io,pa as Qo,pb as ba,q as no,qa as Yo,r as ro,ra as Xo,rc as Ba,s as so,sa as Zo,t as si,ta as En,u as oo,ua as Jo,v as ao,va as ea,w as co,wa as ta,x as lo,xa as ia,xb as wa,y as po,ya as na,z as oi,za as ra}from"./chunk-RL6J7QFE.js";import{a as Rs,b as ot,c as Ka}from"./chunk-QLQBCRP5.js";import{a as E,b as at,c as T,d as Ds,e as Zs,f as lt}from"./chunk-FSLFYEFF.js";import{$ as ze,$b as is,$d as se,$e as fn,Aa as Ji,Ac as rn,Bc as us,Be as Jt,Ca as ne,Cb as Wr,Cc as Ht,D as Xi,Da as re,Db as Hr,Dc as tt,Dd as As,De as Fs,Df as ui,Eb as Gr,Ec as it,Ee as cn,Fc as ds,Fe as ei,Ga as qr,Gc as ms,Ge as xs,Ha as Re,Hc as hs,He as ct,Hf as Fa,Ia as Bt,Ic as nt,Ie as ti,If as di,J as Fr,Ja as en,Jc as Gt,Je as ii,Jf as xa,K as xr,Kb as Qr,Kc as Qt,Kd as vs,Ke as ln,Kf as La,L as Lr,Lb as Yr,Lc as N,Ld as Es,Le as Ls,Lf as mi,Ma as fe,Mc as Ae,Md as Ts,Me as Us,N as g,Nd as rt,Ne as $s,O as Ze,Oa as ge,Ob as Xr,Od as st,Oe as pn,Of as Ua,P as $e,Pa as At,Pc as fs,Pd as on,Pe as zs,Pf as $a,Q as q,Qa as vt,Qc as sn,Qd as Xt,Qe as js,R as O,Ra as St,Rd as Cs,Re as un,Rf as za,S as Ur,Sa as te,Sd as bs,Se as dn,Sf as ja,Ta as L,Tb as Zr,Tc as Be,Td as ws,Te as mn,U as H,Ua as U,Ub as Jr,Uc as Yt,Ud as Ps,Ue as Ct,Uf as hi,V as ie,Va as ye,Vb as es,Vc as Tt,Vd as an,Ve as Vs,W as Te,Wd as Ms,We as Ks,Wf as fi,X as A,Xc as gs,Xd as Is,Xe as hn,Y as W,Yc as ys,Yd as ue,Ye as Bs,Z as Je,Zd as Os,Ze as qs,_ as $r,_b as ts,_d as Ns,_e as Ws,a as Ue,aa as je,ae as Zt,af as Hs,b as Ut,bf as Gs,ca as zr,cb as Ve,cf as Qs,d as Or,da as jt,de as qe,df as Ys,e as Nr,ea as jr,ef as Xs,f as $t,fb as Ce,ga as Ne,h as Rr,ha as Vt,hc as ns,ib as J,ic as rs,j as M,ja as Vr,jc as ss,ke as ks,l as Dr,la as Kr,m as C,mc as os,n as yt,na as Zi,o as zt,pb as qt,qa as Kt,rb as Wt,sc as Ke,t as Yi,tb as _t,tc as as,u as Ie,ua as V,ub as Q,uc as cs,v as ee,vb as Et,vc as De,w as R,wb as et,wc as tn,x as he,xc as ls,y as kr,ya as Br,yc as ps,z as Oe,zc as nn}from"./chunk-6GSKCSD7.js";import"./chunk-P7V2G2AZ.js";import{a as x,b as Y,d as Mr,j as Ir,k as S,l as w}from"./chunk-WLC4VAPF.js";S();S();S();S();S();function qa(n){return new O(3e3,!1)}function jl(){return new O(3100,!1)}function Vl(){return new O(3101,!1)}function Kl(n){return new O(3001,!1)}function Bl(n){return new O(3003,!1)}function ql(n){return new O(3004,!1)}function Ha(n,t){return new O(3005,!1)}function Ga(){return new O(3006,!1)}function Qa(){return new O(3007,!1)}function Ya(n,t){return new O(3008,!1)}function Xa(n){return new O(3002,!1)}function Za(n,t,e,i,r){return new O(3010,!1)}function Ja(){return new O(3011,!1)}function ec(){return new O(3012,!1)}function tc(){return new O(3200,!1)}function ic(){return new O(3202,!1)}function nc(){return new O(3013,!1)}function rc(n){return new O(3014,!1)}function sc(n){return new O(3015,!1)}function oc(n){return new O(3016,!1)}function ac(n,t){return new O(3404,!1)}function Wl(n){return new O(3502,!1)}function cc(n){return new O(3503,!1)}function lc(){return new O(3300,!1)}function pc(n){return new O(3504,!1)}function uc(n){return new O(3301,!1)}function dc(n,t){return new O(3302,!1)}function mc(n){return new O(3303,!1)}function hc(n,t){return new O(3400,!1)}function fc(n){return new O(3401,!1)}function gc(n){return new O(3402,!1)}function yc(n,t){return new O(3505,!1)}function Pe(n){switch(n.length){case 0:return new Be;case 1:return n[0];default:return new Yt(n)}}function Mn(n,t,e=new Map,i=new Map){let r=[],s=[],a=-1,c=null;if(t.forEach(l=>{let o=l.get("offset"),u=o==a,p=u&&c||new Map;l.forEach((f,h)=>{let d=h,m=f;if(h!=="offset")switch(d=n.normalizePropertyName(d,r),m){case Tt:m=e.get(h);break;case Ae:m=i.get(h);break;default:m=n.normalizeStyleValue(h,d,m,r);break}p.set(d,m)}),u||s.push(p),c=p,a=o}),r.length)throw Wl(r);return s}function yi(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&bn(e,"start",n)));break;case"done":n.onDone(()=>i(e&&bn(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&bn(e,"destroy",n)));break}}function bn(n,t,e){let i=e.totalTime,r=!!e.disabled,s=Ai(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,i??n.totalTime,r),a=n._data;return a!=null&&(s._data=a),s}function Ai(n,t,e,i,r="",s=0,a){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!a}}function oe(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function In(n){let t=n.indexOf(":"),e=n.substring(1,t),i=n.slice(t+1);return[e,i]}var Hl=typeof document>"u"?null:document.documentElement;function vi(n){let t=n.parentNode||n.host||null;return t===Hl?null:t}function Gl(n){return n.substring(1,6)=="ebkit"}var We=null,Wa=!1;function Ac(n){We||(We=Ql()||{},Wa=We.style?"WebkitAppearance"in We.style:!1);let t=!0;return We.style&&!Gl(n)&&(t=n in We.style,!t&&Wa&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in We.style)),t}function Ql(){return typeof document<"u"?document.body:null}function On(n,t){for(;t;){if(t===n)return!0;t=vi(t)}return!1}function Nn(n,t,e){if(e)return Array.from(n.querySelectorAll(t));let i=n.querySelector(t);return i?[i]:[]}var Yl=1e3,Rn="{{",Xl="}}",Dn="ng-enter",Si="ng-leave",bt="ng-trigger",wt=".ng-trigger",kn="ng-animating",_i=".ng-animating";function be(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:wn(parseFloat(t[1]),t[2])}function wn(n,t){return t==="s"?n*Yl:n}function Pt(n,t,e){return n.hasOwnProperty("duration")?n:Jl(n,t,e)}var Zl=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Jl(n,t,e){let i,r=0,s="";if(typeof n=="string"){let a=n.match(Zl);if(a===null)return t.push(qa(n)),{duration:0,delay:0,easing:""};i=wn(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(r=wn(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else i=n;if(!e){let a=!1,c=t.length;i<0&&(t.push(jl()),a=!0),r<0&&(t.push(Vl()),a=!0),a&&t.splice(c,0,qa(n))}return{duration:i,delay:r,easing:s}}function vc(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function Se(n,t,e){t.forEach((i,r)=>{let s=Ei(r);e&&!e.has(r)&&e.set(r,n.style[s]),n.style[s]=i})}function ke(n,t){t.forEach((e,i)=>{let r=Ei(i);n.style[r]=""})}function ut(n){return Array.isArray(n)?n.length==1?n[0]:fs(n):n}function Sc(n,t,e){let i=t.params||{},r=Fn(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(Kl(s))})}var Pn=new RegExp(`${Rn}\\s*(.+?)\\s*${Xl}`,"g");function Fn(n){let t=[];if(typeof n=="string"){let e;for(;e=Pn.exec(n);)t.push(e[1]);Pn.lastIndex=0}return t}function dt(n,t,e){let i=`${n}`,r=i.replace(Pn,(s,a)=>{let c=t[a];return c==null&&(e.push(Bl(a)),c=""),c.toString()});return r==i?n:r}var ep=/-+([a-z0-9])/g;function Ei(n){return n.replace(ep,(...t)=>t[1].toUpperCase())}function _c(n,t){return n===0||t===0}function Ec(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((s,a)=>{i.has(a)||r.push(a),i.set(a,s)}),r.length)for(let s=1;s<t.length;s++){let a=t[s];r.forEach(c=>a.set(c,Ti(n,c)))}}return t}function ae(n,t,e){switch(t.type){case N.Trigger:return n.visitTrigger(t,e);case N.State:return n.visitState(t,e);case N.Transition:return n.visitTransition(t,e);case N.Sequence:return n.visitSequence(t,e);case N.Group:return n.visitGroup(t,e);case N.Animate:return n.visitAnimate(t,e);case N.Keyframes:return n.visitKeyframes(t,e);case N.Style:return n.visitStyle(t,e);case N.Reference:return n.visitReference(t,e);case N.AnimateChild:return n.visitAnimateChild(t,e);case N.AnimateRef:return n.visitAnimateRef(t,e);case N.Query:return n.visitQuery(t,e);case N.Stagger:return n.visitStagger(t,e);default:throw ql(t.type)}}function Ti(n,t){return window.getComputedStyle(n)[t]}var Zn=(()=>{class n{validateStyleProperty(e){return Ac(e)}containsElement(e,i){return On(e,i)}getParentElement(e){return vi(e)}query(e,i,r){return Nn(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,a,c=[],l){return new Be(r,s)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=H({token:n,factory:n.\u0275fac})}return n})(),Ge=class{static NOOP=new Zn},Qe=class{};var tp=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"]),Mi=class extends Qe{normalizePropertyName(t,e){return Ei(t)}normalizeStyleValue(t,e,i,r){let s="",a=i.toString().trim();if(tp.has(e)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&r.push(Ha(t,i))}return a+s}};var Ii="*";function ip(n,t){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>np(i,e,t)):e.push(n),e}function np(n,t,e){if(n[0]==":"){let l=rp(n,e);if(typeof l=="function"){t.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(sc(n)),t;let r=i[1],s=i[2],a=i[3];t.push(Tc(r,a));let c=r==Ii&&a==Ii;s[0]=="<"&&!c&&t.push(Tc(a,r))}function rp(n,t){switch(n){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(oc(n)),"* => *"}}var Ci=new Set(["true","1"]),bi=new Set(["false","0"]);function Tc(n,t){let e=Ci.has(n)||bi.has(n),i=Ci.has(t)||bi.has(t);return(r,s)=>{let a=n==Ii||n==r,c=t==Ii||t==s;return!a&&e&&typeof r=="boolean"&&(a=r?Ci.has(n):bi.has(n)),!c&&i&&typeof s=="boolean"&&(c=s?Ci.has(t):bi.has(t)),a&&c}}var Dc=":self",sp=new RegExp(`s*${Dc}s*,?`,"g");function kc(n,t,e,i){return new jn(n).build(t,e,i)}var Cc="",jn=class{_driver;constructor(t){this._driver=t}build(t,e,i){let r=new Vn(e);return this._resetContextStyleTimingState(r),ae(this,ut(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector=Cc,t.collectedStyles=new Map,t.collectedStyles.set(Cc,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0,s=[],a=[];return t.name.charAt(0)=="@"&&e.errors.push(Ga()),t.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),c.type==N.State){let l=c,o=l.name;o.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=o}else if(c.type==N.Transition){let l=this.visitTransition(c,e);i+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push(Qa())}),{type:N.Trigger,name:t.name,states:s,transitions:a,queryCount:i,depCount:r,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){let s=new Set,a=r||{};i.styles.forEach(c=>{c instanceof Map&&c.forEach(l=>{Fn(l).forEach(o=>{a.hasOwnProperty(o)||s.add(o)})})}),s.size&&e.errors.push(Ya(t.name,[...s.values()]))}return{type:N.State,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=ae(this,ut(t.animation),e),r=ip(t.expr,e.errors);return{type:N.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:He(t.options)}}visitSequence(t,e){return{type:N.Sequence,steps:t.steps.map(i=>ae(this,i,e)),options:He(t.options)}}visitGroup(t,e){let i=e.currentTime,r=0,s=t.steps.map(a=>{e.currentTime=i;let c=ae(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:N.Group,steps:s,options:He(t.options)}}visitAnimate(t,e){let i=lp(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:sn({});if(s.type==N.Keyframes)r=this.visitKeyframes(s,e);else{let a=t.styles,c=!1;if(!a){c=!0;let o={};i.easing&&(o.easing=i.easing),a=sn(o)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(a,e);l.isEmptyStep=c,r=l}return e.currentAnimateTimings=null,{type:N.Animate,timings:i,style:r,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let c of r)typeof c=="string"?c===Ae?i.push(c):e.errors.push(Xa(c)):i.push(new Map(Object.entries(c)));let s=!1,a=null;return i.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(a=c.get("easing"),c.delete("easing")),!s)){for(let l of c.values())if(l.toString().indexOf(Rn)>=0){s=!0;break}}}),{type:N.Style,styles:i,easing:a,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(a=>{typeof a!="string"&&a.forEach((c,l)=>{let o=e.collectedStyles.get(e.currentQuerySelector),u=o.get(l),p=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(e.errors.push(Za(l,u.startTime,u.endTime,s,r)),p=!1),s=u.startTime),p&&o.set(l,{startTime:s,endTime:r}),e.options&&Sc(c,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:N.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Ja()),i;let r=1,s=0,a=[],c=!1,l=!1,o=0,u=t.steps.map(P=>{let F=this._makeStyleAst(P,e),z=F.offset!=null?F.offset:cp(F.styles),I=0;return z!=null&&(s++,I=F.offset=z),l=l||I<0||I>1,c=c||I<o,o=I,a.push(I),F});l&&e.errors.push(ec()),c&&e.errors.push(tc());let p=t.steps.length,f=0;s>0&&s<p?e.errors.push(ic()):s==0&&(f=r/(p-1));let h=p-1,d=e.currentTime,m=e.currentAnimateTimings,v=m.duration;return u.forEach((P,F)=>{let z=f>0?F==h?1:f*F:a[F],I=z*v;e.currentTime=d+m.delay+I,m.duration=I,this._validateStyleAst(P,e),P.offset=z,i.styles.push(P)}),i}visitReference(t,e){return{type:N.Reference,animation:ae(this,ut(t.animation),e),options:He(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:N.AnimateChild,options:He(t.options)}}visitAnimateRef(t,e){return{type:N.AnimateRef,animation:this.visitReference(t.animation,e),options:He(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;let[s,a]=op(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,oe(e.collectedStyles,e.currentQuerySelector,new Map);let c=ae(this,ut(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:N.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:He(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(nc());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Pt(t.timings,e.errors,!0);return{type:N.Stagger,animation:ae(this,ut(t.animation),e),timings:i,options:null}}};function op(n){let t=!!n.split(/\s*,\s*/).find(e=>e==Dc);return t&&(n=n.replace(sp,"")),n=n.replace(/@\*/g,wt).replace(/@\w+/g,e=>wt+"-"+e.slice(1)).replace(/:animating/g,_i),[n,t]}function ap(n){return n?x({},n):null}var Vn=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 cp(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function lp(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Pt(n,t).duration;return xn(s,0,"")}let e=n;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=xn(0,0,"");return s.dynamic=!0,s.strValue=e,s}let r=Pt(e,t);return xn(r.duration,r.delay,r.easing)}function He(n){return n?(n=x({},n),n.params&&(n.params=ap(n.params))):n={},n}function xn(n,t,e){return{duration:n,delay:t,easing:e}}function Jn(n,t,e,i,r,s,a=null,c=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:a,subTimeline:c}}var It=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()}},pp=1,up=":enter",dp=new RegExp(up,"g"),mp=":leave",hp=new RegExp(mp,"g");function Fc(n,t,e,i,r,s=new Map,a=new Map,c,l,o=[]){return new Kn().buildKeyframes(n,t,e,i,r,s,a,c,l,o)}var Kn=class{buildKeyframes(t,e,i,r,s,a,c,l,o,u=[]){o=o||new It;let p=new Bn(t,e,o,r,s,u,[]);p.options=l;let f=l.delay?be(l.delay):0;p.currentTimeline.delayNextStep(f),p.currentTimeline.setStyles([a],null,p.errors,l),ae(this,i,p);let h=p.timelines.filter(d=>d.containsAnimation());if(h.length&&c.size){let d;for(let m=h.length-1;m>=0;m--){let v=h[m];if(v.element===e){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([c],null,p.errors,l)}return h.length?h.map(d=>d.buildKeyframes()):[Jn(e,[],[],[],0,f,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);s!=a&&e.transformIntoNewTimeline(a)}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 r of t){let s=r?.delay;if(s){let a=typeof s=="number"?s:be(dt(s,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime,a=i.duration!=null?be(i.duration):null,c=i.delay!=null?be(i.delay):null;return a!==0&&t.forEach(l=>{let o=e.appendInstructionToTimeline(l,a,c);s=Math.max(s,o.duration+o.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),ae(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,r=e,s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==N.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Oi);let a=be(s.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>ae(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],r=e.currentTimeline.currentTime,s=t.options&&t.options.delay?be(t.options.delay):0;t.steps.forEach(a=>{let c=e.createSubContext(t.options);s&&c.delayNextStep(s),ae(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,r=e.params?dt(i,e.params,e.errors):i;return Pt(r,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),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let s=t.style;s.type==N.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,c=e.createSubContext().currentTimeline;c.easing=i.easing,t.styles.forEach(l=>{let o=l.offset||0;c.forwardTime(o*s),c.setStyles(l.styles,l.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?be(r.delay):0;s&&(e.previousNode.type===N.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Oi);let a=i,c=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let l=null;c.forEach((o,u)=>{e.currentQueryIndex=u;let p=e.createSubContext(t.options,o);s&&p.delayNextStep(s),o===e.element&&(l=p.currentTimeline),ae(this,t.animation,p),p.currentTimeline.applyStylesToKeyframe();let f=p.currentTimeline.currentTime;a=Math.max(a,f)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,r=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),c=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=c-l;break;case"full":l=i.currentStaggerTime;break}let u=e.currentTimeline;l&&u.delayNextStep(l);let p=u.currentTime;ae(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-p+(r.startTime-i.currentTimeline.startTime)}},Oi={},Bn=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Oi;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,i,r,s,a,c,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=a,this.timelines=c,this.currentTimeline=l||new Ni(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,r=this.options;i.duration!=null&&(r.duration=be(i.duration)),i.delay!=null&&(r.delay=be(i.delay));let s=i.params;if(s){let a=r.params;a||(a=this.options.params={}),Object.keys(s).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=dt(s[c],a,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){let r=e||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Oi,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},s=new qn(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,a){let c=[];if(r&&c.push(this.element),t.length>0){t=t.replace(dp,"."+this._enterClassName),t=t.replace(hp,"."+this._leaveClassName);let l=i!=1,o=this._driver.query(this.element,t,l);i!==0&&(o=i<0?o.slice(o.length+i,o.length):o.slice(0,i)),c.push(...o)}return!s&&c.length==0&&a.push(rc(e)),c}},Ni=class n{_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,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,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 n(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+=pp,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||Ae),this._currentKeyframe.set(e,Ae);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);let s=r&&r.params||{},a=fp(t,this._globalTimelineStyles);for(let[c,l]of a){let o=dt(l,s,i);this._pendingStyles.set(c,o),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??Ae),this._updateStyle(c,o)}}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 r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((c,l)=>{let o=new Map([...this._backFill,...c]);o.forEach((u,p)=>{u===Tt?t.add(p):u===Ae&&e.add(p)}),i||o.set("offset",l/this.duration),r.push(o)});let s=[...t.values()],a=[...e.values()];if(i){let c=r[0],l=new Map(c);c.set("offset",0),l.set("offset",1),r=[c,l]}return Jn(this.element,r,s,a,this.duration,this.startTime,this.easing,!1)}},qn=class extends Ni{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,i,r,s,a,c=!1){super(t,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],a=i+e,c=e/a,l=new Map(t[0]);l.set("offset",0),s.push(l);let o=new Map(t[0]);o.set("offset",bc(c)),s.push(o);let u=t.length-1;for(let p=1;p<=u;p++){let f=new Map(t[p]),h=f.get("offset"),d=e+h*i;f.set("offset",bc(d/a)),s.push(f)}i=a,e=0,r="",t=s}return Jn(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function bc(n,t=3){let e=Math.pow(10,t-1);return Math.round(n*e)/e}function fp(n,t){let e=new Map,i;return n.forEach(r=>{if(r==="*"){i??=t.keys();for(let s of i)e.set(s,Ae)}else for(let[s,a]of r)e.set(s,a)}),e}function wc(n,t,e,i,r,s,a,c,l,o,u,p,f){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:a,timelines:c,queriedElements:l,preStyleProps:o,postStyleProps:u,totalTime:p,errors:f}}var Ln={},Ri=class{_triggerName;ast;_stateStyles;constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return gp(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return t!==void 0&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,s,a,c,l,o,u){let p=[],f=this.ast.options&&this.ast.options.params||Ln,h=c&&c.params||Ln,d=this.buildStyles(i,h,p),m=l&&l.params||Ln,v=this.buildStyles(r,m,p),P=new Set,F=new Map,z=new Map,I=r==="void",$={params:xc(m,f),delay:this.ast.options?.delay},D=u?[]:Fc(t,e,this.ast.animation,s,a,d,v,$,o,p),K=0;return D.forEach(j=>{K=Math.max(j.duration+j.delay,K)}),p.length?wc(e,this._triggerName,i,r,I,d,v,[],[],F,z,K,p):(D.forEach(j=>{let me=j.element,Xe=oe(F,me,new Set);j.preStyleProps.forEach(xe=>Xe.add(xe));let Cr=oe(z,me,new Set);j.postStyleProps.forEach(xe=>Cr.add(xe)),me!==e&&P.add(me)}),wc(e,this._triggerName,i,r,I,d,v,D,[...P.values()],F,z,K))}};function gp(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}function xc(n,t){let e=x({},t);return Object.entries(n).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var Wn=class{styles;defaultParams;normalizer;constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,r=xc(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{a&&(a=dt(a,r,e));let l=this.normalizer.normalizePropertyName(c,e);a=this.normalizer.normalizeStyleValue(c,l,a,e),i.set(c,a)})}),i}};function yp(n,t,e){return new Hn(n,t,e)}var Hn=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(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Wn(r.style,s,i))}),Pc(this.states,"true","1"),Pc(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Ri(t,r,this.states))}),this.fallbackTransition=Ap(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(a=>a.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function Ap(n,t,e){let i=[(a,c)=>!0],r={type:N.Sequence,steps:[],options:null},s={type:N.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ri(n,s,t)}function Pc(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}var vp=new It,Gn=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=[],r=[],s=kc(this._driver,e,i,r);if(i.length)throw cc(i);this._animations.set(t,s)}_buildPlayer(t,e,i){let r=t.element,s=Mn(this._normalizer,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let r=[],s=this._animations.get(t),a,c=new Map;if(s?(a=Fc(this._driver,e,s,Dn,Si,new Map,new Map,i,vp,r),a.forEach(u=>{let p=oe(c,u.element,new Map);u.postStyleProps.forEach(f=>p.set(f,null))})):(r.push(lc()),a=[]),r.length)throw pc(r);c.forEach((u,p)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(p,h,Ae))})});let l=a.map(u=>{let p=c.get(u.element);return this._buildPlayer(u,new Map,p)}),o=Pe(l);return this._playersById.set(t,o),o.onDestroy(()=>this.destroy(t)),this.players.push(o),o}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 uc(t);return e}listen(t,e,i,r){let s=Ai(e,"","","");return yi(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if(i=="register"){this.register(t,r[0]);return}if(i=="create"){let a=r[0]||{};this.create(t,e,a);return}let s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t);break}}},Mc="ng-animate-queued",Sp=".ng-animate-queued",Un="ng-animate-disabled",_p=".ng-animate-disabled",Ep="ng-star-inserted",Tp=".ng-star-inserted",Cp=[],Lc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_e="__ng_removed",Ot=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=Pp(r),i){let s=t,{value:a}=s,c=Mr(s,["value"]);this.options=c}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(r=>{i[r]==null&&(i[r]=e[r])})}}},Mt="void",$n=new Ot(Mt),Qn=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,de(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw dc(i,e);if(i==null||i.length==0)throw mc(e);if(!Mp(i))throw hc(i,e);let s=oe(this._elementListeners,t,[]),a={name:e,phase:i,callback:r};s.push(a);let c=oe(this._engine.statesByElement,t,new Map);return c.has(e)||(de(t,bt),de(t,bt+"-"+e),c.set(e,$n)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(a);l>=0&&s.splice(l,1),this._triggers.has(e)||c.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 fc(t);return e}trigger(t,e,i,r=!0){let s=this._getTrigger(e),a=new Nt(this.id,e,t),c=this._engine.statesByElement.get(t);c||(de(t,bt),de(t,bt+"-"+e),this._engine.statesByElement.set(t,c=new Map));let l=c.get(e),o=new Ot(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&o.absorbOptions(l.options),c.set(e,o),l||(l=$n),!(o.value===Mt)&&l.value===o.value){if(!Np(l.params,o.params)){let m=[],v=s.matchStyles(l.value,l.params,m),P=s.matchStyles(o.value,o.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{ke(t,v),Se(t,P)})}return}let f=oe(this._engine.playersByElement,t,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let h=s.matchTransition(l.value,o.value,t,o.params),d=!1;if(!h){if(!r)return;h=s.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:o,player:a,isFallbackTransition:d}),d||(de(t,Mc),a.onStart(()=>{mt(t,Mc)})),a.onDone(()=>{let m=this.players.indexOf(a);m>=0&&this.players.splice(m,1);let v=this._engine.playersByElement.get(t);if(v){let P=v.indexOf(a);P>=0&&v.splice(P,1)}}),this.players.push(a),f.push(a),a}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(r=>r.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,wt,!0);i.forEach(r=>{if(r[_e])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){let s=this._engine.statesByElement.get(t),a=new Map;if(s){let c=[];if(s.forEach((l,o)=>{if(a.set(o,l.value),this._triggers.has(o)){let u=this.trigger(t,o,Mt,r);u&&c.push(u)}}),c.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),i&&Pe(c).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 r=new Set;e.forEach(s=>{let a=s.name;if(r.has(a))return;r.add(a);let l=this._triggers.get(a).fallbackTransition,o=i.get(a)||$n,u=new Ot(Mt),p=new Nt(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:l,fromState:o,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let a=t;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{let s=t[_e];(!s||s===Lc)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){de(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,a=this._elementListeners.get(s);a&&a.forEach(c=>{if(c.name==i.triggerName){let l=Ai(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,yi(i.player,c.phase,l,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let s=i.transition.ast.depCount,a=r.transition.ast.depCount;return s==0||a==0?s-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Yn=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 Qn(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,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,c=this.driver.getParentElement(e);for(;c;){let l=r.get(c);if(l){let o=i.indexOf(l);i.splice(o+1,0,t),a=!0;break}c=this.driver.getParentElement(c)}a||i.unshift(t)}else i.push(t);return r.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 r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,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 r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}}return e}trigger(t,e,i,r){if(wi(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!wi(e))return;let s=e[_e];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){let a=this._fetchNamespace(t);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),de(t,Un)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),mt(t,Un))}removeNode(t,e,i){if(wi(e)){let r=t?this._fetchNamespace(t):null;r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[_e]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return wi(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,wt,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,_i,!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 Pe(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[_e];if(e&&e.setForRemoval){if(t[_e]=Lc,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Un)&&this.markElementAsDisabled(t,!1),this.driver.query(t,_p,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];de(r,Ep)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}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?Pe(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw gc(t)}_flushAnimations(t,e){let i=new It,r=[],s=new Map,a=[],c=new Map,l=new Map,o=new Map,u=new Set;this.disabledNodes.forEach(y=>{u.add(y);let _=this.driver.query(y,Sp,!0);for(let b=0;b<_.length;b++)u.add(_[b])});let p=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=Nc(f,this.collectedEnterElements),d=new Map,m=0;h.forEach((y,_)=>{let b=Dn+m++;d.set(_,b),y.forEach(k=>de(k,b))});let v=[],P=new Set,F=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let _=this.collectedLeaveElements[y],b=_[_e];b&&b.setForRemoval&&(v.push(_),P.add(_),b.hasAnimation?this.driver.query(_,Tp,!0).forEach(k=>P.add(k)):F.add(_))}let z=new Map,I=Nc(f,Array.from(P));I.forEach((y,_)=>{let b=Si+m++;z.set(_,b),y.forEach(k=>de(k,b))}),t.push(()=>{h.forEach((y,_)=>{let b=d.get(_);y.forEach(k=>mt(k,b))}),I.forEach((y,_)=>{let b=z.get(_);y.forEach(k=>mt(k,b))}),v.forEach(y=>{this.processLeaveNode(y)})});let $=[],D=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(b=>{let k=b.player,G=b.element;if($.push(k),this.collectedEnterElements.length){let Z=G[_e];if(Z&&Z.setForMove){if(Z.previousTriggersValues&&Z.previousTriggersValues.has(b.triggerName)){let Le=Z.previousTriggersValues.get(b.triggerName),pe=this.statesByElement.get(b.element);if(pe&&pe.has(b.triggerName)){let Lt=pe.get(b.triggerName);Lt.value=Le,pe.set(b.triggerName,Lt)}}k.destroy();return}}let Ee=!p||!this.driver.containsElement(p,G),le=z.get(G),Me=d.get(G),B=this._buildInstruction(b,i,Me,le,Ee);if(B.errors&&B.errors.length){D.push(B);return}if(Ee){k.onStart(()=>ke(G,B.fromStyles)),k.onDestroy(()=>Se(G,B.toStyles)),r.push(k);return}if(b.isFallbackTransition){k.onStart(()=>ke(G,B.fromStyles)),k.onDestroy(()=>Se(G,B.toStyles)),r.push(k);return}let Pr=[];B.timelines.forEach(Z=>{Z.stretchStartingKeyframe=!0,this.disabledNodes.has(Z.element)||Pr.push(Z)}),B.timelines=Pr,i.append(G,B.timelines);let zl={instruction:B,player:k,element:G};a.push(zl),B.queriedElements.forEach(Z=>oe(c,Z,[]).push(k)),B.preStyleProps.forEach((Z,Le)=>{if(Z.size){let pe=l.get(Le);pe||l.set(Le,pe=new Set),Z.forEach((Lt,Qi)=>pe.add(Qi))}}),B.postStyleProps.forEach((Z,Le)=>{let pe=o.get(Le);pe||o.set(Le,pe=new Set),Z.forEach((Lt,Qi)=>pe.add(Qi))})});if(D.length){let y=[];D.forEach(_=>{y.push(yc(_.triggerName,_.errors))}),$.forEach(_=>_.destroy()),this.reportError(y)}let K=new Map,j=new Map;a.forEach(y=>{let _=y.element;i.has(_)&&(j.set(_,_),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,K))}),r.forEach(y=>{let _=y.element;this._getPreviousPlayers(_,!1,y.namespaceId,y.triggerName,null).forEach(k=>{oe(K,_,[]).push(k),k.destroy()})});let me=v.filter(y=>Rc(y,l,o)),Xe=new Map;Oc(Xe,this.driver,F,o,Ae).forEach(y=>{Rc(y,l,o)&&me.push(y)});let xe=new Map;h.forEach((y,_)=>{Oc(xe,this.driver,new Set(y),l,Tt)}),me.forEach(y=>{let _=Xe.get(y),b=xe.get(y);Xe.set(y,new Map([..._?.entries()??[],...b?.entries()??[]]))});let Gi=[],br=[],wr={};a.forEach(y=>{let{element:_,player:b,instruction:k}=y;if(i.has(_)){if(u.has(_)){b.onDestroy(()=>Se(_,k.toStyles)),b.disabled=!0,b.overrideTotalTime(k.totalTime),r.push(b);return}let G=wr;if(j.size>1){let le=_,Me=[];for(;le=le.parentNode;){let B=j.get(le);if(B){G=B;break}Me.push(le)}Me.forEach(B=>j.set(B,G))}let Ee=this._buildAnimation(b.namespaceId,k,K,s,xe,Xe);if(b.setRealPlayer(Ee),G===wr)Gi.push(b);else{let le=this.playersByElement.get(G);le&&le.length&&(b.parentPlayer=Pe(le)),r.push(b)}}else ke(_,k.fromStyles),b.onDestroy(()=>Se(_,k.toStyles)),br.push(b),u.has(_)&&r.push(b)}),br.forEach(y=>{let _=s.get(y.element);if(_&&_.length){let b=Pe(_);y.setRealPlayer(b)}}),r.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<v.length;y++){let _=v[y],b=_[_e];if(mt(_,Si),b&&b.hasAnimation)continue;let k=[];if(c.size){let Ee=c.get(_);Ee&&Ee.length&&k.push(...Ee);let le=this.driver.query(_,_i,!0);for(let Me=0;Me<le.length;Me++){let B=c.get(le[Me]);B&&B.length&&k.push(...B)}}let G=k.filter(Ee=>!Ee.destroyed);G.length?Ip(this,_,G):this.processLeaveNode(_)}return v.length=0,Gi.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let _=this.players.indexOf(y);this.players.splice(_,1)}),y.play()}),Gi}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let a=[];if(e){let c=this.playersByQueriedElement.get(t);c&&(a=c)}else{let c=this.playersByElement.get(t);if(c){let l=!s||s==Mt;c.forEach(o=>{o.queued||!l&&o.triggerName!=r||a.push(o)})}}return(i||r)&&(a=a.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(t,e,i){let r=e.triggerName,s=e.element,a=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let o=l.element,u=o!==s,p=oe(i,o,[]);this._getPreviousPlayers(o,u,a,c,e.toState).forEach(h=>{let d=h.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),h.destroy(),p.push(h)})}ke(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,a){let c=e.triggerName,l=e.element,o=[],u=new Set,p=new Set,f=e.timelines.map(d=>{let m=d.element;u.add(m);let v=m[_e];if(v&&v.removedBeforeQueried)return new Be(d.duration,d.delay);let P=m!==l,F=Op((i.get(m)||Cp).map(K=>K.getRealPlayer())).filter(K=>{let j=K;return j.element?j.element===m:!1}),z=s.get(m),I=a.get(m),$=Mn(this._normalizer,d.keyframes,z,I),D=this._buildPlayer(d,$,F);if(d.subTimeline&&r&&p.add(m),P){let K=new Nt(t,c,m);K.setRealPlayer(D),o.push(K)}return D});o.forEach(d=>{oe(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>wp(this.playersByQueriedElement,d.element,d))}),u.forEach(d=>de(d,kn));let h=Pe(f);return h.onDestroy(()=>{u.forEach(d=>mt(d,kn)),Se(l,e.toStyles)}),p.forEach(d=>{oe(r,d,[]).push(h)}),h}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Be(t.duration,t.delay)}},Nt=class{namespaceId;triggerName;element;_player=new Be;_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(r=>yi(t,i,void 0,r))}),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){oe(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 wp(n,t,e){let i=n.get(t);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&n.delete(t)}return i}function Pp(n){return n??null}function wi(n){return n&&n.nodeType===1}function Mp(n){return n=="start"||n=="done"}function Ic(n,t){let e=n.style.display;return n.style.display=t??"none",e}function Oc(n,t,e,i,r){let s=[];e.forEach(l=>s.push(Ic(l)));let a=[];i.forEach((l,o)=>{let u=new Map;l.forEach(p=>{let f=t.computeStyle(o,p,r);u.set(p,f),(!f||f.length==0)&&(o[_e]=bp,a.push(o))}),n.set(o,u)});let c=0;return e.forEach(l=>Ic(l,s[c++])),a}function Nc(n,t){let e=new Map;if(n.forEach(c=>e.set(c,[])),t.length==0)return e;let i=1,r=new Set(t),s=new Map;function a(c){if(!c)return i;let l=s.get(c);if(l)return l;let o=c.parentNode;return e.has(o)?l=o:r.has(o)?l=i:l=a(o),s.set(c,l),l}return t.forEach(c=>{let l=a(c);l!==i&&e.get(l).push(c)}),e}function de(n,t){n.classList?.add(t)}function mt(n,t){n.classList?.remove(t)}function Ip(n,t,e){Pe(e).onDone(()=>n.processLeaveNode(t))}function Op(n){let t=[];return Uc(n,t),t}function Uc(n,t){for(let e=0;e<n.length;e++){let i=n[e];i instanceof Yt?Uc(i.players,t):t.push(i)}}function Np(n,t){let e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}function Rc(n,t,e){let i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}var ht=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new Yn(t.body,e,i),this._timelineEngine=new Gn(t.body,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){let a=t+"-"+r,c=this._triggerCache[a];if(!c){let l=[],o=[],u=kc(this._driver,s,l,o);if(l.length)throw ac(r,l);c=yp(r,u,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if(i.charAt(0)=="@"){let[s,a]=In(i),c=r;this._timelineEngine.command(s,e,a,c)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if(i.charAt(0)=="@"){let[a,c]=In(i);return this._timelineEngine.listen(a,e,c,s)}return this._transitionEngine.listen(t,e,i,r,s)}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 Rp(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=zn(t[0]),t.length>1&&(i=zn(t[t.length-1]))):t instanceof Map&&(e=zn(t)),e||i?new Dp(n,e,i):null}var Dp=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Se(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Se(this._element,this._initialStyles),this._endStyles&&(Se(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ke(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ke(this._element,this._endStyles),this._endStyles=null),Se(this._element,this._initialStyles),this._state=3)}}return n})();function zn(n){let t=null;return n.forEach((e,i)=>{kp(i)&&(t=t||new Map,t.set(i,e))}),t}function kp(n){return n==="display"||n==="position"}var Di=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,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,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 r=this._convertKeyframesToObject(e);try{return t.animate(r,i)}catch(s){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,r)=>{r!=="offset"&&t.set(r,this._finished?i:Ti(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>
1i()),e.length=0}},ki=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return On(t,e)}getParentElement(t){return vi(t)}query(t,e,i){return Nn(t,e,i)}computeStyle(t,e,i){return Ti(t,e)}animate(t,e,i,r,s,a=[]){let c=r==0?"both":"forwards",l={duration:i,delay:r,fill:c};s&&(l.easing=s);let o=new Map,u=a.filter(h=>h instanceof Di);_c(i,r)&&u.forEach(h=>{h.currentSnapshot.forEach((d,m)=>o.set(m,d))});let p=vc(e).map(h=>new Map(h));p=Ec(t,p,o);let f=Rp(t,p);return new Di(t,p,l,f)}};var Pi="@",$c="@.disabled",Fi=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r}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,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i,r){if(r){this.delegate.removeChild(t,e,i,r);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,r){this.delegate.setAttribute(t,e,i,r)}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,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Pi&&e==$c?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i,r){return this.delegate.listen(t,e,i,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},Xn=class extends Fi{factory;constructor(t,e,i,r,s){super(e,i,r,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Pi?e.charAt(1)=="."&&e==$c?(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,r){if(e.charAt(0)==Pi){let s=Fp(t),a=e.slice(1),c="";return a.charAt(0)!=Pi&&([a,c]=xp(a)),this.engine.listen(this.namespaceId,s,a,c,l=>{let o=l._data||-1;this.factory.scheduleListenerCallback(o,i,l)})}return this.delegate.listen(t,e,i,r)}};function Fp(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function xp(n){let t=n.indexOf("."),e=n.substring(0,t),i=n.slice(t+1);return[e,i]}var xi=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=(r,s)=>{s?.removeChild(null,r)}}createRenderer(t,e){let r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let o=this._rendererCache,u=o.get(r);if(!u){let p=()=>o.delete(r);u=new Fi("",r,this.engine,p),o.set(r,u)}return u}let s=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);let c=o=>{Array.isArray(o)?o.forEach(c):this.engine.registerTrigger(s,a,t,o.name,o)};return e.data.animation.forEach(c),new Xn(this,a,r,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 r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[a,c]=s;a(c)}),this._animationCallbacksBuffer=[]})}),r.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 Up=(()=>{class n extends ht{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||n)(A(jt),A(Ge),A(Qe))};static \u0275prov=H({token:n,factory:n.\u0275fac})}return n})();function $p(){return new Mi}function zp(){return new xi(W(ns),W(ht),W(Ne))}var jc=[{provide:Qe,useFactory:$p},{provide:ht,useClass:Up},{provide:Br,useFactory:zp}],jp=[{provide:Ge,useClass:Zn},{provide:Zi,useValue:"NoopAnimations"},...jc],zc=[{provide:Ge,useFactory:()=>new ki},{provide:Zi,useFactory:()=>"BrowserAnimations"},...jc],Vc=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?jp:zc}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=re({type:n});static \u0275inj=ie({providers:zc,imports:[ss]})}return n})();S();var er="Service workers are disabled or not supported by this browser",ft=class{serviceWorker;worker;registration;events;constructor(t,e){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=new Ue(i=>i.error(new O(5601,!1)));else{let i=null,r=new Ut;this.worker=new Ue(o=>(i!==null&&o.next(i),r.subscribe(u=>o.next(u))));let s=()=>{let{controller:o}=t;o!==null&&(i=o,r.next(i))};t.addEventListener("controllerchange",s),s(),this.registration=this.worker.pipe(g(()=>t.getRegistration().then(o=>{if(!o)throw new O(5601,!1);return o}
1)));let a=new Ut;this.events=a.asObservable();let c=o=>{let{data:u}=o;u?.type&&a.next(u)};t.addEventListener("message",c),e?.get(en,null,{optional:!0})?.onDestroy(()=>{t.removeEventListener("controllerchange",s),t.removeEventListener("message",c)})}}postMessage(t,e){return new Promise(i=>{this.worker.pipe(Oe(1)).subscribe(r=>{r.postMessage(x({action:t},e)),i()})})}postMessageWithOperation(t,e,i){let r=this.waitForOperationCompleted(i),s=this.postMessage(t,e);return Promise.all([s,r]).then(([,a])=>a)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let e;return typeof t=="string"?e=i=>i.type===t:e=i=>t.includes(i.type),this.events.pipe(ee(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(Oe(1))}waitForOperationCompleted(t){return new Promise((e,i)=>{this.eventsOfType("OPERATION_COMPLETED").pipe(ee(r=>r.nonce===t),Oe(1),C(r=>{if(r.result!==void 0)return r.result;throw new Error(r.error)})).subscribe({next:e,error:i})})}get isEnabled(){return!!this.serviceWorker}},Bc=(()=>{class n{sw;messages;notificationClicks;notificationCloses;pushSubscriptionChanges;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new Ut;constructor(e){if(this.sw=e,!e.isEnabled){this.messages=Ie,this.notificationClicks=Ie,this.notificationCloses=Ie,this.pushSubscriptionChanges=Ie,this.subscription=Ie;return}this.messages=this.sw.eventsOfType("PUSH").pipe(C(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(C(r=>r.data)),this.notificationCloses=this.sw.eventsOfType("NOTIFICATION_CLOSE").pipe(C(r=>r.data)),this.pushSubscriptionChanges=this.sw.eventsOfType("PUSH_SUBSCRIPTION_CHANGE").pipe(C(r=>r.data)),this.pushManager=this.sw.registration.pipe(C(r=>r.pushManager));let i=this.pushManager.pipe(g(r=>r.getSubscription()));this.subscription=new Ue(r=>{let s=i.subscribe(r),a=this.subscriptionChanges.subscribe(r);return()=>{s.unsubscribe(),a.unsubscribe()}})}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(er));let i={userVisibleOnly:!0},r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(r.length));for(let a=0;a<r.length;a++)s[a]=r.charCodeAt(a);return i.applicationServerKey=s,new Promise((a,c)=>{this.pushManager.pipe(g(l=>l.subscribe(i)),Oe(1)).subscribe({next:l=>{this.subscriptionChanges.next(l),a(l)},error:c})})}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(er));let e=i=>{if(i===null)throw new O(5602,!1);return i.unsubscribe().then(r=>{if(!r)throw new O(5603,!1);this.subscriptionChanges.next(null)})};return new Promise((i,r)=>{this.subscription.pipe(Oe(1),g(e)).subscribe({next:i,error:r})})}decodeBase64(e){return atob(e)}static \u0275fac=function(i){return new(i||n)(A(ft))};static \u0275prov=H({token:n,factory:n.\u0275fac})}return n})(),Li=(()=>{class n{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}ongoingCheckForUpdate=null;constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=Ie,this.unrecoverable=Ie;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(er));if(this.ongoingCheckForUpdate)return this.ongoingCheckForUpdate;let e=this.sw.generateNonce();return this.ongoingCheckForUpdate=this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e).finally(()=>{this.ongoingCheckForUpdate=null}),this.ongoingCheckForUpdate}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new O(5601,!1));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}static \u0275fac=function(i){return new(i||n)(A(ft))};static \u0275prov=H({token:n,factory:n.\u0275fac})}return n})(),qc=new Te("");function Vp(){let n=W(Rt);if(!("serviceWorker"in navigator&&n.enabled!==!1))return;let t=W(qc),e=W(Ne),i=W(en);e.runOutsideAngular(()=>{let r=navigator.serviceWorker,s=()=>r.controller?.postMessage({action:"INITIALIZE"});r.addEventListener("controllerchange",s),i.onDestroy(()=>{r.removeEventListener("controllerchange",s)})}),e.runOutsideAngular(()=>{let r,{registrationStrategy:s}=n;if(typeof s=="function")r=new Promise(a=>s().subscribe(()=>a()));else{let[a,...c]=(s||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":r=Promise.resolve();break;case"registerWithDelay":r=Kc(+c[0]||0);break;case"registerWhenStable":r=Promise.race([i.whenStable(),Kc(+c[0])]);break;default:throw new O(5600,!1)}}r.then(()=>{i.destroyed||navigator.serviceWorker.register(t,{scope:n.scope,updateViaCache:n.updateViaCache,type:n.type}).catch(a=>console.error(Ur(5604,!1)))})})}function Kc(n){return new Promise(t=>setTimeout(t,n))}function Kp(){let n=W(Rt),t=W(zr),e=!0;return new ft(e&&n.enabled!==!1?navigator.serviceWorker:void 0,t)}var Rt=class{enabled;updateViaCache;type;scope;registrationStrategy};function Bp(n,t={}){return Je([Bc,Li,{provide:qc,useValue:n},{provide:Rt,useValue:t},{provide:ft,useFactory:Kp},Bt(Vp)])}var Wc=(()=>{class n{static register(e,i={}){return{ngModule:n,providers:[Bp(e,i)]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=re({type:n});static \u0275inj=ie({providers:[Bc,Li]})}return n})();S();S();S();
1var Yc="@ngrx/router-store/request",Nd=rt(Yc,st()),tr="@ngrx/router-store/navigation",Rd=rt(tr,st()),ir="@ngrx/router-store/cancel",Dd=rt(ir,st()),nr="@ngrx/router-store/error",kd=rt(nr,st()),Xc="@ngrx/router-store/navigated",Fd=rt(Xc,st());function Zc(n,t){let e=t;switch(e.type){case tr:case nr:case ir:return{state:e.payload.routerState,navigationId:e.payload.event.id};default:return n}}var Ui=class{serialize(t){return{root:this.serializeRoute(t.root),url:t.url}}serializeRoute(t){let e=t.children.map(i=>this.serializeRoute(i));return{params:t.params,data:t.data,url:t.url,outlet:t.outlet,title:t.title,routeConfig:t.routeConfig?{path:t.routeConfig.path,pathMatch:t.routeConfig.pathMatch,redirectTo:t.routeConfig.redirectTo,outlet:t.routeConfig.outlet,title:typeof t.routeConfig.title=="string"?t.routeConfig.title:void 0}:null,queryParams:t.queryParams,fragment:t.fragment,firstChild:e[0],children:e}}},rr=(function(n){return n[n.PreActivation=1]="PreActivation",n[n.PostActivation=2]="PostActivation",n})(rr||{}),Jc="router",Hc=new Te("@ngrx/router-store Internal Configuration"),el=new Te("@ngrx/router-store Configuration"),sr=(function(n){return n[n.Full=0]="Full",n[n.Minimal=1]="Minimal",n})(sr||{});function Wp(n){return x({stateKey:Jc,serializer:Ui,navigationActionTiming:rr.PreActivation},n)}var $i=class{serialize(t){return{root:this.serializeRoute(t.root),url:t.url}}serializeRoute(t){let e=t.children.map(i=>this.serializeRoute(i));return{params:t.params,paramMap:t.paramMap,data:t.data,url:t.url,outlet:t.outlet,title:t.title,routeConfig:t.routeConfig?{component:t.routeConfig.component,path:t.routeConfig.path,pathMatch:t.routeConfig.pathMatch,redirectTo:t.routeConfig.redirectTo,outlet:t.routeConfig.outlet,title:t.routeConfig.title}:null,queryParams:t.queryParams,queryParamMap:t.queryParamMap,fragment:t.fragment,component:t.routeConfig?t.routeConfig.component:void 0,root:void 0,parent:void 0,firstChild:e[0],pathFromRoot:void 0,children:e}}},zi=class{},we=(function(n){return n[n.NONE=1]="NONE",n[n.ROUTER=2]="ROUTER",n[n.STORE=3]="STORE",n})(we||{}),Gc=(()=>{class n{constructor(e,i,r,s,a,c){this.store=e,this.router=i,this.serializer=r,this.errorHandler=s,this.config=a,this.activeRuntimeChecks=c,this.lastEvent=null,this.routerState=null,this.trigger=we.NONE,this.stateKey=this.config.stateKey,!Ns()&&Jr()&&(c?.strictActionSerializability||c?.strictStateSerializability)&&this.serializer instanceof $i&&console.warn("@ngrx/router-store: The serializability runtime checks cannot be enabled with the FullRouterStateSerializer. The FullRouterStateSerializer has an unserializable router state and actions that are not serializable. To use the serializability runtime checks either use the MinimalRouterStateSerializer or implement a custom router state serializer."),this.setUpStoreStateListener(),this.setUpRouterEventsListener()}setUpStoreStateListener(){this.store.pipe(Os(this.stateKey),q(this.store)).subscribe(([e,i])=>{this.navigateIfNeeded(e,i)})}navigateIfNeeded(e,i){if(!e||!e.state||this.trigger===we.ROUTER||this.lastEvent instanceof tn)return;let r=e.state.url;Hp(this.router.url,r)||(this.storeState=i,this.trigger=we.STORE,this.router.navigateByUrl(r).catch(s=>{this.errorHandler.handleError(s)}))}setUpRouterEventsListener(){let e=this.config.navigationActionTiming===rr.PostActivation,i;this.router.events.pipe(q(this.store)).subscribe(([r,s])=>{this.lastEvent=r,r instanceof tn?(this.routerState=this.serializer.serialize(this.router.routerState.snapshot),this.trigger!==we.STORE&&(this.storeState=s,this.dispatchRouterRequest(r))):r instanceof rn?(i=r,!e&&this.trigger!==we.STORE&&this.dispatchRouterNavigation(r)):r instanceof ps?(this.dispatchRouterCancel(r),this.reset()):r instanceof nn?(this.dispatchRouterError(r),this.reset()):r instanceof ls&&(this.trigger!==we.STORE&&(e&&this.dispatchRouterNavigation(i),this.dispatchRouterNavigated(r)),this.reset())})}dispatchRouterRequest(e){this.dispatchRouterAction(Yc,{event:e})}dispatchRouterNavigation(e){let i=this.serializer.serialize(e.state);this.dispatchRouterAction(tr,{routerState:i,event:new rn(e.id,e.url,e.urlAfterRedirects,i)})}dispatchRouterCancel(e){this.dispatchRouterAction(ir,{storeState:this.storeState,event:e})}dispatchRouterError(e){this.dispatchRouterAction(nr,{storeState:this.storeState,event:new nn(e.id,e.url,`${e}`)})}dispatchRouterNavigated(e){let i=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction(Xc,{event:e,routerState:i})}dispatchRouterAction(e,i){this.trigger=we.ROUTER;try{this.store.dispatch({type:e,payload:Y(x({routerState:this.routerState},i),{event:this.config.routerState===sr.Full?i.event:{id:i.event.id,url:i.event.url,urlAfterRedirects:i.event.urlAfterRedirects}})})}finally{this.trigger=we.NONE}}reset(){this.trigger=we.NONE,this.storeState=null,this.routerState=null}static{this.\u0275fac=function(i){return new(i||n)(A(ue),A(tt),A(zi),A(Vt),A(el),A(bs))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})();function Hp(n,t){return Qc(n)===Qc(t)}function Qc(n){return n?.length>0&&n[n.length-1]==="/"?n.substring(0,n.length-1):n}function Gp(n={}){return Je([{provide:Hc,useValue:n},{provide:el,useFactory:Wp,deps:[Hc]},{provide:zi,useClass:n.serializer?n.serializer:n.routerState===sr.Full?$i:Ui},$r(()=>W(Gc)),Gc])}var tl=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[Gp(e)]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({})}}return n})();function Qp(){return Zt(Jc)}function il(n=Qp()){let t=se(n,h=>h&&h.state),e=se(t,h=>h&&h.root),i=se(e,h=>{if(!h)return;let d=h;for(;d.firstChild;)d=d.firstChild;return d}),r=se(e,h=>h&&h.fragment),s=se(e,h=>h&&h.queryParams),a=h=>se(s,d=>d&&d[h]),c=se(i,h=>h&&h.params),l=h=>se(c,d=>d&&d[h]),o=se(i,h=>h&&h.data),u=h=>se(o,d=>d&&d[h]),p=se(t,h=>h&&h.url),f=se(i,h=>{if(h?.routeConfig)return typeof h.routeConfig.title=="string"?h.routeConfig.title:h.title});return{selectCurrentRoute:i,selectFragment:r,selectQueryParams:s,selectQueryParam:a,selectRouteParam
1s:c,selectRouteParam:l,selectRouteData:o,selectRouteDataParam:u,selectUrl:p,selectTitle:f}}S();var ji="router",Yp=Zt(ji),{selectCurrentRoute:jd,selectQueryParams:Vd,selectQueryParam:Kd,selectRouteParams:Bd,selectRouteParam:qd,selectRouteData:Wd,selectUrl:Hd}=il(Yp);var or=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({imports:[qe.forFeature(ji,Zc),tl.forRoot({stateKey:ji,routerState:1})]})}}return n})();S();S();var Ft="PERFORM_ACTION",Xp="REFRESH",al="RESET",cl="ROLLBACK",ll="COMMIT",pl="SWEEP",ul="TOGGLE_ACTION",Zp="SET_ACTIONS_ACTIVE",dl="JUMP_TO_STATE",ml="JUMP_TO_ACTION",vr="IMPORT_STATE",hl="LOCK_CHANGES",fl="PAUSE_RECORDING",gt=class{constructor(t,e){if(this.action=t,this.timestamp=e,this.type=Ft,typeof t.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},ar=class{constructor(){this.type=Xp}},cr=class{constructor(t){this.timestamp=t,this.type=al}},lr=class{constructor(t){this.timestamp=t,this.type=cl}},pr=class{constructor(t){this.timestamp=t,this.type=ll}},ur=class{constructor(){this.type=pl}},dr=class{constructor(t){this.id=t,this.type=ul}};var mr=class{constructor(t){this.index=t,this.type=dl}},hr=class{constructor(t){this.actionId=t,this.type=ml}},fr=class{constructor(t){this.nextLiftedState=t,this.type=vr}},gr=class{constructor(t){this.status=t,this.type=hl}},yr=class{constructor(t){this.status=t,this.type=fl}};var qi=new Te("@ngrx/store-devtools Options"),Wi=new Te("@ngrx/store-devtools Initial Config");function gl(){return null}var Jp="NgRx Store DevTools";function eu(n){let t={maxAge:!1,monitor:gl,actionSanitizer:void 0,stateSanitizer:void 0,name:Jp,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},e=typeof n=="function"?n():n,i=e.logOnly?{pause:!0,export:!0,test:!0}:!1,r=e.features||i||t.features;r.import===!0&&(r.import="custom");let s=Object.assign({},t,{features:r},e);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function nl(n,t){return n.filter(e=>t.indexOf(e)<0)}function yl(n){let{computedStates:t,currentStateIndex:e}=n;if(e>=t.length){let{state:r}=t[t.length-1];return r}let{state:i}=t[e];return i}function kt(n){return new gt(n,+Date.now())}function tu(n,t){return Object.keys(t).reduce((e,i)=>{let r=Number(i);return e[r]=Al(n,t[r],r),e},{})}function Al(n,t,e){return Y(x({},t),{action:n(t.action,e)})}function iu(n,t){return t.map((e,i)=>({state:vl(n,e.state,i),error:e.error}))}function vl(n,t,e){return n(t,e)}function Sl(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function nu(n,t,e,i){let r=[],s={},a=[];return n.stagedActionIds.forEach((c,l)=>{let o=n.actionsById[c];o&&(l&&Sr(n.computedStates[l],o,t,e,i)||(s[c]=o,r.push(c),a.push(n.computedStates[l])))}),Y(x({},n),{stagedActionIds:r,actionsById:s,computedStates:a})}function Sr(n,t,e,i,r){let s=e&&!e(n,t.action),a=i&&!t.action.type.match(i.map(l=>rl(l)).join("|")),c=r&&t.action.type.match(r.map(l=>rl(l)).join("|"));return s||a||c}function rl(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _l(n){return{ngZone:n?W(Ne):null,connectInZone:n}}var Hi=(()=>{class n extends Xt{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Kr(n)))(r||n)}})()}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})(),Vi={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},Ar=new Te("@ngrx/store-devtools Redux Devtools Extension"),El=(()=>{class n{constructor(e,i,r){this.config=i,this.dispatcher=r,this.zoneConfig=_l(this.config.connectInZone),this.devtoolsExtension=e,this.createActionStreams()}notify(e,i){if(this.devtoolsExtension)if(e.type===Ft){if(i.isLocked||i.isPaused)return;let r=yl(i);if(Sl(this.config)&&Sr(r,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let s=this.config.stateSanitizer?vl(this.config.stateSanitizer,r,i.currentStateIndex):r,a=this.config.actionSanitizer?Al(this.config.actionSanitizer,e,i.nextActionId):e;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,s))}else{let r=Y(x({},i),{stagedActionIds:i.stagedActionIds,actionsById:this.config.actionSanitizer?tu(this.config.actionSanitizer,i.actionsById):i.actionsById,computedStates:this.config.stateSanitizer?iu(this.config.stateSanitizer,i.computedStates):i.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,r,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Ue(e=>{let i=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=i,i.init(),i.subscribe(r=>e.next(r)),i.unsubscribe}):$t}
1createActionStreams(){let e=this.createChangesObservable().pipe(xr()),i=e.pipe(ee(o=>o.type===Vi.START)),r=e.pipe(ee(o=>o.type===Vi.STOP)),s=e.pipe(ee(o=>o.type===Vi.DISPATCH),C(o=>this.unwrapAction(o.payload)),he(o=>o.type===vr?this.dispatcher.pipe(ee(u=>u.type===an),Dr(1e3),kr(1e3),C(()=>o),R(()=>M(o)),Oe(1)):M(o))),c=e.pipe(ee(o=>o.type===Vi.ACTION),C(o=>this.unwrapAction(o.payload))).pipe(Ze(r)),l=s.pipe(Ze(r));this.start$=i.pipe(Ze(r)),this.actions$=this.start$.pipe(g(()=>c)),this.liftedActions$=this.start$.pipe(g(()=>l))}unwrapAction(e){return typeof e=="string"?(0,eval)(`(${e})`):e}getExtensionConfig(e){let i={name:e.name,features:e.features,serialize:e.serialize,autoPause:e.autoPause??!1,trace:e.trace??!1,traceLimit:e.traceLimit??75};return e.maxAge!==!1&&(i.maxAge=e.maxAge),i}sendToReduxDevtools(e){try{e()}catch(i){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",i)}}static{this.\u0275fac=function(i){return new(i||n)(A(Ar),A(qi),A(Hi))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})(),Bi={type:on},ru="@ngrx/store-devtools/recompute",su={type:ru};function Tl(n,t,e,i,r){if(i)return{state:e,error:"Interrupted by an error up the chain"};let s=e,a;try{s=n(e,t)}catch(c){a=c.toString(),r.handleError(c)}return{state:s,error:a}}function Ki(n,t,e,i,r,s,a,c,l){if(t>=n.length&&n.length===s.length)return n;let o=n.slice(0,t),u=s.length-(l?1:0);for(let p=t;p<u;p++){let f=s[p],h=r[f].action,d=o[p-1],m=d?d.state:i,v=d?d.error:void 0,F=a.indexOf(f)>-1?d:Tl(e,h,m,v,c);o.push(F)}return l&&o.push(n[n.length-1]),o}function ou(n,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:kt(Bi)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function au(n,t,e,i,r={}){return s=>(a,c)=>{let{monitorState:l,actionsById:o,nextActionId:u,stagedActionIds:p,skippedActionIds:f,committedState:h,currentStateIndex:d,computedStates:m,isLocked:v,isPaused:P}=a||t;a||(o=Object.create(o));function F($){let D=$,K=p.slice(1,D+1);for(let j=0;j<K.length;j++)if(m[j+1].error){D=j,K=p.slice(1,D+1);break}else delete o[K[j]];f=f.filter(j=>K.indexOf(j)===-1),p=[0,...p.slice(D+1)],h=m[D].state,m=m.slice(D),d=d>D?d-D:0}function z(){o={0:kt(Bi)},u=1,p=[0],f=[],h=m[d].state,d=0,m=[]}let I=0;switch(c.type){case hl:{v=c.status,I=1/0;break}case fl:{P=c.status,P?(p=[...p,u],o[u]=new gt({type:"@ngrx/devtools/pause"},+Date.now()),u++,I=p.length-1,m=m.concat(m[m.length-1]),d===p.length-2&&d++,I=1/0):z();break}case al:{o={0:kt(Bi)},u=1,p=[0],f=[],h=n,d=0,m=[];break}case ll:{z();break}case cl:{o={0:kt(Bi)},u=1,p=[0],f=[],d=0,m=[];break}case ul:{let{id:$}=c;f.indexOf($)===-1?f=[$,...f]:f=f.filter(K=>K!==$),I=p.indexOf($);break}case Zp:{let{start:$,end:D,active:K}=c,j=[];for(let me=$;me<D;me++)j.push(me);K?f=nl(f,j):f=[...f,...j],I=p.indexOf($);break}case dl:{d=c.index,I=1/0;break}case ml:{let $=p.indexOf(c.actionId);$!==-1&&(d=$),I=1/0;break}case pl:{p=nl(p,f),f=[],d=Math.min(d,p.length-1);break}case Ft:{if(v)return a||t;if(P||a&&Sr(a.computedStates[d],c,r.predicate,r.actionsSafelist,r.actionsBlocklist)){let D=m[m.length-1];m=[...m.slice(0,-1),Tl(s,c.action,D.state,D.error,e)],I=1/0;break}r.maxAge&&p.length===r.maxAge&&F(1),d===p.length-1&&d++;let $=u++;o[$]=c,p=[...p,$],I=p.length-1;break}
1case vr:{({monitorState:l,actionsById:o,nextActionId:u,stagedActionIds:p,skippedActionIds:f,committedState:h,currentStateIndex:d,computedStates:m,isLocked:v,isPaused:P}=c.nextLiftedState);break}case on:{I=0,r.maxAge&&p.length>r.maxAge&&(m=Ki(m,I,s,h,o,p,f,e,P),F(p.length-r.maxAge),I=1/0);break}case an:{if(m.filter(D=>D.error).length>0)I=0,r.maxAge&&p.length>r.maxAge&&(m=Ki(m,I,s,h,o,p,f,e,P),F(p.length-r.maxAge),I=1/0);else{if(!P&&!v){d===p.length-1&&d++;let D=u++;o[D]=new gt(c,+Date.now()),p=[...p,D],I=p.length-1,m=Ki(m,I,s,h,o,p,f,e,P)}m=m.map(D=>Y(x({},D),{state:s(D.state,su)})),d=p.length-1,r.maxAge&&p.length>r.maxAge&&F(p.length-r.maxAge),I=1/0}break}default:{I=1/0;break}}return m=Ki(m,I,s,h,o,p,f,e,P),l=i(l,c),{monitorState:l,actionsById:o,nextActionId:u,stagedActionIds:p,skippedActionIds:f,committedState:h,currentStateIndex:d,computedStates:m,isLocked:v,isPaused:P}}}var sl=(()=>{class n{constructor(e,i,r,s,a,c,l,o){let u=ou(l,o.monitor),p=au(l,u,c,o.monitor,o),f=Yi(Yi(i.asObservable().pipe(Lr(1)),s.actions$).pipe(C(kt)),e,s.liftedActions$).pipe(Rr(Nr)),h=r.pipe(C(p)),d=_l(o.connectInZone),m=new Or(1);this.liftedStateSubscription=f.pipe(q(h),ol(d),Fr(({state:F},[z,I])=>{let $=I(F,z);return z.type!==Ft&&Sl(o)&&($=nu($,o.predicate,o.actionsSafelist,o.actionsBlocklist)),s.notify(z,$),{state:$,action:z}},{state:u,action:null})).subscribe(({state:F,action:z})=>{if(m.next(F),z.type===Ft){let I=z.action;a.next(I)}}),this.extensionStartSubscription=s.start$.pipe(ol(d)).subscribe(()=>{this.refresh()});let v=m.asObservable(),P=v.pipe(C(yl));Object.defineProperty(P,"state",{value:Qt(P,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=e,this.liftedState=v,this.state=P}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(e){this.dispatcher.next(e)}next(e){this.dispatcher.next(e)}error(e){}complete(){}performAction(e){this.dispatch(new gt(e,+Date.now()))}refresh(){this.dispatch(new ar)}reset(){this.dispatch(new cr(+Date.now()))}rollback(){this.dispatch(new lr(+Date.now()))}commit(){this.dispatch(new pr(+Date.now()))}sweep(){this.dispatch(new ur)}toggleAction(e){this.dispatch(new dr(e))}jumpToAction(e){this.dispatch(new hr(e))}jumpToState(e){this.dispatch(new mr(e))}importState(e){this.dispatch(new fr(e))}lockChanges(e){this.dispatch(new gr(e))}pauseRecording(e){this.dispatch(new yr(e))}static{this.\u0275fac=function(i){return new(i||n)(A(Hi),A(Xt),A(ws),A(El),A(Ms),A(Vt),A(Cs),A(qi))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})();function ol({ngZone:n,connectInZone:t}){return e=>t?new Ue(i=>e.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):e}var cu=new Te("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function lu(n,t){return!!n||t.monitor!==gl}function pu(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function uu(n){return n.state}function du(n={}){return Je([El,Hi,sl,{provide:Wi,useValue:n},{provide:cu,deps:[Ar,qi],useFactory:lu},{provide:Ar,useFactory:pu},{provide:qi,deps:[Wi],useFactory:eu},{provide:Is,deps:[sl],useFactory:uu},{provide:Ps,useExisting:Hi}])}var Cl=(()=>{class n{static instrument(e={}){return{ngModule:n,providers:[du(e)]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({})}}return n})();function mu(){return!1}function hu(n){return{maxAge:25,name:n.serviceName,logOnly:n.env===Ke.Prod,predicate:n.env===Ke.Prod?mu:null}}var _r=(()=>{class n{static forRoot(){let e=Cl.instrument();return{ngModule:e.ngModule,providers:[...e.providers,{provide:Wi,useFactory:hu,deps:[as]}]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({})}}return n})();S();var ce={env:w.ENV,apiRoot:w.API_ROOT,serviceTeam:w.SERVICE_TEAM,serviceName:w.SERVICE_NAME,rootPath:w.ROOT_PATH,residentWebsiteUrl:w.RESIDENT_SITE_URL,dataDogApplicationId:w.DATA_DOG_APP_ID,dataDogApplicationVersion:w.DATA_DOG_APP_VERSION,dataDogClientToken:w.DATA_DOG_CLIENT_TOKEN,gaTrackingId:w.GOOGLE_ANALYTICS_TRACKING_ID,heapAnalyticsAppId:w.HEAP_ANALYTICS_APP_ID,AWSCognito:{region:w.AWS_COGNITO_REGION,poolId:w.AWS_COGNITO_POOL_ID,clientId:w.AWS_COGNITO_CLIENT_ID},publicKey:w.PUBLIC_KEY,helloSignOptions:{skipDomainVerification:w.HELLO_SIGN_SKIP_DOMAIN_VERIFICATION,clientId:w.HELLO_SIGN_CLIENT_ID},gmapsKey:w.GOOGLE_MAPS_API_KEY,isLdSecureModeEnabled:w.LAUNCH_DARKLY_SECURE_MODE_ENABLED,launchDarklySharedContextKey:w.LAUNCH_DARKLY_SHARED_CONTEXT_KEY,stripe:{publishableKey:w.STRIPE_PUBLISHABLE_KEY}};S();S();var Fe=(function(n){return n.WrongPhoneNumber="WRONG_PHONE_NUMBER",n.WrongEmailFormat="WRONG_EMAIL_FORMAT",n.ContactInformationRequired="CONTACT_INFORMATION_REQUIRED",n.EvictionLandlordNameLengthExceeded="EVICTION_LANDLORD_NAME_LENGTH_EXCEEDED",n.FraudAlertError="FRAUD_ALERT_ERROR",n})(Fe||{}),xt=new Map([[Fe.WrongPhoneNumber,"Please use a valid U.S. phone number."],[Fe.WrongEmailFormat,"Please use a valid email."],[Fe.ContactInformationRequired,"Please enter phone number or email."],[Fe.EvictionLandlordNameLengthExceeded,"Eviction landlord name is too long"],[Fe.FraudAlertError,"Something went wrong. Please try again or c
1ontact us"]]);var wl=(()=>{class n{constructor(e,i,r,s,a,c,l){this.actions$=e,this.applicationAPIService=i,this.myndToastrService=r,this.plaidService=s,this.router=a,this.store=c,this.modalDialogService=l,this.navigateToStep$=E(()=>this.actions$.pipe(T(ni),C(({link:o})=>{lt.isMobile()?this.router.navigate(["/application/steps"]):this.router.navigate([o])})),{dispatch:!1}),this.setCurrentStep$=E(()=>this.actions$.pipe(T(yn),C(({step:o})=>window.localStorage.setItem("applicationStep",o?.toString()))),{dispatch:!1}),this.startApplication$=E(()=>this.actions$.pipe(T(Js),g(()=>this.applicationAPIService.startApplication().pipe(C(()=>eo()),R(()=>M(to())))))),this.loadApplication$=E(()=>this.actions$.pipe(T(ri),g(()=>yt([this.applicationAPIService.get(),this.applicationAPIService.getVerificationStatus().pipe(R(()=>$t)),this.applicationAPIService.getNeedsMoreInfo()]).pipe(g(([o,u,p])=>[An({application:o}),En({verificationStatus:u}),Tn({needsMoreInfo:p}),yn({step:Number(window.localStorage.getItem("applicationStep"))})]),R(o=>M(io({notFound:o.status===404}))))))),this.loadApplicants$=E(()=>this.actions$.pipe(T(no),g(()=>this.applicationAPIService.getApplicants().pipe(C(o=>ro({applicants:o})),R(()=>M(so())))))),this.loadUnitAction$=E(()=>this.actions$.pipe(T(si),g(()=>this.applicationAPIService.getUnit().pipe(C(o=>oo({unit:o})),R(()=>M(ao())))))),this.loadPerson$=E(()=>this.actions$.pipe(T(co),g(()=>this.applicationAPIService.getApplicantPerson().pipe(C(o=>lo({person:o})),R(()=>M(po())))))),this.loadApplicationDetails$=E(()=>this.actions$.pipe(T(oi,ci),g(()=>this.applicationAPIService.getDetails().pipe(C(o=>uo({applicationDetails:o})),R(()=>M(mo())))))),this.loadApplicantDetails$=E(()=>this.actions$.pipe(T(ho),q(this.store.select(Ta)),g(([o,u])=>u?M(fo()):this.applicationAPIService.getApplicantDetails().pipe(he(p=>[li({employmentEntries:p.employmentEntries}),go({applicantDetails:p}),pt({plaidTokens:this.extractPlaidTokensMetadata(p.employmentEntries)})]),R(()=>M(yo())))))),this.loadLeaseLedger$=E(()=>this.actions$.pipe(T(Ao),g(()=>this.applicationAPIService.getLeaseLedger().pipe(C(o=>{let u=o.map(p=>(p.transactionType==="RECEIPT"&&(p.transactionType="PAYMENT",p.amount=-1*Number(p.amount)),p));return vo({leaseTransactions:u})}),R(()=>M(So())))))),this.loadApplicationFeePaylease$=E(()=>this.actions$.pipe(T(_o),g(()=>this.applicationAPIService.getApplicationFeePaylease().pipe(C(o=>Eo({paylease:o})),R(()=>M(To())))))),this.loadLeaseDepositsPaylease$=E(()=>this.actions$.pipe(T(Co),g(()=>this.applicationAPIService.getLeaseDepositsPaylease().pipe(C(o=>bo({paylease:o})),R(()=>M(wo())))))),this.updatePerson$=E(()=>this.actions$.pipe(T(Po),q(this.store.select(wa)),g(([o,u])=>{let p=x({},o.personData);return p.maskedSocialSecurityNumber||(p.maskedSocialSecurityNumber=u.maskedSocialSecurityNumber,p.encryptedSocialSecurityNumber=u.encryptedSocialSecurityNumber),yt([this.applicationAPIService.updateApplicantPerson(p),this.applicationAPIService.updatePreferredMoveInDate(o.preferredMoveInDate)]).pipe(g(()=>[ni({link:o.redirectToAfterSave}),Mo({updatePersonDto:p,preferredMoveInDate:o.preferredMoveInDate})]),this.myndToastrService.catchError(({error:f})=>xt.get(f?.code)||"Failed to update personal info",Io()))}))),this.updateApplicantDetails$=E(()=>this.actions$.pipe(T(Oo),q(this.store.select(ve)),g(([o,u])=>{let p=x({residenceEntries:u.residenceEntries,employmentEntries:u.employmentEntries,additionalIncomes:u.additionalIncomes,emergencyContacts:u.emergencyContacts,additionalInfo:u.additionalInfo,employmentStatus:u.employmentStatus},o.applicantDetailsData);return this.applicationAPIService.updateApplicantDetails(p).pipe(g(()=>[ni({link:o.redirectToAfterSave}),No({applicantDetails:p})]),this.myndToastrService.catchError(({error:f})=>xt.get(f?.code||f?.message)||f?.message||"Failed to update additional info",Ro()))}))),this.updateApplicationDetails$=E(()=>this.actions$.pipe(T(Do),q(this.store.select(ve)),g(([o,u])=>{let p=x({pets:u.pets,occupants:u.occupants,vehicles:u.vehicles},o.applicationDetails);return this.applicationAPIService.updateDetails(p).pipe(C(()=>ko()),R(()=>M(Fo())))}))),this.updateOccupants$=E(()=>this.actions$.pipe(T($o),q(this.store.select(ve)),g(([o,u])=>{let p=Y(x({},u),{occupants:o.occupants});return this.applicationAPIService.updateDetails(p).pipe(C(()=>(this.myndToastrService.success(`Children Household Member was ${o.isDelete?"deleted":"updated"}`),this.store.dispatch(oi()),zo())),R(()=>M(jo())))}))),this.addOccupant$=E(()=>this.actions$.pipe(T(xo),q(this.store.select(ve)),g(([o,u])=>{let p=Y(x({},u),{occupants:[...u.occupants,o.occupant]});return this.applicationAPIService.updateDetails(p).pipe(C(()=>(this.myndToastrService.success("Children Household Member was added to the application"),this.store.dispatch(oi()),Lo())),R(()=>M(Uo())))}))),this.updateEmploymentEntriesState$=E(()=>this.actions$.pipe(T(ea),C(({employmentEntries:o})=>pt({plaidTokens:this.extractPlaidTokensMetadata(o)})))),this.updateEmploymentEntries$=E(()=>this.actions$.pipe(T(ta),q(this.store.select(ve)),g(([{employmentEntries:o},u])=>{let p={employmentEntries:o,residenceEntries:u.residenceEntries,additionalIncomes:u.additionalIncomes,emergencyContacts:u.emergencyContacts,additionalInfo:u.additionalInfo,employmentStatus:u.employmentStatus};return this.applicationAPIService.updateApplicantDetails(p).pipe(he(()=>[pt({plaidTokens:this.extractPlaidTokensMetadata(o)}),ia({applicantDetails:p})]),this.myndToastrService.catchError(({error:f})=>xt.get(f.code||f.message),na()))}))),this.refreshPlaidStatuses$=E(()=>this.actions$.pipe(T(ra),g(()=>this.applicationAPIService.getApplicantDetails().pipe(he(({employmentEntries:o})=>[li({employmentEntries:o}),pt({plaidTokens:this.extractPlaidTokensMetadata(o)})]),R(()=>
1M(sa())))))),this.loadAttachments$=E(()=>this.actions$.pipe(T(Vo),g(()=>this.applicationAPIService.getAttachments().pipe(C(o=>Ko({attachments:o})),R(()=>M(Bo())))))),this.deleteAttachment$=E(()=>this.actions$.pipe(T(qo),zt(({attachmentId:o,silent:u})=>this.applicationAPIService.deleteAttachment(o).pipe(C(()=>vn({attachmentId:o})),R(({status:p})=>(u||this.myndToastrService.error({message:"Failed to delete attachment",statusCode:p}),M(Sn()))))))),this.createAttachment$=E(()=>this.actions$.pipe(T(Wo),zt(o=>this.applicationAPIService.createAttachment(o.attachmentCreate).pipe(C(u=>{let p={attachmentId:u.attachmentId,name:o.attachmentCreate.name,type:o.attachmentCreate.type,fileId:o.attachmentCreate.fileId};return ai({attachment:p})}),this.myndToastrService.catchError("Failed to upload file",_n()))))),this.createAttachmentV2$=E(()=>this.actions$.pipe(T(Ho),q(this.store.select(ve)),g(([{attachmentCreate:o,incomeSource:u},p])=>this.applicationAPIService.createAttachment(o).pipe(g(f=>{let h={attachmentId:f.attachmentId,name:o.name,type:o.type,fileId:o.fileId},d=p.employmentEntries.map(v=>{if(u.employmentEntryId&&v.employmentEntryId===u.employmentEntryId){let P=x({},v);return P.attachments=[...v.attachments,h.attachmentId],P}return v}),m=p.additionalIncomes.map(v=>{if(u.additionalIncomeId&&v.additionalIncomeId===u.additionalIncomeId){let P=x({},v);return P.attachments=[...v.attachments,h.attachmentId],P}return v});return[ai({attachment:h}),pi({employmentEntries:d,additionalIncomes:m})]}),this.myndToastrService.catchError("Failed to upload file",_n()))))),this.deleteAttachmentV2$=E(()=>this.actions$.pipe(T(Go),q(this.store.select(ve)),g(([{attachmentId:o,incomeSource:u},p])=>this.applicationAPIService.deleteAttachment(o).pipe(g(()=>{let f=p.employmentEntries.map(d=>{if(u.employmentEntryId&&d.employmentEntryId===u.employmentEntryId){let m=x({},d);return m.attachments=d.attachments.filter(v=>v!==o),m}return d}),h=p.additionalIncomes.map(d=>{if(u.additionalIncomeId&&d.additionalIncomeId===u.additionalIncomeId){let m=x({},d);return m.attachments=d.attachments.filter(v=>v!==o),m}return d});return[vn({attachmentId:o}),pi({employmentEntries:f,additionalIncomes:h})]}),this.myndToastrService.catchError("Failed to delete attachment",Sn()))))),this.initVerification$=E(()=>this.actions$.pipe(T(Qo),g(({faceVariant:o})=>this.applicationAPIService.createOnfidoCheck(o).pipe(C(()=>Yo()),this.myndToastrService.catchError("Something went wrong. Please try again.",Xo()))))),this.checkVerificationStatus$=E(()=>this.actions$.pipe(T(Zo),g(()=>this.applicationAPIService.getVerificationStatus().pipe(C(o=>En({verificationStatus:o})),R(()=>M(Jo())))))),this.getNeedsMoreInfo$=E(()=>this.actions$.pipe(T(oa),g(()=>this.applicationAPIService.getNeedsMoreInfo().pipe(C(o=>Tn({needsMoreInfo:o})),R(()=>M(Cn())))))),this.updateNeedsMoreInfo$=E(()=>this.actions$.pipe(T(ai),q(this.store.select(Pa)),ee(([o,u])=>u),g(()=>this.applicationAPIService.getNeedsMoreInfo().pipe(C(o=>aa({needsMoreInfo:o})),R(()=>M(Cn())))))),this.resolveNeedsMoreInfo$=E(()=>this.actions$.pipe(T(ca),g(()=>this.applicationAPIService.resolveNeedsMoreInfo().pipe(g(()=>this.applicationAPIService.get()),zt(o=>(this.myndToastrService.success("Missing Information submitted. Our Leasing Team will be in touch with you shortly."),[ci(),An({application:o})])),this.myndToastrService.catchError("Something went wrong. Please try again.",la()))))),this.resolvedNeedsMoreInfo$=E(()=>this.actions$.pipe(T(ci),$e(()=>this.router.navigate(["/application-status"]))),{dispatch:!1}),this.logPlaidVerificationStatus$=E(()=>this.actions$.pipe(T(li),$e(({employmentEntries:o})=>{let u=o.some(f=>f.incomeVerificationStatus===Jt.ReceivedEmploymentIncome),p=o.some(f=>f.incomeVerificationStatus===Jt.FailedEmploymentIncome);u&&this.plaidService.trackManualPlaidEvent("SUCCESSFUL_VERIFICATION"),p&&this.plaidService.trackManualPlaidEvent("FAILED_VERIFICATION"),o.forEach(f=>{this.plaidService.finishVerificationTransaction(f.incomeVerificationToken,f.incomeVerificationStatus===Jt.FailedEmploymentIncome)})})),{dispatch:!1}),this.updateIncomeSources$=E(()=>this.actions$.pipe(T(pi),q(this.store.select(ve)),g(([{employmentEntries:o,additionalIncomes:u},p])=>{let f={employmentEntries:o,additionalIncomes:u,residenceEntries:p.residenceEntries,emergencyContacts:p.emergencyContacts,additionalInfo:p.additionalInfo,employmentStatus:p.employmentStatus||ks.Other,n
1oIncome:!(o.length||u.length)};return this.applicationAPIService.updateApplicantDetails(f).pipe(g(()=>this.applicationAPIService.getApplicantDetails().pipe(g(h=>[pt({plaidTokens:this.extractPlaidTokensMetadata(o)}),ha(),da({applicantDetails:h})]))),this.myndToastrService.catchError(({error:h})=>h?.message||"Failed to update income sources. Please try again",ma()))}))),this.fraudAlertConfirm$=E(()=>this.actions$.pipe(T(fa,Aa),q(this.store.select(Ia)),g(([o,{unitId:u}])=>this.applicationAPIService.trackConsent(Y(x({},o),{unitId:u})).pipe(C(()=>o.type===gn.SetFraudAlert?(this.myndToastrService.success("Thank you for confirmation"),ga()):(this.myndToastrService.success("Thanks! We'll reach out to you"),va())),R(()=>(this.myndToastrService.error(xt.get(Fe.FraudAlertError)),o.type===gn.SetFraudAlert?M(ya()):M(Sa()))))))),this.closePlaidSelectionModal$=E(()=>this.actions$.pipe(T(ua),$e(()=>this.modalDialogService.closeAll())),{dispatch:!1})}extractPlaidTokensMetadata(e){return e.reduce((i,r)=>(r.incomeVerificationToken&&(i[r.incomeVerificationToken]={createdAt:new Date(r.incomeVerificationCreatedAt),startedAt:r.incomeVerificationStartedAt?new Date(r.incomeVerificationStartedAt):null,status:r.incomeVerificationStatus,employer:r.employer}),i),{})}static{this.\u0275fac=function(i){return new(i||n)(A(at),A(ui),A(ot),A(Oa),A(tt),A(ue),A(Na))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})();S();var Ml=(()=>{class n{constructor(e,i,r,s,a,c,l,o,u,p,f,h){this.document=e,this.actions$=i,this.authService=r,this.myndToastrService=s,this.ngZone=a,this.router=c,this.store=l,this.applicationService=o,this.userAPIService=u,this.analyticsService=p,this.datadogService=f,this.activatedRoute=h,this.signUp$=E(()=>this.actions$.pipe(T(Fs),g(d=>this.authService.signUp(d).pipe(g(()=>this.authService.signIn(Y(x({},d),{isAutomaticSignIn:!0,rememberMe:!0}))),g(()=>d.unitId?this.applicationService.apply(d.unitId):this.applicationService.register()),C(()=>cn({user:null})),R(m=>m.message==="newPasswordRequired"?M(ei({newPasswordRequired:!0})):m.message==="Client error happened"?(this.router.navigate(["/auth/signup"]),M(ei({newPasswordRequired:!1}))):(this.ngZone.run(()=>this.myndToastrService.error(m?.message,"",!0,null,m.status||400)),M(ei({newPasswordRequired:!1})))))))),this.afterSignup$=E(()=>this.actions$.pipe(T(cn),$e(()=>this.router.navigateByUrl("auth/email-verification"))),{dispatch:!1}),this.signIn$=E(()=>this.actions$.pipe(T(xs),g(d=>this.authService.signIn(d).pipe(g(()=>d.unitId?this.applicationService.apply(d.unitId).pipe(R(()=>M(null))):M(null)),g(()=>{let m=!!d.unitId;return this.authService.getUser().pipe(g(()=>this.userAPIService.getUser()),C(v=>ct({hasApplication:m,user:v})),R(()=>M(ct({hasApplication:m,user:null}))))}),R(m=>m.message==="newPasswordRequired"?M(ti({newPasswordRequired:!0})):m.message==="Client error happened"?(this.router.navigate(["/auth"]),M(ti({newPasswordRequired:!1}))):(this.ngZone.run(()=>this.myndToastrService.error(m?.message,"",!0,null,m.status||400)),M(ti({newPasswordRequired:!1})))))))),this.signOut$=E(()=>this.actions$.pipe(T(ii),g(({redirect:d})=>this.authService.signOut().pipe(he(()=>[ln({redirect:d}),pa()]))))),this.signOutComplete$=E(()=>this.actions$.pipe(T(ln),C(({redirect:d})=>{this.analyticsService.resetUser(),window.localStorage.removeItem("applicationStep"),d&&this.router.navigate(["/auth"])})),{dispatch:!1}),this.loadUser$=E(()=>this.actions$.pipe(T(un),g(({skipInterceptorRedirect:d})=>this.authService.getUser().pipe(g(()=>this.userAPIService.getUser(d)),C(m=>dn({user:m})),R(()=>M(mn())))))),this.userHasApplication$=E(()=>this.actions$.pipe(T(ct,dn,mn),g(d=>d.hasOwnProperty("user")?this.applicationService.get().pipe(he(()=>[Ct({hasApplication:!0}),ri(),si()]),R(()=>M(Ct({hasApplication:!1})))):M(Ct({hasApplication:!1}))))),this.hasApplicationComplete$=E(()=>this.actions$.pipe(T(Ct),q(this.store.select(za),this.store.select(ja),this.store.select($a),this.store.select(Ua)),C(([d,m,v,P,F])=>(v||(m?this.router.navigate([m]):P?F?this.router.navigate(["application-status"]):this.document.location.href="https://mynd.rhenti.com":this.router.navigate(["auth/login"])),Vs())))),this.completeNewPasswordChallenge$=E(()=>this.actions$.pipe(T(Hs),g(({password:d,token:m})=>this.authService.completeNewPasswordChallenge(d).pipe(g(()=>this.authService.getUser().pipe(g(()=>this.userAPIService.getUser()),he(v=>[pn({token:m,silent:!0}),ct({user:v})]),R(()=>M(ct({user:null}))))),R(v=>(this.myndToastrService.error({message:v,statusCode:400}),M(Gs()))))))),this.sendResetPasswordCode$=E(()=>this.actions$.pipe(T(Qs),g(({email:d})=>this.authService.sendResetPasswordCode(d.toLowerCase()).pipe(C(()=>(this.myndToastrService.success("Please check your email to reset your password"),Ys())),R(m=>(this.myndToastrService.error({message:m.message,statusCode:400}),M(Xs()))))))),this.resendVerification$=E(()=>this.actions$.pipe(T(Ls),g(d=>this.userAPIService.initiateEmailUpdate(d.email).pipe(C(()=>(this.myndToastrService.success("Verification email sent."),Us())),this.myndToastrService.catchServerError($s()))))),this.verifyEmail$=E(()=>this.actions$.pipe(T(pn),g(({token:d,silent:m})=>this.userAPIService.verifyEmail(d).pipe(he(()=>(m||this.myndToastrService.success("Email successfully verified."),[zs(),un({skipInterceptorRedirect:!1})])),this.myndToastrService.catchError("Failed verification. Please resend the email.",js()))))),this.applyToUnit$=E(()=>this.actions$.pipe(T(Ks),g(({unitId:d})=>this.applicationService.apply(d).pipe(C(()=>hn()),this.myndToastrService.catchError("Failed application. Please refresh the page.",Bs()))))),this.afterApplyToUnit$=E(()=>this.actions$.pipe(T(hn),$e(()=>this.router.navigateByUrl("application-status"))),{dispatch:!1}),this.updatePassword$=E(()=>this.actions$.pipe(T(qs),g(({password:d})=>{let{code:m,username:v}=this.activatedRoute.snapshot.queryParams;return m&&v?this.authService.confirmPassword(m,v,d).pipe(C(()=>(this.myndToastrService.success("Password updated successfully"),this.router.navigate(["/auth"]),Ws())),R(P=>(this.datadogService.debug("Cognito update password failed",P),this.myndToastrService.error({message:P.message,statusCode:P.status}),M(fn())))):(this.myndToastrService.error("Invalid password recovery URL"),M(fn()))})))}static{this.\u0275fac=function(i){return new(i||n)(A(jt),A(at),A(di),A(ot),A(Ne),A(tt),A(ue),A(ui),A(Fa),A(nt),A(De),A(us))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})();S();S();S();var Il=(()=>{class n{constructor(){this.year=new Date().getFullYear()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ne({type:n,selectors:[["p-footer"]],standalone:!1,decls:19,vars:1,consts:[[1,"footer-columns"],[1,"footer-column"],[1,"column-header"],[1,"column-body","key-value"],[1,"key"],["href","mailto:[email protected]",1,"value"],[1,"footer-column","about"],[1,"column-body"],[1,"footer-bottom"],[1,"content"]],template:function(i,r){i&1&&(L(0,"div",0)(1,"div",1)(2,"div",2),Q(3,"Contact Us"),U(),L(4,"div",3)(5,"div",4),Q(6,"Email us:"),U(),L(7,"a",5),Q(8,"[email protected]"),U()()(),L(9,"div",6)(10,"div",2),Q(11,"About Mynd"),U(),L(12,"div",7),Q(13," We manage properties in Oakland, Berkeley, Alameda, Hayward, San Francisco, Albany, Livermore, San Leandro, Castro Valley, Pleasanton, Dublin, San Ramon, Concord, Martinez, Richmond, San Jose, Santa Clara, Sunnyvale, Campbell, Milpitas, San Diego, Seattle, Puget Sound and many other cities across the Bay Area, San Diego and Washington. "),U(),L(14,"div",7),Q(15," You'll get a property management team with decades of experience, having managed over 25,000 total units. "),U()()(),L(16,"div",8)(17,"div",9),Q(18),U()()),i&2&&(V(18),et("Copyright ",r.year," Mynd Management, Inc. All rights reserved"))},styles:['[_nghost-%COMP%]{display:flex;height:420px;margin-top:-420px;padding-top:80px;background-image:url("./media/footer-bg-DYNYXMQF.jpg");background-position:center;background-size:cover;background-repeat:no-repeat;font-family:Poppins,Open Sans,sans-serif;flex-direction:column;flex-shrink:0;align-items:center}.footer-columns[_ngcontent-%COMP%]{display:flex;max-width:1140px;padding:0 24px;flex-direction:row;align-items:flex-start;flex:1}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]{width:50%}.footer-columns[_ngcontent-%COMP%]   .footer-column.about[_ngcontent-%COMP%]   .column-body[_ngcontent-%COMP%]{margin-bottom:1em}.footer-columns[_ngcontent-%COMP%]   .footer-column.about[_ngcontent-%COMP%]   .column-body[_ngcontent-%COMP%]:last-child{margin-bottom:0}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]   .column-header[_ngcontent-%COMP%]{position:relative;width:270px;line-height:29px;padding-bottom:12px;margin-bottom:12px;color:#fff;border-bottom:1px solid #dbdfe2;font-size:18px;font-weight:500}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]   .column-header[_ngcontent-%COMP%]:after{position:absolute;
1left:0;bottom:0;width:80px;border-bottom:3px solid #38b87c;content:""}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]   .column-body[_ngcontent-%COMP%]{line-height:22px;color:#fff;font-family:Open Sans,sans-serif;font-size:12px}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]   .column-body.key-value[_ngcontent-%COMP%]{display:flex;flex-direction:row}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]   .column-body.key-value[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]{min-width:100px;margin-right:8px}.footer-bottom[_ngcontent-%COMP%]{height:48px;width:100%;background-color:#0a253a;background-image:url("./media/logo-white-KSXX7B2R.svg");background-position:center -24px;background-size:auto 96px;background-repeat:no-repeat}.footer-bottom[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{max-width:1140px;line-height:48px;margin:0 auto;padding:0 24px;color:#fff;font-family:Open Sans,sans-serif;font-size:12px}@media(max-width:960px){[_nghost-%COMP%]{height:auto;margin-top:0;padding-top:42px}.footer-columns[_ngcontent-%COMP%]{padding:0 16px;flex-direction:column}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]{width:100%;margin-bottom:32px}.footer-columns[_ngcontent-%COMP%]   .footer-column[_ngcontent-%COMP%]   .column-header[_ngcontent-%COMP%]{width:100%}.footer-bottom[_ngcontent-%COMP%]{height:auto;min-height:48px}.footer-bottom[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{line-height:14px;margin:48px 0 8px;text-align:center}}'],changeDetection:0})}}return n})();S();S();S();var Ol={type:"secondary",title:"Help",icon:"question",href:"https://www.mynd.co/leasing-faqs",target:"_blank"},Er=[Ol,{type:"primary",title:"Login",icon:"user-md",routerLink:"/auth"}],Nl=[Ol,{type:"secondary",title:"Logout",icon:"moveout"}];S();var Rl=[{title:"Home",routerLink:"/"},{title:"View Available Homes",href:"http://mynd.rhenti.com",target:"_blank"},{title:"Book a Tour",routerLink:"/self-service"},{title:"Apply Now",routerLink:"/self-service"},{title:"Contact Us",href:"mailto:[email protected]"}];S();function _u(n,t){}function Eu(n,t){n&1&&Re(0,_u,0,0,"ng-template")}function Tu(n,t){if(n&1&&(L(0,"a",4),Re(1,Eu,1,0,null,5),U()),n&2){let e=J(),i=qt(4);_t(e.action.type),te("href",e.action.href,Kt)("target",e.action.target),V(),te("ngTemplateOutlet",i)}}function Cu(n,t){}function bu(n,t){n&1&&Re(0,Cu,0,0,"ng-template")}function wu(n,t){if(n&1&&(L(0,"a",6),Re(1,bu,1,0,null,5),U()),n&2){let e=J(),i=qt(4);_t(e.action.type),te("routerLink",e.action.routerLink),V(),te("ngTemplateOutlet",i)}}function Pu(n,t){}function Mu(n,t){n&1&&Re(0,Pu,0,0,"ng-template")}function Iu(n,t){if(n&1){let e=Ve();L(0,"div",7),Ce("click",function(){ze(e);let r=J();return je(r.action.onClick())}),Re(1,Mu,1,0,null,5),U()}if(n&2){let e=J(),i=qt(4);_t(e.action.type),te("title",e.action.hoverTitle),V(),te("ngTemplateOutlet",i)}}function Ou(n,t){if(n&1&&(ye(0,"div",8),L(1,"span"),Q(2),U()),n&2){let e=J();_t("icon-"+e.action.icon),V(2),Et(e.action.title)}}var Dl=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ne({type:n,selectors:[["p-header-action"]],inputs:{action:"action"},standalone:!1,decls:5,vars:3,consts:[["actionContent",""],[1,"action",3,"href","class","target"],[1,"action",3,"class","routerLink"],[1,"action",3,"class","title"],[1,"action",3,"href","target"],[4,"ngTemplateOutlet"],[1,"action",3,"routerLink"],[1,"action",3,"click","title"],[1,"icon"]],template:function(i,r){i&1&&(fe(0,Tu,2,5,"a",1),fe(1,wu,2,4,"a",2),fe(2,Iu,2,4,"div",3),Re(3,Ou,3,3,"ng-template",null,0,Xr)),i&2&&(ge(r.action.href?0:-1),V(),ge(r.action.routerLink?1:-1),V(),ge(r.action.onClick?2:-1))},dependencies:[ts,it],styles:["[_nghost-%COMP%]{height:100%}.action[_ngcontent-%COMP%]{display:flex;height:100%;padding:0 18px;flex-direction:row;align-items:center;cursor:pointer;text-decoration:none}.action.primary[_ngcontent-%COMP%]{background-color:#38b87c}.action.primary[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#206a47}.action.primary[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-weight:500;text-transform:uppercase}.action.secondary[_ngcontent-%COMP%]:hover{background-color:#fff}.action.secondary[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#38b87c}.action.secondary[_ngcontent-%COMP%]   .icon.icon-question[_ngcontent-%COMP%]{width:14px;
1height:14px;line-height:14px;color:#fff;background-color:#38b87c;border-radius:50%;font-size:8px;text-align:center}.action.secondary[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#38b87c}.action[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:8px;font-size:14px}.action[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Poppins,Open Sans,sans-serif;font-size:12px;letter-spacing:1.2px}"],changeDetection:0})}}return n})();S();function Ru(n,t){if(n&1&&(L(0,"a",0),Q(1),U()),n&2){let e=J();te("href",e.item.href,Kt)("target",e.item.target||""),V(),et(" ",e.item.title," ")}}function Du(n,t){if(n&1&&(L(0,"a",1),Q(1),U()),n&2){let e=J();te("routerLink",e.item.routerLink),V(),Et(e.item.title)}}function ku(n,t){if(n&1){let e=Ve();L(0,"div",3),Ce("click",function(){ze(e);let r=J();return je(r.item.onClick())}),Q(1),U()}if(n&2){let e=J();V(),Et(e.item.title)}}var kl=(()=>{class n{constructor(){this.mobile=!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ne({type:n,selectors:[["p-nav-item"]],hostVars:2,hostBindings:function(i,r){i&2&&Wt("mobile",r.mobile)},inputs:{item:"item",mobile:"mobile"},standalone:!1,decls:3,vars:3,consts:[[1,"item",3,"href","target"],[1,"item",3,"routerLink"],[1,"item"],[1,"item",3,"click"]],template:function(i,r){i&1&&(fe(0,Ru,2,3,"a",0),fe(1,Du,2,2,"a",1),fe(2,ku,2,1,"div",2)),i&2&&(ge(r.item.href?0:-1),V(),ge(r.item.routerLink?1:-1),V(),ge(r.item.onClick?2:-1))},dependencies:[it],styles:['[_nghost-%COMP%]{display:block}[_nghost-%COMP%]:last-child   .item[_ngcontent-%COMP%]{margin-right:0}.mobile[_nghost-%COMP%]   .item[_ngcontent-%COMP%]{display:block;margin:0;padding:8px 16px;text-align:center}.mobile[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:hover:after{width:0}.item[_ngcontent-%COMP%]{position:relative;margin:0 16px;color:#84929c;font-family:Poppins,Open Sans,sans-serif;font-weight:500;text-transform:uppercase;letter-spacing:.82px;cursor:pointer}.item[_ngcontent-%COMP%]:after{position:absolute;left:0;bottom:-4px;width:0;height:4px;background-color:#38b87c;transition:width .15s ease-out;content:""}.item[_ngcontent-%COMP%]:hover{text-decoration:none}.item[_ngcontent-%COMP%]:hover:after{width:100%}'],changeDetection:0})}}return n})();function xu(n,t){if(n&1&&(L(0,"div",2),Q(1),U()),n&2){J();let e=Gr(2);V(),et("Welcome back, ",e)}}function Lu(n,t){if(n&1&&ye(0,"p-header-action",3),n&2){let e=t.$implicit;te("action",e)}}function Uu(n,t){if(n&1&&ye(0,"p-nav-item",8),n&2){let e=t.$implicit;te("item",e)}}function $u(n,t){if(n&1){let e=Ve();L(0,"p-nav-item",11),Ce("click",function(){ze(e);let r=J(2);return je(r.toggleMobileNav())}),U()}if(n&2){let e=t.$implicit;te("item",e)("mobile",!0)}}function zu(n,t){if(n&1){let e=Ve();L(0,"p-nav-item",11),Ce("click",function(){ze(e);let r=J(2);return je(r.toggleMobileNav())}),U()}if(n&2){let e=t.$implicit;te("item",e)("mobile",!0)}}function ju(n,t){if(n&1&&(L(0,"div",9),vt(1,$u,1,2,"p-nav-item",10,At),vt(3,zu,1,2,"p-nav-item",10,At),U()),n&2){let e=J();V(),St(e.navItems),V(2),St(e.headerActions)}}var Fl=(()=>{class n extends As{constructor(e,i){super(),this.changeDetectorRef=e,this.store=i,this.user$=this.store.select(mi),this.headerActions=Er,this.isMobileNavVisible=!1,this.navItems=Rl}ngOnInit(){this.user$.pipe(Ze(this.unsubscribe)).subscribe(e=>{if(!e||!e.userId){this.headerActions=Er,this.changeDetectorRef.markForCheck();return}this.headerActions=Nl.map(i=>(this.changeDetectorRef.markForCheck(),i.title!=="Logout"?i:Y(x({},i),{hoverTitle:e.email,onClick:this.signOut.bind(this)})))})}signOut(){this.store.dispatch(ii({redirect:!0}))}toggleMobileNav(){this.isMobileNavVisible=!this.isMobileNavVisible}static{this.\u0275fac=function(i){return new(i||n)(Ji(es),Ji(ue))}}static{this.\u0275cmp=ne({type:n,selectors:[["p-header"]],standalone:!1,features:[qr],decls:15,vars:7,consts:[[1,"header"],[1,"container"],[1,"user"],[3,"action"],[1,"nav"],["routerLink","/",1,"logo"],[1,"icon-hamburger-md",3,"click"],[1,"menu"],[3,"item"],[1,"mobile-nav"],[3,"item","mobile"],[3,"click","item","mobile"]],template:function(i,r){if(i&1&&(L(0,"div",0)(1,"div",1),Wr(2),Qr(3,"async"),fe(4,xu,2,1,"div",2),vt(5,Lu,1,1,"p-header-action",3,At),U()(),L(7,"div",4)(8,"div",1),ye(9,"a",5),L(10,"div",6),Ce("click",function(){return r.toggleMobileNav()}),U(),L(11,"div",7),vt(12,Uu,1,1,"p-nav-item",8,At),U()()(),fe(14,ju,5,0,"div",9)),i&2){let s;V(2);let a=Hr((s=Yr(3,4,r.user$))==null?null:s.firstName);V(2),ge(a?4:-1),V(),St(r.headerActions),V(5),Wt("active",r.isMobileNavVisible),V(2),St
1(r.navItems),V(2),ge(r.isMobileNavVisible?14:-1)}},dependencies:[it,Dl,kl,is],styles:['.container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:row;align-items:center}.header[_ngcontent-%COMP%]{height:48px;background-color:#fff}.header[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{justify-content:flex-end}.header[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{padding:0 18px;color:#6c7c89;text-transform:uppercase}.nav[_ngcontent-%COMP%]{height:120px}.nav[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{justify-content:space-between;padding:0 24px}.nav[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:196px;height:45px;background-image:url("./media/logo-4UXFVA3P.png");background-position:center;background-size:contain;background-repeat:no-repeat}.nav[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{display:flex;flex-direction:row}.nav[_ngcontent-%COMP%]   .icon-hamburger-md[_ngcontent-%COMP%]{display:none;font-size:20px;color:#0a253a;cursor:pointer}.nav[_ngcontent-%COMP%]   .icon-hamburger-md.active[_ngcontent-%COMP%]{color:#38b87c}.mobile-nav[_ngcontent-%COMP%]{padding-bottom:16px}@media(max-width:960px){.header[_ngcontent-%COMP%], .nav[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%]{height:80px}.nav[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{padding:0 20px}.nav[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:146px;height:32px}.nav[_ngcontent-%COMP%]   .icon-hamburger-md[_ngcontent-%COMP%]{display:block}}'],changeDetection:0})}}return n})();var Tr=(()=>{class n{onRouteActivate(){lt.isMobile()&&window.scroll(0,0)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ne({type:n,selectors:[["p-app-layout"]],standalone:!1,decls:4,vars:0,consts:[[1,"wrapper"],["data-testid","header"],[3,"activate"],["data-testid","footer"]],template:function(i,r){i&1&&(L(0,"div",0),ye(1,"p-header",1),L(2,"router-outlet",2),Ce("activate",function(){return r.onRouteActivate()}),U()(),ye(3,"p-footer",3))},dependencies:[Ht,Il,Fl],styles:[".wrapper[_ngcontent-%COMP%]{min-height:100%;padding-bottom:420px}@media(max-width:960px){.wrapper[_ngcontent-%COMP%]{padding-bottom:0}}"],changeDetection:0})}}return n})();S();var xl=(()=>{class n{onRouteActivate(){lt.isMobile()&&window.scroll(0,0)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ne({type:n,selectors:[["p-app-root"]],standalone:!1,decls:1,vars:0,template:function(i,r){i&1&&ye(0,"router-outlet")},dependencies:[Ht],encapsulation:2,changeDetection:0})}}return n})();S();var Ll=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=ne({type:n,selectors:[["p-not-found"]],standalone:!1,decls:3,vars:0,consts:[[1,"page-content"]],template:function(i,r){i&1&&(L(0,"div",0)(1,"h1"),Q(2,"Page not found :("),U()())},styles:[".page-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}"],changeDetection:0})}}return n})();S();var Ul=(()=>{class n{constructor(e,i,r){this.swUpdate=e,this.datadogService=i,this.toastrService=r,this.updatePending=!1,this.destroyRef=W(jr)}init(){if(!this.swUpdate.isEnabled){this.datadogService.debug("[SW] Service worker not enabled");return}this.datadogService.info("[SW] Service worker initialized"),this.clearOldCaches(),this.swUpdate.versionUpdates.pipe(ee(e=>e.type==="VERSION_READY"),Gt(this.destroyRef)).subscribe(e=>{this.datadogService.info("[SW] New version detected",{currentVersion:e.currentVersion.hash,latestVersion:e.latestVersion.hash}),this.updatePending=!0,this.clearOldCaches().then(()=>{this.showUpdateNotification()})}),this.swUpdate.checkForUpdate().then(e=>{e&&this.datadogService.info("[SW] Update available on init check")}).catch(e=>{this.datadogService.debug("[SW] Update check failed",e)}),this.swUpdate.unrecoverable.pipe(Gt(this.destroyRef)).subscribe(e=>{this.datadogService.error("[SW] Unrecoverable state detected",{reason:e.reason}),this.datadogService.info("[SW] Auto-reloading to recover from unrecoverable state"),window.location.reload()})}activateUpdate(){this.updatePending&&(this.datadogService.info("[SW] User initiated update"),this.swUpdate.activateUpdate().then(()=>{this.datadogService.info("[SW] Update activated - reloading page"),window.location.reload()}).catch(e=>{this.datadogService.error("[SW] Failed to activate update",e),this.toastrService.error({message:"Failed to apply update. Please refresh the page manually."})}))}showUpdateNotification(){this.toastrService.info("Click here to refresh and get the latest version.","Website has a new version available",{timeOut:0,closeButton:!0,tapToDismiss:!0,positionClass:"toast-top-center",extendedTimeOut:0}).onTap.pipe(Gt(this.destroyRef)).subscribe(()=>{this.activateUpdate()}),this.datadogService.info("[SW] Update notification shown to user")}clearOldCaches(){return Ir(this,null,function*(){if(!("caches"in window)){this.datadogService.debug("[SW] Cac
1he API not available");return}try{let e=yield caches.keys();this.datadogService.info("[SW] Found cache keys",{count:e.length});let i=e.filter(r=>r.startsWith("ngsw:"));if(i.length===0){this.datadogService.info("[SW] No old NGSW caches found");return}this.datadogService.info("[SW] Checking NGSW caches for old index.html",{caches:i});for(let r of i)try{let s=yield caches.open(r),c=(yield s.keys()).filter(l=>l.url.endsWith("/")||l.url.includes("index.html"));if(c.length>0){this.datadogService.info("[SW] Found index.html in cache, removing",{cacheName:r,urls:c.map(l=>l.url)});for(let l of c)yield s.delete(l);this.datadogService.info("[SW] Removed index.html from cache",{cacheName:r})}}catch(s){this.datadogService.error("[SW] Error processing cache",{cacheName:r,error:s})}this.datadogService.info("[SW] Old cache cleanup completed")}catch(e){this.datadogService.error("[SW] Error clearing old caches",e)}})}static{this.\u0275fac=function(i){return new(i||n)(A(Li),A(De),A(ot))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Wu=[{path:"update-password",redirectTo:"auth/update-password"},{path:"email-verification/:token",redirectTo:"auth/email-verification/:token"},{path:"",component:Tr,children:[{path:"",redirectTo:"application-status",pathMatch:"full"},{path:"application",loadChildren:()=>import("./chunk-AZMVOO7G.js").then(n=>n.ApplicationModule),canActivate:[hi]},{path:"application-status",loadChildren:()=>import("./chunk-36X6E4NE.js").then(n=>n.ApplicationStatusModule),canActivate:[hi,Va]},{path:"auth",loadChildren:()=>import("./chunk-L4L4OBY4.js").then(n=>n.AuthModule)},{path:"self-service",loadChildren:()=>import("./chunk-XILFQDVD.js").then(n=>n.SelfServiceModule)},{path:"sign-lease",loadChildren:()=>import("./chunk-XBR5ASOD.js").then(n=>n.SignLeaseModule),canActivate:[hi]},{path:"sign-lease-document",loadChildren:()=>import("./chunk-RGZI37TC.js").then(n=>n.SignLeaseGuestModule)}]},{path:"post-tour-survey",loadChildren:()=>import("./chunk-UMIZ2SJJ.js").then(n=>n.PostTourSurveyModule)},{path:"",component:Tr,children:[{path:"**",component:Ll}]}],$l=(()=>{class n{constructor(e,i,r,s,a,c,l,o,u,p){this.fingerprintService=e,this.analyticsService=i,this.datadogService=r,this.myndLaunchDarklyService=s,this.onfidoService=a,this.store=c,this.pusherService=l,this.authService=o,this.httpService=u,this.serviceWorkerUpdate=p,this.applicationState$=this.store.select(ve),this.currentApplicantId$=this.store.select(Ca),this.unit$=this.store.select(ba),this.user$=this.store.select(mi),this.user=Qt(this.user$),this.applicationId$=this.store.select(Ma),this.userWithMarket$=yt([this.user$,this.unit$,this.applicationId$]).pipe(C(([f,h,d])=>{if(!(!f||!h||!d))return Y(x({},f),{additionalData:{applicationId:d,marketName:h.marketName,areaName:h.areaName}})})),this.analyticsService.init({stonlyEnabled:!1}),Vr(()=>{this.analyticsService.setUser(this.user())}),this.initFingerprint(),this.onfidoService.setupOnfidoEventListener(),this.myndLaunchDarklyService.init(this.userWithMarket$),this.serviceWorkerUpdate.init(),this.addAppId(),this.initPusher()}addAppId(){this.applicationState$.pipe(C(e=>e?.applicationId),Xi()).subscribe(e=>this.datadogService.setGlobalContext("application_id",e))}initPusher(){this.currentApplicantId$.pipe(ee(Boolean),Xi()).subscribe(e=>{this.pusherService.init({channelName:`private-web-channel-${e}`,authToken:this.authService.getToken()})})}initFingerprint(){this.httpService.get("prospects/client-ip").subscribe(({ip:e})=>this.fingerprintService.init(e||""))}static{this.\u0275fac=function(i){return new(i||n)(A(fi),A(nt),A(De),A(_s),A(gi),A(ue),A(Ts),A(di),A(ys),A(Ul))}}static{this.\u0275mod=re({type:n,bootstrap:[xl]})}static{this.\u0275inj=ie({providers:[fi,gi,{provide:os,useClass:Ka,multi:!0},{provide:hs,useValue:ce.gaTrackingId},cs(ce),gs(ce.apiRoot),Bt(()=>Zs(W(ue),W(at))()),{provide:Es,useValue:`${ce.apiRoot}/pusher/channels/auth`},Ss(),Zr()],imports:[Vc,Ba,ms.forRoot(),vs.forRoot({isExternal:!0}),Rs.forRoot({errorConfig:{tapToDismiss:!0},disableTrace:!0}),ds.forRoot(Wu),qe.forRoot({},{runtimeChecks:{strictActionWithinNgZone:!0}}
1),qe.forFeature(xa,La),qe.forFeature(_a,Ea),qe.forFeature(Da,ka),Ds.forRoot([Ml,wl,Ra]),or,_r.forRoot(),Wc.register("ngsw-worker.js",{enabled:ce.env!==Ke.Local})]})}}return n})();ce.env===Ke.Prod&&void 0;nt.initDatadog({applicationId:ce.dataDogApplicationId,version:ce.dataDogApplicationVersion,clientToken:ce.dataDogClientToken,env:ce.env,serviceName:ce.serviceName,tags:{team:ce.serviceTeam}});rs().bootstrapModule($l).catch(n=>{console.error(n),De.addError(n)});

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.