vendor: 4,080 bytes, line 1
1import{A as a,e as g,g as D,u as k,v as m,y as l,z as b}from"./chunk-DCE6HEZJ.js";import{Da as c,Gb as p,Hb as x,J as S,L as h,Pa as R,i as v,ia as u,j as d,ja as f,oa as o,s as w,wb as _,xb as y,za as C}from"./chunk-ZMMCFEPT.js";var V=20,E=(()=>{class r{_ngZone=o(c);_platform=o(g);_renderer=o(_).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new d;_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=V){return this._platform.isBrowser?new v(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=e>0?this._scrolled.pipe(h(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):w()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(S(n=>!n||i.indexOf(n)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,e)&&t.push(n)}),t}_scrollableContainsElement(e,t){let i=D(t),n=e.getElementRef().nativeElement;do if(i==n)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(t){return new(t||r)};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Ie=(()=>{class r{elementRef=o(R);scrollDispatcher=o(E);ngZone=o(c);dir=o(k,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new d;_renderer=o(y);_cleanupScroll;_elementScrolled=new d;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,i=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=i?e.end:e.start),e.right==null&&(e.right=i?e.start:e.end),e.bottom!=null&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),i&&a()!=l.NORMAL?(e.left!=null&&(e.right=t.scrollWidth-t.clientWidth-e.left),a()==l.INVERTED?e.left=e.right:a()==l.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;b()?t.scrollTo(e):(e.top!=null&&(t.scrollTop=e.top),e.left!=null&&(t.scrollLeft=e.left))}measureScrollOffset(e){let t="left",i="right",n=this.elementRef.nativeElement;if(e=="top")return n.scrollTop;if(e=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?i:t:e=="end"&&(e=s?t:i),s&&a()==l.INVERTED?e==t?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:s&&a()==l.NEGATED?e==t?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:e==t?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}static \u0275fac=function(t){return new(t||r)};static \u0275dir=x({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return r})(),T=20,Pe=(()=>{class r{_platform=o(g);_listeners;_viewportSize=null;_change=new d;_document=o(C);constructor(){let e=o(c),t=o(_).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=n=>this._change.next(n);this._listeners=[t.listen("window","resize",i),t.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}
1ngOnDestroy(){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:i}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+t,height:i,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),i=e.documentElement,n=i.getBoundingClientRect(),s=-n.top||e.body?.scrollTop||t.scrollY||i.scrollTop||0,z=-n.left||e.body?.scrollLeft||t.scrollX||i.scrollLeft||0;return{top:s,left:z}}change(e=T){return e>0?this._change.pipe(h(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||r)};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var O=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=p({type:r});static \u0275inj=f({})}return r})(),Ne=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=p({type:r});static \u0275inj=f({imports:[m,O,m,O]})}return r})();export{E as a,Ie as b,Pe as c,O as d,Ne as e}; 2/**i18n:c6aefe5a470db0c2835d9acdc38103156c8e2d6951552de9a94049a7a4c5abe5*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.