"use strict";(self.webpackChunkshell=self.webpackChunkshell||[]).push([["node_modules_angular_cdk_fesm2015_observers_js-_40dc0"],{6835:function(e,t,s){s.r(t),s.d(t,{CdkObserveContent:function(){return b},ContentObserver:function(){return u},MutationObserverFactory:function(){return c},ObserversModule:function(){return d}});var n=s(99957),r=s(14468),i=s(71180),o=s(92343);let c=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),u=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=(0,n.fI)(e);return new i.Observable(e=>{const s=this._observeElement(t).subscribe(e);return()=>{s.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new i.Subject,s=this._mutationObserverFactory.create(e=>t.next(e));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)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275inject(c))},e.\u0275prov=(0,r.\u0275\u0275defineInjectable)({factory:function(){return new e((0,r.\u0275\u0275inject)(c))},token:e,providedIn:"root"}),e})(),b=(()=>{class e{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new r.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=(0,n.Ig)(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=(0,n.su)(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,o.debounceTime)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.\u0275\u0275directiveInject(u),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone))},e.\u0275dir=r.\u0275\u0275defineDirective({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),d=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=r.\u0275\u0275defineInjector({providers:[c]}),e})()}}]);