import{a as Io}from"./chunk-6K7X7EZV.js";import{a as Eo}from"./chunk-JYIMGJJE.js";import{a as ko}from"./chunk-AJKJC6UF.js";import{E as Mo,a as P,b as Te,c as yo,d as fn,e as _o,f as Ke,h as mn,i as ut,j as gn,k as gi,n as yn,o as _i,p as bo,q as So,r as To,s as _n,t as wo,u as Ao,y as Co}from"./chunk-IGLDXR67.js";import{b as fo,c as yi,d as vo}from"./chunk-4C6ZE4I6.js";import{a as uo,b as ho}from"./chunk-OFUAPEMA.js";import"./chunk-PQETPJ7Y.js";import{b as Po,c as Oo}from"./chunk-KSAZJE6U.js";import{a as dn,l as no,m as Le}from"./chunk-GTUOVKXC.js";import{a as mo}from"./chunk-MLFBJO7F.js";import"./chunk-JSYB4G7Q.js";import"./chunk-EN6DSVI2.js";import{a as $s,b as Ks,c as qs,d as Vs,e as Gs,i as Ws,j as pn,p as Hs,q as Ys,r as Xs,s as Zs,t as Js,u as eo,v as to,x as un,y as io}from"./chunk-QKJ5A676.js";import"./chunk-ODS64BVD.js";import"./chunk-MVHAKSVG.js";import"./chunk-OVBZUNXT.js";import{a as go}from"./chunk-PB3NVIRQ.js";import"./chunk-UZWZVBOZ.js";import"./chunk-MDJF4EJ4.js";import{a as mi}from"./chunk-QG65WK2A.js";import{a as fi,b as Bs}from"./chunk-SPHVGCF7.js";import{a as ro,b as so}from"./chunk-EGKAZ7BJ.js";import{a as hn,b as co,c as po}from"./chunk-3KYQQEDA.js";import{a as pt}from"./chunk-TXF3HIBY.js";import{a as ue,e as lo,f as $e}from"./chunk-O5ZWFDPA.js";import"./chunk-VKNIQYK2.js";import{a as oo,t as ao}from"./chunk-QPLQ2LXC.js";import{a as Qs}from"./chunk-6JYWO5QR.js";import{B as ai,Da as xs,Ea as Fs,Ga as Us,Ha as js,La as zs,M as ui,Na as hi,c as hs,d as si,e as fs,f as Mt,fa as Cs,g as ms,ga as De,ha as Ms,i as oi,ia as Ps,ja as Os,l as Ne,la as di,ma as ne,na as Be,o as gs,p as ys,q as on,r as _s,ra as ks,s as vs,sa as Is,wa as Ns,za as Ls}from"./chunk-3RMHKHWT.js";import{Aa as Re,C as as,Ca as Ts,Ea as ws,Fa as pi,Ha as As,I as ls,J as ct,K as cs,L as ps,M as us,Ma as Rs,N as ds,Na as Ds,e as is,na as li,oa as Es,pa as bs,qa as an,ra as ln,sa as cn,ta as Ss,va as ci,w as ns}from"./chunk-4KIRPT43.js";import{$a as nt,Ab as j,Ac as at,B as Or,Ba as _,Bb as G,Ca as N,Cc as ke,Cd as rs,D as Je,Dc as ti,E as Et,Eb as Vr,Ec as Zr,F as kr,Fa as jr,Fb as Gr,G as Xi,Gb as rt,Gd as ss,Ha as X,Hb as Qr,I as Zi,Ib as Yt,Id as Ct,J as be,Ja as bt,Jb as Wr,Jc as ii,K as et,Kc as Z,Kd as os,L as K,La as Wt,Ma as zr,Ob as ie,P as Gt,Q as Ir,R as Nr,Rc as St,Sa as Br,Sc as Tt,T as me,Ta as $r,Ub as Hr,Uc as Jr,Va as Ht,Vb as Q,Wb as tn,X as Me,Xa as ce,Xb as Yr,Xc as es,Zc as wt,_b as nn,a as Xe,aa as tt,ab as Kr,b as _t,bb as pe,c as Ar,d as je,dc as D,ec as F,ed as ni,fc as ee,fd as lt,g as Ce,ga as Rr,gb as ze,gc as Xt,gd as At,h as qt,hb as en,hc as Zt,hd as rn,i as Cr,ia as Dr,ic as Jt,id as sn,ja as Ji,jc as Xr,jd as ts,k as Vt,ka as Lr,l as Mr,la as Qt,ma as xr,n as vt,na as Fr,nc as Se,nd as ri,pa as H,q as Ze,qa as it,r as Ee,ra as le,rc as ge,s as $,sc as ei,t as fe,ta as Ur,tb as qr,ua as I,wa as C,wd as Ie,y as Pr,yc as st,z as U,za as te,zc as ot}from"./chunk-OUGE3CV3.js";import{a as d,c as h}from"./chunk-7ZOVYZBH.js";import{a as W,b as yt,d as ve,e as Tr,k as wr}from"./chunk-GGHRINT7.js";d();h();d();h();function _l(r,e){r&1&&(D(0,"div",2),ee(1,"div",3),F());}var Do=(()=>{let e=class e{constructor(t,n,s,o){this.loading=!0,t.animation=!1,o.isServer()&&s.addClass(n.body,"ssr-only");}};e.ɵfac=function(n){return new(n||e)(G(vs),G(ri),G(Gr),G(Re));},e.ɵcmp=X({type:e,selectors:[["app-main"]],standalone:!0,features:[Z],decls:2,vars:1,consts:[[3,"activate"],["class","_app-main-loader-wrapper",4,"ngIf"],[1,"_app-main-loader-wrapper"],[1,"_app-main-loader"]],template:function(n,s){n&1&&(D(0,"router-outlet",0),ge("activate",function(){return s.loading=!1;}),ie(1,_l,2,0,"div",1),F()),n&2&&(j(),Q("ngIf",s.loading));},dependencies:[oi,Ie]});let r=e;return r;})();d();h();var vl=ve({"../../locale/scripts/en.json":()=>import("./chunk-QRUYYBPS.js"),"../../locale/scripts/fr.json":()=>import("./chunk-UGSXESF7.js"),"../../locale/scripts/it.json":()=>import("./chunk-DGQPNPSW.js"),"../../locale/scripts/lib/en.json":()=>import("./chunk-DLO7C7QJ.js"),"../../locale/scripts/lib/fr.json":()=>import("./chunk-7AF5MQXT.js"),"../../locale/scripts/lib/it.json":()=>import("./chunk-NQBWPVLP.js")});var El=ve({"../../locale/scripts/lib/en.json":()=>import("./chunk-DLO7C7QJ.js"),"../../locale/scripts/lib/fr.json":()=>import("./chunk-7AF5MQXT.js"),"../../locale/scripts/lib/it.json":()=>import("./chunk-NQBWPVLP.js")});function bl(r){let e=vl(`../../locale/scripts/${r}.json`),i=El(`../../locale/scripts/lib/${r}.json`);return Ee(Promise.all([e,i])).pipe(U(t=>ns({},...t)));}function Sl(){return{getTranslation:r=>bl(r)};}var Lo={loader:{provide:Ts,useFactory:Sl}};d();h();d();h();var Ot="Service workers are disabled or not supported by this browser";function Tl(r){return Et(()=>fe(new Error(r)));}var dt=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=Tl(Ot);else{let t=Xi(e,"controllerchange").pipe(U(()=>e.controller)),n=Et(()=>$(e.controller)),s=Je(n,t);this.worker=s.pipe(K(p=>!!p)),this.registration=this.worker.pipe(H(()=>e.getRegistration()));let c=Xi(e,"message").pipe(U(p=>p.data)).pipe(K(p=>p&&p.type)).pipe(Dr());c.connect(),this.events=c;}}postMessage(e,i){return this.worker.pipe(me(1),le(t=>{t.postMessage(W({action:e},i));})).toPromise().then(()=>{});}postMessageWithOperation(e,i,t){let n=this.waitForOperationCompleted(t),s=this.postMessage(e,i);return Promise.all([s,n]).then(([,o])=>o);}generateNonce(){return Math.round(Math.random()*1e7);}eventsOfType(e){let i;return typeof e=="string"?i=t=>t.type===e:i=t=>e.includes(t.type),this.events.pipe(K(i));}nextEventOfType(e){return this.eventsOfType(e).pipe(me(1));}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(K(i=>i.nonce===e),me(1),U(i=>{if(i.result!==void 0)return i.result;throw new Error(i.error);})).toPromise();}get isEnabled(){return!!this.serviceWorker;}},wl=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled;}constructor(t){if(this.sw=t,this.pushManager=null,this.subscriptionChanges=new Ce(),!t.isEnabled){this.messages=et,this.notificationClicks=et,this.subscription=et;return;}this.messages=this.sw.eventsOfType("PUSH").pipe(U(s=>s.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(U(s=>s.data)),this.pushManager=this.sw.registration.pipe(U(s=>s.pushManager));let n=this.pushManager.pipe(H(s=>s.getSubscription()));this.subscription=be(n,this.subscriptionChanges);}requestSubscription(t){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Ot));let n={userVisibleOnly:!0},s=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(s.length));for(let a=0;a<s.length;a++)o[a]=s.charCodeAt(a);return n.applicationServerKey=o,this.pushManager.pipe(H(a=>a.subscribe(n)),me(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a));}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ot));let t=n=>{if(n===null)throw new Error("Not subscribed to push notifications.");return n.unsubscribe().then(s=>{if(!s)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null);});};return this.subscription.pipe(me(1),H(t)).toPromise();}decodeBase64(t){return atob(t);}};e.ɵfac=function(n){return new(n||e)(_(dt));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})(),kt=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled;}constructor(t){if(this.sw=t,!t.isEnabled){this.versionUpdates=et,this.unrecoverable=et;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(Ot));let t=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:t},t);}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ot));let t=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:t},t);}};e.ɵfac=function(n){return new(n||e)(_(dt));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();var xo=new te("");function Al(r,e,i,t){return()=>{if(!(Ct(t)&&"serviceWorker"in navigator&&i.enabled!==!1))return;let n=r.get(nt),s=r.get(wt);n.runOutsideAngular(()=>{let a=navigator.serviceWorker,l=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",l),s.onDestroy(()=>{a.removeEventListener("controllerchange",l);});});let o;if(typeof i.registrationStrategy=="function")o=i.registrationStrategy();else{let[a,...l]=(i.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":o=$(null);break;case"registerWithDelay":o=Fo(+l[0]||0);break;case"registerWhenStable":let c=Ee(r.get(wt).whenStable());o=l[0]?be(c,Fo(+l[0])):c;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${i.registrationStrategy}`);}}n.runOutsideAngular(()=>o.pipe(me(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:i.scope}).catch(a=>console.error("Service worker registration failed with:",a))));};}function Fo(r){return $(null).pipe(Me(r));}function Cl(r,e){return new dt(Ct(e)&&r.enabled!==!1?navigator.serviceWorker:void 0);}var Pt=class{};function zo(r,e={}){return Wt([wl,kt,{provide:xo,useValue:r},{provide:Pt,useValue:e},{provide:dt,useFactory:Cl,deps:[Pt,ze]},{provide:es,useFactory:Al,deps:[ce,xo,Pt,ze],multi:!0}]);}d();h();d();h();d();h();d();h();var Ml=ve({"./default-footer/footer.component.lazy.ts":()=>import("./chunk-5KZA6ZIF.js"),"./monaco-footer/footer.component.lazy.ts":()=>import("./chunk-CGER3TPN.js")});var Pl=["footer"],$o=(()=>{let e=class e{constructor(){this._injector=N(ce),this._context=N(ne).value;}ngOnInit(){let t=!this.config.footer.hidden,n=this._context.footer?.hidden!==!0;t&&n&&Le(()=>Ml(`./${this._context.name}-footer/footer.component.lazy.ts`)).catch(()=>Le(()=>import("./chunk-5KZA6ZIF.js"))).then(({FooterComponent:s})=>{this.footerRef.createComponent(s,{injector:this._injector}).changeDetectorRef.markForCheck();});}};e.ɵfac=function(n){return new(n||e)();},e.ɵcmp=X({type:e,selectors:[["app-footer"]],viewQuery:function(n,s){if(n&1&&st(Pl,7,rt),n&2){let o;ot(o=at())&&(s.footerRef=o.first);}},inputs:{config:"config"},standalone:!0,features:[Z],decls:2,vars:0,consts:[["footer",""]],template:function(n,s){n&1&&Jt(0,null,0);},changeDetection:0});let r=e;return r;})();d();h();var Ol=ve({"./default-navbar/navbar.component.lazy.ts":()=>import("./chunk-5SEVUGRL.js"),"./monaco-navbar/navbar.component.lazy.ts":()=>import("./chunk-Y2Z7TNCI.js")});var kl=["navbar"],Ko=(()=>{let e=class e{constructor(){this._injector=N(ce),this._context=N(ne).value;}ngOnInit(){Le(()=>Ol(`./${this._context.name}-navbar/navbar.component.lazy.ts`)).catch(()=>Le(()=>import("./chunk-5SEVUGRL.js"))).then(({NavbarComponent:t})=>{this.navbarRef.createComponent(t,{injector:this._injector}).changeDetectorRef.detectChanges();});}};e.ɵfac=function(n){return new(n||e)();},e.ɵcmp=X({type:e,selectors:[["app-navbar"]],viewQuery:function(n,s){if(n&1&&st(kl,7,rt),n&2){let o;ot(o=at())&&(s.navbarRef=o.first);}},inputs:{config:"config"},standalone:!0,features:[Z],decls:2,vars:0,consts:[["navbar",""]],template:function(n,s){n&1&&Jt(0,null,0);}});let r=e;return r;})();d();h();d();h();var Il=ve({"../monaco/bootstrap.component.lazy.ts":()=>import("./chunk-7S6RFGGU.js")});var Nl=["placeholder"];function Rl(r,e){}var vn=(()=>{let e=class e{constructor(){this._injector=N(ce),this._context=N(ne).value;}ngOnInit(){Le(()=>Il(`../${this._context.name}/bootstrap.component.lazy.ts`)).catch(()=>({BootstrapComponent:null})).then(({BootstrapComponent:t})=>{t&&this.footerRef.createComponent(t,{injector:this._injector}).changeDetectorRef.markForCheck();});}};e.ɵfac=function(n){return new(n||e)();},e.ɵcmp=X({type:e,selectors:[["kd-context-bootstrap"]],viewQuery:function(n,s){if(n&1&&st(Nl,5,rt),n&2){let o;ot(o=at())&&(s.footerRef=o.first);}},standalone:!0,features:[Z],decls:2,vars:0,consts:[["placeholder",""]],template:function(n,s){n&1&&ie(0,Rl,0,0,"ng-template",null,0,Jr);},encapsulation:2});let r=e;return r;})();d();h();var Dl=r=>Ee(import("./chunk-FH6NOSVK.js").then(({MonacoGotoConfig:e})=>r.get(e))),vi=()=>{let r=N(ne).value;return r.name!=="monaco"?$({title:r.authentication?.title??"",url:r.authentication?.url??""}):Dl(N(ce)).pipe(H(e=>e.get(r)),me(1));};d();h();function Ll(r,e){r&1&&ee(0,"div",3);}function xl(r,e){r&1&&(D(0,"div",4),ee(1,"div",5),F());}var Fl={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,relative:!1,flat:!1,spinner:!1,direction:"ltr+",spinnerPosition:"right",trickleFunc:r=>r>=0&&r<20?10:r>=20&&r<50?4:r>=50&&r<80?2:r>=80&&r<99?.5:0},qo=new te("NG_PROGRESS_OPTIONS",{providedIn:"root",factory:()=>Fl});var It=function(r){return r.START="START",r.COMPLETE="COMPLETE",r;}(It||{}),Ei=(()=>{let e=class e{constructor(){this._config=Yt(N(qo)),this._progress=Yt(0),this._active=Yt(!1),this.active=At(()=>this._active()),this.progress=At(()=>this._progress()),this.config=At(()=>this._config()),this._trigger=new qt(null),this._started=new Ce(),this.started=this._started.asObservable(),this._completed=new Ce(),this.completed=this._completed.asObservable();let t;sn(n=>{let s=this.config();rn(()=>{t?.unsubscribe(),t=this._trigger.pipe(H(o=>o===It.START?Zi(s.debounceTime).pipe(H(()=>this.onTrickling(s))):o===It.COMPLETE?this.onComplete(s):vt)).subscribe();}),n(()=>t?.unsubscribe());});}start(){this._started.next(),this._trigger.next(It.START),this._active.set(!0);}complete(){this._trigger.next(It.COMPLETE);}inc(t){let n=this.progress();this.active()?(typeof t!="number"&&(t=this.config().trickleFunc(n)),this.set(n+t)):this.start();}set(t){this._active.set(!0),this._progress.set(this.clamp(t));}setConfig(t){this._config.set(W(W({},this.config()),t));}clamp(t){return Math.max(this.config().min,Math.min(this.config().max,t));}onTrickling(t){return this.active()||this.set(t.min),Zi(0,t.trickleSpeed).pipe(le(()=>this.inc()));}onComplete(t){return this.active()?(this._completed.next(),$({}).pipe(le(()=>this._progress.set(100)),Me(t.speed*1.7),le(()=>this._active.set(!1)),Me(t.speed),tt(()=>this._progress.set(0)),it(this._started))):vt;}};e.ɵfac=function(n){return new(n||e)();},e.ɵdir=bt({type:e,selectors:[["","ngProgressRef",""]],exportAs:["ngProgressRef"],standalone:!0});let r=e;return r;})(),Vo=(()=>{let e=class e{constructor(){this.config=N(qo),this.progressRef=N(Ei,{host:!0,self:!0}),this.min=pe(this.config.min,{transform:lt}),this.max=pe(this.config.max,{transform:lt}),this.speed=pe(this.config.speed,{transform:lt}),this.trickleSpeed=pe(this.config.trickleSpeed,{transform:lt}),this.debounceTime=pe(this.config.debounceTime,{transform:lt}),this.flat=pe(this.config.flat,{transform:ni}),this.spinner=pe(this.config.spinner,{transform:ni}),this.relative=pe(this.config.relative,{transform:ni}),this.trickleFunc=pe(this.config.trickleFunc),this.spinnerPosition=pe(this.config.spinnerPosition),this.direction=pe(this.config.direction),this.progressTransform=At(()=>`translate3d(${this.progressRef.progress()}%,0,0)`),this.started=on(this.progressRef.started),this.completed=on(this.progressRef.completed),sn(()=>{let t={max:this.max()>0&&this.max()<=100?this.max():100,min:this.min()<100&&this.min()>=0?this.min():0,speed:this.speed(),trickleSpeed:this.trickleSpeed(),trickleFunc:this.trickleFunc(),debounceTime:this.debounceTime()};rn(()=>this.progressRef.setConfig(t));});}start(){this.progressRef.start();}complete(){this.progressRef.complete();}inc(t){this.progressRef.inc(t);}set(t){this.progressRef.set(t);}};e.ɵfac=function(n){return new(n||e)();},e.ɵcmp=X({type:e,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:10,hostBindings:function(n,s){n&2&&(Hr("spinnerPosition",s.spinnerPosition())("direction",s.direction()),tn("--_ng-progress-speed",s.speed()+"ms"),Yr("ng-progress-bar",!0)("ng-progress-bar-active",s.progressRef.active())("ng-progress-bar-relative",s.relative()));},inputs:{min:[1,"min"],max:[1,"max"],speed:[1,"speed"],trickleSpeed:[1,"trickleSpeed"],debounceTime:[1,"debounceTime"],flat:[1,"flat"],spinner:[1,"spinner"],relative:[1,"relative"],trickleFunc:[1,"trickleFunc"],spinnerPosition:[1,"spinnerPosition"],direction:[1,"direction"]},outputs:{started:"started",completed:"completed"},exportAs:["ngProgress"],standalone:!0,features:[ii([Ei]),Z],decls:5,vars:4,consts:[[1,"ng-progress-bar-wrapper"],[1,"ng-bar-placeholder"],[1,"ng-bar"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(n,s){n&1&&(D(0,"div",0)(1,"div",1)(2,"div",2),ie(3,Ll,1,0,"div",3),F()(),ie(4,xl,2,0,"div",4),F()),n&2&&(j(2),tn("transform",s.progressTransform()),j(),nn(s.flat()?-1:3),j(),nn(s.spinner()?4:-1));},styles:['[_nghost-%COMP%]{--_ng-progress-thickness: var(--ng-progress-thickness, 2);--_ng-progress-thickness-px: calc(var(--_ng-progress-thickness) * 1px);--_ng-progress-thickness-add-one: calc(var(--_ng-progress-thickness) + 1);--_ng-progress-meteor-position-px: calc(var(--_ng-progress-thickness-add-one) * -1px);--_ng-progress-color: var(--ng-progress-color, #1B95E0);--_ng-progress-holder-color: var(--ng-progress-holder-color, transparent);--_ng-progress-ease: var(--ng-progress-ease, linear);--_ng-progress-spinner-thickness: var(--ng-progress-spinner-thickness, 2);--_ng-progress-spinner-thickness-px: calc(var(--_ng-progress-spinner-thickness) * 1px);--_ng-progress-spinner-spacing: var(--ng-progress-spinner-spacing, 15);--_ng-progress-spinner-spacing-px: calc(var(--_ng-progress-spinner-spacing) * 1px);--_ng-progress-spinner-size: var(--ng-progress-spinner-size, 18);--_ng-progress-spinner-size-px: calc(var(--_ng-progress-spinner-size) * 1px);z-index:999999;pointer-events:none}.ng-progress-bar-active[_nghost-%COMP%]   .ng-progress-bar-wrapper[_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-progress-bar-active[_nghost-%COMP%]   .ng-bar[_ngcontent-%COMP%]{transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-progress-bar-relative[_nghost-%COMP%]   .ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:relative}[direction="ltr+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * 1deg)}[direction="ltr+"][_nghost-%COMP%]   .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{top:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{bottom:var(--_ng-progress-meteor-position-px)}[direction=ltr-][_nghost-%COMP%]   .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%]   .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%]   .ng-spinner-icon[_ngcontent-%COMP%]{animation-direction:reverse}[direction="rtl+"][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%]   .ng-meteor[_ngcontent-%COMP%]{rotate:calc(var(--_ng-progress-thickness-add-one) * -1deg)}[_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{top:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=left][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{left:var(--_ng-progress-spinner-spacing-px)}[spinnerPosition=right][_nghost-%COMP%]   .ng-spinner[_ngcontent-%COMP%]{right:var(--_ng-progress-spinner-spacing-px)}.ng-progress-bar-wrapper[_ngcontent-%COMP%]{position:fixed;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0;transition:opacity var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:var(--_ng-progress-thickness-px);width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0);background:var(--_ng-progress-color);transition:all var(--_ng-progress-speed) var(--_ng-progress-ease)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1;box-shadow:0 0 10px var(--_ng-progress-color),0 0 5px var(--_ng-progress-color)}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{box-sizing:border-box;animation:_ngcontent-%COMP%_spinner-animation .25s linear infinite;border-style:solid;border-color:transparent;border-radius:50%;border-top-color:var(--_ng-progress-color);border-left-color:var(--_ng-progress-color);width:var(--_ng-progress-spinner-size-px);height:var(--_ng-progress-spinner-size-px);border-width:var(--_ng-progress-spinner-thickness-px)}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0});let r=e;return r;})();d();h();var Qo={minDuration:0,startEvents:[hs],completeEvents:[si,fs,Mt]},Wo=new te("NG_PROGRESS_ROUTER_OPTIONS",{providedIn:"root",factory:()=>Qo});function Ho(r){return{provide:Wo,useValue:W(W({},Qo),r)};}function Go(r,e){return e.some(i=>r instanceof i);}var Ul=(()=>{let e=class e{constructor(){this.router=N(Ne),this.progressRef=N(Ei,{host:!0,self:!0}),this.config=N(Wo);}ngOnInit(){let t=$({}).pipe(le(()=>this.progressRef.start())),n=$({}).pipe(Me(this.config.minDuration),le(()=>this.progressRef.complete())),s=[...this.config.startEvents,...this.config.completeEvents];this.subscription=this.router.events.pipe(K(o=>Go(o,s)),H(o=>Go(o,this.config.startEvents)?t:n)).subscribe();}ngOnDestroy(){this.subscription?.unsubscribe();}};e.ɵfac=function(n){return new(n||e)();},e.ɵdir=bt({type:e});let r=e;return r;})(),Yo=(()=>{let e=class e extends Ul{};e.ɵfac=(()=>{let t;return function(s){return(t||(t=Ht(e)))(s||e);};})(),e.ɵdir=bt({type:e,selectors:[["ng-progress","ngProgressRouter",""]],standalone:!0,features:[Wr]});let r=e;return r;})();d();h();var Xo=(()=>{let e=class e{setUser(t){{let n=fi();if(!t)return n.setUser(null);n.setUser({id:is(t.id),username:t.name,email:t.email});}}};e.ɵfac=function(n){return new(n||e)();},e.ɵprov=C({token:e,factory:e.ɵfac,providedIn:"root"});let r=e;return r;})();d();h();d();h();d();h();d();h();var bi=new te("AppUpdateConfig");d();h();d();h();var qe=r=>Ar(U(()=>r)),Si=class{constructor(e,i,t){this._logs=e,this._wsProvider=i,this._wsTokenProvider=t,this.state=new qt({type:"OK"}),this._socket=null,this._subs=new Xe(),this._reconnect$=new Ce();}connect(e,{maxRetryAttempts:i}){return this._activeConnectTry?this._activeConnectTry:(this._activeConnectTry=this._wsProvider.fetch().pipe(Ji({delay:dn({maxRetryAttempts:i,maxDelayDuration:12e4,scalingDuration:3e3,onFail:(t,n)=>{n.attempt<5&&this._logs.error("Websocket JS failed",t),this.state.next({type:"JS_FAILED",payload:n.delay});},onRetry:()=>{this.state.next({type:"RECONNECTING"});}})}),H(()=>Je($(null),this._reconnect$.pipe(Ze(Vt),le(()=>{this.state.next({type:"RECONNECTING"});}))).pipe(H(()=>this._wsTokenProvider().pipe(H(({token:s})=>this._wsProvider.connect(e,s))))).pipe(Ji({delay:dn({maxRetryAttempts:5,maxDelayDuration:12e4,scalingDuration:3e3,onFail:()=>{this.state.next({type:"WS_FAILED"});},onRetry:()=>{this.state.next({type:"RECONNECTING"});}})}))),Qt(),le(t=>{this._socket=t,this.state.next({type:"OK"}),this._listenStateChanges();}),Gt(t=>(this.state.next({type:"RECONNECT_FAILED"}),fe(()=>t))),tt(()=>{this._activeConnectTry=null;})),this._activeConnectTry);}disconnect(){this._subs.unsubscribe(),this._socket&&(this._socket.disconnect(),this._socket=null);}on(e){return this._socket?this._socket.on(e):fe(()=>new Error("socket closed"));}hasOpenedConnection(){return this._socket!==null;}_listenStateChanges(){this._subs=new Xe(),this._subs.add(this.on("disconnect").subscribe(e=>{e!=="io client disconnect"&&this._reconnect$.next();})),this._subs.add(be(this.on("reconnect_attempt").pipe(qe({type:"RECONNECTING"})),this.on("reconnect_failed").pipe(qe({type:"RECONNECT_FAILED"})),this.on("disconnect").pipe(qe({type:"WS_FAILED"})),this.on("connect_error").pipe(qe({type:"WS_FAILED"})),this.on("connect_timeout").pipe(qe({type:"WS_FAILED"})),this.on("reconnect_error").pipe(qe({type:"WS_FAILED"})),this.on("error").pipe(qe({type:"WS_FAILED"}))).subscribe(e=>{this.state.next(e);}));}};d();h();d();h();var Ti=class{constructor(e){this.socket=e;}on(e){return new je(i=>{this.socket.on(e,t=>{i.next(t);});});}disconnect(){console.log("WebsocketHandler - disconnecting"),this.socket.disconnect();}};var Zo=(()=>{let e=class e{constructor(t){this._loader=t;}fetch(){return Et(()=>Ee(this._fetch()));}connect(t,n){return new je(s=>{try{let o=this._socket(t,n);o.once("connection",()=>{s.next(new Ti(o)),s.complete();}),o.once("connect_error",a=>{s.error(a);}),o.once("connect_timeout",a=>{s.error(a);}),o.once("error",a=>{s.error(a);});}catch(o){console.error("Could not connect to WS",o),s.error(o);}});}_socket(t,n){let s=window.io,{origin:o,path:a}=this._parseUrl(t);return s.connect(o,{path:a,auth:{token:n},reconnection:!1});}_parseUrl(t){if(t.startsWith("/"))return{origin:"",path:`${t}/socket.io`};{let n=new URL(`${t}/socket.io`);return{origin:n.origin,path:n.pathname};}}_fetch(){return wr(this,null,function*(){return this._loader.load("socket").catch(()=>{throw new Error("load_failed");});});}};e.ɵfac=function(n){return new(n||e)(_(ks));},e.ɵprov=C({token:e,factory:e.ɵfac,providedIn:"root"});let r=e;return r;})();var $l=new te("CollaborationConfig"),Jo=(()=>{let e=class e{constructor(t,n,s,o,a,l,c){this._user=t,this._ws=n,this._clientToken=s,this._collaborationConfig=o,this._api=a,this._config=l,this._logs=c,this._messages=new Ce(),this._s=new Xe(),this._manager=new Si(this._logs,this._ws,this._api.account.sessions.issueWebsocketToken.bind(this));}init(){this._user.userChanged.subscribe({next:t=>{this._setup(t);},error:_t});}register(t){this._visibleNotificationHandler=t;}on(t){return this._messages.pipe(K(n=>Array.isArray(t)?t.indexOf(n.type)>-1:n.type===t));}connectionRestored$(){return this._manager.state.pipe(Rr(),U(([t,n])=>t.type!=="OK"&&n.type==="OK"),K(t=>!!t));}state(){return this._manager.state;}get wsUrl(){return this._config.api+"/ws";}_setup(t){this._manager.hasOpenedConnection()&&(this._s.unsubscribe(),this._manager.disconnect()),t&&t.hasRole("agenda")&&(this._s=new Xe(),this._s.add(this._manager.connect(this.wsUrl,{maxRetryAttempts:this._collaborationConfig.wsMaxRetries}).subscribe(()=>{this._listen();})));}_listen(){this._s.add(this._manager.on("notifications").pipe(K(t=>t.client_token!==this._clientToken)).subscribe(t=>this._handleNewMessage(t)));}_handleNewMessage(t){!t.id||t.type.includes("destroy")?this._messages.next({type:t.type,payload:t}):this._collaborationConfig.getNotification(t.id).subscribe({next:n=>{this._messages.next({type:n.fullType(),payload:n}),n.visible&&this._visibleNotificationHandler&&this._visibleNotificationHandler.handle(n);},error:n=>{this._logs.error("Handle new WS message failed",n);}});}};e.ɵfac=function(n){return new(n||e)(_(qs),_(Zo),_(Gs),_($l),_(ui),_(De),_(hi));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();var Nt={delay:2,storage_key:"kd-upd-mdl-opn",storage_format:"YYYY-MM-DD HH:mm"},Rt=(()=>{let e=class e{constructor(t,n,s,o,a,l,c,p,u,g,v){this._updates=t,this._storage=n,this._appUpdateConfig=s,this._appConfig=o,this._locale=a,this._collaborate=l,this._router=c,this._logs=p,this._platform=u,this._lazyLoader=g,this._http=new ls(v);}init(){this._platform.isServer()||(this._catchNavigationErrors(),this._updates.isEnabled?this._subscribeToWorkerUpdate():this._subscribeToFallbackUpdate());}_openUpdateModal(t,n){if(!n&&this._modalAlreadyOpened())return console.log("update available / modal already opened");this._appUpdateConfig.openUpdateModal(t,n);}_modalAlreadyOpened(){let t=this._storage.getItem(Nt.storage_key),n=Be().subtract(Nt.delay,"minutes");if(t&&Be(t,Nt.storage_format).isAfter(n))return!0;this._storage.setItem(Nt.storage_key,Be().format(Nt.storage_format));}_openErrorModal(t){this._appUpdateConfig.openErrorModal(t);}_catchNavigationErrors(){be(this._router.events.pipe(K(t=>t instanceof Mt)),this._lazyLoader.chunkError$.pipe(U(t=>new Mt(-1,t.request||"lazy-import-chunk",t)))).subscribe(t=>this._onNavigationError(t));}_onNavigationError(t){this._hasPendingUpdate().subscribe({next:n=>{this._logs.message("Update required to navigate",{event:n,error:t}),this._openUpdateModal(n,t);},error:n=>{let o=`${(t.error||{}).message} (id: ${t.id}, url: ${t.url})`;this._logs.error(o,t.error||t),this._openErrorModal(t);}});}_subscribeToWorkerUpdate(){this._collaborate&&this._collaborate.on("check_update").subscribe(t=>this._updates.checkForUpdate()),this._updates.versionUpdates.pipe(K(t=>t.type==="VERSION_READY")).subscribe(t=>this._openUpdateModal(t));}_subscribeToFallbackUpdate(){this._checkPendingUpdate(),this._collaborate&&this._collaborate.on("check_update").subscribe(t=>this._checkPendingUpdate());}_checkPendingUpdate(){this._hasPendingUpdate().subscribe({next:t=>this._openUpdateModal(t),error:t=>{t?.type!=="UPDATE_REQUIRED"&&this._logs.error("Check pending update failed",t);}});}_hasPendingUpdate(){return this._getManifests().pipe(Or(t=>t.currentVersion.hash!==t.latestVersion.hash?$(t):fe(()=>t)));}_getManifests(){return kr([this._getLocalManifest(),this._getRemoteManifest()]).pipe(U(t=>this._asUpdateEvent(t)));}_getLocalManifest(){return $(this._appConfig.manifest);}_getRemoteManifest(){let t=this._locale.base;return t&&!t.endsWith("/")&&(t=t+"/"),this._http.get(`${t}manifest.json?t=${Be().unix()}`);}_asUpdateEvent([t,n]){return{type:"UPDATE_REQUIRED",currentVersion:{hash:t.version,appData:t},latestVersion:{hash:n.version,appData:n}};}};e.ɵfac=function(n){return new(n||e)(_(kt),_(li),_(bi),_(De),_(ci),_(Jo,8),_(Ne),_(hi),_(Re),_(xs),_(as));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();d();h();var wi=(()=>{let e=class e{constructor(t){this._updates=t;}update(t,n){return this._doUpdate(t).pipe(Me(500),tt(()=>this._reload(n)));}_doUpdate(t){return this._updates.isEnabled?t.type==="UPDATE_REQUIRED"?$(null):Ee(this._updates.activateUpdate()):$(null);}_reload(t){let n=t&&t.url;n&&document.location.pathname!==n?document.location.pathname=n:document.location.reload();}};e.ɵfac=function(n){return new(n||e)(_(kt));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();function En(r){return[{provide:bi,useClass:r},Rt,wi];}d();h();function Gl(r,e){r&1&&(D(0,"div",18)(1,"div"),Se(2,5),F()());}function Ql(r,e){if(r&1&&(D(0,"span")(1,"span"),Se(2,6),F(),ke(3,"... "),ee(4,"fa-icon",19),F()),r&2){let i=ei();j(4),Q("icon",i.kdSpinnerThird);}}var bn=(()=>{let e=class e{constructor(t,n){this.activeModal=t,this._updateExecutor=n,this.kdSpinnerThird=Ns;}update(){this.loading=!0,this._updateExecutor.update(this.event,this.error).subscribe({next:_t,error:_t});}};e.ɵfac=function(n){return new(n||e)(G(ai),G(wi));},e.ɵcmp=X({type:e,selectors:[["kd-update-modal"]],inputs:{event:"event",error:"error"},standalone:!0,features:[Z],decls:20,vars:7,consts:()=>{let t;t="Mise \xE0 jour disponible";let n;n="Pour profiter des derni\xE8res fonctionnalit\xE9s, veuillez cliquer sur le bouton \"mettre \xE0 jour\" ci-dessous.";let s;s="Vous pouvez aussi fermer ce message, et rafra\xEEchir la page plus tard quand vous serez pr\xEAt.";let o;o="Mettre \xE0 jour";let a;a="Fermer";let l;l="Vous devez mettre \xE0 jour l'application pour acc\xE9der \xE0 cette fonctionnalit\xE9.";let c;return c="Mise \xE0 jour",[t,n,s,o,a,l,c,[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],["class","alert alert-primary mb-0",4,"ngIf"],[1,"alert","alert-secondary","mb-0",3,"hidden"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[4,"ngIf"],[3,"hidden"],["type","button",1,"btn","btn-secondary",3,"click","disabled","hidden"],[1,"alert","alert-primary","mb-0"],["animation","spin","size","sm",3,"icon"]];},template:function(n,s){n&1&&(D(0,"div",7)(1,"span",8),Se(2,0),F(),D(3,"button",9),ge("click",function(){return s.activeModal.dismiss();}),F()(),D(4,"div",10),ie(5,Gl,3,0,"div",11),D(6,"div",12)(7,"div"),Se(8,1),F(),D(9,"div"),Se(10,2),F()()(),D(11,"div",13)(12,"button",14),ge("click",function(){return s.update();}),ie(13,Ql,5,1,"span",15),D(14,"span",16),Se(15,3),F()(),ke(16," "),D(17,"button",17),ge("click",function(){return s.activeModal.dismiss();}),Xt(18),Se(19,4),Zt(),F()()),n&2&&(j(5),Q("ngIf",s.error),j(),Q("hidden",s.error),j(6),Q("disabled",s.loading),j(),Q("ngIf",s.loading),j(),Q("hidden",s.loading),j(3),Q("disabled",s.loading)("hidden",s.error));},dependencies:[Ie,Ds,Rs]});let r=e;return r;})();d();h();d();h();var we=class{constructor(){this.navbar={hidden:!1},this.footer={hidden:!1},this.useDefaultResumeBookingBar=!0;}};d();h();d();h();var Dt=class extends we{};d();h();var Ai=class extends we{constructor(){super(...arguments),this.navbar={hidden:!0},this.footer={hidden:!0},this.useDefaultResumeBookingBar=!1;}};d();h();function Sn(){return typeof location>"u"?!1:location.hostname.includes("booking");}function ea(r){return Sn()?{consumed:[]}:null;}d();h();var Ci=class extends we{constructor(){super(...arguments),this.navbar={hidden:!0},this.footer={hidden:!0},this.useDefaultResumeBookingBar=!1;}};d();h();var Tn=/^\/?([\w\d\+\-\_]{8,10})$/;function ta(r){return r.length===1&&Tn.test(r[0].path)?{consumed:[]}:null;}d();h();var Mi=class extends we{constructor(){super(...arguments),this.navbar={hidden:!0},this.footer={hidden:!0},this.useDefaultResumeBookingBar=!1;}};var wn=(()=>{let e=class e{constructor(t,n){this._platform=t;let s=n.events.pipe(K(o=>o instanceof si));this.config$=Je($({}),s).pipe(U(()=>this._getConfig()),xr(1));}_getConfig(){return this._platform.isServer()?new Dt():Tn.test(this._getPath())?new Ci():/^widget/.test(this._getPath())?new Mi():Sn()?new Ai():new Dt();}_getPath(){let t=document.querySelector("base"),n=t&&t.getAttribute("href")||"";return location.pathname.replace(n,"");}};e.ɵfac=function(n){return new(n||e)(_(Re),_(Ne));},e.ɵprov=C({token:e,factory:e.ɵfac,providedIn:"root"});let r=e;return r;})();d();h();d();h();d();h();var ia=(()=>{let e=class e{constructor(t,n){this.activeModal=t,this.context=n;}};e.ɵfac=function(n){return new(n||e)(G(ai),G(ne));},e.ɵcmp=X({type:e,selectors:[["kd-emergency-modal"]],standalone:!0,features:[Z],decls:9,vars:2,consts:()=>{let t;return t="Fermer",[t,[1,"modal-header"],[1,"modal-title"],["type","button",1,"btn-close",3,"click"],[1,"modal-body",3,"innerHtml"],[1,"modal-footer"],["type","button",1,"btn","btn-primary","mx-auto",3,"click"]];},template:function(n,s){n&1&&(D(0,"div",1)(1,"h4",2),ke(2),F(),D(3,"button",3),ge("click",function(){return s.activeModal.dismiss();}),F()(),ee(4,"div",4),D(5,"div",5)(6,"button",6),ge("click",function(){return s.activeModal.dismiss();}),D(7,"span"),Se(8,0),F()()()),n&2&&(j(2),ti(s.context.value.alerts.modal==null?null:s.context.value.alerts.modal.title),j(2),Q("innerHtml",s.context.value.alerts.modal==null?null:s.context.value.alerts.modal.content,qr));},encapsulation:2});let r=e;return r;})();var An=(()=>{let e=class e{constructor(t,n,s,o){this._modal=t,this._context=n,this._cookie=s,this._platform=o;}init(){this._platform.isServer()||this._shouldShowModal(this._context.value)&&(this._modal.open(ia),this._cookie.set(this._alertCookieName(this._context.value),"true",1));}_shouldShowModal(t){return!(!t.alerts||!t.alerts.modal||this._cookie.check(this._alertCookieName(t)));}_alertCookieName(t){return`kd-alert-${t.alerts.modal?.short_title}`;}};e.ɵfac=function(n){return new(n||e)(_(mi),_(ne),_(pt),_(Re));},e.ɵprov=C({token:e,factory:e.ɵfac,providedIn:"root"});let r=e;return r;})();d();h();d();h();var na=/Edge?\/(12[7-9]|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Firefox\/(1{2}[5-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Chrom(ium|e)\/(109|1[1-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|(Maci|X1{2}).+ Version\/(16\.\d+|(1[7-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|Chrome.+OPR\/(1{2}[3-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+\.\d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(15[._]([6-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)|Opera Mini|Android:?[ /-](129|1[3-9]\d|[2-9]\d{2}|\d{4,})(\.\d+|)(\.\d+|)|Mobile Safari.+OPR\/([89]\d|\d{3,})\.\d+\.\d+|Android.+Firefox\/(13\d|1[4-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+Chrom(ium|e)\/(129|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+(UC? ?Browser|UCWEB|U3)[ /]?(15\.([5-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)\.\d+|SamsungBrowser\/(2[4-9]|[3-9]\d|\d{3,})\.\d+|Android.+MQ{2}Browser\/(14(\.(9|\d{2,})|)|(1[5-9]|[2-9]\d|\d{3,})(\.\d+|))(\.\d+|)|K[Aa][Ii]OS\/(2\.([5-9]|\d{2,})|([3-9]|\d{2,})\.\d+)(\.\d+|)/;function Jl(r,e){if(r&1){let i=Xr();D(0,"div",1)(1,"strong"),ke(2),St(3,"translate"),F(),ke(4),St(5,"translate"),D(6,"button",2),ge("click",function(){Br(i);let n=ei();return $r(n.close());}),F()();}r&2&&(Q("@slideUpDown",!0),j(2),ti(Tt(3,3,"outdated.title")),j(2),Zr(" ",Tt(5,5,"outdated.desc")," "));}var ra=(()=>{let e=class e{constructor(){this._platformId=N(ze),this._appRef=N(wt);}init(){if(!Ct(this._platformId)||window.Cypress||new RegExp(na).test(window.navigator.userAgent))return;let t=ts(ec,{environmentInjector:this._appRef.injector});this._appRef.attachView(t.hostView),document.body.prepend(t.location.nativeElement);}};e.ɵfac=function(n){return new(n||e)();},e.ɵprov=C({token:e,factory:e.ɵfac,providedIn:"root"});let r=e;return r;})(),ec=(()=>{let e=class e{constructor(){this._cookie=N(pt);}ngOnInit(){fi().setExtra("outdated-browser",!0);let t=this._cookie.check("kd-outdated");this.visible=!t;}close(){this.visible=!1,this._cookie.set("kd-outdated","1");}};e.ɵfac=function(n){return new(n||e)();},e.ɵcmp=X({type:e,selectors:[["kd-outdated"]],standalone:!0,features:[Z],decls:1,vars:1,consts:[["class","kd-outdated",4,"ngIf"],[1,"kd-outdated"],["type","button","aria-label","Close",1,"btn-close","ms-2","float-end",3,"click"]],template:function(n,s){n&1&&ie(0,Jl,7,7,"div",0),n&2&&Q("ngIf",s.visible);},dependencies:[ss,Ie,pi,ws],styles:[".kd-outdated[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background-color:#fffce6;border-bottom:1px solid #ffe524;color:#333;text-align:center;z-index:9999;position:fixed;top:0;left:0;right:0}"],data:{animation:[yo("slideUpDown",[mn(":enter",[Ke({transform:"translateY(-100%)"}),fn("600ms ease-in",Ke({transform:"translateY(0%)"}))]),mn(":leave",[fn("200ms ease-in",Ke({transform:"translateY(-100%)"}))])])]}});let r=e;return r;})();function tc(r,e){r&1&&ee(0,"app-navbar");}function ic(r,e){r&1&&ee(0,"app-resume-booking");}function nc(r,e){if(r&1&&(Xt(0),D(1,"div",1),ee(2,"ng-progress",2),ie(3,tc,1,0,"app-navbar",0)(4,ic,1,0,"app-resume-booking",0),D(5,"main",3),ee(6,"router-outlet"),F()(),ee(7,"app-footer",4),Zt()),r&2){let i=e.ngIf;j(3),Q("ngIf",i.navbar.hidden!==!0),j(),Q("ngIf",i.useDefaultResumeBookingBar),j(3),Q("config",i);}}var sa=(()=>{let e=class e{constructor(t,n,s,o,a,l,c,p,u){this._auth=t,this._sentry=n,this._updates=s,this._analytics=o,this._resumeBooking=a,this._layout=l,this._emergency=c,this._seo=p,this._outdated=u;}ngOnInit(){this._emergency.init(),this._resumeBooking.watchLogout(),this._resumeBooking.inflate(),this._updates.init(),this._outdated.init(),this._analytics.startTracking(),this._auth.user.userChanged.subscribe(t=>{this._sentry.setUser(t);}),this.config$=this._layout.config$,this._seo.setTitle("");}};e.ɵfac=function(n){return new(n||e)(G(Vs),G(Xo),G(Rt),G(co),G(ho),G(wn),G(An),G(Is),G(ra));},e.ɵcmp=X({type:e,selectors:[["app-root"]],standalone:!0,features:[ii([Ho({minDuration:250})]),Z],decls:3,vars:3,consts:[[4,"ngIf"],[1,"app-root"],["ngProgressRouter","","aria-hidden","true"],[1,"app-root__content"],[3,"config"]],template:function(n,s){n&1&&(ee(0,"kd-context-bootstrap"),ie(1,nc,8,3,"ng-container",0),St(2,"async")),n&2&&(j(),Q("ngIf",Tt(2,1,s.config$)));},dependencies:[vn,Ie,Vo,Ko,fo,oi,$o,rs,Yo],styles:["[_nghost-%COMP%]{min-height:100%;display:flex;flex-flow:column}.app-root[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-flow:column;min-height:100vh;min-height:calc(var(--vh, 1vh) * 100);height:100%}.app-root__content[_ngcontent-%COMP%]{height:100%;display:flex;flex-flow:column;flex:1 1 auto}.app-root--fluid-height[_ngcontent-%COMP%]{min-height:auto}"]});let r=e;return r;})();d();h();var oa=r=>{let e=N(di),i=r.queryParams.agenda_id,t=r.queryParams.motive_id,n=r.queryParams.start_time,s=W({agenda_ids:no([+i]),agenda_id:+i,motive_id:+t},ao());if(n){let o=Be.unix(+n);s.time=o.format("HH[h]mm"),s.date=o.format("DD-MM-YYYY");}return e.createUrlTree(["/book"],{queryParams:s});};d();h();var Cn=r=>r()?!0:["/notFound"];var Mn=[{path:"",component:sa,canActivate:[Js],children:[{path:"auth/jwt/login",component:un,data:{skipRouteLocalization:!0},resolve:{goto:vi}},{path:"auth/jwt/login/:redirect",component:un,data:{skipRouteLocalization:!0},resolve:{goto:vi}},{path:"auth/jwt/logout",component:io,data:{skipRouteLocalization:!0}},{path:"auth/error",component:to,data:{skipRouteLocalization:!0}},{path:"auth/sso/:token",component:eo,data:{skipRouteLocalization:!0}},{path:"change-password",redirectTo:"/account/security",data:{skipRouteLocalization:["path"]}},{path:"about",canActivate:[()=>Cn(ro)],loadChildren:()=>import("./chunk-H67MX6EL.js")},{path:"notFound",component:yi},{path:"serverError",component:vo},{path:"bookings",canActivate:[oa],component:yi,data:{skipRouteLocalization:!0}},{matcher:ta,loadChildren:()=>import("./chunk-RSM63HX5.js")},{matcher:ea,loadChildren:()=>import("./chunk-EGQUB2A6.js")},{path:"custom_widget/:theme",redirectTo:"widget/",pathMatch:"full",data:{skipRouteLocalization:!0}},{path:"custom_widget/:theme/:city",redirectTo:"widget/:city",pathMatch:"full",data:{skipRouteLocalization:!0}},{path:"widget",redirectTo:"widget/",pathMatch:"full",data:{skipRouteLocalization:!0}},{path:"widget/:city",loadChildren:()=>import("./chunk-BTXVWXF6.js"),data:{skipRouteLocalization:!0}},{path:"password/edit",data:{skipRouteLocalization:!0},loadChildren:()=>import("./chunk-6KPPMR3H.js")},{path:"account",loadChildren:()=>import("./chunk-VRCDQLXZ.js")},{path:"book",loadChildren:()=>import("./chunk-MVJPLWJB.js")},{path:"specialties",canActivate:[Eo],loadChildren:()=>import("./chunk-P2KGJFWL.js")},{path:"info",canActivate:[()=>Cn(so)],loadChildren:()=>import("./chunk-3HVJOQA4.js")},{path:"",pathMatch:"full",loadChildren:()=>import("./chunk-TDGFWT26.js")},{path:"",loadChildren:()=>import("./chunk-GOJZ6YPV.js")},{path:":type/:location/:slug",loadChildren:()=>import("./chunk-62D763PG.js")},{path:"**",component:yi}]}];d();h();var aa=(()=>{let e=class e{constructor(t){this._modal=t;}openErrorModal(t){let n=this._modal.open(zs).componentInstance;n.error=t;}openUpdateModal(t,n){let s=this._modal.open(bn).componentInstance;s.event=t,s.error=n;}};e.ɵfac=function(n){return new(n||e)(_(mi));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();d();h();var la=(()=>{let e=class e{constructor(){this.manifest=Ms();}get production(){return ue.production;}get api(){return"";}get debug(){return ue.debug;}get name(){return ue.name;}};e.ɵfac=function(n){return new(n||e)();},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();d();h();d();h();var ca={en:{notFound:"not-found",serverError:"500-server-error",search:"search",redirect:"redirect",specialty:"specialty",page:"page",account:"account",edit:"modify",phone:"phone",set_password:"set-password",security:"security",bookmarks:"bookmarks",consultations:"consultations",notifications:"notifications",documents:"documents",booking:"book",book:"book",info:"infos",about:"about",about_us:"who-are-we",about_partners:"partners",about_press:"press",about_jobs:"jobs",about_jobs_offers:"offers",about_faq:"faq",about_cookies:"cookies",about_legal_notice:"legal-notice",about_consent_notice:"consent-notice",about_cga:"cga",about_cga_annexe1:"cga_annexe1",about_cgu:"terms-of-service",about_lexicon:"lexicon",about_sitemap:"sitemap",specialties:"specialites"},fr:{notFound:"404-page-introuvable",serverError:"500-erreur-serveur",search:"recherche",redirect:"redirect",specialty:"specialte",page:"page",account:"mon-compte",edit:"modifier",phone:"phone",set_password:"modifier-votre-mot-de-passe",security:"securite",bookmarks:"favoris",consultations:"mes-consultations",notifications:"notifications-de-nouvelles-disponibilites",documents:"documents",booking:"prendre-rdv",book:"prendre-rdv",info:"infos",about:"a-propos",about_us:"qui-sommes-nous",about_partners:"partenaires",about_press:"presse",about_jobs:"jobs",about_jobs_offers:"offres",about_faq:"faq",about_consent_notice:"notice-consentement",about_cookies:"cookies",about_legal_notice:"mentions-legales",about_cgu:"conditions-generales-d-utilisation",about_cga:"cga",about_cga_annexe1:"cga_annexe1",about_lexicon:"lexique",about_sitemap:"sitemap",specialties:"specialites"},it:{notFound:"404-pagina-non-trovata",serverError:"500-errore-di-server",search:"investigare",redirect:"reindirizzare",specialty:"speciale",account:"il-mio-conto",edit:"modifica",phone:"telefono",set_password:"cambiare-la-tua-password",security:"incolumita",bookmarks:"favoriti",consultations:"le-mie-consultazioni",notifications:"notifica-di-notizie-disponibilita",documents:"documenti",booking:"fissare-un-appuntamento",info:"informazioni",about:"proposito",about_us:"chi-siamo",about_partners:"soci",about_press:"stampa",about_jobs:"posti-di-lavoro",about_jobs_offers:"promozioni",about_faq:"faq",about_consent_notice:"consent-notice",about_cookies:"cookies",about_legal_notice:"note-legali",about_cgu:"condizioni-generali-di-utilizzo",about_cga:"cga",about_cga_annexe1:"cga_annexe1",about_lexicon:"lessico",about_sitemap:"mappa-del-sito",book:"book",page:"page",specialties:"specialites"}};function rc(r){return window.location.origin+"/"+r;}function sc(r,e){return new Os(r,e.get(De),["fr","en","it"]);}var pa={parser:{provide:Ps,useFactory:sc,deps:[Cs,ce]},appForLanguage:rc,localizedRoutes:ca};d();h();var ua=(()=>{let e=class e{constructor(t){this._context=t;}getConfig(){let t=this._context.value;return Promise.resolve({country:Array.isArray(t.coordinates.region)?t.coordinates.region:[t.coordinates.region],locations:t.search.locations});}};e.ɵfac=function(n){return new(n||e)(_(ne));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();d();h();var xt="PERFORM_ACTION",oc="REFRESH",ya="RESET",_a="ROLLBACK",va="COMMIT",Ea="SWEEP",ba="TOGGLE_ACTION",ac="SET_ACTIONS_ACTIVE",Sa="JUMP_TO_STATE",Ta="JUMP_TO_ACTION",zn="IMPORT_STATE",wa="LOCK_CHANGES",Aa="PAUSE_RECORDING",ht=class{constructor(e,i){if(this.action=e,this.timestamp=i,this.type=xt,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');}},Pn=class{constructor(){this.type=oc;}},On=class{constructor(e){this.timestamp=e,this.type=ya;}},kn=class{constructor(e){this.timestamp=e,this.type=_a;}},In=class{constructor(e){this.timestamp=e,this.type=va;}},Nn=class{constructor(){this.type=Ea;}},Rn=class{constructor(e){this.id=e,this.type=ba;}};var Dn=class{constructor(e){this.index=e,this.type=Sa;}},Ln=class{constructor(e){this.actionId=e,this.type=Ta;}},xn=class{constructor(e){this.nextLiftedState=e,this.type=zn;}},Fn=class{constructor(e){this.status=e,this.type=wa;}},Un=class{constructor(e){this.status=e,this.type=Aa;}};var Ii=new te("@ngrx/store-devtools Options"),da=new te("@ngrx/store-devtools Initial Config");function Ca(){return null;}var lc="NgRx Store DevTools";function cc(r){let e={maxAge:!1,monitor:Ca,actionSanitizer:void 0,stateSanitizer:void 0,name:lc,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},i=typeof r=="function"?r():r,t=i.logOnly?{pause:!0,export:!0,test:!0}:!1,n=i.features||t||e.features;n.import===!0&&(n.import="custom");let s=Object.assign({},e,{features:n},i);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s;}function ha(r,e){return r.filter(i=>e.indexOf(i)<0);}function Ma(r){let{computedStates:e,currentStateIndex:i}=r;if(i>=e.length){let{state:n}=e[e.length-1];return n;}let{state:t}=e[i];return t;}function Lt(r){return new ht(r,+Date.now());}function pc(r,e){return Object.keys(e).reduce((i,t)=>{let n=Number(t);return i[n]=Pa(r,e[n],n),i;},{});}function Pa(r,e,i){return yt(W({},e),{action:r(e.action,i)});}function uc(r,e){return e.map((i,t)=>({state:Oa(r,i.state,t),error:i.error}));}function Oa(r,e,i){return r(e,i);}function ka(r){return r.predicate||r.actionsSafelist||r.actionsBlocklist;}function dc(r,e,i,t){let n=[],s={},o=[];return r.stagedActionIds.forEach((a,l)=>{let c=r.actionsById[a];c&&(l&&Bn(r.computedStates[l],c,e,i,t)||(s[a]=c,n.push(a),o.push(r.computedStates[l])));}),yt(W({},r),{stagedActionIds:n,actionsById:s,computedStates:o});}function Bn(r,e,i,t,n){let s=i&&!i(r,e.action),o=t&&!e.action.type.match(t.map(l=>fa(l)).join("|")),a=n&&e.action.type.match(n.map(l=>fa(l)).join("|"));return s||o||a;}function fa(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");}function Ia(r){return{ngZone:r?N(nt):null,connectInZone:r};}var Ni=(()=>{let e=class e extends _i{};e.ɵfac=(()=>{let t;return function(s){return(t||(t=Ht(e)))(s||e);};})(),e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})(),Pi={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},jn=new te("@ngrx/store-devtools Redux Devtools Extension"),Na=(()=>{let e=class e{constructor(t,n,s){this.config=n,this.dispatcher=s,this.zoneConfig=Ia(this.config.connectInZone),this.devtoolsExtension=t,this.createActionStreams();}notify(t,n){if(this.devtoolsExtension)if(t.type===xt){if(n.isLocked||n.isPaused)return;let s=Ma(n);if(ka(this.config)&&Bn(s,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?Oa(this.config.stateSanitizer,s,n.currentStateIndex):s,a=this.config.actionSanitizer?Pa(this.config.actionSanitizer,t,n.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o));}else{let s=yt(W({},n),{stagedActionIds:n.stagedActionIds,actionsById:this.config.actionSanitizer?pc(this.config.actionSanitizer,n.actionsById):n.actionsById,computedStates:this.config.stateSanitizer?uc(this.config.stateSanitizer,n.computedStates):n.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,s,this.getExtensionConfig(this.config)));}}createChangesObservable(){return this.devtoolsExtension?new je(t=>{let n=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=n,n.init(),n.subscribe(s=>t.next(s)),n.unsubscribe;}):vt;}createActionStreams(){let t=this.createChangesObservable().pipe(Qt()),n=t.pipe(K(p=>p.type===Pi.START)),s=t.pipe(K(p=>p.type===Pi.STOP)),o=t.pipe(K(p=>p.type===Pi.DISPATCH),U(p=>this.unwrapAction(p.payload)),Ir(p=>p.type===zn?this.dispatcher.pipe(K(u=>u.type===_n),Pr(1e3),Nr(1e3),U(()=>p),Gt(()=>$(p)),me(1)):$(p))),l=t.pipe(K(p=>p.type===Pi.ACTION),U(p=>this.unwrapAction(p.payload))).pipe(it(s)),c=o.pipe(it(s));this.start$=n.pipe(it(s)),this.actions$=this.start$.pipe(H(()=>l)),this.liftedActions$=this.start$.pipe(H(()=>c));}unwrapAction(t){return typeof t=="string"?(0,eval)(`(${t})`):t;}getExtensionConfig(t){let n={name:t.name,features:t.features,serialize:t.serialize,autoPause:t.autoPause??!1,trace:t.trace??!1,traceLimit:t.traceLimit??75};return t.maxAge!==!1&&(n.maxAge=t.maxAge),n;}sendToReduxDevtools(t){try{t();}catch(n){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",n);}}};e.ɵfac=function(n){return new(n||e)(_(jn),_(Ii),_(Ni));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})(),ki={type:yn},hc="@ngrx/store-devtools/recompute",fc={type:hc};function Ra(r,e,i,t,n){if(t)return{state:i,error:"Interrupted by an error up the chain"};let s=i,o;try{s=r(i,e);}catch(a){o=a.toString(),n.handleError(a);}return{state:s,error:o};}function Oi(r,e,i,t,n,s,o,a,l){if(e>=r.length&&r.length===s.length)return r;let c=r.slice(0,e),p=s.length-(l?1:0);for(let u=e;u<p;u++){let g=s[u],v=n[g].action,f=c[u-1],m=f?f.state:t,M=f?f.error:void 0,R=o.indexOf(g)>-1?f:Ra(i,v,m,M,a);c.push(R);}return l&&c.push(r[r.length-1]),c;}function mc(r,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:Lt(ki)},stagedActionIds:[0],skippedActionIds:[],committedState:r,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1};}function gc(r,e,i,t,n={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:u,skippedActionIds:g,committedState:v,currentStateIndex:f,computedStates:m,isLocked:M,isPaused:O}=o||e;o||(c=Object.create(c));function R(L){let A=L,B=u.slice(1,A+1);for(let x=0;x<B.length;x++)if(m[x+1].error){A=x,B=u.slice(1,A+1);break;}else delete c[B[x]];g=g.filter(x=>B.indexOf(x)===-1),u=[0,...u.slice(A+1)],v=m[A].state,m=m.slice(A),f=f>A?f-A:0;}function V(){c={0:Lt(ki)},p=1,u=[0],g=[],v=m[f].state,f=0,m=[];}let w=0;switch(a.type){case wa:{M=a.status,w=1/0;break;}case Aa:{O=a.status,O?(u=[...u,p],c[p]=new ht({type:"@ngrx/devtools/pause"},+Date.now()),p++,w=u.length-1,m=m.concat(m[m.length-1]),f===u.length-2&&f++,w=1/0):V();break;}case ya:{c={0:Lt(ki)},p=1,u=[0],g=[],v=r,f=0,m=[];break;}case va:{V();break;}case _a:{c={0:Lt(ki)},p=1,u=[0],g=[],f=0,m=[];break;}case ba:{let{id:L}=a;g.indexOf(L)===-1?g=[L,...g]:g=g.filter(B=>B!==L),w=u.indexOf(L);break;}case ac:{let{start:L,end:A,active:B}=a,x=[];for(let he=L;he<A;he++)x.push(he);B?g=ha(g,x):g=[...g,...x],w=u.indexOf(L);break;}case Sa:{f=a.index,w=1/0;break;}case Ta:{let L=u.indexOf(a.actionId);L!==-1&&(f=L),w=1/0;break;}case Ea:{u=ha(u,g),g=[],f=Math.min(f,u.length-1);break;}case xt:{if(M)return o||e;if(O||o&&Bn(o.computedStates[f],a,n.predicate,n.actionsSafelist,n.actionsBlocklist)){let A=m[m.length-1];m=[...m.slice(0,-1),Ra(s,a.action,A.state,A.error,i)],w=1/0;break;}n.maxAge&&u.length===n.maxAge&&R(1),f===u.length-1&&f++;let L=p++;c[L]=a,u=[...u,L],w=u.length-1;break;}case zn:{({monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:u,skippedActionIds:g,committedState:v,currentStateIndex:f,computedStates:m,isLocked:M,isPaused:O}=a.nextLiftedState);break;}case yn:{w=0,n.maxAge&&u.length>n.maxAge&&(m=Oi(m,w,s,v,c,u,g,i,O),R(u.length-n.maxAge),w=1/0);break;}case _n:{if(m.filter(A=>A.error).length>0)w=0,n.maxAge&&u.length>n.maxAge&&(m=Oi(m,w,s,v,c,u,g,i,O),R(u.length-n.maxAge),w=1/0);else{if(!O&&!M){f===u.length-1&&f++;let A=p++;c[A]=new ht(a,+Date.now()),u=[...u,A],w=u.length-1,m=Oi(m,w,s,v,c,u,g,i,O);}m=m.map(A=>yt(W({},A),{state:s(A.state,fc)})),f=u.length-1,n.maxAge&&u.length>n.maxAge&&R(u.length-n.maxAge),w=1/0;}break;}default:{w=1/0;break;}}return m=Oi(m,w,s,v,c,u,g,i,O),l=t(l,a),{monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:u,skippedActionIds:g,committedState:v,currentStateIndex:f,computedStates:m,isLocked:M,isPaused:O};};}var ma=(()=>{let e=class e{constructor(t,n,s,o,a,l,c,p){let u=mc(c,p.monitor),g=gc(c,u,l,p.monitor,p),v=be(be(n.asObservable().pipe(Fr(1)),o.actions$).pipe(U(Lt)),t,o.liftedActions$).pipe(Ze(Mr)),f=s.pipe(U(g)),m=Ia(p.connectInZone),M=new Cr(1);this.liftedStateSubscription=v.pipe(Ur(f),ga(m),Lr(({state:V},[w,L])=>{let A=L(V,w);return w.type!==xt&&ka(p)&&(A=dc(A,p.predicate,p.actionsSafelist,p.actionsBlocklist)),o.notify(w,A),{state:A,action:w};},{state:u,action:null})).subscribe(({state:V,action:w})=>{if(M.next(V),w.type===xt){let L=w.action;a.next(L);}}),this.extensionStartSubscription=o.start$.pipe(ga(m)).subscribe(()=>{this.refresh();});let O=M.asObservable(),R=O.pipe(U(Ma));Object.defineProperty(R,"state",{value:_s(R,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=t,this.liftedState=O,this.state=R;}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe();}dispatch(t){this.dispatcher.next(t);}next(t){this.dispatcher.next(t);}error(t){}complete(){}performAction(t){this.dispatch(new ht(t,+Date.now()));}refresh(){this.dispatch(new Pn());}reset(){this.dispatch(new On(+Date.now()));}rollback(){this.dispatch(new kn(+Date.now()));}commit(){this.dispatch(new In(+Date.now()));}sweep(){this.dispatch(new Nn());}toggleAction(t){this.dispatch(new Rn(t));}jumpToAction(t){this.dispatch(new Ln(t));}jumpToState(t){this.dispatch(new Dn(t));}importState(t){this.dispatch(new xn(t));}lockChanges(t){this.dispatch(new Fn(t));}pauseRecording(t){this.dispatch(new Un(t));}};e.ɵfac=function(n){return new(n||e)(_(Ni),_(_i),_(So),_(Na),_(wo),_(Kr),_(bo),_(Ii));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();function ga({ngZone:r,connectInZone:e}){return i=>e?new je(t=>i.subscribe({next:n=>r.run(()=>t.next(n)),error:n=>r.run(()=>t.error(n)),complete:()=>r.run(()=>t.complete())})):i;}var yc=new te("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function _c(r,e){return!!r||e.monitor!==Ca;}function vc(){let r="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[r]<"u"?window[r]:null;}function Da(r={}){return Wt([Na,Ni,ma,{provide:da,useValue:r},{provide:yc,deps:[jn,Ii],useFactory:_c},{provide:jn,useFactory:vc},{provide:Ii,deps:[da],useFactory:cc},{provide:Ao,deps:[ma],useFactory:Ec},{provide:To,useExisting:Ni}]);}function Ec(r){return r.state;}d();h();d();h();function La(r){return new I(3e3,!1);}function bc(){return new I(3100,!1);}function Sc(){return new I(3101,!1);}function Tc(r){return new I(3001,!1);}function wc(r){return new I(3003,!1);}function Ac(r){return new I(3004,!1);}function Cc(r,e){return new I(3005,!1);}function Mc(){return new I(3006,!1);}function Pc(){return new I(3007,!1);}function Oc(r,e){return new I(3008,!1);}function kc(r){return new I(3002,!1);}function Ic(r,e,i,t,n){return new I(3010,!1);}function Nc(){return new I(3011,!1);}function Rc(){return new I(3012,!1);}function Dc(){return new I(3200,!1);}function Lc(){return new I(3202,!1);}function xc(){return new I(3013,!1);}function Fc(r){return new I(3014,!1);}function Uc(r){return new I(3015,!1);}function jc(r){return new I(3016,!1);}function zc(r,e){return new I(3404,!1);}function Bc(r){return new I(3502,!1);}function $c(r){return new I(3503,!1);}function Kc(){return new I(3300,!1);}function qc(r){return new I(3504,!1);}function Vc(r){return new I(3301,!1);}function Gc(r,e){return new I(3302,!1);}function Qc(r){return new I(3303,!1);}function Wc(r,e){return new I(3400,!1);}function Hc(r){return new I(3401,!1);}function Yc(r){return new I(3402,!1);}function Xc(r,e){return new I(3505,!1);}function xe(r){switch(r.length){case 0:return new ut();case 1:return r[0];default:return new gn(r);}}function Ha(r,e,i=new Map(),t=new Map()){let n=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),p=c==o,u=p&&a||new Map();l.forEach((g,v)=>{let f=v,m=g;if(v!=="offset")switch(f=r.normalizePropertyName(f,n),m){case gi:m=i.get(v);break;case Te:m=t.get(v);break;default:m=r.normalizeStyleValue(v,f,m,n);break;}u.set(f,m);}),p||s.push(u),a=u,o=c;}),n.length)throw Bc(n);return s;}function pr(r,e,i,t){switch(e){case"start":r.onStart(()=>t(i&&$n(i,"start",r)));break;case"done":r.onDone(()=>t(i&&$n(i,"done",r)));break;case"destroy":r.onDestroy(()=>t(i&&$n(i,"destroy",r)));break;}}function $n(r,e,i){let t=i.totalTime,n=!!i.disabled,s=ur(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,t??r.totalTime,n),o=r._data;return o!=null&&(s._data=o),s;}function ur(r,e,i,t,n="",s=0,o){return{element:r,triggerName:e,fromState:i,toState:t,phaseName:n,totalTime:s,disabled:!!o};}function oe(r,e,i){let t=r.get(e);return t||r.set(e,t=i),t;}function xa(r){let e=r.indexOf(":"),i=r.substring(1,e),t=r.slice(e+1);return[i,t];}var Zc=typeof document>"u"?null:document.documentElement;function dr(r){let e=r.parentNode||r.host||null;return e===Zc?null:e;}function Jc(r){return r.substring(1,6)=="ebkit";}var Ve=null,Fa=!1;function ep(r){Ve||(Ve=tp()||{},Fa=Ve.style?"WebkitAppearance"in Ve.style:!1);let e=!0;return Ve.style&&!Jc(r)&&(e=r in Ve.style,!e&&Fa&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in Ve.style)),e;}function tp(){return typeof document<"u"?document.body:null;}function Ya(r,e){for(;e;){if(e===r)return!0;e=dr(e);}return!1;}function Xa(r,e,i){if(i)return Array.from(r.querySelectorAll(e));let t=r.querySelector(e);return t?[t]:[];}var hr=(()=>{let e=class e{validateStyleProperty(t){return ep(t);}containsElement(t,n){return Ya(t,n);}getParentElement(t){return dr(t);}query(t,n,s){return Xa(t,n,s);}computeStyle(t,n,s){return s||"";}animate(t,n,s,o,a,l=[],c){return new ut(s,o);}};e.ɵfac=function(n){return new(n||e)();},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})(),yr=class yr{};yr.NOOP=new hr();var We=yr,He=class{};var ip=1e3,Za="{{",np="}}",Ja="ng-enter",Wn="ng-leave",Ri="ng-trigger",Ui=".ng-trigger",Ua="ng-animating",Hn=".ng-animating";function Pe(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Yn(parseFloat(e[1]),e[2]);}function Yn(r,e){switch(e){case"s":return r*ip;default:return r;}}function ji(r,e,i){return r.hasOwnProperty("duration")?r:rp(r,e,i);}function rp(r,e,i){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,s=0,o="";if(typeof r=="string"){let a=r.match(t);if(a===null)return e.push(La(r)),{duration:0,delay:0,easing:""};n=Yn(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Yn(parseFloat(l),a[4]));let c=a[5];c&&(o=c);}else n=r;if(!i){let a=!1,l=e.length;n<0&&(e.push(bc()),a=!0),s<0&&(e.push(Sc()),a=!0),a&&e.splice(l,0,La(r));}return{duration:n,delay:s,easing:o};}function sp(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[];}function Ae(r,e,i){e.forEach((t,n)=>{let s=fr(n);i&&!i.has(n)&&i.set(n,r.style[s]),r.style[s]=t;});}function Qe(r,e){e.forEach((i,t)=>{let n=fr(t);r.style[n]="";});}function Ft(r){return Array.isArray(r)?r.length==1?r[0]:_o(r):r;}function op(r,e,i){let t=e.params||{},n=el(r);n.length&&n.forEach(s=>{t.hasOwnProperty(s)||i.push(Tc(s));});}var Xn=new RegExp(`${Za}\\s*(.+?)\\s*${np}`,"g");function el(r){let e=[];if(typeof r=="string"){let i;for(;i=Xn.exec(r);)e.push(i[1]);Xn.lastIndex=0;}return e;}function jt(r,e,i){let t=`${r}`,n=t.replace(Xn,(s,o)=>{let a=e[o];return a==null&&(i.push(wc(o)),a=""),a.toString();});return n==t?r:n;}var ap=/-+([a-z0-9])/g;function fr(r){return r.replace(ap,(...e)=>e[1].toUpperCase());}function lp(r,e){return r===0||e===0;}function cp(r,e,i){if(i.size&&e.length){let t=e[0],n=[];if(i.forEach((s,o)=>{t.has(o)||n.push(o),t.set(o,s);}),n.length)for(let s=1;s<e.length;s++){let o=e[s];n.forEach(a=>o.set(a,mr(r,a)));}}return e;}function se(r,e,i){switch(e.type){case P.Trigger:return r.visitTrigger(e,i);case P.State:return r.visitState(e,i);case P.Transition:return r.visitTransition(e,i);case P.Sequence:return r.visitSequence(e,i);case P.Group:return r.visitGroup(e,i);case P.Animate:return r.visitAnimate(e,i);case P.Keyframes:return r.visitKeyframes(e,i);case P.Style:return r.visitStyle(e,i);case P.Reference:return r.visitReference(e,i);case P.AnimateChild:return r.visitAnimateChild(e,i);case P.AnimateRef:return r.visitAnimateRef(e,i);case P.Query:return r.visitQuery(e,i);case P.Stagger:return r.visitStagger(e,i);default:throw Ac(e.type);}}function mr(r,e){return window.getComputedStyle(r)[e];}var pp=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"]),zi=class extends He{normalizePropertyName(e,i){return fr(e);}normalizeStyleValue(e,i,t,n){let s="",o=t.toString().trim();if(pp.has(i)&&t!==0&&t!=="0")if(typeof t=="number")s="px";else{let a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(Cc(e,t));}return o+s;}};var Bi="*";function up(r,e){let i=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(t=>dp(t,i,e)):i.push(r),i;}function dp(r,e,i){if(r[0]==":"){let l=hp(r,i);if(typeof l=="function"){e.push(l);return;}r=l;}let t=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return i.push(Uc(r)),e;let n=t[1],s=t[2],o=t[3];e.push(ja(n,o));let a=n==Bi&&o==Bi;s[0]=="<"&&!a&&e.push(ja(o,n));}function hp(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,t)=>parseFloat(t)>parseFloat(i);case":decrement":return(i,t)=>parseFloat(t)<parseFloat(i);default:return e.push(jc(r)),"* => *";}}var Di=new Set(["true","1"]),Li=new Set(["false","0"]);function ja(r,e){let i=Di.has(r)||Li.has(r),t=Di.has(e)||Li.has(e);return(n,s)=>{let o=r==Bi||r==n,a=e==Bi||e==s;return!o&&i&&typeof n=="boolean"&&(o=n?Di.has(r):Li.has(r)),!a&&t&&typeof s=="boolean"&&(a=s?Di.has(e):Li.has(e)),o&&a;};}var tl=":self",fp=new RegExp(`s*${tl}s*,?`,"g");function il(r,e,i,t){return new Zn(r).build(e,i,t);}var za="",Zn=class{constructor(e){this._driver=e;}build(e,i,t){let n=new Jn(i);return this._resetContextStyleTimingState(n),se(this,Ft(e),n);}_resetContextStyleTimingState(e){e.currentQuerySelector=za,e.collectedStyles=new Map(),e.collectedStyles.set(za,new Map()),e.currentTime=0;}visitTrigger(e,i){let t=i.queryCount=0,n=i.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(Mc()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==P.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(p=>{l.name=p,s.push(this.visitState(l,i));}),l.name=c;}else if(a.type==P.Transition){let l=this.visitTransition(a,i);t+=l.queryCount,n+=l.depCount,o.push(l);}else i.errors.push(Pc());}),{type:P.Trigger,name:e.name,states:s,transitions:o,queryCount:t,depCount:n,options:null};}visitState(e,i){let t=this.visitStyle(e.styles,i),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let s=new Set(),o=n||{};t.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{el(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c);});});}),s.size&&i.errors.push(Oc(e.name,[...s.values()]));}return{type:P.State,name:e.name,style:t,options:n?{params:n}:null};}visitTransition(e,i){i.queryCount=0,i.depCount=0;let t=se(this,Ft(e.animation),i),n=up(e.expr,i.errors);return{type:P.Transition,matchers:n,animation:t,queryCount:i.queryCount,depCount:i.depCount,options:Ge(e.options)};}visitSequence(e,i){return{type:P.Sequence,steps:e.steps.map(t=>se(this,t,i)),options:Ge(e.options)};}visitGroup(e,i){let t=i.currentTime,n=0,s=e.steps.map(o=>{i.currentTime=t;let a=se(this,o,i);return n=Math.max(n,i.currentTime),a;});return i.currentTime=n,{type:P.Group,steps:s,options:Ge(e.options)};}visitAnimate(e,i){let t=_p(e.timings,i.errors);i.currentAnimateTimings=t;let n,s=e.styles?e.styles:Ke({});if(s.type==P.Keyframes)n=this.visitKeyframes(s,i);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};t.easing&&(c.easing=t.easing),o=Ke(c);}i.currentTime+=t.duration+t.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,n=l;}return i.currentAnimateTimings=null,{type:P.Animate,timings:t,style:n,options:null};}visitStyle(e,i){let t=this._makeStyleAst(e,i);return this._validateStyleAst(t,i),t;}_makeStyleAst(e,i){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===Te?t.push(a):i.errors.push(kc(a)):t.push(new Map(Object.entries(a)));let s=!1,o=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Za)>=0){s=!0;break;}}}),{type:P.Style,styles:t,easing:o,offset:e.offset,containsDynamicStyles:s,options:null};}_validateStyleAst(e,i){let t=i.currentAnimateTimings,n=i.currentTime,s=i.currentTime;t&&s>0&&(s-=t.duration+t.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),p=c.get(l),u=!0;p&&(s!=n&&s>=p.startTime&&n<=p.endTime&&(i.errors.push(Ic(l,p.startTime,p.endTime,s,n)),u=!1),s=p.startTime),u&&c.set(l,{startTime:s,endTime:n}),i.options&&op(a,i.options,i.errors);});});}visitKeyframes(e,i){let t={type:P.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Nc()),t;let n=1,s=0,o=[],a=!1,l=!1,c=0,p=e.steps.map(O=>{let R=this._makeStyleAst(O,i),V=R.offset!=null?R.offset:yp(R.styles),w=0;return V!=null&&(s++,w=R.offset=V),l=l||w<0||w>1,a=a||w<c,c=w,o.push(w),R;});l&&i.errors.push(Rc()),a&&i.errors.push(Dc());let u=e.steps.length,g=0;s>0&&s<u?i.errors.push(Lc()):s==0&&(g=n/(u-1));let v=u-1,f=i.currentTime,m=i.currentAnimateTimings,M=m.duration;return p.forEach((O,R)=>{let V=g>0?R==v?1:g*R:o[R],w=V*M;i.currentTime=f+m.delay+w,m.duration=w,this._validateStyleAst(O,i),O.offset=V,t.styles.push(O);}),t;}visitReference(e,i){return{type:P.Reference,animation:se(this,Ft(e.animation),i),options:Ge(e.options)};}visitAnimateChild(e,i){return i.depCount++,{type:P.AnimateChild,options:Ge(e.options)};}visitAnimateRef(e,i){return{type:P.AnimateRef,animation:this.visitReference(e.animation,i),options:Ge(e.options)};}visitQuery(e,i){let t=i.currentQuerySelector,n=e.options||{};i.queryCount++,i.currentQuery=e;let[s,o]=mp(e.selector);i.currentQuerySelector=t.length?t+" "+s:s,oe(i.collectedStyles,i.currentQuerySelector,new Map());let a=se(this,Ft(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=t,{type:P.Query,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ge(e.options)};}visitStagger(e,i){i.currentQuery||i.errors.push(xc());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ji(e.timings,i.errors,!0);return{type:P.Stagger,animation:se(this,Ft(e.animation),i),timings:t,options:null};}};function mp(r){let e=!!r.split(/\s*,\s*/).find(i=>i==tl);return e&&(r=r.replace(fp,"")),r=r.replace(/@\*/g,Ui).replace(/@\w+/g,i=>Ui+"-"+i.slice(1)).replace(/:animating/g,Hn),[r,e];}function gp(r){return r?W({},r):null;}var Jn=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map(),this.options=null,this.unsupportedCSSPropertiesFound=new Set();}};function yp(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(i=>{if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}});else if(r instanceof Map&&r.has("offset")){let i=r;e=parseFloat(i.get("offset")),i.delete("offset");}return e;}function _p(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=ji(r,e).duration;return Kn(s,0,"");}let i=r;if(i.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Kn(0,0,"");return s.dynamic=!0,s.strValue=i,s;}let n=ji(i,e);return Kn(n.duration,n.delay,n.easing);}function Ge(r){return r?(r=W({},r),r.params&&(r.params=gp(r.params))):r={},r;}function Kn(r,e,i){return{duration:r,delay:e,easing:i};}function gr(r,e,i,t,n,s,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:i,postStyleProps:t,duration:n,delay:s,totalTime:n+s,easing:o,subTimeline:a};}var zt=class{constructor(){this._map=new Map();}get(e){return this._map.get(e)||[];}append(e,i){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...i);}has(e){return this._map.has(e);}clear(){this._map.clear();}},vp=1,Ep=":enter",bp=new RegExp(Ep,"g"),Sp=":leave",Tp=new RegExp(Sp,"g");function nl(r,e,i,t,n,s=new Map(),o=new Map(),a,l,c=[]){return new er().buildKeyframes(r,e,i,t,n,s,o,a,l,c);}var er=class{buildKeyframes(e,i,t,n,s,o,a,l,c,p=[]){c=c||new zt();let u=new tr(e,i,c,n,s,p,[]);u.options=l;let g=l.delay?Pe(l.delay):0;u.currentTimeline.delayNextStep(g),u.currentTimeline.setStyles([o],null,u.errors,l),se(this,t,u);let v=u.timelines.filter(f=>f.containsAnimation());if(v.length&&a.size){let f;for(let m=v.length-1;m>=0;m--){let M=v[m];if(M.element===i){f=M;break;}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l);}return v.length?v.map(f=>f.buildKeyframes()):[gr(i,[],[],[],0,g,"",!1)];}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let t=i.subInstructions.get(i.element);if(t){let n=i.createSubContext(e.options),s=i.currentTimeline.currentTime,o=this._visitSubInstructions(t,n,n.options);s!=o&&i.transformIntoNewTimeline(o);}i.previousNode=e;}visitAnimateRef(e,i){let t=i.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,t),this.visitReference(e.animation,t),i.transformIntoNewTimeline(t.currentTimeline.currentTime),i.previousNode=e;}_applyAnimationRefDelays(e,i,t){for(let n of e){let s=n?.delay;if(s){let o=typeof s=="number"?s:Pe(jt(s,n?.params??{},i.errors));t.delayNextStep(o);}}}_visitSubInstructions(e,i,t){let s=i.currentTimeline.currentTime,o=t.duration!=null?Pe(t.duration):null,a=t.delay!=null?Pe(t.delay):null;return o!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay);}),s;}visitReference(e,i){i.updateOptions(e.options,!0),se(this,e.animation,i),i.previousNode=e;}visitSequence(e,i){let t=i.subContextCount,n=i,s=e.options;if(s&&(s.params||s.delay)&&(n=i.createSubContext(s),n.transformIntoNewTimeline(),s.delay!=null)){n.previousNode.type==P.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=$i);let o=Pe(s.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>se(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),i.previousNode=e;}visitGroup(e,i){let t=[],n=i.currentTimeline.currentTime,s=e.options&&e.options.delay?Pe(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);s&&a.delayNextStep(s),se(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),t.push(a.currentTimeline);}),t.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(n),i.previousNode=e;}_visitTiming(e,i){if(e.dynamic){let t=e.strValue,n=i.params?jt(t,i.params,i.errors):t;return ji(n,i.errors);}else return{duration:e.duration,delay:e.delay,easing:e.easing};}visitAnimate(e,i){let t=i.currentAnimateTimings=this._visitTiming(e.timings,i),n=i.currentTimeline;t.delay&&(i.incrementTime(t.delay),n.snapshotCurrentStyles());let s=e.style;s.type==P.Keyframes?this.visitKeyframes(s,i):(i.incrementTime(t.duration),this.visitStyle(s,i),n.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e;}visitStyle(e,i){let t=i.currentTimeline,n=i.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let s=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(s):t.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e;}visitKeyframes(e,i){let t=i.currentAnimateTimings,n=i.currentTimeline.duration,s=t.duration,a=i.createSubContext().currentTimeline;a.easing=t.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe();}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(n+s),i.previousNode=e;}visitQuery(e,i){let t=i.currentTimeline.currentTime,n=e.options||{},s=n.delay?Pe(n.delay):0;s&&(i.previousNode.type===P.Style||t==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=$i);let o=t,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,p)=>{i.currentQueryIndex=p;let u=i.createSubContext(e.options,c);s&&u.delayNextStep(s),c===i.element&&(l=u.currentTimeline),se(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let g=u.currentTimeline.currentTime;o=Math.max(o,g);}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e;}visitStagger(e,i){let t=i.parentContext,n=i.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=t.currentStaggerTime;break;}let p=i.currentTimeline;l&&p.delayNextStep(l);let u=p.currentTime;se(this,e.animation,i),i.previousNode=e,t.currentStaggerTime=n.currentTime-u+(n.startTime-t.currentTimeline.startTime);}},$i={},tr=class r{constructor(e,i,t,n,s,o,a,l){this._driver=e,this.element=i,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$i,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ki(this._driver,i,0),a.push(this.currentTimeline);}get params(){return this.options.params;}updateOptions(e,i){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=Pe(t.duration)),t.delay!=null&&(n.delay=Pe(t.delay));let s=t.params;if(s){let o=n.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=jt(s[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let t=e.params={};Object.keys(i).forEach(n=>{t[n]=i[n];});}}return e;}createSubContext(e=null,i,t){let n=i||this.element,s=new r(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s;}transformIntoNewTimeline(e){return this.previousNode=$i,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline;}appendInstructionToTimeline(e,i,t){let n={duration:i??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},s=new ir(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(s),n;}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,i,t,n,s,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(bp,"."+this._enterClassName),e=e.replace(Tp,"."+this._leaveClassName);let l=t!=1,c=this._driver.query(this.element,e,l);t!==0&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),a.push(...c);}return!s&&a.length==0&&o.push(Fc(i)),a;}},Ki=class r{constructor(e,i,t,n){this._driver=e,this.element=i,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map(),this._currentKeyframe=new Map(),this._keyframes=new Map(),this._styleSummary=new Map(),this._localTimelineStyles=new Map(),this._pendingStyles=new Map(),this._backFill=new Map(),this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map()),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,i){return this.applyStylesToKeyframe(),new r(this._driver,e,i||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+=vp,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe;}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,t]of this._globalTimelineStyles)this._backFill.set(i,t||Te),this._currentKeyframe.set(i,Te);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,i,t,n){i&&this._previousKeyframe.set("easing",i);let s=n&&n.params||{},o=wp(e,this._globalTimelineStyles);for(let[a,l]of o){let c=jt(l,s,t);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Te),this._updateStyle(a,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e);}));}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i);}getFinalKeyframe(){return this._keyframes.get(this.duration);}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e;}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,t)=>{let n=this._styleSummary.get(t);(!n||i.time>n.time)&&this._updateStyle(t,i.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set(),i=new Set(),t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((p,u)=>{p===gi?e.add(u):p===Te&&i.add(u);}),t||c.set("offset",l/this.duration),n.push(c);});let s=[...e.values()],o=[...i.values()];if(t){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return gr(this.element,n,s,o,this.duration,this.startTime,this.easing,!1);}},ir=class extends Ki{constructor(e,i,t,n,s,o,a=!1){super(e,i,o.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing};}containsAnimation(){return this.keyframes.length>1;}buildKeyframes(){let e=this.keyframes,{delay:i,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&i){let s=[],o=t+i,a=i/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",Ba(a)),s.push(c);let p=e.length-1;for(let u=1;u<=p;u++){let g=new Map(e[u]),v=g.get("offset"),f=i+v*t;g.set("offset",Ba(f/o)),s.push(g);}t=o,i=0,n="",e=s;}return gr(this.element,e,this.preStyleProps,this.postStyleProps,t,i,n,!0);}};function Ba(r,e=3){let i=Math.pow(10,e-1);return Math.round(r*i)/i;}function wp(r,e){let i=new Map(),t;return r.forEach(n=>{if(n==="*"){t??=e.keys();for(let s of t)i.set(s,Te);}else for(let[s,o]of n)i.set(s,o);}),i;}function $a(r,e,i,t,n,s,o,a,l,c,p,u,g){return{type:0,element:r,triggerName:e,isRemovalTransition:n,fromState:i,fromStyles:s,toState:t,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:p,totalTime:u,errors:g};}var qn={},qi=class{constructor(e,i,t){this._triggerName=e,this.ast=i,this._stateStyles=t;}match(e,i,t,n){return Ap(this.ast.matchers,e,i,t,n);}buildStyles(e,i,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(i,t):new Map();}build(e,i,t,n,s,o,a,l,c,p){let u=[],g=this.ast.options&&this.ast.options.params||qn,v=a&&a.params||qn,f=this.buildStyles(t,v,u),m=l&&l.params||qn,M=this.buildStyles(n,m,u),O=new Set(),R=new Map(),V=new Map(),w=n==="void",L={params:rl(m,g),delay:this.ast.options?.delay},A=p?[]:nl(e,i,this.ast.animation,s,o,f,M,L,c,u),B=0;return A.forEach(x=>{B=Math.max(x.duration+x.delay,B);}),u.length?$a(i,this._triggerName,t,n,w,f,M,[],[],R,V,B,u):(A.forEach(x=>{let he=x.element,Ye=oe(R,he,new Set());x.preStyleProps.forEach(Fe=>Ye.add(Fe));let vr=oe(V,he,new Set());x.postStyleProps.forEach(Fe=>vr.add(Fe)),he!==i&&O.add(he);}),$a(i,this._triggerName,t,n,w,f,M,A,[...O.values()],R,V,B));}};function Ap(r,e,i,t,n){return r.some(s=>s(e,i,t,n));}function rl(r,e){let i=W({},e);return Object.entries(r).forEach(([t,n])=>{n!=null&&(i[t]=n);}),i;}var nr=class{constructor(e,i,t){this.styles=e,this.defaultParams=i,this.normalizer=t;}buildStyles(e,i){let t=new Map(),n=rl(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=jt(o,n,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),t.set(a,o);});}),t;}};function Cp(r,e,i){return new rr(r,e,i);}var rr=class{constructor(e,i,t){this.name=e,this.ast=i,this._normalizer=t,this.transitionFactories=[],this.states=new Map(),i.states.forEach(n=>{let s=n.options&&n.options.params||{};this.states.set(n.name,new nr(n.style,s,t));}),Ka(this.states,"true","1"),Ka(this.states,"false","0"),i.transitions.forEach(n=>{this.transitionFactories.push(new qi(e,n,this.states));}),this.fallbackTransition=Mp(e,this.states,this._normalizer);}get containsQueries(){return this.ast.queryCount>0;}matchTransition(e,i,t,n){return this.transitionFactories.find(o=>o.match(e,i,t,n))||null;}matchStyles(e,i,t){return this.fallbackTransition.buildStyles(e,i,t);}};function Mp(r,e,i){let t=[(o,a)=>!0],n={type:P.Sequence,steps:[],options:null},s={type:P.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new qi(r,s,e);}function Ka(r,e,i){r.has(e)?r.has(i)||r.set(i,r.get(e)):r.has(i)&&r.set(e,r.get(i));}var Pp=new zt(),sr=class{constructor(e,i,t){this.bodyNode=e,this._driver=i,this._normalizer=t,this._animations=new Map(),this._playersById=new Map(),this.players=[];}register(e,i){let t=[],n=[],s=il(this._driver,i,t,n);if(t.length)throw $c(t);n.length&&void 0,this._animations.set(e,s);}_buildPlayer(e,i,t){let n=e.element,s=Ha(this._normalizer,e.keyframes,i,t);return this._driver.animate(n,s,e.duration,e.delay,e.easing,[],!0);}create(e,i,t={}){let n=[],s=this._animations.get(e),o,a=new Map();if(s?(o=nl(this._driver,i,s,Ja,Wn,new Map(),new Map(),t,Pp,n),o.forEach(p=>{let u=oe(a,p.element,new Map());p.postStyleProps.forEach(g=>u.set(g,null));})):(n.push(Kc()),o=[]),n.length)throw qc(n);a.forEach((p,u)=>{p.forEach((g,v)=>{p.set(v,this._driver.computeStyle(u,v,Te));});});let l=o.map(p=>{let u=a.get(p.element);return this._buildPlayer(p,new Map(),u);}),c=xe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c;}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Vc(e);return i;}listen(e,i,t,n){let s=ur(i,"","","");return pr(this._getPlayer(e),t,s,n),()=>{};}command(e,i,t,n){if(t=="register"){this.register(e,n[0]);return;}if(t=="create"){let o=n[0]||{};this.create(e,i,o);return;}let s=this._getPlayer(e);switch(t){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(n[0]));break;case"destroy":this.destroy(e);break;}}},qa="ng-animate-queued",Op=".ng-animate-queued",Vn="ng-animate-disabled",kp=".ng-animate-disabled",Ip="ng-star-inserted",Np=".ng-star-inserted",Rp=[],sl={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Dp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ye="__ng_removed",Bt=class{get params(){return this.options.params;}constructor(e,i=""){this.namespaceId=i;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=xp(n),t){let s=e,{value:o}=s,a=Tr(s,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let i=e.params;if(i){let t=this.options.params;Object.keys(i).forEach(n=>{t[n]==null&&(t[n]=i[n]);});}}},Ut="void",Gn=new Bt(Ut),or=class{constructor(e,i,t){this.id=e,this.hostElement=i,this._engine=t,this.players=[],this._triggers=new Map(),this._queue=[],this._elementListeners=new Map(),this._hostClassName="ng-tns-"+e,de(i,this._hostClassName);}listen(e,i,t,n){if(!this._triggers.has(i))throw Gc(t,i);if(t==null||t.length==0)throw Qc(i);if(!Fp(t))throw Wc(t,i);let s=oe(this._elementListeners,e,[]),o={name:i,phase:t,callback:n};s.push(o);let a=oe(this._engine.statesByElement,e,new Map());return a.has(i)||(de(e,Ri),de(e,Ri+"-"+i),a.set(i,Gn)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(i)||a.delete(i);});};}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0);}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw Hc(e);return i;}trigger(e,i,t,n=!0){let s=this._getTrigger(i),o=new $t(this.id,i,e),a=this._engine.statesByElement.get(e);a||(de(e,Ri),de(e,Ri+"-"+i),this._engine.statesByElement.set(e,a=new Map()));let l=a.get(i),c=new Bt(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Gn),!(c.value===Ut)&&l.value===c.value){if(!zp(l.params,c.params)){let m=[],M=s.matchStyles(l.value,l.params,m),O=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Qe(e,M),Ae(e,O);});}return;}let g=oe(this._engine.playersByElement,e,[]);g.forEach(m=>{m.namespaceId==this.id&&m.triggerName==i&&m.queued&&m.destroy();});let v=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!v){if(!n)return;v=s.fallbackTransition,f=!0;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:v,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(de(e,qa),o.onStart(()=>{ft(e,qa);})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let M=this._engine.playersByElement.get(e);if(M){let O=M.indexOf(o);O>=0&&M.splice(O,1);}}),this.players.push(o),g.push(o),o;}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,t)=>{this._elementListeners.set(t,i.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,i){let t=this._engine.driver.query(e,Ui,!0);t.forEach(n=>{if(n[ye])return;let s=this._engine.fetchNamespacesByElement(n);s.size?s.forEach(o=>o.triggerLeaveAnimation(n,i,!1,!0)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,i,t,n){let s=this._engine.statesByElement.get(e),o=new Map();if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let p=this.trigger(e,c,Ut,n);p&&a.push(p);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),t&&xe(a).onDone(()=>this._engine.processLeaveNode(e)),!0;}return!1;}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(i&&t){let n=new Set();i.forEach(s=>{let o=s.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=t.get(o)||Gn,p=new Bt(Ut),u=new $t(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:p,player:u,isFallbackTransition:!0});});}}removeNode(e,i){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let n=!1;if(t.totalAnimations){let s=t.players.length?t.playersByQueriedElement.get(e):[];if(s&&s.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(t.statesByElement.get(o)){n=!0;break;}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,i);else{let s=e[ye];(!s||s===sl)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,i));}}insertNode(e,i){de(e,this._hostClassName);}drainQueuedTransitions(e){let i=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let s=t.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==t.triggerName){let l=ur(s,t.triggerName,t.fromState.value,t.toState.value);l._data=e,pr(t.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):i.push(t);}),this._queue=[],i.sort((t,n)=>{let s=t.transition.ast.depCount,o=n.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(t.element,n.element)?1:-1;});}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},ar=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i);}constructor(e,i,t){this.bodyNode=e,this.driver=i,this._normalizer=t,this.players=[],this.newHostElements=new Map(),this.playersByElement=new Map(),this.playersByQueriedElement=new Map(),this.statesByElement=new Map(),this.disabledNodes=new Set(),this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map(),this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(n,s)=>{};}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(t=>{t.queued&&e.push(t);});}),e;}createNamespace(e,i){let t=new or(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(t,i):(this.newHostElements.set(i,t),this.collectEnterElement(i)),this._namespaceLookup[e]=t;}_balanceNamespaceList(e,i){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=n.get(a);if(l){let c=t.indexOf(l);t.splice(c+1,0,e),o=!0;break;}a=this.driver.getParentElement(a);}o||t.unshift(e);}else t.push(e);return n.set(i,e),e;}register(e,i){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,i)),t;}registerTrigger(e,i,t){let n=this._namespaceLookup[e];n&&n.register(i,t)&&this.totalAnimations++;}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(i),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e];}fetchNamespacesByElement(e){let i=new Set(),t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let s=this._fetchNamespace(n.namespaceId);s&&i.add(s);}}return i;}trigger(e,i,t,n){if(xi(i)){let s=this._fetchNamespace(e);if(s)return s.trigger(i,t,n),!0;}return!1;}insertNode(e,i,t,n){if(!xi(i))return;let s=i[ye];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,t);}n&&this.collectEnterElement(i);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),de(e,Vn)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ft(e,Vn));}removeNode(e,i,t){if(xi(i)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(i,t):this.markElementAsRemoved(e,i,!1,t);let s=this.namespacesByHostElement.get(i);s&&s.id!==e&&s.removeNode(i,t);}else this._onRemovalComplete(i,t);}markElementAsRemoved(e,i,t,n,s){this.collectedLeaveElements.push(i),i[ye]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:s};}listen(e,i,t,n,s){return xi(i)?this._fetchNamespace(e).listen(i,t,n,s):()=>{};}_buildInstruction(e,i,t,n,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,i,s);}destroyInnerAnimations(e){let i=this.driver.query(e,Ui,!0);i.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Hn,!0),i.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)));}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy();});}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(t=>t.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return xe(this.players).onDone(()=>e());e();});}processLeaveNode(e){let i=e[ye];if(i&&i.setForRemoval){if(e[ye]=sl,i.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(i.namespaceId);t&&t.clearElementCache(e);}this._onRemovalComplete(e,i.setForRemoval);}e.classList?.contains(Vn)&&this.markElementAsDisabled(e,!1),this.driver.query(e,kp,!0).forEach(t=>{this.markElementAsDisabled(t,!1);});}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let n=this.collectedEnterElements[t];de(n,Ip);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{i=this._flushAnimations(t,e);}finally{for(let n=0;n<t.length;n++)t[n]();}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let n=this.collectedLeaveElements[t];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],i.length?xe(i).onDone(()=>{t.forEach(n=>n());}):t.forEach(n=>n());}}reportError(e){throw Yc(e);}_flushAnimations(e,i){let t=new zt(),n=[],s=new Map(),o=[],a=new Map(),l=new Map(),c=new Map(),p=new Set();this.disabledNodes.forEach(y=>{p.add(y);let S=this.driver.query(y,Op,!0);for(let T=0;T<S.length;T++)p.add(S[T]);});let u=this.bodyNode,g=Array.from(this.statesByElement.keys()),v=Qa(g,this.collectedEnterElements),f=new Map(),m=0;v.forEach((y,S)=>{let T=Ja+m++;f.set(S,T),y.forEach(k=>de(k,T));});let M=[],O=new Set(),R=new Set();for(let y=0;y<this.collectedLeaveElements.length;y++){let S=this.collectedLeaveElements[y],T=S[ye];T&&T.setForRemoval&&(M.push(S),O.add(S),T.hasAnimation?this.driver.query(S,Np,!0).forEach(k=>O.add(k)):R.add(S));}let V=new Map(),w=Qa(g,Array.from(O));w.forEach((y,S)=>{let T=Wn+m++;V.set(S,T),y.forEach(k=>de(k,T));}),e.push(()=>{v.forEach((y,S)=>{let T=f.get(S);y.forEach(k=>ft(k,T));}),w.forEach((y,S)=>{let T=V.get(S);y.forEach(k=>ft(k,T));}),M.forEach(y=>{this.processLeaveNode(y);});});let L=[],A=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(i).forEach(T=>{let k=T.player,Y=T.element;if(L.push(k),this.collectedEnterElements.length){let J=Y[ye];if(J&&J.setForMove){if(J.previousTriggersValues&&J.previousTriggersValues.has(T.triggerName)){let Ue=J.previousTriggersValues.get(T.triggerName),ae=this.statesByElement.get(T.element);if(ae&&ae.has(T.triggerName)){let Kt=ae.get(T.triggerName);Kt.value=Ue,ae.set(T.triggerName,Kt);}}k.destroy();return;}}let _e=!u||!this.driver.containsElement(u,Y),re=V.get(Y),Oe=f.get(Y),q=this._buildInstruction(T,t,Oe,re,_e);if(q.errors&&q.errors.length){A.push(q);return;}if(_e){k.onStart(()=>Qe(Y,q.fromStyles)),k.onDestroy(()=>Ae(Y,q.toStyles)),n.push(k);return;}if(T.isFallbackTransition){k.onStart(()=>Qe(Y,q.fromStyles)),k.onDestroy(()=>Ae(Y,q.toStyles)),n.push(k);return;}let Sr=[];q.timelines.forEach(J=>{J.stretchStartingKeyframe=!0,this.disabledNodes.has(J.element)||Sr.push(J);}),q.timelines=Sr,t.append(Y,q.timelines);let yl={instruction:q,player:k,element:Y};o.push(yl),q.queriedElements.forEach(J=>oe(a,J,[]).push(k)),q.preStyleProps.forEach((J,Ue)=>{if(J.size){let ae=l.get(Ue);ae||l.set(Ue,ae=new Set()),J.forEach((Kt,Yi)=>ae.add(Yi));}}),q.postStyleProps.forEach((J,Ue)=>{let ae=c.get(Ue);ae||c.set(Ue,ae=new Set()),J.forEach((Kt,Yi)=>ae.add(Yi));});});if(A.length){let y=[];A.forEach(S=>{y.push(Xc(S.triggerName,S.errors));}),L.forEach(S=>S.destroy()),this.reportError(y);}let B=new Map(),x=new Map();o.forEach(y=>{let S=y.element;t.has(S)&&(x.set(S,S),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,B));}),n.forEach(y=>{let S=y.element;this._getPreviousPlayers(S,!1,y.namespaceId,y.triggerName,null).forEach(k=>{oe(B,S,[]).push(k),k.destroy();});});let he=M.filter(y=>Wa(y,l,c)),Ye=new Map();Ga(Ye,this.driver,R,c,Te).forEach(y=>{Wa(y,l,c)&&he.push(y);});let Fe=new Map();v.forEach((y,S)=>{Ga(Fe,this.driver,new Set(y),l,gi);}),he.forEach(y=>{let S=Ye.get(y),T=Fe.get(y);Ye.set(y,new Map([...(S?.entries()??[]),...(T?.entries()??[])]));});let Hi=[],Er=[],br={};o.forEach(y=>{let{element:S,player:T,instruction:k}=y;if(t.has(S)){if(p.has(S)){T.onDestroy(()=>Ae(S,k.toStyles)),T.disabled=!0,T.overrideTotalTime(k.totalTime),n.push(T);return;}let Y=br;if(x.size>1){let re=S,Oe=[];for(;re=re.parentNode;){let q=x.get(re);if(q){Y=q;break;}Oe.push(re);}Oe.forEach(q=>x.set(q,Y));}let _e=this._buildAnimation(T.namespaceId,k,B,s,Fe,Ye);if(T.setRealPlayer(_e),Y===br)Hi.push(T);else{let re=this.playersByElement.get(Y);re&&re.length&&(T.parentPlayer=xe(re)),n.push(T);}}else Qe(S,k.fromStyles),T.onDestroy(()=>Ae(S,k.toStyles)),Er.push(T),p.has(S)&&n.push(T);}),Er.forEach(y=>{let S=s.get(y.element);if(S&&S.length){let T=xe(S);y.setRealPlayer(T);}}),n.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy();});for(let y=0;y<M.length;y++){let S=M[y],T=S[ye];if(ft(S,Wn),T&&T.hasAnimation)continue;let k=[];if(a.size){let _e=a.get(S);_e&&_e.length&&k.push(..._e);let re=this.driver.query(S,Hn,!0);for(let Oe=0;Oe<re.length;Oe++){let q=a.get(re[Oe]);q&&q.length&&k.push(...q);}}let Y=k.filter(_e=>!_e.destroyed);Y.length?Up(this,S,Y):this.processLeaveNode(S);}return M.length=0,Hi.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let S=this.players.indexOf(y);this.players.splice(S,1);}),y.play();}),Hi;}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,i,t,n,s){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a);}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Ut;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c);});}}return(t||n)&&(o=o.filter(a=>!(t&&t!=a.namespaceId||n&&n!=a.triggerName))),o;}_beforeAnimationBuild(e,i,t){let n=i.triggerName,s=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:n;for(let l of i.timelines){let c=l.element,p=c!==s,u=oe(t,c,[]);this._getPreviousPlayers(c,p,o,a,i.toState).forEach(v=>{let f=v.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),v.destroy(),u.push(v);});}Qe(s,i.fromStyles);}_buildAnimation(e,i,t,n,s,o){let a=i.triggerName,l=i.element,c=[],p=new Set(),u=new Set(),g=i.timelines.map(f=>{let m=f.element;p.add(m);let M=m[ye];if(M&&M.removedBeforeQueried)return new ut(f.duration,f.delay);let O=m!==l,R=jp((t.get(m)||Rp).map(B=>B.getRealPlayer())).filter(B=>{let x=B;return x.element?x.element===m:!1;}),V=s.get(m),w=o.get(m),L=Ha(this._normalizer,f.keyframes,V,w),A=this._buildPlayer(f,L,R);if(f.subTimeline&&n&&u.add(m),O){let B=new $t(e,a,m);B.setRealPlayer(A),c.push(B);}return A;});c.forEach(f=>{oe(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Lp(this.playersByQueriedElement,f.element,f));}),p.forEach(f=>de(f,Ua));let v=xe(g);return v.onDestroy(()=>{p.forEach(f=>ft(f,Ua)),Ae(l,i.toStyles);}),u.forEach(f=>{oe(n,f,[]).push(v);}),v;}_buildPlayer(e,i,t){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,t):new ut(e.duration,e.delay);}},$t=class{constructor(e,i,t){this.namespaceId=e,this.triggerName=i,this.element=t,this._player=new ut(),this._containsRealPlayer=!1,this._queuedCallbacks=new Map(),this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,t)=>{i.forEach(n=>pr(e,t,void 0,n));}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1);}getRealPlayer(){return this._player;}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,i){oe(this._queuedCallbacks,e,[]).push(i);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}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(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition();}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e);}};function Lp(r,e,i){let t=r.get(e);if(t){if(t.length){let n=t.indexOf(i);t.splice(n,1);}t.length==0&&r.delete(e);}return t;}function xp(r){return r??null;}function xi(r){return r&&r.nodeType===1;}function Fp(r){return r=="start"||r=="done";}function Va(r,e){let i=r.style.display;return r.style.display=e??"none",i;}function Ga(r,e,i,t,n){let s=[];i.forEach(l=>s.push(Va(l)));let o=[];t.forEach((l,c)=>{let p=new Map();l.forEach(u=>{let g=e.computeStyle(c,u,n);p.set(u,g),(!g||g.length==0)&&(c[ye]=Dp,o.push(c));}),r.set(c,p);});let a=0;return i.forEach(l=>Va(l,s[a++])),o;}function Qa(r,e){let i=new Map();if(r.forEach(a=>i.set(a,[])),e.length==0)return i;let t=1,n=new Set(e),s=new Map();function o(a){if(!a)return t;let l=s.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:n.has(c)?l=t:l=o(c),s.set(a,l),l;}return e.forEach(a=>{let l=o(a);l!==t&&i.get(l).push(a);}),i;}function de(r,e){r.classList?.add(e);}function ft(r,e){r.classList?.remove(e);}function Up(r,e,i){xe(i).onDone(()=>r.processLeaveNode(e));}function jp(r){let e=[];return ol(r,e),e;}function ol(r,e){for(let i=0;i<r.length;i++){let t=r[i];t instanceof gn?ol(t.players,e):e.push(t);}}function zp(r,e){let i=Object.keys(r),t=Object.keys(e);if(i.length!=t.length)return!1;for(let n=0;n<i.length;n++){let s=i[n];if(!e.hasOwnProperty(s)||r[s]!==e[s])return!1;}return!0;}function Wa(r,e,i){let t=i.get(r);if(!t)return!1;let n=e.get(r);return n?t.forEach(s=>n.add(s)):e.set(r,t),i.delete(r),!0;}var gt=class{constructor(e,i,t){this._driver=i,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,s)=>{},this._transitionEngine=new ar(e.body,i,t),this._timelineEngine=new sr(e.body,i,t),this._transitionEngine.onRemovalComplete=(n,s)=>this.onRemovalComplete(n,s);}registerTrigger(e,i,t,n,s){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],p=il(this._driver,s,l,c);if(l.length)throw zc(n,l);c.length&&void 0,a=Cp(n,p,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(i,n,a);}register(e,i){this._transitionEngine.register(e,i);}destroy(e,i){this._transitionEngine.destroy(e,i);}onInsert(e,i,t,n){this._transitionEngine.insertNode(e,i,t,n);}onRemove(e,i,t){this._transitionEngine.removeNode(e,i,t);}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i);}process(e,i,t,n){if(t.charAt(0)=="@"){let[s,o]=xa(t),a=n;this._timelineEngine.command(s,i,o,a);}else this._transitionEngine.trigger(e,i,t,n);}listen(e,i,t,n,s){if(t.charAt(0)=="@"){let[o,a]=xa(t);return this._timelineEngine.listen(o,i,a,s);}return this._transitionEngine.listen(e,i,t,n,s);}flush(e=-1){this._transitionEngine.flush(e);}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players];}whenRenderingDone(){return this._transitionEngine.whenRenderingDone();}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function Bp(r,e){let i=null,t=null;return Array.isArray(e)&&e.length?(i=Qn(e[0]),e.length>1&&(t=Qn(e[e.length-1]))):e instanceof Map&&(i=Qn(e)),i||t?new lr(r,i,t):null;}var mt=class mt{constructor(e,i,t){this._element=e,this._startStyles=i,this._endStyles=t,this._state=0;let n=mt.initialStylesByElement.get(e);n||mt.initialStylesByElement.set(e,n=new Map()),this._initialStyles=n;}start(){this._state<1&&(this._startStyles&&Ae(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(Ae(this._element,this._initialStyles),this._endStyles&&(Ae(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(mt.initialStylesByElement.delete(this._element),this._startStyles&&(Qe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qe(this._element,this._endStyles),this._endStyles=null),Ae(this._element,this._initialStyles),this._state=3);}};mt.initialStylesByElement=new WeakMap();var lr=mt;function Qn(r){let e=null;return r.forEach((i,t)=>{$p(t)&&(e=e||new Map(),e.set(t,i));}),e;}function $p(r){return r==="display"||r==="position";}var Vi=class{constructor(e,i,t,n){this.element=e,this.keyframes=i,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map(),this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer(),this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map();let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i);});}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause();}_convertKeyframesToObject(e){let i=[];return e.forEach(t=>{i.push(Object.fromEntries(t));}),i;}_triggerWebAnimation(e,i,t){return e.animate(this._convertKeyframesToObject(i),t);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play();}pause(){this.init(),this.domPlayer.pause();}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish();}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started;}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time;}getPosition(){return+(this.domPlayer.currentTime??0)/this.time;}get totalTime(){return this._delay+this._duration;}beforeDestroy(){let e=new Map();this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:mr(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0;}},Gi=class{validateStyleProperty(e){return!0;}validateAnimatableStyleProperty(e){return!0;}containsElement(e,i){return Ya(e,i);}getParentElement(e){return dr(e);}query(e,i,t){return Xa(e,i,t);}computeStyle(e,i,t){return mr(e,i);}animate(e,i,t,n,s,o=[]){let a=n==0?"both":"forwards",l={duration:t,delay:n,fill:a};s&&(l.easing=s);let c=new Map(),p=o.filter(v=>v instanceof Vi);lp(t,n)&&p.forEach(v=>{v.currentSnapshot.forEach((f,m)=>c.set(m,f));});let u=sp(i).map(v=>new Map(v));u=cp(e,u,c);let g=Bp(e,u);return new Vi(e,u,l,g);}};var Fi="@",al="@.disabled",Qi=class{constructor(e,i,t,n){this.namespaceId=e,this.delegate=i,this.engine=t,this._onDestroy=n,this.ɵtype=0;}get data(){return this.delegate.data;}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,i){return this.delegate.createElement(e,i);}createComment(e){return this.delegate.createComment(e);}createText(e){return this.delegate.createText(e);}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1);}insertBefore(e,i,t,n=!0){this.delegate.insertBefore(e,i,t),this.engine.onInsert(this.namespaceId,i,e,n);}removeChild(e,i,t){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate);}selectRootElement(e,i){return this.delegate.selectRootElement(e,i);}parentNode(e){return this.delegate.parentNode(e);}nextSibling(e){return this.delegate.nextSibling(e);}setAttribute(e,i,t,n){this.delegate.setAttribute(e,i,t,n);}removeAttribute(e,i,t){this.delegate.removeAttribute(e,i,t);}addClass(e,i){this.delegate.addClass(e,i);}removeClass(e,i){this.delegate.removeClass(e,i);}setStyle(e,i,t,n){this.delegate.setStyle(e,i,t,n);}removeStyle(e,i,t){this.delegate.removeStyle(e,i,t);}setProperty(e,i,t){i.charAt(0)==Fi&&i==al?this.disableAnimations(e,!!t):this.delegate.setProperty(e,i,t);}setValue(e,i){this.delegate.setValue(e,i);}listen(e,i,t){return this.delegate.listen(e,i,t);}disableAnimations(e,i){this.engine.disableAnimations(e,i);}},cr=class extends Qi{constructor(e,i,t,n,s){super(i,t,n,s),this.factory=e,this.namespaceId=i;}setProperty(e,i,t){i.charAt(0)==Fi?i.charAt(1)=="."&&i==al?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,i.slice(1),t):this.delegate.setProperty(e,i,t);}listen(e,i,t){if(i.charAt(0)==Fi){let n=Kp(e),s=i.slice(1),o="";return s.charAt(0)!=Fi&&([s,o]=qp(s)),this.engine.listen(this.namespaceId,n,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,t,a);});}return this.delegate.listen(e,i,t);}};function Kp(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r;}}function qp(r){let e=r.indexOf("."),i=r.substring(0,e),t=r.slice(e+1);return[i,t];}var Wi=class{constructor(e,i,t){this.delegate=e,this.engine=i,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map(),this._cdRecurDepth=0,i.onRemovalComplete=(n,s)=>{s?.removeChild(null,n);};}createRenderer(e,i){let t="",n=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,p=c.get(n);if(!p){let u=()=>c.delete(n);p=new Qi(t,n,this.engine,u),c.set(n,p);}return p;}let s=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c);};return i.data.animation.forEach(a),new cr(this,o,n,this.engine);}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,i,t){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(t));return;}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(s=>{let[o,a]=s;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([i,t]);}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();}};var Gp=(()=>{let e=class e extends gt{constructor(t,n,s){super(t,n,s);}ngOnDestroy(){this.flush();}};e.ɵfac=function(n){return new(n||e)(_(ri),_(We),_(He));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();function Qp(){return new zi();}function Wp(r,e,i){return new Wi(r,e,i);}var ll=[{provide:He,useFactory:Qp},{provide:gt,useClass:Gp},{provide:Vr,useFactory:Wp,deps:[us,gt,nt]}],Hp=[{provide:We,useFactory:()=>new Gi()},{provide:en,useValue:"BrowserAnimations"},...ll],sy=[{provide:We,useClass:hr},{provide:en,useValue:"NoopAnimations"},...ll];function cl(){return Qr("NgEagerAnimations"),[...Hp];}d();h();d();h();function _r(){return[an,cn,ln,{provide:li,useClass:Ss},{provide:Es,useFactory:bs,deps:[ze,an,cn,ln]}];}d();h();function pl(){return[pt,uo];}d();h();var ul=[$e,{provide:ui,useClass:$e},{provide:oo,useClass:$e},{provide:lo,useClass:$e},cs(ps())];d();h();d();h();var dl=(()=>{let e=class e{constructor(t){this._router=t,this.routes={login:"/",access_denied:"not-found"},this.unauthorizedLoginForm=mo;}goToLogin(){this._router.navigate([`/${this.routes.login}`]);}home(t,n){return(n&&n.join().length>1?n:null)||["/"];}goHome(t){this._router.navigate(...As(t));}unauthorizedAllowRegister(){return!0;}unauthorizedAllowDismiss(t){return!0;}};e.ɵfac=function(n){return new(n||e)(_(di));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();d();h();var hl=(()=>{let e=class e{constructor(t){this._api=t;}login(t){return this._api.account.sessions.login(t);}otp(t,n){return this._api.account.sessions.otp(t,n);}me(){return this._api.account.sessions.me();}sudo(t){return fe(()=>"stub");}search(t){return fe(()=>"stub");}sso(t,n){return this._api.account.sessions.sso(t,n);}logout(){return this._api.account.sessions.logout();}resetPassword(t){return this._api.account.sessions.resetPassword(t);}checkPasswordToken(t){return this._api.account.sessions.checkPasswordToken(t);}setPassword(t,n){return this._api.account.sessions.setPassword(t,n);}register(t){return this._api.account.sessions.register(t);}delete(t){return this._api.account.sessions.delete(t);}};e.ɵfac=function(n){return new(n||e)(_($e));},e.ɵprov=C({token:e,factory:e.ɵfac});let r=e;return r;})();var fl=[Ws(),pn,Xs,{provide:$s,useClass:dl},{provide:Ks,useClass:hl},{provide:ct,useClass:pn,multi:!0},{provide:ct,useClass:Ys,multi:!0},{provide:Hs,useClass:Zs}];var Yp={monaco:r=>({bypass:!0,config:[{key:"nehs",name:"Enovacom",cookies:["Nehs_security","sngcookie","isLoggedIn","kd-jwt-patients-8","isAppliMobilePatient"],readMoreUrl:r?.policy_url||"",group:hn.Functional}]}),default:r=>({bypass:!1,config:[{key:"nehs",name:"Enovacom",cookies:["kd-jwt-patients","antibot","invisiblecaptcha"],readMoreUrl:r?.policy_url||"",group:hn.Functional}]})};function ml(){return[cl(),Co([]),Mo([]),Da({maxAge:25,logOnly:ue.production,connectInZone:!0}),gs(Mn,ys({anchorScrolling:"enabled",scrollPositionRestoration:"disabled"}),Qs(Mn,pa)),ul,fl,Fs({environment:ue}),_r(),pl(),go(),{provide:ct,useClass:Ls,multi:!0},{provide:ct,useClass:Us,multi:!0},{provide:De,useClass:la},{provide:Oo,useClass:ua},{provide:Po,useFactory:r=>({apiKey:ue.mapbox_token,language:r.language}),deps:[ci]},{provide:ko,useFactory:()=>({mapbox_token:ue.mapbox_token})},{provide:Io,useFactory:()=>({mapbox_token:ue.mapbox_token})},En(aa),po({cookieServiceContextual:Yp}),js({translations:!0})];}var gl=[ml(),zo("ngsw-worker.js",{enabled:!1}),{provide:jr,multi:!0,useValue(){let r=N(Ne),e=N(os);r.events.pipe(K(i=>i instanceof ms),Ze(Vt)).subscribe(i=>{i.position?e.scrollToPosition(i.position):i.anchor?e.scrollToAnchor(i.anchor):e.scrollToPosition([0,0]);});}}];ue.production&&void 0;document.addEventListener("DOMContentLoaded",()=>{ds(Do,{providers:[gl,zr(pi.forRoot(Lo)),Bs()]}).catch(r=>console.log(r));});/**i18n:13e3da9fc1addf70f0deefc75e09821c2d7f3fff0b877bba179684590738775d*/