import{$a as ge,Aa as Zi,Ba as _e,Bb as oe,Cd as bn,Eb as Te,Fa as $i,Gb as F,H as W,Ha as O,Hb as Je,I as Ze,Ia as m,Ic as Kt,Ja as qi,Jd as wn,Kb as q,Kc as mn,Kd as ut,La as T,Lb as Xt,Lc as gn,Ld as En,Ma as g,Mc as vn,Md as Cn,Na as Wt,Nd as qt,Ob as U,Oc as rt,Od as k,Pa as X,Pb as A,Pc as at,Q as pe,Qb as S,Qc as lt,R as ne,Rd as ft,Sa as qe,Sb as ke,Ta as me,Td as Sn,U as De,Ua as Yt,Ud as In,Vc as ct,Vd as we,Wa as y,Wc as ae,Wd as Dn,Xa as Re,Xb as Gt,Xd as On,Ya as Qi,Yb as dn,Yc as ht,Za as se,Zb as un,Zc as Zt,_ as Ui,_a as Ji,_b as et,_c as $t,a as P,ab as en,ae as Rn,bb as Ae,c as te,ca as Wi,cc as re,ce as An,d as Fi,da as $e,e as _,eb as Qe,f as Bi,fa as Oe,fb as ve,ga as Yi,gb as ye,h as Vi,ha as D,hb as tn,hc as be,i as Hi,ia as Xi,ib as nn,ja as Gi,jb as sn,jc as fn,kb as on,lb as rn,lc as pn,ld as dt,mb as an,nb as ln,oa as z,ob as G,p as L,qa as Y,qc as _n,qe as Mn,r as Z,ra as Ki,rc as tt,sa as f,sc as it,se as Tn,ta as R,te as kn,uc as nt,v as ie,va as v,vc as st,w as ji,wa as b,wb as $,wc as ot,xa as a,xb as Me,yb as cn,z as zi,zb as hn,zd as yn}from"./chunk-O7RN3KYY.js";import{b as xn,e as Pn}from"./chunk-MPPP2QUX.js";import{a as h}from"./chunk-ZE2KCNEA.js";import{a as M,b as zt,j as Ut}from"./chunk-CEWFFWI2.js";h();h();var xe=class{_doc;constructor(i){this._doc=i}manager},pt=(()=>{class n extends xe{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s,o){return e.addEventListener(t,s,o),()=>this.removeEventListener(e,t,s,o)}removeEventListener(e,t,s,o){return e.removeEventListener(t,s,o)}static \u0275fac=function(t){return new(t||n)(b(m))};static \u0275prov=f({token:n,factory:n.\u0275fac})}return n})(),gt=new v(""),ti=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(r=>{r.manager=this});let s=e.filter(r=>!(r instanceof pt));this._plugins=s.slice().reverse();let o=e.find(r=>r instanceof pt);o&&this._plugins.push(o)}addEventListener(e,t,s,o){return this._findPluginFor(t).addEventListener(e,t,s,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new z(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||n)(b(gt),b(g))};static \u0275prov=f({token:n,factory:n.\u0275fac})}return n})(),Qt="ng-app-id";function Nn(n){for(let i of n)i.remove()}function Ln(n,i){let e=i.createElement("style");return e.textContent=n,e}function Zs(n,i,e,t){let s=n.head?.querySelectorAll(`style[${Qt}="${i}"],link[${Qt}="${i}"]`);if(s)for(let o of s)o.removeAttribute(Qt),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function ei(n,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var ii=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,s,o={}){this.doc=e,this.appId=t,this.nonce=s,Zs(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let s of e)this.addUsage(s,this.inline,Ln);t?.forEach(s=>this.addUsage(s,this.external,ei))}removeStyles(e,t){for(let s of e)this.removeUsage(s,this.inline);t?.forEach(s=>this.removeUsage(s,this.external))}addUsage(e,t,s){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(r=>this.addElement(r,s(e,this.doc)))})}removeUsage(e,t){let s=t.get(e);s&&(s.usage--,s.usage<=0&&(Nn(s.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Nn(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:s}]of this.inline)s.push(this.addElement(e,Ln(t,this.doc)));for(let[t,{elements:s}]of this.external)s.push(this.addElement(e,ei(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||n)(b(m),b(se),b(Ae,8),b(ge))};static \u0275prov=f({token:n,factory:n.\u0275fac})}return n})(),Jt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ni=/%COMP%/g;var Bn="%COMP%",$s=`_nghost-${Bn}`,qs=`_ngcontent-${Bn}`,Qs=!0,Js=new v("",{factory:()=>Qs});function eo(n){return qs.replace(ni,n)}function to(n){return $s.replace(ni,n)}function Vn(n,i){return i.map(e=>e.replace(ni,n))}var si=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,t,s,o,r,l,c=null,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=r,this.ngZone=l,this.nonce=c,this.tracingService=d,this.defaultRenderer=new Pe(e,r,l,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let s=this.getOrCreateRenderer(e,t);return s instanceof mt?s.applyToHost(e):s instanceof Ne&&s.applyStyles(),s}getOrCreateRenderer(e,t){let s=this.rendererByCompId,o=s.get(t.id);if(!o){let r=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.tracingService;switch(t.encapsulation){case Qe.Emulated:o=new mt(c,d,t,this.appId,u,r,l,p);break;case Qe.ShadowDom:return new _t(c,e,t,r,l,this.nonce,p,d);case Qe.ExperimentalIsolatedShadowDom:return new _t(c,e,t,r,l,this.nonce,p);default:o=new Ne(c,d,t,u,r,l,p);break}s.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||n)(b(ti),b(ii),b(se),b(Js),b(m),b(g),b(Ae),b(hn,8))};static \u0275prov=f({token:n,factory:n.\u0275fac})}return n})(),Pe=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,t,s){this.eventManager=i,this.doc=e,this.ngZone=t,this.tracingService=s}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(Jt[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(Fn(i)?i.content:i).appendChild(e)}insertBefore(i,e,t){i&&(Fn(i)?i.content:i).insertBefore(e,t)}removeChild(i,e){e.remove()}selectRootElement(i,e){let t=typeof i=="string"?this.doc.querySelector(i):i;if(!t)throw new z(-5104,!1);return e||(t.textContent=""),t}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,t,s){if(s){e=s+":"+e;let o=Jt[s];o?i.setAttributeNS(o,e,t):i.setAttribute(e,t)}else i.setAttribute(e,t)}removeAttribute(i,e,t){if(t){let s=Jt[t];s?i.removeAttributeNS(s,e):i.removeAttribute(`${t}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,t,s){s&(Me.DashCase|Me.Important)?i.style.setProperty(e,t,s&Me.Important?"important":""):i.style[e]=t}removeStyle(i,e,t){t&Me.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,t){i!=null&&(i[e]=t)}setValue(i,e){i.nodeValue=e}listen(i,e,t,s){if(typeof i=="string"&&(i=we().getGlobalEventTarget(this.doc,i),!i))throw new z(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(i,e,o)),this.eventManager.addEventListener(i,e,o,s)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function Fn(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var _t=class extends Pe{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,t,s,o,r,l,c){super(i,s,o,l),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=t.styles;d=Vn(t.id,d);for(let p of d){let E=document.createElement("style");r&&E.setAttribute("nonce",r),E.textContent=p,this.shadowRoot.appendChild(E)}let u=t.getExternalStyles?.();if(u)for(let p of u){let E=ei(p,s);r&&E.setAttribute("nonce",r),this.shadowRoot.appendChild(E)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,t){return super.insertBefore(this.nodeOrShadowRoot(i),e,t)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Ne=class extends Pe{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,t,s,o,r,l,c){super(i,o,r,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=s;let d=t.styles;this.styles=c?Vn(c,d):d,this.styleUrls=t.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&cn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},mt=class extends Ne{contentAttr;hostAttr;constructor(i,e,t,s,o,r,l,c){let d=s+"-"+t.id;super(i,e,t,o,r,l,c,d),this.contentAttr=eo(d),this.hostAttr=to(d)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let t=super.createElement(i,e);return super.setAttribute(t,this.contentAttr,""),t}};var vt=class n extends On{supportsDOMEvents=!0;static makeCurrent(){Dn(new n)}onAndCancel(i,e,t,s){return i.addEventListener(e,t,s),()=>{i.removeEventListener(e,t,s)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=io();return e==null?null:no(e)}resetBaseElement(){Le=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Sn(document.cookie,i)}},Le=null;function io(){return Le=Le||document.head.querySelector("base"),Le?Le.getAttribute("href"):null}function no(n){return new URL(n,document.baseURI).pathname}var yt=class{addToWindow(i){Y.getAngularTestability=(t,s=!0)=>{let o=i.findTestabilityInTree(t,s);if(o==null)throw new z(5103,!1);return o},Y.getAllAngularTestabilities=()=>i.getAllTestabilities(),Y.getAllAngularRootElements=()=>i.getAllRootElements();let e=t=>{let s=Y.getAllAngularTestabilities(),o=s.length,r=function(){o--,o==0&&t()};s.forEach(l=>{l.whenStable(r)})};Y.frameworkStabilizers||(Y.frameworkStabilizers=[]),Y.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,t){if(e==null)return null;let s=i.getTestability(e);return s??(t?we().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},so=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac})}return n})(),Hn=["alt","control","meta","shift"],oo={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ro={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},jn=(()=>{class n extends xe{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,t,s,o){let r=n.parseEventName(t),l=n.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>we().onAndCancel(e,r.domEventName,l,o))}static parseEventName(e){let t=e.toLowerCase().split("."),s=t.shift();if(t.length===0||!(s==="keydown"||s==="keyup"))return null;let o=n._normalizeKey(t.pop()),r="",l=t.indexOf("code");if(l>-1&&(t.splice(l,1),r="code."),Hn.forEach(d=>{let u=t.indexOf(d);u>-1&&(t.splice(u,1),r+=d+".")}),r+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=r,c}static matchEventFullKeyCode(e,t){let s=oo[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(s=e.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Hn.forEach(r=>{if(r!==s){let l=ro[r];l(e)&&(o+=r+".")}}),o+=s,o===t)}static eventCallback(e,t,s){return o=>{n.matchEventFullKeyCode(o,e)&&s.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||n)(b(m))};static \u0275prov=f({token:n,factory:n.\u0275fac})}return n})();function ao(n,i,e){return Ut(this,null,function*(){let t=M({rootComponent:n},zn(i,e));return qt(t)})}function lo(n,i){return Ut(this,null,function*(){return qt(zn(n,i))})}function zn(n,i){return{platformRef:i?.platformRef,appProviders:[...Un,...n?.providers??[]],platformProviders:fo}}function co(){vt.makeCurrent()}function ho(){return new Wt}function uo(){return Qi(document),document}var fo=[{provide:ge,useValue:Tn},{provide:Ji,useValue:co,multi:!0},{provide:m,useFactory:uo}];var po=[{provide:un,useClass:yt},{provide:dn,useClass:et},{provide:et,useClass:et}],Un=[{provide:Zi,useValue:"root"},{provide:Wt,useFactory:ho},{provide:gt,useClass:pt,multi:!0},{provide:gt,useClass:jn,multi:!0},si,ii,ti,{provide:F,useExisting:si},{provide:In,useClass:so},[]],_o=(()=>{class n{constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({providers:[...Un,...po],imports:[Mn,Cn]})}return n})();h();var ra=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||n)(b(m))};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var oi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:function(t){let s=null;return t?s=new(t||n):s=b(mo),s},providedIn:"root"})}return n})(),mo=(()=>{class n extends oi{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case G.NONE:return t;case G.HTML:return ye(t,"HTML")?ve(t):ln(this._doc,String(t)).toString();case G.STYLE:return ye(t,"Style")?ve(t):t;case G.SCRIPT:if(ye(t,"Script"))return ve(t);throw new z(5200,!1);case G.URL:return ye(t,"URL")?ve(t):an(String(t));case G.RESOURCE_URL:if(ye(t,"ResourceURL"))return ve(t);throw new z(5201,!1);default:throw new z(5202,!1)}}bypassSecurityTrustHtml(e){return tn(e)}bypassSecurityTrustStyle(e){return nn(e)}bypassSecurityTrustScript(e){return sn(e)}bypassSecurityTrustUrl(e){return on(e)}bypassSecurityTrustResourceUrl(e){return rn(e)}static \u0275fac=function(t){return new(t||n)(b(m))};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();h();h();var ri;try{ri=typeof Intl<"u"&&Intl.v8BreakIterator}catch(n){ri=!1}var w=(()=>{class n{_platformId=a(ge);isBrowser=this._platformId?kn(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||ri)&&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=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();h();function le(n){return Array.isArray(n)?n:[n]}var Wn=new Set,ce,go=(()=>{class n{_platform=a(w);_nonce=a(Ae,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yo}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&vo(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function vo(n,i){if(!Wn.has(n))try{ce||(ce=document.createElement("style"),i&&ce.setAttribute("nonce",i),ce.setAttribute("type","text/css"),document.head.appendChild(ce)),ce.sheet&&(ce.sheet.insertRule(`@media ${n} {body{ }}`,0),Wn.add(n))}catch(e){console.error(e)}}function yo(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Xn=(()=>{class n{_mediaMatcher=a(go);_zone=a(g);_queries=new Map;_destroySubject=new _;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Yn(le(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let s=Yn(le(e)).map(r=>this._registerQuery(r).observable),o=ji(s);return o=zi(o.pipe(ne(1)),o.pipe($e(1),pe(0))),o.pipe(ie(r=>{let l={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),o={observable:new te(r=>{let l=c=>this._zone.run(()=>r.next(c));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Oe(t),ie(({matches:r})=>({query:e,matches:r})),D(this._destroySubject)),mql:t};return this._queries.set(e,o),o}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Yn(n){return n.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}h();h();h();function ai(n){return n.buttons===0||n.detail===0}function li(n){let i=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}h();var ci;function Gn(){if(ci==null){let n=typeof document<"u"?document.head:null;ci=!!(n&&(n.createShadowRoot||n.attachShadow))}return ci}function hi(n){if(Gn()){let i=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function di(){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 B(n){return n.composedPath?n.composedPath()[0]:n.target}h();var Fe;function Kn(){if(Fe==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Fe=!0}))}finally{Fe=Fe||!1}return Fe}function Be(n){return Kn()?n:!!n.capture}h();function V(n,i=0){return Zn(n)?Number(n):arguments.length===2?i:0}function Zn(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function K(n){return n instanceof y?n.nativeElement:n}var $n=new v("cdk-input-modality-detector-options"),qn={ignoreKeys:[18,17,224,91,16]},Qn=650,ui={passive:!0,capture:!0},Jn=(()=>{class n{_platform=a(w);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Bi(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=B(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(li(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=B(e)};constructor(){let e=a(g),t=a(m),s=a($n,{optional:!0});if(this._options=M(M({},qn),s),this.modalityDetected=this._modality.pipe($e(1)),this.modalityChanged=this.modalityDetected.pipe(De()),this._platform.isBrowser){let o=a(F).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(t,"keydown",this._onKeydown,ui),o.listen(t,"mousedown",this._onMousedown,ui),o.listen(t,"touchstart",this._onTouchstart,ui)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ve=(function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n})(Ve||{}),es=new v("cdk-focus-monitor-default-options"),bt=Be({passive:!0,capture:!0}),wt=(()=>{class n{_ngZone=a(g);_platform=a(w);_inputModalityDetector=a(Jn);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=a(m);_stopInputModalityDetector=new _;constructor(){let e=a(es,{optional:!0});this._detectionMode=e?.detectionMode||Ve.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let t=B(e);for(let s=t;s;s=s.parentElement)e.type==="focus"?this._onFocus(e,s):this._onBlur(e,s)};monitor(e,t=!1){let s=K(e);if(!this._platform.isBrowser||s.nodeType!==1)return L();let o=hi(s)||this._document,r=this._elementInfo.get(s);if(r)return t&&(r.checkChildren=!0),r.subject;let l={checkChildren:t,subject:new _,rootNode:o};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){let t=K(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){let o=K(e),r=this._document.activeElement;o===r?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,t,c)):(this._setOrigin(t),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ve.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===Ve.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?Qn:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(e,t){let s=this._elementInfo.get(t),o=B(e);!s||!s.checkChildren&&t!==o||this._originChanged(t,this._getFocusOrigin(o),s)}_onBlur(e,t){let s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,bt),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,bt)}),this._rootNodeFocusListenerCount.set(t,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(D(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bt),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bt),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((s,o)=>{(o===e||s.checkChildren&&o.contains(e))&&t.push([o,s])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let r=0;r{class n{_elementRef=a(y);_focusMonitor=a(wt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new T;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return n})();h();var Et=new WeakMap,Q=(()=>{class n{_appRef;_injector=a(O);_environmentInjector=a(_e);load(e){let t=this._appRef=this._appRef||this._injector.get(re),s=Et.get(t);s||(s={loaders:new Set,refs:[]},Et.set(t,s),t.onDestroy(()=>{Et.get(t)?.refs.forEach(o=>o.destroy()),Et.delete(t)})),s.loaders.has(e)||(s.loaders.add(e),s.refs.push(ft(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();h();var St=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=U({type:n,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(t,s){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; outline: 0; -webkit-appearance: none; -moz-appearance: none; left: 0; } [dir=rtl] .cdk-visually-hidden { left: auto; right: 0; } `],encapsulation:2,changeDetection:0})}return n})(),Ct;function wo(){if(Ct===void 0&&(Ct=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Ct=n.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Ct}function Eo(n){return wo()?.createHTML(n)||n}function ts(n,i,e){let t=e.sanitize(G.HTML,i);n.innerHTML=Eo(t||"")}h();function Co(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let i=0;i{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ns=(()=>{class n{_mutationObserverFactory=a(is);_observedElements=new Map;_ngZone=a(g);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){let t=K(e);return new te(s=>{let r=this._observeElement(t).pipe(ie(l=>l.filter(c=>!Co(c))),W(l=>!!l.length)).subscribe(l=>{this._ngZone.run(()=>{s.next(l)})});return()=>{r.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let t=new _,s=this._mutationObserverFactory.create(o=>t.next(o));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),yl=(()=>{class n{_contentObserver=a(ns);_elementRef=a(y);event=new T;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=V(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(pe(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",k],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return n})(),ss=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({providers:[is]})}return n})();var ls=(()=>{class n{_platform=a(w);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Io(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let t=So(xo(e));if(t&&(os(t)===-1||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),o=os(e);return e.hasAttribute("contenteditable")?o!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!To(e)?!1:s==="audio"?e.hasAttribute("controls")?o!==-1:!1:s==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,t){return ko(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function So(n){try{return n.frameElement}catch(i){return null}}function Io(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function Do(n){let i=n.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function Oo(n){return Ao(n)&&n.type=="hidden"}function Ro(n){return Mo(n)&&n.hasAttribute("href")}function Ao(n){return n.nodeName.toLowerCase()=="input"}function Mo(n){return n.nodeName.toLowerCase()=="a"}function cs(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let i=n.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function os(n){if(!cs(n))return null;let i=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function To(n){let i=n.nodeName.toLowerCase(),e=i==="input"&&n.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function ko(n){return Oo(n)?!1:Do(n)||Ro(n)||n.hasAttribute("contenteditable")||cs(n)}function xo(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var It=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,t,s,o=!1,r){this._element=i,this._checker=e,this._ngZone=t,this._document=s,this._injector=r,o||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let t=this._getFirstTabbableElement(e);return t?.focus(i),!!t}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let t=0;t=0;t--){let s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?oe(i,{injector:this._injector}):setTimeout(i)}},hs=(()=>{class n{_checker=a(ls);_ngZone=a(g);_document=a(m);_injector=a(O);constructor(){a(Q).load(St)}create(e,t=!1){return new It(e,this._checker,this._ngZone,this._document,t,this._injector)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Po=(()=>{class n{_elementRef=a(y);_focusTrapFactory=a(hs);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){a(w).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=di(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",k],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",k]},exportAs:["cdkTrapFocus"],features:[me]})}return n})(),ds=new v("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),us=new v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),No=0,Lo=(()=>{class n{_ngZone=a(g);_defaultOptions=a(us,{optional:!0});_liveElement;_document=a(m);_sanitizer=a(oi);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=a(ds,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...t){let s=this._defaultOptions,o,r;return t.length===1&&typeof t[0]=="number"?r=t[0]:[o,r]=t,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),r==null&&s&&(r=s.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:ts(this._liveElement,e,this._sanitizer),typeof r=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),r)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),s=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{class n{_platform=a(w);_hasCheckedHighContrastMode=!1;_document=a(m);_breakpointSubscription;constructor(){this._breakpointSubscription=a(Xn).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return J.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return J.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return J.BLACK_ON_WHITE}return J.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(fi,rs,as),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===J.BLACK_ON_WHITE?e.add(fi,rs):t===J.WHITE_ON_BLACK&&e.add(fi,as)}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Fo=(()=>{class n{constructor(){a(fs)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({imports:[ss]})}return n})();h();function Ee(n,...i){return i.length?i.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}h();h();h();h();var Bo=200,Ce=class{_letterKeyStream=new _;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new _;selectedItem=this._selectedItem;constructor(i,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:Bo;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Gi(e=>this._pressedLetters.push(e)),pe(i),W(()=>this._pressedLetters.length>0),ie(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;ti.disabled;constructor(i,e){this._items=i,i instanceof Re?this._itemChangesSubscription=i.changes.subscribe(t=>this._itemsChanged(t.toArray())):Gt(i)&&(this._effectRef=qe(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new _;change=new _;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Ce(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!i[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let o=this._activeItemIndex()+this._pageUpAndDown.delta,r=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&t!==this._activeItemIndex()&&(this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t))}}};var pi=class extends Se{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};h();var _i=class extends Se{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};h();h();function mi(n){return Z(n)?n:L(n)}var gi=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=P.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let i=0;for(let t=0;tthis._itemsChanged(t.toArray()))):Z(i)?i.subscribe(t=>this._itemsChanged(t)):(this._items=i,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new _;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(i){switch(i.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(i.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_itemsChanged(i){this._hasInitialFocused&&this._activeItem&&!i.includes(this._activeItem)&&(this._activeItem=null,this._hasInitialFocused=!1),this._items=i,this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(i,e={}){e.emitChangeEvent??=!0;let t=typeof i=="number"?i:this._items.findIndex(r=>this._trackByFn(r)===this._trackByFn(i));if(t<0||t>=this._items.length)return;let s=this._items[t];if(this._activeItem!==null&&this._trackByFn(s)===this._trackByFn(this._activeItem))return;let o=this._activeItem;this._activeItem=s??null,this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t),this._activeItem?.focus(),o?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(i){let e=this._activeItem;if(!e)return;let t=i.findIndex(s=>this._trackByFn(s)===this._trackByFn(e));t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}_setTypeAhead(i){this._typeahead=new Ce(this._items,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(i){for(let e=i+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return i}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let i=this._activeItem.getParent();if(!i||this._skipPredicateFn(i))return;this.focusItem(i)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?mi(this._activeItem.getChildren()).pipe(ne(1)).subscribe(i=>{let e=i.find(t=>!this._skipPredicateFn(t));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(i){return typeof i.isDisabled=="boolean"?i.isDisabled:i.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let i=this._activeItem.getParent(),e;i?e=mi(i.getChildren()):e=L(this._items.filter(t=>t.getParent()===null)),e.pipe(ne(1)).subscribe(t=>{for(let s of t)s.expand()})}_activateCurrentItem(){this._activeItem?.activate()}},wc=new v("tree-key-manager",{providedIn:"root",factory:()=>(n,i)=>new gi(n,i)});h();var vi={},He=class n{_appId=a(se);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),vi.hasOwnProperty(i)||(vi[i]=0),`${i}${e?n._infix+"-":""}${vi[i]++}`}static \u0275fac=function(e){return new(e||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})};var _s=" ";function Vo(n,i,e){let t=Ot(n,i);e=e.trim(),!t.some(s=>s.trim()===e)&&(t.push(e),n.setAttribute(i,t.join(_s)))}function Ho(n,i,e){let t=Ot(n,i);e=e.trim();let s=t.filter(o=>o!==e);s.length?n.setAttribute(i,s.join(_s)):n.removeAttribute(i)}function Ot(n,i){return n.getAttribute(i)?.match(/\S+/g)??[]}var ms="cdk-describedby-message",Dt="cdk-describedby-host",bi=0,gs=(()=>{class n{_platform=a(w);_document=a(m);_messageRegistry=new Map;_messagesContainer=null;_id=`${bi++}`;constructor(){a(Q).load(St),this._id=a(se)+"-"+bi++}describe(e,t,s){if(!this._canBeDescribed(e,t))return;let o=yi(t,s);typeof t!="string"?(ps(t,this._id),this._messageRegistry.set(o,{messageElement:t,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,t,s){if(!t||!this._isElementNode(e))return;let o=yi(t,s);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof t=="string"){let r=this._messageRegistry.get(o);r&&r.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Dt}="${this._id}"]`);for(let t=0;ts.indexOf(ms)!=0);e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){let s=this._messageRegistry.get(t);Vo(e,"aria-describedby",s.messageElement.id),e.setAttribute(Dt,this._id),s.referenceCount++}_removeMessageReference(e,t){let s=this._messageRegistry.get(t);s.referenceCount--,Ho(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Dt)}_isElementDescribedByMessage(e,t){let s=Ot(e,"aria-describedby"),o=this._messageRegistry.get(t),r=o&&o.messageElement.id;return!!r&&s.indexOf(r)!=-1}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&typeof t=="object")return!0;let s=t==null?"":`${t}`.trim(),o=e.getAttribute("aria-label");return s?!o||o.trim()!==s:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function yi(n,i){return typeof n=="string"?`${i||""}/${n}`:n}function ps(n,i){n.id||(n.id=`${ms}-${i}-${bi++}`)}h();h();h();function C(n){return n==null?"":typeof n=="string"?n:`${n}px`}function wi(n){return n!=null&&`${n}`!="false"}function Xc(n,i=/\s+/){let e=[];if(n!=null){let t=Array.isArray(n)?n:`${n}`.split(i);for(let s of t){let o=`${s}`.trim();o&&e.push(o)}}return e}h();h();var H=(function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n})(H||{}),Rt,he;function At(){if(he==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return he=!1,he;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)he=!0;else{let n=Element.prototype.scrollTo;n?he=!/\{\s*\[native code\]\s*\}/.test(n.toString()):he=!1}}return he}function Ie(){if(typeof document!="object"||!document)return H.NORMAL;if(Rt==null){let n=document.createElement("div"),i=n.style;n.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Rt=H.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Rt=n.scrollLeft===0?H.NEGATED:H.INVERTED),n.remove()}return Rt}h();function Ei(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}h();h();var jo=new v("cdk-dir-doc",{providedIn:"root",factory:()=>a(m)}),zo=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function vs(n){let i=n?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?zo.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var ee=(()=>{class n{get value(){return this.valueSignal()}valueSignal=X("ltr");change=new T;constructor(){let e=a(jo,{optional:!0});if(e){let t=e.body?e.body.dir:null,s=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(vs(t||s||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var je=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({})}return n})();h();h();h();h();h();var Mt=class{};function ys(n){return n&&typeof n.connect=="function"&&!(n instanceof Fi)}var Tt=class extends Mt{_data;constructor(i){super(),this._data=i}connect(){return Z(this._data)?this._data:L(this._data)}disconnect(){}},ze=(function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n})(ze||{}),kt=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,t,s,o){i.forEachOperation((r,l,c)=>{let d,u;if(r.previousIndex==null){let p=()=>t(r,l,c);d=this._insertView(p,c,e,s(r)),u=d?ze.INSERTED:ze.REPLACED}else c==null?(this._detachAndCacheView(l,e),u=ze.REMOVED):(d=this._moveView(l,c,e,s(r)),u=ze.MOVED);o&&o({context:d?.context,operation:u,record:r})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,t,s){let o=this._insertViewFromCache(e,t);if(o){o.context.$implicit=s;return}let r=i();return t.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(i,e){let t=e.detach(i);this._maybeCacheView(t,e)}_moveView(i,e,t,s){let o=t.get(i);return t.move(o,e),o.context.$implicit=s,o}_maybeCacheView(i,e){if(this._viewCache.length0?o/this._itemSize:0;if(e.end>s){let c=Math.ceil(t/this._itemSize),d=Math.max(0,Math.min(r,s-c));r!=d&&(r=d,o=d*this._itemSize,e.start=Math.floor(r)),e.end=Math.max(0,Math.min(s,e.start+c))}let l=o-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+d),e.start=Math.max(0,Math.floor(r-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*e.start)),this._scrolledIndexChange.next(Math.floor(r))}};function Yo(n){return n._scrollStrategy}var Xo=(()=>{class n{get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=V(e)}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=V(e)}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=V(e)}_maxBufferPx=200;_scrollStrategy=new Ci(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[dt([{provide:Es,useFactory:Yo,deps:[Ki(()=>n)]}]),me]})}return n})(),Go=20,de=(()=>{class n{_ngZone=a(g);_platform=a(w);_renderer=a(F).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new _;_scrolledCount=0;scrollContainers=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=Go){return this._platform.isBrowser?new te(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let s=e>0?this._scrolled.pipe(Ze(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):L()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(W(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,e)&&t.push(o)}),t}_scrollableContainsElement(e,t){let s=K(t),o=e.getElementRef().nativeElement;do if(s==o)return!0;while(s=s.parentElement);return!1}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ii=(()=>{class n{elementRef=a(y);scrollDispatcher=a(de);ngZone=a(g);dir=a(ee,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new _;_renderer=a(Je);_cleanupScroll;_elementScrolled=new _;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let t=this.elementRef.nativeElement,s=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=s?e.end:e.start),e.right==null&&(e.right=s?e.start:e.end),e.bottom!=null&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&Ie()!=H.NORMAL?(e.left!=null&&(e.right=t.scrollWidth-t.clientWidth-e.left),Ie()==H.INVERTED?e.left=e.right:Ie()==H.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let t=this.elementRef.nativeElement;At()?t.scrollTo(e):(e.top!=null&&(t.scrollTop=e.top),e.left!=null&&(t.scrollLeft=e.left))}measureScrollOffset(e){let t="left",s="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let r=this.dir&&this.dir.value=="rtl";return e=="start"?e=r?s:t:e=="end"&&(e=r?t:s),r&&Ie()==H.INVERTED?e==t?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:r&&Ie()==H.NEGATED?e==t?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==t?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return n})(),Ko=20,ue=(()=>{class n{_platform=a(w);_listeners;_viewportSize=null;_change=new _;_document=a(m);constructor(){let e=a(g),t=a(F).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let s=o=>this._change.next(o);this._listeners=[t.listen("window","resize",s),t.listen("window","orientationchange",s)]}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:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),s=e.documentElement,o=s.getBoundingClientRect(),r=-o.top||e.body?.scrollTop||t.scrollY||s.scrollTop||0,l=-o.left||e.body?.scrollLeft||t.scrollX||s.scrollLeft||0;return{top:r,left:l}}change(e=Ko){return e>0?this._change.pipe(Ze(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=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),bs=new v("VIRTUAL_SCROLLABLE"),Zo=(()=>{class n extends Ii{constructor(){super()}measureViewportSize(e){let t=this.elementRef.nativeElement;return e==="horizontal"?t.clientWidth:t.clientHeight}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,features:[ke]})}return n})();function $o(n,i){return n.start==i.start&&n.end==i.end}var qo=typeof requestAnimationFrame<"u"?Hi:Vi,Cs=new v("CDK_VIRTUAL_SCROLL_VIEWPORT"),Qo=(()=>{class n extends Zo{elementRef=a(y);_changeDetectorRef=a(ut);_scrollStrategy=a(Es,{optional:!0});scrollable=a(bs,{optional:!0});_platform=a(w);_detachedSubject=new _;_renderedRangeSubject=new _;_renderedContentOffsetSubject=new _;get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}_orientation="vertical";appendOnly=!1;scrolledIndexChange=new te(e=>this._scrollStrategy.scrolledIndexChange.subscribe(t=>Promise.resolve().then(()=>this.ngZone.run(()=>e.next(t)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;renderedContentOffset=this._renderedContentOffsetSubject.pipe(W(e=>e!==null),De());_totalContentSize=0;_totalContentWidth=X("");_totalContentHeight=X("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf=null;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=!1;_changeDetectionNeeded=X(!1);_runAfterChangeDetection=[];_viewportChanges=P.EMPTY;_injector=a(O);_isDestroyed=!1;constructor(){super();let e=a(ue);this._scrollStrategy,this._viewportChanges=e.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let t=qe(()=>{this._changeDetectionNeeded()&&this._doChangeDetection()},{injector:a(re).injector});a(qi).onDestroy(()=>{t.destroy()})}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Oe(null),Ze(0,qo),D(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(e){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(D(this._detachedSubject)).subscribe(t=>{let s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){$o(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&t==="to-start"?0:e;let s=this.dir&&this.dir.value=="rtl",o=this.orientation=="horizontal",r=o?"X":"Y",c=`translate${r}(${Number((o&&s?-1:1)*e)}px)`;this._renderedContentOffset=e,t==="to-end"&&(c+=` translate${r}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){let s={behavior:t};this.orientation==="horizontal"?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return this.scrollable==this?t=s=>super.measureScrollOffset(s):t=s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t,s="left",o="right",r=this.dir?.value=="rtl";e=="start"?t=r?o:s:e=="end"?t=r?s:o:e?t=e:t=this.orientation==="horizontal"?"left":"top";let l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){let e=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),!yn(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(!0)})})})}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this._renderedContentOffsetSubject.next(this.getOffsetToRenderedContentStart()),oe(()=>{this._changeDetectionNeeded.set(!1);let e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let t of e)t()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=U({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,s){if(t&1&&rt(Uo,7),t&2){let o;at(o=lt())&&(s._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,s){t&2&&ae("cdk-virtual-scroll-orientation-horizontal",s.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",s.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",k]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[dt([{provide:Ii,useFactory:()=>a(bs,{optional:!0})||a(n)},{provide:Cs,useExisting:n}]),ke],ngContentSelectors:Wo,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(t,s){t&1&&(gn(),nt(0,"div",1,0),vn(2),st(),ot(3,"div",2)),t&2&&($(3),ct("width",s._totalContentWidth())("height",s._totalContentHeight()))},styles:[`cdk-virtual-scroll-viewport { display: block; position: relative; transform: translateZ(0); } .cdk-virtual-scrollable { overflow: auto; will-change: scroll-position; contain: strict; } .cdk-virtual-scroll-content-wrapper { position: absolute; top: 0; left: 0; contain: content; } [dir=rtl] .cdk-virtual-scroll-content-wrapper { right: 0; left: auto; } .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper { min-height: 100%; } .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > dl:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > ol:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > table:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > ul:not([cdkVirtualFor]) { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; border-left-width: 0; border-right-width: 0; outline: none; } .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper { min-width: 100%; } .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > dl:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > ol:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > table:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > ul:not([cdkVirtualFor]) { padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; border-top-width: 0; border-bottom-width: 0; outline: none; } .cdk-virtual-scroll-spacer { height: 1px; transform-origin: 0 0; flex: 0 0 auto; } [dir=rtl] .cdk-virtual-scroll-spacer { transform-origin: 100% 0; } `],encapsulation:2,changeDetection:0})}return n})();function ws(n,i,e){let t=e;if(!t.getBoundingClientRect)return 0;let s=t.getBoundingClientRect();return n==="horizontal"?i==="start"?s.left:s.right:i==="start"?s.top:s.bottom}var Jo=(()=>{class n{_viewContainerRef=a(q);_template=a(Te);_differs=a(En);_viewRepeater=new kt;_viewport=a(Cs,{skipSelf:!0});viewChange=new _;_dataSourceChanges=new _;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,ys(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Tt(Z(e)?e:Array.from(e||[])))}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}_cdkVirtualForTrackBy;set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=V(e)}dataStream=this._dataSourceChanges.pipe(Oe(null),Ui(),Yi(([e,t])=>this._changeDataSource(e,t)),Wi(1));_differ=null;_data=[];_renderedItems=[];_renderedRange={start:0,end:0};_needsUpdate=!1;_destroyed=new _;constructor(){let e=a(g);this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(D(this._destroyed)).subscribe(t=>{this._renderedRange=t,this.viewChange.observers.length&&e.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(e,t){if(e.start>=e.end)return 0;e.startthis._renderedRange.end;let s=e.start-this._renderedRange.start,o=e.end-e.start,r,l;for(let c=0;c-1;c--){let d=this._viewContainerRef.get(c+s);if(d&&d.rootNodes.length){l=d.rootNodes[d.rootNodes.length-1];break}}return r&&l?ws(t,"end",l)-ws(t,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):L()}_updateContext(){let e=this._data.length,t=this._viewContainerRef.length;for(;t--;){let s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(o,r,l)=>this._getEmbeddedViewArgs(o,l),o=>o.item),e.forEachIdentityChange(o=>{let r=this._viewContainerRef.get(o.currentIndex);r.context.$implicit=o.item});let t=this._data.length,s=this._viewContainerRef.length;for(;s--;){let o=this._viewContainerRef.get(s);o.context.index=this._renderedRange.start+s,o.context.count=t,this._updateComputedContextProperties(o.context)}}_updateComputedContextProperties(e){e.first=e.index===0,e.last=e.index===e.count-1,e.even=e.index%2===0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"}})}return n})();var Si=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({})}return n})(),Di=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({imports:[je,Si,je,Si]})}return n})();h();var Ue=class{_attachedHost=null;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}},We=class extends Ue{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,t,s,o){super(),this.component=i,this.viewContainerRef=e,this.injector=t,this.projectableNodes=s,this.bindings=o||null}},Ye=class extends Ue{templateRef;viewContainerRef;context;injector;constructor(i,e,t,s){super(),this.templateRef=i,this.viewContainerRef=e,this.context=t,this.injector=s}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()}},Oi=class extends Ue{element;constructor(i){super(),this.element=i instanceof y?i.nativeElement:i}},xt=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof We)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Ye)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Oi)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)}},Pt=class extends xt{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,s=t.get(Xt,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:t,ngModuleRef:s,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let t=this._appRef,s=i.injector||this._defaultInjector||O.NULL,o=s.get(_e,t.injector);e=ft(i.component,{elementInjector:s,environmentInjector:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||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(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);s!==-1&&e.remove(s)}),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 Xh=(()=>{class n extends xt{_moduleRef=a(Xt,{optional:!0});_document=a(m);_viewContainerRef=a(q);_isInitialized=!1;_attachedRef=null;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 T;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,s=t.createComponent(e.component,{index:t.length,injector:e.injector||t.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return t!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}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 s=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(s,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(t,s)})};_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=S({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ke]})}return n})(),Ss=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({})}return n})();var Is=At();function xs(n){return new Nt(n.get(ue),n.get(m))}var Nt=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=C(-this._previousScrollPosition.left),i.style.top=C(-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,s=e.style,o=t.scrollBehavior||"",r=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Is&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Is&&(t.scrollBehavior=o,s.scrollBehavior=r)}}_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 Ps(n,i){return new Lt(n.get(de),n.get(g),n.get(ue),i)}var Lt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,t,s){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=t,this._config=s}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(W(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 Xe=class{enable(){}disable(){}attach(){}};function Ri(n,i){return i.some(e=>{let t=n.bottome.bottom,o=n.righte.right;return t||s||o||r})}function Ds(n,i){return i.some(e=>{let t=n.tope.bottom,o=n.lefte.right;return t||s||o||r})}function Ti(n,i){return new Ft(n.get(de),n.get(ue),n.get(g),i)}var Ft=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,t,s){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=t,this._config=s}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:s}=this._viewportRuler.getViewportSize();Ri(e,[{width:t,height:s,bottom:s,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}},Ns=(()=>{class n{_injector=a(O);constructor(){}noop=()=>new Xe;close=e=>Ps(this._injector,e);block=()=>xs(this._injector);reposition=e=>Ti(this._injector,e);static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ge=class{positionStrategy;scrollStrategy=new Xe;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let t of e)i[t]!==void 0&&(this[t]=i[t])}}};var Bt=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var Ls=(()=>{class n{_attachedOverlays=[];_document=a(m);_isAttached=!1;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()}canReceiveEvent(e,t,s){return s.observers.length<1?!1:e.eventPredicate?e.eventPredicate(t):!0}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Fs=(()=>{class n extends Ls{_ngZone=a(g);_renderer=a(F).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 s=t.length-1;s>-1;s--){let o=t[s];if(this.canReceiveEvent(o,e,o._keydownEvents)){this._ngZone.run(()=>o._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(s){return(e||(e=Yt(n)))(s||n)}})();static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Bs=(()=>{class n extends Ls{_platform=a(w);_ngZone=a(g);_renderer=a(F).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let t=this._document.body,s={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(t,"pointerdown",this._pointerDownListener,s),o.listen(t,"click",this._clickListener,s),o.listen(t,"auxclick",this._clickListener,s),o.listen(t,"contextmenu",this._clickListener,s)]),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=B(e)};_clickListener=e=>{let t=B(e),s=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let r=o.length-1;r>-1;r--){let l=o[r],c=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,e,c))){if(Os(l.overlayElement,t)||Os(l.overlayElement,s))break;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}}};static \u0275fac=(()=>{let e;return function(s){return(e||(e=Yt(n)))(s||n)}})();static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Os(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 Vs=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=U({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,s){},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: transparent; 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: 0.6; } } @layer cdk-overlay { .cdk-overlay-dark-backdrop { background: rgba(0, 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; } .cdk-overlay-popover { background: none; border: none; padding: 0; outline: 0; overflow: visible; position: fixed; pointer-events: none; white-space: normal; color: inherit; text-decoration: none; width: 100%; height: 100%; inset: auto; top: 0; left: 0; } .cdk-overlay-popover::backdrop { display: none; } .cdk-overlay-popover .cdk-overlay-backdrop { position: fixed; z-index: auto; } `],encapsulation:2,changeDetection:0})}return n})(),Hs=(()=>{class n{_platform=a(w);_containerElement;_document=a(m);_styleLoader=a(Q);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||Ei()){let s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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()}};function ki(n){return n&&n.nodeType===1}var Vt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new _;_attachments=new _;_detachments=new _;_positionStrategy;_scrollStrategy;_locationChanges=P.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new _;_outsidePointerEvents=new _;_afterNextRenderRef;constructor(i,e,t,s,o,r,l,c,d,u=!1,p,E){this._portalOutlet=i,this._host=e,this._pane=t,this._config=s,this._ngZone=o,this._keyboardDispatcher=r,this._document=l,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=u,this._injector=p,this._renderer=E,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=oe(()=>{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(){if(this._disposed)return;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(),this._disposed=!0}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=M(M({},this._config),i),this._updateElementSize()}setDirection(i){this._config=zt(M({},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=C(this._config.width),i.height=C(this._config.height),i.minWidth=C(this._config.minWidth),i.minHeight=C(this._config.minHeight),i.maxWidth=C(this._config.maxWidth),i.maxHeight=C(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;ki(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Ai(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._config.usePopover?this._host.prepend(this._backdropRef.element):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._config.usePopover&&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 s=le(e||[]).filter(o=>!!o);s.length&&(t?i.classList.add(...s):i.classList.remove(...s))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=oe(()=>{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?.()}},Rs="cdk-overlay-connected-position-bounding-box",er=/([A-Za-z%]+)$/;function xi(n,i){return new Ht(i,n.get(ue),n.get(m),n.get(w),n.get(Hs))}var Ht=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_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=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new _;_resizeSubscription=P.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,t,s,o){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=o,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Rs),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._getContainerRect();let i=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,o=[],r;for(let l of this._preferredPositions){let c=this._getOriginPoint(i,s,l),d=this._getOverlayPoint(c,e,l),u=this._getOverlayFit(d,e,t,l);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(l,c);return}if(this._canFitWithFlexibleDimensions(u,d,t)){o.push({position:l,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,l)});continue}(!r||r.overlayFit.visibleAreac&&(c=u,l=d)}this._isPushed=!1,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&fe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Rs),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;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):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}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof y?this._origin.nativeElement:ki(this._origin)?this._origin:null}_getOriginPoint(i,e,t){let s;if(t.originX=="center")s=i.left+i.width/2;else{let r=this._isRtl()?i.right:i.left,l=this._isRtl()?i.left:i.right;s=t.originX=="start"?r:l}e.left<0&&(s-=e.left);let o;return t.originY=="center"?o=i.top+i.height/2:o=t.originY=="top"?i.top:i.bottom,e.top<0&&(o-=e.top),{x:s,y:o}}_getOverlayPoint(i,e,t){let s;t.overlayX=="center"?s=-e.width/2:t.overlayX==="start"?s=this._isRtl()?-e.width:0:s=this._isRtl()?0:-e.width;let o;return t.overlayY=="center"?o=-e.height/2:o=t.overlayY=="top"?0:-e.height,{x:i.x+s,y:i.y+o}}_getOverlayFit(i,e,t,s){let o=Ms(e),{x:r,y:l}=i,c=this._getOffset(s,"x"),d=this._getOffset(s,"y");c&&(r+=c),d&&(l+=d);let u=0-r,p=r+o.width-t.width,E=0-l,N=l+o.height-t.height,x=this._subtractOverflows(o.width,u,p),j=this._subtractOverflows(o.height,E,N),Li=x*j;return{visibleArea:Li,isCompletelyWithinViewport:o.width*o.height===Li,fitsInViewportVertically:j===o.height,fitsInViewportHorizontally:x==o.width}}_canFitWithFlexibleDimensions(i,e,t){if(this._hasFlexibleDimensions){let s=t.bottom-e.y,o=t.right-e.x,r=As(this._overlayRef.getConfig().minHeight),l=As(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||r!=null&&r<=s,d=i.fitsInViewportHorizontally||l!=null&&l<=o;return c&&d}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 s=Ms(e),o=this._viewportRect,r=Math.max(i.x+s.width-o.width,0),l=Math.max(i.y+s.height-o.height,0),c=Math.max(o.top-t.top-i.y,0),d=Math.max(o.left-t.left-i.x,0),u=0,p=0;return s.width<=o.width?u=d||-r:u=i.xx&&!this._isInitialRender&&!this._growAfterOpen&&(r=i.y-x/2)}let c=e.overlayX==="start"&&!s||e.overlayX==="end"&&s,d=e.overlayX==="end"&&!s||e.overlayX==="start"&&s,u,p,E;if(d)E=t.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),u=i.x-this._getViewportMarginStart();else if(c)p=i.x,u=t.right-i.x-this._getViewportMarginEnd();else{let N=Math.min(t.right-i.x+t.left,i.x),x=this._lastBoundingBoxSize.width;u=N*2,p=i.x-N,u>x&&!this._isInitialRender&&!this._growAfterOpen&&(p=i.x-x/2)}return{top:r,left:p,bottom:l,right:E,width:u,height:o}}_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 s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right="auto",s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;s.width=C(t.width),s.height=C(t.height),s.top=C(t.top)||"auto",s.bottom=C(t.bottom)||"auto",s.left=C(t.left)||"auto",s.right=C(t.right)||"auto",e.overlayX==="center"?s.alignItems="center":s.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?s.justifyContent="center":s.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(s.maxHeight=C(o)),r&&(s.maxWidth=C(r))}this._lastBoundingBoxSize=t,fe(this._boundingBox.style,s)}_resetBoundingBoxStyles(){fe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let t={},s=this._hasExactPosition(),o=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){let u=this._viewportRuler.getViewportScrollPosition();fe(t,this._getExactOverlayY(e,i,u)),fe(t,this._getExactOverlayX(e,i,u))}else t.position="static";let l="",c=this._getOffset(e,"x"),d=this._getOffset(e,"y");c&&(l+=`translateX(${c}px) `),d&&(l+=`translateY(${d}px)`),t.transform=l.trim(),r.maxHeight&&(s?t.maxHeight=C(r.maxHeight):o&&(t.maxHeight="")),r.maxWidth&&(s?t.maxWidth=C(r.maxWidth):o&&(t.maxWidth="")),fe(this._pane.style,t)}_getExactOverlayY(i,e,t){let s={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),i.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;s.bottom=`${r-(o.y+this._overlayRect.height)}px`}else s.top=C(o.y);return s}_getExactOverlayX(i,e,t){let s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let r;if(this._isRtl()?r=i.overlayX==="end"?"left":"right":r=i.overlayX==="end"?"right":"left",r==="right"){let l=this._document.documentElement.clientWidth;s.right=`${l-(o.x+this._overlayRect.width)}px`}else s.left=C(o.x);return s}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ds(i,t),isOriginOutsideView:Ri(i,t),isOverlayClipped:Ds(e,t),isOverlayOutsideView:Ri(e,t)}}_subtractOverflows(i,...e){return e.reduce((t,s)=>t-Math.max(s,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._getViewportMarginTop(),left:t.left+this._getViewportMarginStart(),right:t.left+i-this._getViewportMarginEnd(),bottom:t.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_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&&le(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=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof y)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}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let t=e.getBoundingClientRect();return i&&(e.style.display=""),t}};function fe(n,i){for(let e in i)i.hasOwnProperty(e)&&(n[e]=i[e]);return n}function As(n){if(typeof n!="number"&&n!=null){let[i,e]=n.split(er);return!e||e==="px"?parseFloat(i):null}return n||null}function Ms(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 tr(n,i){return n===i?!0:n.isOriginClipped===i.isOriginClipped&&n.isOriginOutsideView===i.isOriginOutsideView&&n.isOverlayClipped===i.isOverlayClipped&&n.isOverlayOutsideView===i.isOverlayOutsideView}var Ts="cdk-global-overlay-wrapper";function js(n){return new jt}var jt=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(Ts),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:s,height:o,maxWidth:r,maxHeight:l}=t,c=(s==="100%"||s==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(o==="100%"||o==="100vh")&&(!l||l==="100%"||l==="100vh"),u=this._xPosition,p=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",N="",x="",j="";c?j="flex-start":u==="center"?(j="center",E?x=p:N=p):E?u==="left"||u==="end"?(j="flex-end",N=p):(u==="right"||u==="start")&&(j="flex-start",x=p):u==="left"||u==="start"?(j="flex-start",N=p):(u==="right"||u==="end")&&(j="flex-end",x=p),i.position=this._cssPosition,i.marginLeft=c?"0":N,i.marginTop=d?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":x,e.justifyContent=j,e.alignItems=d?"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(Ts),t.justifyContent=t.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},zs=(()=>{class n{_injector=a(O);constructor(){}global(){return js()}flexibleConnectedTo(e){return xi(this._injector,e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Pi=new v("OVERLAY_DEFAULT_CONFIG");function Ni(n,i){n.get(Q).load(Vs);let e=n.get(Hs),t=n.get(m),s=n.get(He),o=n.get(re),r=n.get(ee),l=n.get(Je,null,{optional:!0})||n.get(F).createRenderer(null,null),c=new Ge(i),d=n.get(Pi,null,{optional:!0})?.usePopover??!0;c.direction=c.direction||r.value,"showPopover"in t.body?c.usePopover=i?.usePopover??d:c.usePopover=!1;let u=t.createElement("div"),p=t.createElement("div");u.id=s.getId("cdk-overlay-"),u.classList.add("cdk-overlay-pane"),p.appendChild(u),c.usePopover&&(p.setAttribute("popover","manual"),p.classList.add("cdk-overlay-popover"));let E=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return ki(E)?E.after(p):E?.type==="parent"?E.element.appendChild(p):e.getContainerElement().appendChild(p),new Vt(new Pt(u,o,n),p,u,c,n.get(g),n.get(Fs),t,n.get(Rn),n.get(Bs),i?.disableAnimations??n.get(en,null,{optional:!0})==="NoopAnimations",n.get(_e),l)}var Ke=(()=>{class n{scrollStrategies=a(Ns);_positionBuilder=a(zs);_injector=a(O);constructor(){}create(e){return Ni(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ir=[{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"}],nr=new v("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=a(O);return()=>Ti(n)}}),Mi=(()=>{class n{elementRef=a(y);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),Us=new v("cdk-connected-overlay-default-config"),sr=(()=>{class n{_dir=a(ee,{optional:!0});_injector=a(O);_overlayRef;_templatePortal;_backdropSubscription=P.EMPTY;_attachSubscription=P.EMPTY;_detachSubscription=P.EMPTY;_positionSubscription=P.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=a(nr);_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;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new T;positionChange=new T;attach=new T;detach=new T;overlayKeydown=new T;overlayOutsideClick=new T;constructor(){let e=a(Te),t=a(q),s=a(Us,{optional:!0}),o=a(Pi,{optional:!0});this.usePopover=o?.usePopover===!1?null:"global",this._templatePortal=new Ye(e,t),this.scrollStrategy=this._scrollStrategyFactory(),s&&this._assignConfig(s)}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._getWidth(),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=ir);let e=this._overlayRef=Ni(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&&!Ee(t)&&(t.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let s=this._getOriginElement(),o=B(t);(!s||s!==o&&!s.contains(o))&&this.overlayOutsideClick.next(t)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Ge({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.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).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=xi(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Mi?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Mi?this.origin.elementRef.nativeElement:this.origin instanceof y?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(t=>this.backdropClick.emit(t)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Xi(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(t){return new(t||n)};static \u0275dir=S({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",k],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",k],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",k],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",k],push:[2,"cdkConnectedOverlayPush","push",k],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",k],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",k],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[me]})}return n})(),or=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=R({providers:[Ke],imports:[je,Ss,Di,Di]})}return n})();h();function Fd(n){return xn(n)}function Bd(n,i,e,t,s){return t+(n-i)*(s-t)/(e-i)}function Ws(){return navigator.platform.startsWith("Mac")}function Vd(n){let i;return()=>(i===void 0&&(i=n()),i)}function Hd(n,i){if(!n)return{segments:[],count:0};if(!i)return{segments:[{text:n,isMatch:!1}],count:0};let e=new RegExp(Pn(i),"gi"),t=[],s=0,o=0;for(let r of n.matchAll(e)){let l=r.index??0;l>o&&t.push({text:n.slice(o,l),isMatch:!1}),t.push({text:r[0],isMatch:!0}),o=l+r[0].length,s+=1}return o{let n=a(Ke);return()=>n.scrollStrategies.reposition({scrollThrottle:lr})}});function hr(){return{position:"above",showDelay:500,hideDelay:0,touchendHideDelay:0}}var dr=new v("tooltip-default-options",{providedIn:"root",factory:hr}),Gs="tooltip-panel",Ks=Be({passive:!0}),ur=500,fr=8,pr=8,_r=24,mr=220,cu=(()=>{class n{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=wi(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=wi(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=V(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=V(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!==null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ensureDiscernableTextIsPresent(),this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(){this._overlay=a(Ke),this._elementRef=a(y),this._scrollDispatcher=a(de),this._viewContainerRef=a(q),this._ngZone=a(g),this._platform=a(w),this._ariaDescriber=a(gs),this._focusMonitor=a(wt),this._dir=a(ee),this._defaultOptions=a(dr,{optional:!0}),this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=gr,this._viewportMargin=8,this._elementHasAriaLabel=!1,this._class="tooltip-trigger",this.touchGestures="auto",this._message="",this.hotkey="",this._passiveListeners=[],this._destroyed=new _;let e=a(cr),t=this._dir,s=this._defaultOptions,o=a(m);this._scrollStrategy=e,this._document=o,s&&(this._showDelay=s.showDelay,this._hideDelay=s.hideDelay,s.position&&(this.position=s.position),s.positionAtOrigin&&(this.positionAtOrigin=s.positionAtOrigin),s.touchGestures&&(this.touchGestures=s.touchGestures)),t.change.pipe(D(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=fr}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(D(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))}),this._elementHasAriaLabel=!!this._elementRef.nativeElement.getAttribute("aria-label")}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,Ks)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let s=this._createOverlay(t);this._detach(),this._portal=this._portal||new We(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=s.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(D(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof y)return this._overlayRef;this._detach()}let t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn("tooltip").withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return s.positionChanges.pipe(D(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:Gs,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(D(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(D(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(D(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!Ee(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass("tooltip-panel-non-interactive"),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,s=this._getOrigin(),o=this._getOverlayPosition();t.withPositions([this._addOffset(M(M({},s.main),o.main)),this._addOffset(M(M({},s.fallback),o.fallback))])}_addOffset(e){let t=pr,s=!this._dir||this._dir.value==="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=s?-t:t:e.originX==="end"&&(e.offsetX=s?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value==="ltr",t=this.position,s;if(t==="above"||t==="below")s={originX:"center",originY:t==="above"?"top":"bottom"};else if(t==="before"||t==="left"&&e||t==="right"&&!e)s={originX:"start",originY:"center"};else if(t==="after"||t==="right"&&e||t==="left"&&!e)s={originX:"end",originY:"center"};else if(Ys)throw Xs(t);let{x:o,y:r}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:o,originY:r}}}_getOverlayPosition(){let e=!this._dir||this._dir.value==="ltr",t=this.position,s;if(t==="above")s={overlayX:"center",overlayY:"bottom"};else if(t==="below")s={overlayX:"center",overlayY:"top"};else if(t==="before"||t==="left"&&e||t==="right"&&!e)s={overlayX:"end",overlayY:"center"};else if(t==="after"||t==="right"&&e||t==="left"&&!e)s={overlayX:"start",overlayY:"center"};else if(Ys)throw Xs(t);let{x:o,y:r}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:o,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance.suffix=Ws()?this.hotkey.replaceAll("meta","\u2318").replaceAll("alt","\u2325"):this.hotkey.replaceAll("meta","Ctrl+").replaceAll("alt","Alt+"),this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ne(1),D(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:s,originY:o}=e,r;if(t==="center"?this._dir&&this._dir.value==="rtl"?r=s==="end"?"left":"right":r=s==="start"?"left":"right":r=t==="bottom"&&o==="top"?"above":"below",r!==this._currentPosition){let l=this._overlayRef;if(l){let c=`${Gs}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._mouseEnterTimestamp=Date.now(),this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let t=e.targetTouches?.[0],s=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),ur)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{let s=t.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s)||Date.now()-this._mouseEnterTimestampthis._wheelListener(t)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,Ks)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,s=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),(e==="on"||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}ensureDiscernableTextIsPresent(){let e=this._elementRef.nativeElement;this._elementHasAriaLabel||e.textContent?.trim().length<1&&e.setAttribute("aria-label",this.message)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=S({type:n,selectors:[["","tooltip",""]],hostVars:4,hostBindings:function(t,s){t&2&&(ht(s._class),ae("tooltip-disabled",s.disabled))},inputs:{position:[0,"tooltipPosition","position"],positionAtOrigin:[0,"tooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"tooltipDisabled","disabled"],showDelay:[0,"tooltipShowDelay","showDelay"],hideDelay:[0,"tooltipHideDelay","hideDelay"],touchGestures:[0,"tooltipTouchGestures","touchGestures"],message:[0,"tooltip","message"],hotkey:[0,"tooltipHotkey","hotkey"],tooltipClass:"tooltipClass"},exportAs:["tooltip"]})}}return n})(),gr=(()=>{class n{constructor(){this._changeDetectorRef=a(ut),this._elementRef=a(y),this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new _,this._showAnimation="tooltip-show",this._hideAnimation="tooltip-hide",this._ariaHidden=!0}get zoomStyle(){return this.isVisible()?1:null}show(e){this._hideTimeoutId!==null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!==null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>_r&&e.width>=mr}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!==null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!==null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,s=this._showAnimation,o=this._hideAnimation;t.classList.remove(e?o:s),t.classList.add(e?s:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&this._onShow(),this._finalizeAnimation(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=U({type:n,selectors:[["tooltip-component"]],viewQuery:function(t,s){if(t&1&&rt(rr,7),t&2){let o;at(o=lt())&&(s._tooltip=o.first)}},hostVars:3,hostBindings:function(t,s){t&1&&Kt("mouseleave",function(r){return s._handleMouseLeave(r)}),t&2&&(be("aria-hidden",s._ariaHidden),ct("zoom",s.zoomStyle))},decls:6,vars:5,consts:[["tooltip",""],[1,"tooltip","tooltip--shown","tooltip",3,"animationend","ngClass"],[1,"tooltip__surface","tooltip__surface-animation"],[1,"suffix"]],template:function(t,s){t&1&&(tt(0,"div",1,0),Kt("animationend",function(r){return s._handleAnimationEnd(r)}),tt(2,"div",2)(3,"span"),Zt(4),it(),fn(5,ar,2,1,"span",3),it()()),t&2&&(ae("mdc-tooltip--multiline",s._isMultiline),_n("ngClass",s.tooltipClass),$(4),$t(s.message),$(),pn(s.suffix?5:-1))},dependencies:[An],styles:[`.tooltip{position:relative;opacity:0}.tooltip:before{content:"";inset:0;z-index:-1;position:absolute}.tooltip-panel-below .tooltip:before{top:-8px}.tooltip-panel-above .tooltip:before{bottom:-8px}.tooltip-panel-right .tooltip:before{left:-8px}.tooltip-panel-left .tooltip:before{right:-8px}.tooltip-panel.tooltip-panel-non-interactive{pointer-events:none}.tooltip-panel-above .tooltip-show{animation:tooltip-top .2s ease both}.tooltip-panel-below .tooltip-show{animation:tooltip-bottom .2s ease both}.tooltip-panel-left .tooltip-show{animation:tooltip-left .2s ease both}.tooltip-panel-right .tooltip-show{animation:tooltip-right .2s ease both}.tooltip-panel .tooltip__surface{background:var(--tooltip-color);color:#fff;font-size:var(--text-md);font-weight:var(--weight-normal);line-height:var(--line-height-base);text-shadow:var(--text-shadow);box-shadow:0 2px 8px #00000026;border-radius:var(--border-radius-base);margin:0;padding:8px 12px;text-align:left;text-decoration:none;max-width:220px;display:flex;align-items:center;gap:8px}.dark-theme .tooltip-panel .tooltip__surface{box-shadow:0 2px 8px #00000026,0 0 1px 1px #6666}.tooltip-panel .tooltip__surface .suffix{color:#ffffff80;font-weight:var(--weight-bold)}@keyframes tooltip-top{0%{margin-bottom:-8px;opacity:0;pointer-events:none}to{margin-bottom:0;opacity:1;pointer-events:inherit}}@keyframes tooltip-bottom{0%{margin-top:-8px;opacity:0;pointer-events:none}to{margin-top:0;opacity:1;pointer-events:inherit}}@keyframes tooltip-left{0%{margin-right:-8px;opacity:0;pointer-events:none}to{margin-right:0;opacity:1;pointer-events:inherit}}@keyframes tooltip-right{0%{margin-left:-8px;opacity:0;pointer-events:none}to{margin-left:0;opacity:1;pointer-events:inherit}} `],encapsulation:2,changeDetection:0})}}return n})();h();var vu=(()=>{class n{set tooltip(e){this._tooltip=e,this.setFocusable(e&&!this._tooltipDisabled)}set tooltipDisabled(e){this._tooltipDisabled=e,this.setFocusable(!e&&!!this._tooltip)}constructor(){this.element=a(y),this.extraClass="icon",this.focusable=!1,this.tabIndex=null,this._tooltipDisabled=!1;let e=this.element;a(new bn("aria-hidden"),{optional:!0})||e.nativeElement.setAttribute("aria-hidden","true")}setFocusable(e){e?(this.focusable=!0,this.tabIndex=0,this.element.nativeElement.setAttribute("aria-hidden","false")):(this.focusable=!1,this.tabIndex=null,this.element.nativeElement.setAttribute("aria-hidden","true"))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=U({type:n,selectors:[["icon"]],hostVars:5,hostBindings:function(t,s){t&2&&(be("tabindex",s.tabIndex),ht(s.extraClass),ae("focusable",s.focusable))},inputs:{name:"name",extraClass:"extraClass",tooltip:"tooltip",tooltipDisabled:"tooltipDisabled"},decls:2,vars:1,template:function(t,s){t&1&&($i(),nt(0,"svg"),ot(1,"use"),st()),t&2&&($(),be("href",`/static/frontend/static/sprite.svg#${s.name}`))},styles:["[_nghost-%COMP%]{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-flex;fill:currentColor;height:24px;width:24px;overflow:hidden}svg[_ngcontent-%COMP%]{height:100%;width:100%}"],changeDetection:0})}}return n})();export{si as a,ao as b,lo as c,_o as d,ra as e,oi as f,w as g,le as h,go as i,Xn as j,ai as k,li as l,hi as m,di as n,B as o,Be as p,V as q,K as r,wt as s,bo as t,Q as u,St as v,yl as w,ss as x,ls as y,hs as z,Po as A,Lo as B,Fo as C,Ee as D,pi as E,_i as F,mi as G,wc as H,He as I,Vo as J,Ho as K,gs as L,Fd as M,Bd as N,Ws as O,Vd as P,Hd as Q,We as R,Ye as S,xt as T,Xh as U,Ss as V,ee as W,ys as X,ze as Y,kt as Z,je as _,Xo as $,de as aa,Ii as ba,ue as ca,Cs as da,Qo as ea,Jo as fa,Si as ga,Di as ha,xs as ia,Ti as ja,Ns as ka,Ge as la,Hs as ma,Vt as na,xi as oa,Ht as pa,js as qa,zs as ra,Pi as sa,Ni as ta,Ke as ua,Mi as va,sr as wa,or as xa,wi as ya,Xc as za,cu as Aa,vu as Ba};