PageSourceSearch

https://login.pay.nl/chunk-OCZCJLYS.js

js pay.nl collected 2026-09-24 08:29:37 UTC 84,124 bytes, 3 lines download raw bytes

1import{a as fi}from"./chunk-PQZIAI6B.js";import{b as oe,c as be,d as _i,e as re,f as he}from"./chunk-76BISSJO.js";import{$ as z,$b as gi,Ba as J,Bb as Y,Cb as ai,D as Wt,Da as qt,Ea as Ue,Fa as Ze,Ga as x,Gb as _t,H as O,Ha as m,Hb as de,Ia as b,Ib as Ge,J as Re,Ja as E,Kb as li,L as a,Lb as ci,N as we,O as Yt,Oa as Jt,Ob as di,P as Xt,Pa as ne,Pb as hi,Ra as j,S as K,T as Z,V,W as G,Wb as Ke,X as Q,Xa as ei,Ya as ti,Z as pt,Za as ii,Zb as ui,_ as He,_b as pi,a as je,aa as Ut,ab as D,ac as mi,b as Vt,ba as Zt,bb as $,ca as Gt,cb as ce,d as rn,da as se,db as ni,e as zt,ea as We,fa as Kt,g as le,ga as v,i as jt,ia as Ye,j as te,ja as Xe,ka as ge,la as Oe,lb as oi,m as $t,na as De,o as Ht,oa as gt,pa as I,ra as ie,s as $e,sa as Ce,sb as W,t as ft,ta as mt,tb as ee,ua as Qt,ub as ri,vb as si,xa as ke,za as q,zb as Pe}from"./chunk-YNED5GHW.js";var wt=rn((vt,yt)=>{"use strict";(function(n,i){typeof vt=="object"&&typeof yt<"u"?yt.exports=i():typeof define=="function"&&define.amd?define(i):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=i()})(vt,function(){"use strict";var n=1e3,i=6e4,e=36e5,t="millisecond",o="second",r="minute",s="hour",l="day",f="week",p="month",g="quarter",y="year",L="date",F="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Fe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var h=["th","st","nd","rd"],c=_%100;return"["+_+(h[(c-20)%10]||h[c]||h[0])+"]"}},ht=function(_,h,c){var u=String(_);return!u||u.length>=h?_:""+Array(h+1-u.length).join(c)+_},on={s:ht,z:function(_){var h=-_.utcOffset(),c=Math.abs(h),u=Math.floor(c/60),d=c%60;return(h<=0?"+":"-")+ht(u,2,"0")+":"+ht(d,2,"0")},m:function _(h,c){if(h.date()<c.date())return-_(c,h);
vendor: 4,886 bytes, line 1
1var u=12*(c.year()-h.year())+(c.month()-h.month()),d=h.clone().add(u,p),w=c-d<0,C=h.clone().add(u+(w?-1:1),p);return+(-(u+(c-d)/(w?d-C:C-d))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:p,y,w:f,d:l,D:L,h:s,m:r,s:o,ms:t,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},Se="en",ue={};ue[Se]=Fe;var Ft="$isDayjsObject",ut=function(_){return _ instanceof Ve||!(!_||!_[Ft])},Be=function _(h,c,u){var d;if(!h)return Se;if(typeof h=="string"){var w=h.toLowerCase();ue[w]&&(d=w),c&&(ue[w]=c,d=w);var C=h.split("-");if(!d&&C.length>1)return _(C[0])}else{var R=h.name;ue[R]=h,d=R}return!u&&d&&(Se=d),d||!u&&Se},T=function(_,h){if(ut(_))return _.clone();var c=typeof h=="object"?h:{};return c.date=_,c.args=arguments,new Ve(c)},S=on;S.l=Be,S.i=ut,S.w=function(_,h){return T(_,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var Ve=(function(){function _(c){this.$L=Be(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[Ft]=!0}var h=_.prototype;return h.parse=function(c){this.$d=(function(u){var d=u.date,w=u.utc;if(d===null)return new Date(NaN);if(S.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var C=d.match(B);if(C){var R=C[2]-1||0,P=(C[7]||"0").substring(0,3);return w?new Date(Date.UTC(C[1],R,C[3]||1,C[4]||0,C[5]||0,C[6]||0,P)):new Date(C[1],R,C[3]||1,C[4]||0,C[5]||0,C[6]||0,P)}}return new Date(d)})(c),this.init()},h.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},h.$utils=function(){return S},h.isValid=function(){return this.$d.toString()!==F},h.isSame=function(c,u){var d=T(c);return this.startOf(u)<=d&&d<=this.endOf(u)},h.isAfter=function(c,u){return T(c)<this.startOf(u)},h.isBefore=function(c,u){return this.endOf(u)<T(c)},h.$g=function(c,u,d){return S.u(c)?this[u]:this.set(d,c)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(c,u){var d=this,w=!!S.u(u)||u,C=S.p(c),R=function(pe,H){var ae=S.w(d.$u?Date.UTC(d.$y,H,pe):new Date(d.$y,H,pe),d);return w?ae:ae.endOf(l)},P=function(pe,H){return S.w(d.toDate()[pe].apply(d.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(H)),d)},N=this.$W,A=this.$M,U=this.$D,ye="set"+(this.$u?"UTC":"");switch(C){case y:return w?R(1,0):R(31,11);case p:return w?R(1,A):R(0,A+1);case f:var fe=this.$locale().weekStart||0,xe=(N<fe?N+7:N)-fe;return R(w?U-xe:U+(6-xe),A);case l:case L:return P(ye+"Hours",0);case s:return P(ye+"Minutes",1);case r:return P(ye+"Seconds",2);case o:return P(ye+"Milliseconds",3);default:return this.clone()}},h.endOf=function(c){return this.startOf(c,!1)},h.$set=function(c,u){var d,w=S.p(c),C="set"+(this.$u?"UTC":""),R=(d={},d[l]=C+"Date",d[L]=C+"Date",d[p]=C+"Month",d[y]=C+"FullYear",d[s]=C+"Hours",d[r]=C+"Minutes",d[o]=C+"Seconds",d[t]=C+"Milliseconds",d)[w],P=w===l?this.$D+(u-this.$W):u;if(w===p||w===y){var N=this.clone().set(L,1);N.$d[R](P),N.init(),this.$d=N.set(L,Math.min(this.$D,N.daysInMonth())).$d}else R&&this.$d[R](P);return this.init(),this},h.set=function(c,u){return this.clone().$set(c,u)},h.get=function(c){return this[S.p(c)]()},h.add=function(c,u){var d,w=this;c=Number(c);var C=S.p(u),R=function(A){var U=T(w);return S.w(U.date(U.date()+Math.round(A*c)),w)};if(C===p)return this.set(p,this.$M+c);if(C===y)return this.set(y,this.$y+c);if(C===l)return R(1);if(C===f)return R(7);var P=(d={},d[r]=i,d[s]=e,d[o]=n,d)[C]||1,N=this.$d.getTime()+c*P;return S.w(N,this)},h.subtract=function(c,u){return this.add(-1*c,u)},h.format=function(c){var u=this,d=this.$locale();if(!this.isValid())return d.invalidDate||F;var w=c||"YYYY-MM-DDTHH:mm:ssZ",C=S.z(this),R=this.$H,P=this.$m,N=this.$M,A=d.weekdays,U=d.months,ye=d.meridiem,fe=function(H,ae,Ee,ze){return H&&(H[ae]||H(u,w))||Ee[ae].slice(0,ze)},xe=function(H){return S.s(R%12||12,H,"0")},pe=ye||function(H,ae,Ee){var ze=H<12?"AM":"PM";return Ee?ze.toLowerCase():ze};return w.replace(X,function(H,ae){return ae||(function(Ee){switch(Ee){case"YY":return String(u.$y).slice(-2);case"YYYY":return S.s(u.$y,4,"0");case"M":return N+1;case"MM":return S.s(N+1,2,"0");case"MMM":return fe(d.monthsShort,N,U,3);case"MMMM":return fe(U,N);case"D":return u.$D;case"DD":return S.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return fe(d.weekdaysMin,u.$W,A,2);case"ddd":return fe(d.weekdaysShort,u.$W,A,3);case"dddd":return A[u.$W];case"H":return String(R);case"HH":return S.s(R,2,"0");case"h":return xe(1);case"hh":return xe(2);case"a":return pe(R,P,!0);case"A":return pe(R,P,!1);case"m":return String(P);case"mm":return S.s(P,2,"0");case"s":return String(u.$s);case"ss":return S.s(u.$s,2,"0");case"SSS":return S.s(u.$ms,3,"0");case"Z":return C}return null})(H)||C.replace(":","")})}
1,h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(c,u,d){var w,C=this,R=S.p(u),P=T(c),N=(P.utcOffset()-this.utcOffset())*i,A=this-P,U=function(){return S.m(C,P)};switch(R){case y:w=U()/12;break;case p:w=U();break;case g:w=U()/3;break;case f:w=(A-N)/6048e5;break;case l:w=(A-N)/864e5;break;case s:w=A/e;break;case r:w=A/i;break;case o:w=A/n;break;default:w=A}return d?w:S.a(w)},h.daysInMonth=function(){return this.endOf(p).$D},h.$locale=function(){return ue[this.$L]},h.locale=function(c,u){if(!c)return this.$L;var d=this.clone(),w=Be(c,u,!0);return w&&(d.$L=w),d},h.clone=function(){return S.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},_})(),Bt=Ve.prototype;return T.prototype=Bt,[["$ms",t],["$s",o],["$m",r],["$H",s],["$W",l],["$M",p],["$y",y],["$D",L]].forEach(function(_){Bt[_[1]]=function(h){return this.$g(h,_[0],_[1])}}),T.extend=function(_,h){return _.$i||(_(h,Ve,T),_.$i=!0),T},T.locale=Be,T.isDayjs=ut,T.unix=function(_){return T(1e3*_)},T.en=ue[Se],T.Ls=ue,T.p={},T})});var nn=zt(wt());var Qe=(()=>{class n{constructor(){this.el=a(z),this.renderer=a(Oe),this.heightClass="min-h-40",this.widthClass="w-full",this.bgColor="bg-neutral",this.hasRounding=!0,this.rounding="rounded-2xl",this.customClasses=[]}set skeletonCondition(e){e!==this._skeletonCondition&&(!this._skeletonCondition&&!e||(this._skeletonCondition=e,this._skeletonCondition?this.showSkeletonLoader():this.hideSkeletonLoader()))}ngOnInit(){if(this.el.nativeElement.tagName.toLowerCase()==="img"){this.skeletonCondition=!0;let t=this.el.nativeElement;t.onerror=()=>this.skeletonCondition=!1,t.onload=()=>this.skeletonCondition=!1}}showSkeletonLoader(){let e=this.renderer.createElement("div");this.renderer.addClass(e,"skeleton"),this.renderer.addClass(e,"border"),this.renderer.addClass(e,"border-neutral-8"),this.renderer.addClass(e,"overflow-y-hidden"),this.bgColor&&this.renderer.addClass(e,`!${this.bgColor}`),this.hasRounding&&this.rounding&&this.renderer.addClass(e,this.rounding),this.heightClass&&this.renderer.addClass(e,this.heightClass),this.widthClass&&this.renderer.addClass(e,this.widthClass),this.customClasses?.forEach(r=>{this.renderer.addClass(e,r)});let t=this.el.nativeElement,o=t.parentNode;this.renderer.insertBefore(o,e,t),this.renderer.appendChild(e,t),this.renderer.addClass(t,"hidden")}hideSkeletonLoader(){let e=this.el.nativeElement,t=e.parentNode,o=t.parentNode;this.renderer.insertBefore(o,e,t),this.renderer.removeChild(o,t),this.renderer.removeClass(e,"hidden")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=ie({type:n,selectors:[["","payLibSkeletonLoader",""]],inputs:{skeletonCondition:"skeletonCondition",heightClass:"heightClass",widthClass:"widthClass",bgColor:"bgColor",hasRounding:"hasRounding",rounding:"rounding",customClasses:"customClasses"}})}}return n})();var qe=(()=>{class n{constructor(){this.fallbackLogo="./assets/images/logos/pay_filled.svg"}static{this.logo="./assets/images/logos/pay_filled.svg"}static{this.color="#585fff"}static{this.text="login-page.header.name"}setThemeBasedOnLayout(e){if(!e)return;e.text&&(n.text=e.text),e.logo?n.logo=e.logo:n.logo=this.fallbackLogo;let t=e.color;t===""&&(t="#585fff"),n.color=t,document.documentElement.style.setProperty("--primary-color-100",t),document.documentElement.style.setProperty("--primary-color-110",this.adjustColorBrightness(t,-10)),document.documentElement.style.setProperty("--primary-color-130",this.adjustColorBrightness(t,-30)),document.documentElement.style.setProperty("--primary-color-150",this.adjustColorBrightness(t,-50)),document.documentElement.style.setProperty("--primary-color-190",this.adjustColorBrightness(t,-90))}adjustColorBrightness(e,t){e=e.replace("#","");let o=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16);return t<0?(o=Math.floor(o*(1+t/100)),r=Math.floor(r*(1+t/100)),s=Math.floor(s*(1+t/100))):(o=Math.floor(o*(1-t/100)+255*(t/100)),r
1=Math.floor(r*(1-t/100)+255*(t/100)),s=Math.floor(s*(1-t/100)+255*(t/100))),o=Math.min(255,Math.max(0,o)),r=Math.min(255,Math.max(0,r)),s=Math.min(255,Math.max(0,s)),`#${(o<<16|r<<8|s).toString(16).padStart(6,"0")}`}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Je=(()=>{class n{constructor(){this.el=a(z),this.width=Y(60),this.height=Y(40),this.logo=qe.logo}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-login-logo"]],inputs:{width:[1,"width"],height:[1,"height"]},decls:3,vars:3,consts:[[1,"flex","items-center","justify-center"],["aria-label","Pay website","rel","home"],["alt","PayNL Logo","payLibSkeletonLoader","","heightClass","min-h-full","widthClass","min-w-full",3,"height","src","width"]],template:function(t,o){t&1&&(m(0,"div",0)(1,"a",1),E(2,"img",2),b()()),t&2&&(v(2),x("height",o.height())("src",o.logo,se)("width",o.width()))},dependencies:[Qe],encapsulation:2,changeDetection:0})}}return n})();var Ct;try{Ct=typeof Intl<"u"&&Intl.v8BreakIterator}catch(n){Ct=!1}var me=(()=>{class n{_platformId=a(Zt);isBrowser=this._platformId?hi(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Ct)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var bt;function sn(){if(bt==null){let n=typeof document<"u"?document.head:null;bt=!!(n&&(n.createShadowRoot||n.attachShadow))}return bt}function Xn(n){if(sn()){let i=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Un(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let i=n.shadowRoot.activeElement;if(i===n)break;n=i}return n}function et(n){return n.composedPath?n.composedPath()[0]:n.target}function St(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var tt=new WeakMap,xt=(()=>{class n{_appRef;_injector=a(K);_environmentInjector=a(we);load(e){let t=this._appRef=this._appRef||this._injector.get(ke),o=tt.get(t);o||(o={loaders:new Set,refs:[]},tt.set(t,o),t.onDestroy(()=>{tt.get(t)?.refs.forEach(r=>r.destroy()),tt.delete(t)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(Ge(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function M(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Et(n){return Array.isArray(n)?n:[n]}function vi(n){return n instanceof z?n.nativeElement:n}var an=new Re("cdk-dir-doc",{providedIn:"root",factory:ln});function ln(){return a(Z)}var cn=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function dn(n){let i=n?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?cn.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Rt=(()=>{class n{get value(){return this.valueSignal()}valueSignal=Q("ltr");change=new V;constructor(){let e=a(an,{optional:!0});if(e){let t=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(dn(t||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var _e;function yi(){if(_e==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return _e=!1,_e;if("scrollBehavior"in document.documentElement.style)_e=!0;else{let n=Element.prototype.scrollTo;n?_e=!/\{\s*\[native code\]\s*\}/.test(n.toString()):_e=!1}}return _e}var un=20,Ot=(()=>{class n{_ngZone=a(G);_platform=a(me);_renderer=a(ge).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new te;_scrolledCount=0;
vendor: 46,001 bytes, lines 1-2
1scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=un){return this._platform.isBrowser?new jt(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(ft(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):$t()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe($e(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&t.push(r)}),t}_scrollableContainsElement(e,t){let o=vi(t),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var fn=20,Me=(()=>{class n{_platform=a(me);_listeners;_viewportSize;_change=new te;_document=a(Z);constructor(){let e=a(G),t=a(ge).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[t.listen("window","resize",o),t.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),s=-r.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,l=-r.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0;return{top:s,left:l}}change(e=fn){return e>0?this._change.pipe(ft(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Ie=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Dt=class extends Ie{component;viewContainerRef;injector;projectableNodes;constructor(i,e,t,o){super(),this.component=i,this.viewContainerRef=e,this.injector=t,this.projectableNodes=o}},Te=class extends Ie{templateRef;viewContainerRef;context;injector;constructor(i,e,t,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},kt=class extends Ie{element;constructor(i){super(),this.element=i instanceof z?i.nativeElement:i}},it=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Dt)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Te)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof kt)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},nt=class extends it{outletElement;_appRef;_defaultInjector;constructor(i,e,t){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=t}attachComponentPortal(i){let e;if(i.viewContainerRef){let t=i.injector||i.viewContainerRef.injector,o=t.get(gt,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:t,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let t=this._appRef,o=i.injector||this._defaultInjector||K.NULL,r=o.get(we,t.injector);e=Ge(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0}),t.attachView(e.hostView),this.setDisposeFn(()=>{t.viewCount>0&&t.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,t=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);o!==-1&&e.remove(o)}),this._attachedPortal=i,t}attachDomPortal=i=>{let e=i.element;e.parentNode;let t=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var tr=(()=>{class n extends it{_moduleRef=a(gt,{optional:!0});_document=a(Z);_viewContainerRef=a(De);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let t=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=t.createComponent(e.component,{index:t.length,injector:e.injector||t.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return t!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}attachDomPortal=e=>{let t=e.element;t.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(o,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(t,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(t){return new(t||n)};static \u0275dir=ie({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[mt]})}return n})();var Pt={},bi=(()=>{class n{_appId=a(Ut);getId(e){return this._appId!=="ng"&&(e+=this._appId),Pt.hasOwnProperty(e)||(Pt[e]=0),`${e}${Pt[e]++}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Si(n,...i){return i.length?i.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var xi=yi();function Mi(n){return new ot(n.get(Me),n.get(Z))}var ot=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=M(-this._previousScrollPosition.left),i.style.top=M(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,t=i.style,o=e.style,r=t.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),xi&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),xi&&(t.scrollBehavior=r,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};function Ii(n,i){return new rt(n.get(Ot),n.get(G),n.get(Me),i)}var rt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,t,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=t,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe($e(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ne=class{enable(){}disable(){}attach(){}};function Mt(n,i){return i.some(e=>{let t=n.bottom<e.top,o=n.top>e.bottom,r=n.right<e.left,s=n.left>e.right;return t||o||r||s})}function Ei(n,i){return i.some(e=>{let t=n.top<e.top,o=n.bottom>e.bottom,r=n.left<e.left,s=n.right>e.right;return t||o||r||s})}function Tt(n,i){return new st(n.get(Ot),n.get(Me),n.get(G),i)}var st=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,t,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=t,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();Mt(e,[{width:t,height:o,bottom:o,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ti=(()=>{class n{_injector=a(K);constructor(){}noop=()=>new Ne;close=e=>Ii(this._injector,e);block=()=>Mi(this._injector);reposition=e=>Tt(this._injector,e);static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Le=class{positionStrategy;scrollStrategy=new Ne;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let t of e)i[t]!==void 0&&(this[t]=i[t])}}};var at=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var Ni=(()=>{class n{_attachedOverlays=[];_document=a(Z);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Li=(()=>{class n extends Ni{_ngZone=a(G);_renderer=a(ge).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let t=this._attachedOverlays;for(let o=t.length-1;o>-1;o--)if(t[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>t[o]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=He(n)))(o||n)}})();static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ai=(()=>{class n extends Ni{_platform=a(me);_ngZone=a(G);_renderer=a(ge).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let t=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(t,"pointerdown",this._pointerDownListener,o),r.listen(t,"click",this._clickListener,o),r.listen(t,"auxclick",this._clickListener,o),r.listen(t,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=et(e)};_clickListener=e=>{let t=et(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){let l=r[s];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(Ri(l.overlayElement,t)||Ri(l.overlayElement,o))break;let f=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(e)):f.next(e)}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=He(n)))(o||n)}})();static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Ri(n,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=i;for(;t;){if(t===n)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Fi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=I({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
2`],encapsulation:2,changeDetection:0})}return n})(),Bi=(()=>{class n{_platform=a(me);_containerElement;_document=a(Z);_styleLoader=a(xt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||St()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}let t=this._document.createElement("div");t.classList.add(e),St()?t.setAttribute("platform","test"):this._platform.isBrowser||t.setAttribute("platform","server"),this._document.body.appendChild(t),this._containerElement=t}_loadStyles(){this._styleLoader.load(Fi)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),It=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,e,t,o){this._renderer=e,this._ngZone=t,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",o)}detach(){this._ngZone.runOutsideAngular(()=>{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},lt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new te;_attachments=new te;_detachments=new te;_positionStrategy;_scrollStrategy;_locationChanges=le.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new te;_outsidePointerEvents=new te;_afterNextRenderRef;constructor(i,e,t,o,r,s,l,f,p,g=!1,y,L){this._portalOutlet=i,this._host=e,this._pane=t,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=l,this._location=f,this._outsideClickDispatcher=p,this._animationsDisabled=g,this._injector=y,this._renderer=L,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ye(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=je(je({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Vt(je({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=M(this._config.width),i.height=M(this._config.height),i.minWidth=M(this._config.minWidth),i.minHeight=M(this._config.minHeight),i.maxWidth=M(this._config.maxWidth),i.maxHeight=M(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new It(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,t){let o=Et(e||[]).filter(r=>!!r);o.length&&(t?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=Ye(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},Oi="cdk-overlay-connected-position-bounding-box",pn=/([A-Za-z%]+)$/;function Nt(n,i){return new ct(i,n.get(Me),n.get(Z),n.get(me),n.get(Bi))}var ct=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new te;_resizeSubscription=le.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,t,o,r){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Oi),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,r=[],s;for(let l of this._preferredPositions){let f=this._getOriginPoint(i,o,l),p=this._getOverlayPoint(f,e,l),g=this._getOverlayFit(p,e,t,l);if(g.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(l,f);return}if(this._canFitWithFlexibleDimensions(g,p,t)){r.push({position:l,origin:f,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(f,l)});continue}(!s||s.overlayFit.visibleArea<g.visibleArea)&&(s={overlayFit:g,overlayPoint:p,originPoint:f,position:l,overlayRect:e})}if(r.length){let l=null,f=-1;for(let p of r){let g=p.boundingBoxRect.width*p.boundingBoxRect.height*(p.position.weight||1);g>f&&(f=g,l=p)}this._isPushed=!1,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ve(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Oi),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,t){let o;if(t.originX=="center")o=i.left+i.width/2;else{let s=this._isRtl()?i.right:i.left,l=this._isRtl()?i.left:i.right;o=t.originX=="start"?s:l}e.left<0&&(o-=e.left);let r;return t.originY=="center"?r=i.top+i.height/2:r=t.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,t){let o;t.overlayX=="center"?o=-e.width/2:t.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return t.overlayY=="center"?r=-e.height/2:r=t.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,t,o){let r=ki(e),{x:s,y:l}=i,f=this._getOffset(o,"x"),p=this._getOffset(o,"y");f&&(s+=f),p&&(l+=p);let g=0-s,y=s+r.width-t.width,L=0-l,F=l+r.height-t.height,B=this._subtractOverflows(r.width,g,y),X=this._subtractOverflows(r.height,L,F),Fe=B*X;return{visibleArea:Fe,isCompletelyWithinViewport:r.width*r.height===Fe,fitsInViewportVertically:X===r.height,fitsInViewportHorizontally:B==r.width}}_canFitWithFlexibleDimensions(i,e,t){if(this._hasFlexibleDimensions){let o=t.bottom-e.y,r=t.right-e.x,s=Di(this._overlayRef.getConfig().minHeight),l=Di(this._overlayRef.getConfig().minWidth),f=i.fitsInViewportVertically||s!=null&&s<=o,p=i.fitsInViewportHorizontally||l!=null&&l<=r;return f&&p}return!1}_pushOverlayOnScreen(i,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=ki(e),r=this._viewportRect,s=Math.max(i.x+o.width-r.width,0),l=Math.max(i.y+o.height-r.height,0),f=Math.max(r.top-t.top-i.y,0),p=Math.max(r.left-t.left-i.x,0),g=0,y=0;return o.width<=r.width?g=p||-s:g=i.x<this._viewportMargin?r.left-t.left-i.x:0,o.height<=r.height?y=f||-l:y=i.y<this._viewportMargin?r.top-t.top-i.y:0,this._previousPushAmount={x:g,y},{x:i.x+g,y:i.y+y}}_applyPosition(i,e){if(this._setTransformOrigin(i),this._setOverlayElementStyles(e,i),this._setBoundingBoxStyles(e,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let t=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!gn(this._lastScrollVisibility,t)){let o=new at(i,t);this._positionChanges.next(o)}this._lastScrollVisibility=t}this._lastPosition=i,this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),t,o=i.overlayY;i.overlayX==="center"?t="center":this._isRtl()?t=i.overlayX==="start"?"right":"left":t=i.overlayX==="start"?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${t} ${o}`}_calculateBoundingBoxRect(i,e){let t=this._viewportRect,o=this._isRtl(),r,s,l;if(e.overlayY==="top")s=i.y,r=t.height-s+this._viewportMargin;else if(e.overlayY==="bottom")l=t.height-i.y+this._viewportMargin*2,r=t.height-l+this._viewportMargin;else{let F=Math.min(t.bottom-i.y+t.top,i.y),B=this._lastBoundingBoxSize.height;r=F*2,s=i.y-F,r>B&&!this._isInitialRender&&!this._growAfterOpen&&(s=i.y-B/2)}let f=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,p=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,g,y,L;if(p)L=t.width-i.x+this._viewportMargin*2,g=i.x-this._viewportMargin;else if(f)y=i.x,g=t.right-i.x;else{let F=Math.min(t.right-i.x+t.left,i.x),B=this._lastBoundingBoxSize.width;g=F*2,y=i.x-F,g>B&&!this._isInitialRender&&!this._growAfterOpen&&(y=i.x-B/2)}return{top:s,left:y,bottom:l,right:L,width:g,height:r}}_setBoundingBoxStyles(i,e){let t=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=M(t.height),o.top=M(t.top),o.bottom=M(t.bottom),o.width=M(t.width),o.left=M(t.left),o.right=M(t.right),e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=M(r)),s&&(o.maxWidth=M(s))}this._lastBoundingBoxSize=t,ve(this._boundingBox.style,o)}_resetBoundingBoxStyles(){ve(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ve(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let t={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){let g=this._viewportRuler.getViewportScrollPosition();ve(t,this._getExactOverlayY(e,i,g)),ve(t,this._getExactOverlayX(e,i,g))}else t.position="static";let l="",f=this._getOffset(e,"x"),p=this._getOffset(e,"y");f&&(l+=`translateX(${f}px) `),p&&(l+=`translateY(${p}px)`),t.transform=l.trim(),s.maxHeight&&(o?t.maxHeight=M(s.maxHeight):r&&(t.maxHeight="")),s.maxWidth&&(o?t.maxWidth=M(s.maxWidth):r&&(t.maxWidth="")),ve(this._pane.style,t)}_getExactOverlayY(i,e,t){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t)),i.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;o.bottom=`${s-(r.y+this._overlayRect.height)}px`}else o.top=M(r.y);return o}_getExactOverlayX(i,e,t){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t));let s;if(this._isRtl()?s=i.overlayX==="end"?"left":"right":s=i.overlayX==="end"?"right":"left",s==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`}else o.left=M(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ei(i,t),isOriginOutsideView:Mt(i,t),isOverlayClipped:Ei(e,t),isOverlayOutsideView:Mt(e,t)}}_subtractOverflows(i,...e){return e.reduce((t,o)=>t-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+i-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Et(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof z)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,t=i.height||0;return{top:i.y,bottom:i.y+t,left:i.x,right:i.x+e,height:t,width:e}}};function ve(n,i){for(let e in i)i.hasOwnProperty(e)&&(n[e]=i[e]);return n}function Di(n){if(typeof n!="number"&&n!=null){let[i,e]=n.split(pn);return!e||e==="px"?parseFloat(i):null}return n||null}function ki(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function gn(n,i){return n===i?!0:n.isOriginClipped===i.isOriginClipped&&n.isOriginOutsideView===i.isOriginOutsideView&&n.isOverlayClipped===i.isOverlayClipped&&n.isOverlayOutsideView===i.isOverlayOutsideView}var Pi="cdk-global-overlay-wrapper";function Vi(n){return new dt}var dt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Pi),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:l}=t,f=(o==="100%"||o==="100vw")&&(!s||s==="100%"||s==="100vw"),p=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),g=this._xPosition,y=this._xOffset,L=this._overlayRef.getConfig().direction==="rtl",F="",B="",X="";f?X="flex-start":g==="center"?(X="center",L?B=y:F=y):L?g==="left"||g==="end"?(X="flex-end",F=y):(g==="right"||g==="start")&&(X="flex-start",B=y):g==="left"||g==="start"?(X="flex-start",F=y):(g==="right"||g==="end")&&(X="flex-end",B=y),i.position=this._cssPosition,i.marginLeft=f?"0":F,i.marginTop=p?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=f?"0":B,e.justifyContent=X,e.alignItems=p?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Pi),t.justifyContent=t.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},zi=(()=>{class n{_injector=a(K);constructor(){}global(){return Vi()}flexibleConnectedTo(e){return Nt(this._injector,e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Lt(n,i){n.get(xt).load(Fi);let e=n.get(Bi),t=n.get(Z),o=n.get(bi),r=n.get(ke),s=n.get(Rt),l=t.createElement("div"),f=t.createElement("div");f.id=o.getId("cdk-overlay-"),f.classList.add("cdk-overlay-pane"),l.appendChild(f),e.getContainerElement().appendChild(l);let p=new nt(f,r,n),g=new Le(i),y=n.get(Oe,null,{optional:!0})||n.get(ge).createRenderer(null,null);return g.direction=g.direction||s.value,new lt(p,l,f,g,n.get(G),n.get(Li),t,n.get(li),n.get(Ai),i?.disableAnimations??n.get(Gt,null,{optional:!0})==="NoopAnimations",n.get(we),y)}var mn=(()=>{class n{scrollStrategies=a(Ti);_positionBuilder=a(zi);_injector=a(K);constructor(){}create(e){return Lt(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(t){return new(t||n)};static \u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),_n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],vn=new Re("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=a(K);return()=>Tt(n)}}),Ae=(()=>{class n{elementRef=a(z);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=ie({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),At=(()=>{class n{_dir=a(Rt,{optional:!0});_injector=a(K);_overlayRef;_templatePortal;_backdropSubscription=le.EMPTY;_attachSubscription=le.EMPTY;_detachSubscription=le.EMPTY;_positionSubscription=le.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=a(vn);_disposeOnNavigation=!1;_ngZone=a(G);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=a(Xe),t=a(De);this._templatePortal=new Te(e,t),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_n);let e=this._overlayRef=Lt(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===27&&!this.disableClose&&!Si(t)&&(t.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let o=this._getOriginElement(),r=et(t);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(t)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Le({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(t.width=this.width),(this.height||this.height===0)&&(t.height=this.height),(this.minWidth||this.minWidth===0)&&(t.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){let t=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Nt(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}
2_getOrigin(){return this.origin instanceof Ae?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ae?this.origin.elementRef.nativeElement:this.origin instanceof z?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Wt(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=ie({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",de],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",de],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",de],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",de],push:[2,"cdkConnectedOverlayPush","push",de],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",de]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[pt]})}return n})();var ji=(()=>{class n{constructor(){this.elementRef=a(z),this.outsideClick=new V,this.ignoreClicksOnOverlayLayer=Y(!1)}onClick(e){let t=e.target;this.ignoreClicksOnOverlayLayer()&&document.getElementsByClassName("cdk-overlay-container").item(0)?.contains(t)||this.isOrContainsClickTarget(this.elementRef.nativeElement,t)||this.outsideClick.emit(e)}isOrContainsClickTarget(e,t){return e==t||e.contains(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=ie({type:n,selectors:[["","payLibOutsideClick",""]],hostBindings:function(t,o){t&1&&ne("mousedown",function(s){return o.onClick(s)},Kt)},inputs:{ignoreClicksOnOverlayLayer:[1,"ignoreClicksOnOverlayLayer"]},outputs:{outsideClick:"outsideClick"}})}}return n})();function $i(){try{return localStorage.getItem("lang")??navigator.language?.substring(0,2)??"nl"}catch(n){return"nl"}}function yn(n,i){if(n&1&&E(0,"pay-icon",10),n&2){let e=j(3);x("shape",e.IconNames.CheckmarkFilled)("size","xs")}}function wn(n,i){if(n&1){let e=Jt();m(0,"li",8),ne("click",function(){let o=Yt(e).$implicit,r=j(2);return Xt(r.selectLanguage(o))}),m(1,"div",9),q(2,yn,1,2,"pay-icon",10),m(3,"div",11),D(4),b(),m(5,"div",12),D(6),b()()()}if(n&2){let e=i.$implicit,t=j(2);x("id","lang-"+e.abbreviation),v(2),J(e===t.selectedLanguage?2:-1),v(2),$(e.displayName),v(2),$(e.abbreviation)}}
2function Cn(n,i){if(n&1&&(m(0,"ol",6),Ue(1,wn,7,4,"li",7,qt),b()),n&2){let e=j();v(),Ze(e.languages)}}var Hi=(()=>{class n{constructor(){this._translateService=a(oe),this._title=a(ui),this._activatedRoute=a(pi),this._router=a(mi),this.selectedLanguageChange=new V,this.languages=new Array({displayName:"Nederlands",abbreviation:"NL",locale:"nl_NL"},{displayName:"Deutsch",abbreviation:"DE",locale:"de_DE"},{displayName:"Fran\xE7ais",abbreviation:"FR",locale:"fr_FR"},{displayName:"English",abbreviation:"EN",locale:"en_GB"}),this.selectedLanguage=this.languages[0],this.isOpen=!1,this.IconNames=re;let e=$i();this.selectedLanguage=this.languages.find(t=>t.abbreviation.toLowerCase()===e)??this.languages[0],this._translateService.currentLang===void 0&&this.selectLanguage(this.selectedLanguage),this._translateService.onLangChange.subscribe(t=>{this.selectedLanguage=this.languages.find(o=>o.abbreviation.toLowerCase()===t.lang)??this.languages[0],this.setPageTitle()})}selectLanguage(e){let t=e.abbreviation.toLowerCase();this._translateService.use(t),this.selectedLanguage=e,localStorage.setItem("lang",t),this.isOpen=!1}setPageTitle(){let e=this._activatedRoute.snapshot.routeConfig?.children?.map(t=>t.children?.find(o=>this._router.routerState.snapshot.url.includes(o.path??"")));if(e&&e[0]&&e[0].title&&typeof e[0].title=="string"){let t=e[0].title;this._translateService.get(t).subscribe({next:o=>{this._title.setTitle(o)}})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-lib-language-selector"]],outputs:{selectedLanguageChange:"selectedLanguageChange"},decls:7,vars:6,consts:[["trigger","cdkOverlayOrigin"],[1,"-mb-[2px]","mr-[0.075rem]","flex","flex-row","items-center","text-xs","text-neutral-100"],["aria-label","Select language","cdkOverlayOrigin","","id","lang-select-button","type","button",1,"flex","flex-row","items-center",3,"click"],[1,"mb-0.25","mr-1","text-sm"],[3,"shape","size"],["payLibOutsideClick","","cdkConnectedOverlay","","id","lang-selector",3,"outsideClick","cdkConnectedOverlayOpen","cdkConnectedOverlayOrigin","ignoreClicksOnOverlayLayer"],[1,"mt-2","flex","w-auto","min-w-[210px]","flex-col","rounded-lg","border","border-neutral-5","bg-neutral-0","text-sm","shadow-select","drop-shadow"],["tabindex","0","role","menuitem",1,"last:border-0;","cursor-pointer","border-b","border-neutral-5","hover:bg-neutral-5",3,"id"],["tabindex","0","role","menuitem",1,"last:border-0;","cursor-pointer","border-b","border-neutral-5","hover:bg-neutral-5",3,"click","id"],[1,"flex","flex-row","items-center","px-7","py-3"],[1,"mr-2","w-6","text-primary-100",3,"shape","size"],[1,"flex-grow"],[1,"ml-2","text-neutral-60"]],template:function(t,o){if(t&1&&(m(0,"div",1)(1,"button",2,0),ne("click",function(){return o.isOpen=!o.isOpen}),m(3,"span",3),D(4),b(),E(5,"pay-icon",4),b()(),Qt(6,Cn,3,0,"ng-template",5),ne("outsideClick",function(){return o.isOpen=!1})),t&2){let r=ii(2);v(4),$(o.selectedLanguage.abbreviation),v(),x("shape",o.IconNames.ChevronDown)("size","xs"),v(),x("cdkConnectedOverlayOpen",o.isOpen)("cdkConnectedOverlayOrigin",r)("ignoreClicksOnOverlayLayer",!0)}},dependencies:[At,Ae,ji,he],encapsulation:2,changeDetection:0})}}return n})();var Wi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-login-topbar"]],decls:2,vars:0,consts:[[1,"flex","w-full","justify-end"]],template:function(t,o){t&1&&(m(0,"div",0),E(1,"pay-lib-language-selector"),b())},dependencies:[Hi],encapsulation:2,changeDetection:0})}}return n})();var Ui=zt(wt());var Yi=(()=>{class n{transform(e){return e.map(t=>t.name).join(", ")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275pipe=Ce({name:"componentsToText",type:n,pure:!0})}}return n})();var Xi=(()=>{class n{transform(e,t){let o=new Date(e),r=t?new Date(t):void 0,s=f=>{let p=f.getHours().toString().padStart(2,"0"),g=f.getMinutes().toString().padStart(2,"0");return`${p}:${g}`},l=s(o);return r&&(l+=" - "+s(r)),l}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275pipe=Ce({name:"formatScheduledTime",type:n,pure:!0})}}return n})();
2function bn(n,i){if(n&1&&(m(0,"span",8),E(1,"pay-icon",9),m(2,"span",13),D(3),W(4,"formatScheduledTime"),b()()),n&2){let e=j(),t=j();v(),x("shape",t.IconNames.Timer)("size","sm"),v(2),$(ri(4,3,e.scheduled_for,e.scheduled_until))}}function Sn(n,i){if(n&1&&(D(0),W(1,"translate"),W(2,"componentsToText")),n&2){let e=j();ni(" ",ee(1,2,"status.affected-components"),"",ee(2,4,e.components)," ")}}function xn(n,i){if(n&1&&D(0),n&2){let e=j(2);ce(" ",e.description()," ")}}function En(n,i){if(n&1&&(m(0,"a",0)(1,"div",1)(2,"span",2),D(3),b(),m(4,"span",3),D(5),b()(),E(6,"div",4),m(7,"div",5)(8,"span",6),D(9),b(),m(10,"div",7),q(11,bn,5,6,"span",8),m(12,"span",8),E(13,"pay-icon",9),m(14,"span",10),q(15,Sn,3,6)(16,xn,1,1),b()()()(),m(17,"div",11),E(18,"pay-icon",12),b()()),n&2){let e=i,t=j();x("href",e.shortlink,se);let o=t.dayjs(e.scheduled_for);v(3),$(t.getMonthName(o.month())),v(2),$(o.date()),v(4),$(e.name),v(2),J(e.scheduled_for?11:-1),v(2),x("shape",t.IconNames.Scope)("size","sm"),v(2),J(e.components&&e.components.length>0?15:16),v(3),x("size","md")("shape",t.IconNames.ChevronRight)}}var Zi=(()=>{class n{constructor(){this._translate=a(oe),this.incident=Y(),this.IconNames=re,this.dayjs=Ui.default,this.description=Pe(()=>this.incident()?.incident_updates.at(0)?.body??"")}getMonthName(e){return this._translate.instant("general.months.short."+e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-login-incident-entry"]],inputs:{incident:[1,"incident"]},decls:1,vars:1,consts:[["target","_blank",1,"flex","max-h-fit","flex-row","items-center","rounded-2xl","rounded-bl-none","border-2","border-maintenance-text-secondary","border-opacity-40","bg-maintenance-bg","p-4","px-6","hover:opacity-80",3,"href"],[1,"flex","max-h-fit","flex-col","items-center","pr-6"],[1,"text-lg","text-maintenance-text-secondary"],[1,"font-heading","text-4xl","text-maintenance-text-primary"],[1,"h-20","w-0","border","border-maintenance-text-secondary","opacity-40"],[1,"flex","max-h-fit","grow","flex-col","pl-6"],[1,"truncate","break-all","font-heading","font-semibold","text-maintenance-text-primary"],[1,"flex","flex-col","gap-2","pt-2"],[1,"flex","flex-row","items-center","gap-2","overflow-hidden","text-ellipsis","break-words","text-sm"],[1,"text-maintenance-text-primary",3,"shape","size"],[1,"line-clamp-1","text-maintenance-text-secondary"],[1,"-mr-4","-mt-16"],[1,"text-maintenance-text-primary",3,"size","shape"],[1,"text-maintenance-text-secondary"]],template:function(t,o){if(t&1&&q(0,En,19,10,"a",0),t&2){let r;J((r=o.incident())?0:-1,r)}},dependencies:[he,be,Yi,Xi],encapsulation:2})}}return n})();var Gi=(()=>{class n{constructor(){this.changeDetectorRef=a(_t),this.ngZone=a(G),this.translate=a(oe),this.timer=void 0}transform(e){if(!e)return"";this.removeTimer();let t=new Date(e),o=new Date;if(isNaN(t.getTime()))return"";let r=Math.round((o.getTime()-t.getTime())/1e3),s=r<0,l=Math.abs(r),f=this.getSecondsUntilUpdate(l)*1e3;this.timer=this.ngZone.runOutsideAngular(()=>window?.setTimeout(()=>{this.ngZone.run(()=>this.changeDetectorRef.markForCheck())},f))??null;let p=this.getRelativeTimeString(l,s);return p.charAt(0).toUpperCase()+p.slice(1)}ngOnDestroy(){this.removeTimer()}getRelativeTimeString(e,t){let o=t?this.translate.instant("date-ago.in"):"",r=t?"":this.translate.instant("date-ago.ago"),s=Math.floor(e/60),l=Math.floor(s/60),f=Math.floor(l/24),p=Math.floor(f/30.416),g=Math.floor(f/365);if(g>0){let y=g===1?this.translate.instant("date-ago.year"):this.translate.instant("date-ago.years");return`${o} ${g} ${y} ${r}`}else if(p>=2){let y=p===1?this.translate.instant("date-ago.month"):this.translate.instant("date-ago.months");return`${o} ${p} ${y} ${r}`}else{if(f>=34)return`${o} ${this.translate.instant("date-ago.about_a_month")} ${r}`;if(f>=2){let y=f===1?this.translate.instant("date-ago.day"):this.translate.instant("date-ago.days");return`${o} ${f} ${y} ${r}`}else{if(l>=24)return`${o}${this.translate.instant("date-ago.about_a_day")} ${r}`;if(l>=2){let y=l===1?this.translate.instant("date-ago.hour"):this.translate.instant("date-ago.hours");return`${o} ${l} ${y} ${r}`}else{if(s>=45)return`${o} ${this.translate.instant("date-ago.about_an_hour")} ${r}`;if(s>=2){let y=s===1?this.translate.instant("date-ago.minute"):this.translate.instant("date-ago.minutes");return`${o} ${s} ${y} ${r}`}else return s>=1?`${o} ${this.translate.instant("date-ago.about_a_minute")} ${r}`:`${o} ${this.translate.instant("date-ago.a_few_seconds")} ${r}`}}}}removeTimer(){this.timer!==null&&(window?.clearTimeout(this.timer),this.timer=void 0)}getSecondsUntilUpdate(e){return e<60?2:e<3600?30:e<86400?300:3600}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275pipe=Ce({name:"dateAgo",type:n,pure:!1})}}return n})();
2function Rn(n,i){if(n&1&&(m(0,"a",0),E(1,"img",1),m(2,"div",2)(3,"span",3),D(4),b(),m(5,"span",4),D(6),b(),m(7,"span",5),D(8),W(9,"dateAgo"),b()(),m(10,"div",6)(11,"div",7),E(12,"pay-icon",8),b()()()),n&2){let e=i,t=j();x("href",e.link,se),v(),x("src",e.imageSrc,se)("alt",e.title),v(3),$(e.title),v(2),$(e.summary),v(2),$(ee(9,8,e.date)),v(4),x("size","md")("shape",t.IconNames.ChevronRight)}}var Ki=(()=>{class n{constructor(){this.newsItem=Y(),this.IconNames=re}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-login-news-item"]],inputs:{newsItem:[1,"newsItem"]},decls:1,vars:1,consts:[["target","_blank",1,"relative","flex","flex-row","gap-2","rounded-2xl","rounded-bl-md","border","border-neutral-16","bg-neutral-0","p-2","transition","duration-300","ease-in-out","hover:drop-shadow-lg",3,"href"],[1,"aspect-square","h-40","w-40","rounded-2xl","rounded-bl-md","object-cover",3,"src","alt"],[1,"flex","flex-col","gap-2","p-2"],[1,"line-clamp-2","font-heading","text-lg","font-medium"],[1,"line-clamp-2","pr-4","text-sm","text-neutral-80"],[1,"text-sm","text-neutral-60"],[1,"absolute","bottom-2","right-2","flex","flex-col","justify-end"],[1,"rounded-xl","rounded-bl-none","bg-primary-base","p-2","text-neutral-0"],[3,"size","shape"]],template:function(t,o){if(t&1&&q(0,Rn,13,10,"a",0),t&2){let r;J((r=o.newsItem())?0:-1,r)}},dependencies:[he,Gi],encapsulation:2})}}return n})();var On=(n,i)=>i.id;function Dn(n,i){if(n&1&&E(0,"pay-login-news-item",2),n&2){let e=i.$implicit;x("newsItem",e)}}var Qi=(()=>{class n{constructor(){this.newsItems=Y([]),this.sliceLength=Q(this.getNumForScreenHeight(document.documentElement.clientHeight))}onResize(){this.sliceLength.set(this.getNumForScreenHeight(document.documentElement.clientHeight))}getNumForScreenHeight(e){return e>1e3?3:e>800?2:1}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-login-news-list"]],hostBindings:function(t,o){t&1&&ne("resize",function(){return o.onResize()},We)},inputs:{newsItems:[1,"newsItems"]},decls:8,vars:7,consts:[[1,"text-md","font-heading"],[1,"mt-4","flex","max-h-fit","flex-col","gap-4","overflow-y-auto"],[3,"newsItem"]],template:function(t,o){t&1&&(m(0,"div")(1,"span",0),D(2),W(3,"translate"),b(),m(4,"div",1),Ue(5,Dn,1,1,"pay-login-news-item",2,On),W(7,"slice"),b()()),t&2&&(v(2),$(ee(3,1,"status.news")),v(3),Ze(si(7,3,o.newsItems(),0,o.sliceLength())))},dependencies:[Ki,be,di],encapsulation:2})}}return n})();var qi=(()=>{class n{constructor(){this.translateService=a(oe),this.incidents=Y(),this.value=Pe(()=>{if(!this.incidents)return this.translateService.instant("status.retrieval-error");if(this.incidents()?.length===0)return this.translateService.instant("status.all-good");let e=this.incidents()?.flatMap(t=>t.components?.map(o=>o.name)).filter((t,o,r)=>r.indexOf(t)===o)??[];return e.length<=4?this.translateService.instant("status.problems_with")+e.slice(0,4).join(", "):this.translateService.instant("status.problems_with")+e.slice(0,4).join(", ")+this.translateService.instant("status.and_x",{others:e.length-4})}),this.colorSchemes=Pe(()=>this.incidents()?this.incidents()?.length===0?"bg-success-20 text-success-150 border-success-150":this.incidents()?.find(e=>e.impact==="critical")?"bg-negative-25 text-negative-150 border-negative-150":"bg-warning-30 text-warning-150 border-warning-150":""),this.IconNames=re}openLink(){let e=this.incidents();return!e||e.length===0?"https://status.pay.nl":e[e.length-1].shortlink}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-login-server-status"]],inputs:{incidents:[1,"incidents"]},decls:4,vars:6,consts:[["target","_blank",1,"mt-4","flex","w-full","cursor-pointer","flex-row","items-center","justify-between","rounded-2xl","rounded-bl-md","border-2","border-opacity-50","p-2","pl-4","hover:opacity-80",3,"ngClass","href"],[3,"size","shape"]],template:function(t,o){t&1&&(m(0,"a",0),D(1),m(2,"div"),E(3,"pay-icon",1),b()()),t&2&&(x("href",oi(o.openLink()),se)("ngClass",o.colorSchemes()),v(),ce(" ",o.value()," "),v(2),x("size","md")("shape",o.IconNames.ChevronRight))},dependencies:[he,ci],encapsulation:2})}}return n})();var Ji=(()=>{class n{constructor(){this._http=a(Ke),this.statusPageId=fi.statusPageId}getIncidents(){return this._http.get(`/api/v2/status/${this.statusPageId}/incidents`)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var en=(()=>{class n{constructor(){this._httpClient=a(Ke)}getAll(e){return this._httpClient.get(this.getPath(e)).pipe(Ht(t=>(t.results=t.results.map(o=>
2(o.contentType=o.slug.includes("cases")?"case":"news",o)),t)))}getPath(e,t=void 0){let o="v2/news",r=`?lang=${e}`;return t?`${o}/item${r}&itemId=${t}`:`${o}${r}`}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function kn(n,i){n&1&&(m(0,"span",18),D(1),W(2,"translate"),b(),m(3,"div",19),E(4,"pay-login-incident-entry",20),b()),n&2&&(v(),ce(" ",ee(2,2,"status.scheduled-maintenance")," "),v(3),x("incident",i))}function Pn(n,i){if(n&1&&(m(0,"div",17)(1,"div",21),E(2,"pay-login-server-status",8),b()()),n&2){let e=j();v(2),x("incidents",e.activeIncidents())("skeletonCondition",e.loadingIncidents())}}var tn=class n{static{this.headerText=Q(qe.text)}constructor(){this.ss=a(Ji),this._news=a(en),this._lang=a(oe),this._headerText=n.headerText,this.activeIncidents=Q([]),this.loadingIncidents=Q(!0),this.plannedIncident=Q(void 0),this.logoComponent=ai(Je),this.newsItems=Q([]),this.IconNames=re,this._lang.onLangChange.subscribe(()=>{this.ngOnInit()})}ngOnInit(){this.getNews(),this.ss.getIncidents().subscribe({next:i=>{this.activeIncidents.set(i.filter(e=>e.status==="investigating"||e.status==="identified"||e.status==="monitoring").filter(e=>e.impact==="none"||e.impact==="minor"||e.impact==="major"||e.impact==="critical").sort((e,t)=>e.created_at<t.created_at?1:-1)),this.plannedIncident.set(i.filter(e=>(0,nn.default)(e.scheduled_for).isAfter(new Date)).filter(e=>e.impact==="maintenance").sort((e,t)=>e.scheduled_for>t.scheduled_for?1:-1)[0]),this.loadingIncidents.set(!1)}})}getNews(){this._news.getAll(this._lang.getCurrentLang()).subscribe({next:i=>{this.newsItems.set(i.results.map(e=>({date:new Date(e.publishDate),title:e.htmlTitle,summary:e.metaDescription,imageSrc:e.featuredImage,id:e.id,link:e.url})))}})}onResize(){document.documentElement.clientHeight<850?this.logoComponent().el.nativeElement.classList.add("hidden"):this.logoComponent().el.nativeElement.classList.remove("hidden")}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=I({type:n,selectors:[["pay-login-login-layout"]],viewQuery:function(e,t){e&1&&ei(t.logoComponent,Je,5),e&2&&ti()},hostBindings:function(e,t){e&1&&ne("resize",function(){return t.onResize()},We)},decls:25,vars:13,consts:[[1,"absolute","right-16","top-8"],[1,"grid","h-full","grid-cols-1","xl:grid-cols-2"],[1,"hidden","flex-col","items-center","gap-4","bg-secondary-5","xl:flex","xl:px-5","2xl:px-20"],[1,"flex","w-[80%]","grow","flex-col","pb-5","sm:pt-20"],[1,"flex","min-w-full","flex-grow","flex-col","justify-self-start"],[3,"newsItems"],[1,"justify-self-end","bg-secondary-5","py-2"],[1,"text-md","font-heading"],["payLibSkeletonLoader","","heightClass","min-h-20",3,"incidents","skeletonCondition"],[1,"relative","gap-3","justify-self-end","pt-3"],[1,"flex","h-full","flex-col"],[1,"flex","h-full","flex-col","justify-center"],[1,"flex","flex-col","items-center","justify-center","gap-4","overflow-clip"],[1,"relative","w-16","flex-1","overflow-hidden","md:w-24"],[3,"width","height"],[1,"hidden","overflow-hidden","font-heading","text-xl","font-medium","xs:text-xl","sm:block","sm:text-2xl","lg:text-3xl"],[1,"w-full","max-w-[505px]","px-6"],[1,"flex","w-full","justify-center","justify-self-end","pb-10"],[1,"text-md","w-full","pt-4","font-heading"],[1,"pt-4"],[1,"w-full",3,"incident"],[1,"w-full","max-w-[460px]","justify-self-end"]],template:function(e,t){if(e&1&&(E(0,"pay-login-topbar",0),m(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),E(5,"pay-login-news-list",5),b(),m(6,"div",6)(7,"span",7),D(8),W(9,"translate"),b(),m(10,"div"),E(11,"pay-login-server-status",8),b()(),m(12,"div",9),q(13,kn,5,4),b()()(),m(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13),E(18,"pay-login-logo",14),b(),m(19,"span",15),D(20),W(21,"translate"),b(),m(22,"div",16),E(23,"router-outlet"),b()()(),q(24,Pn,3,2,"div",17),b()()),e&2){let o;v(5),x("newsItems",t.newsItems()),v(3),ce(" ",ee(9,9,"status.api-status")," "),v(3),x("incidents",t.activeIncidents())("skeletonCondition",t.loadingIncidents()),v(2),J((o=t.plannedIncident())?13:-1,o),v(5),x("width",90)("height",60),v(2),ce(" ",ee(21,11,t._headerText())," "),v(4),J(t.newsItems().length===0?24:-1)}},dependencies:[gi,_i,Je,Wi,qi,Qe,Qi,Zi,be],encapsulation:2,changeDetection:0})}};export{$i as a,Qe as b,qe as c,Je as d,me as e,Xn as f,Un as g,et as h,xt as i,vi as j,Rt as k,Dt as l,Te as m,it as n,tr as o,bi as p,Si as q,Mi as r,Le as s,Bi as t,lt as u,Vi as v,Lt as w,mn as x,Gi as y,tn as z};
3//# sourceMappingURL=chunk-OCZCJLYS.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.