vendor: 5,374 bytes, line 1
1import{Ba as g,Ca as l,Ea as u,Fc as E,J as _,h as m,l as r,ma as P,p as v,pa as R,v as w,va as c,w as D,wa as h}from"./chunk-E6XDDTAT.js";var a=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},f=class extends a{component;viewContainerRef;injector;projectableNodes;constructor(e,t,o,n){super(),this.component=e,this.viewContainerRef=t,this.injector=o,this.projectableNodes=n}},s=class extends a{templateRef;viewContainerRef;context;injector;constructor(e,t,o,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=o,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},p=class extends a{element;constructor(e){super(),this.element=e instanceof _?e.nativeElement:e}},d=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof f)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof s)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof p)return this._attachedPortal=e,this.attachDomPortal(e)}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(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},C=class extends d{outletElement;_appRef;_defaultInjector;constructor(e,t,o){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=o}attachComponentPortal(e){let t;if(e.viewContainerRef){let o=e.injector||e.viewContainerRef.injector,n=o.get(h,null,{optional:!0})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:o,ngModuleRef:n,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let o=this._appRef,n=e.injector||this._defaultInjector||w.NULL,y=n.get(v,o.injector);t=E(e.component,{elementInjector:n,environmentInjector:y,projectableNodes:e.projectableNodes||void 0}),o.attachView(t.hostView),this.setDisposeFn(()=>{o.viewCount>0&&o.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,o=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return o.rootNodes.forEach(n=>this.outletElement.appendChild(n)),o.detectChanges(),this.setDisposeFn(()=>{let n=t.indexOf(o);n!==-1&&t.remove(n)}),this._attachedPortal=e,o}attachDomPortal=e=>{let t=e.element;t.parentNode;let o=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(o,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(t,o)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},O=(()=>{class i extends s{constructor(){let t=r(R),o=r(c);super(t,o)}static \u0275fac=function(o){return new(o||i)};static \u0275dir=l({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[u]})}return i})();var H=(()=>{class i extends d{_moduleRef=r(h,{optional:!0});_document=r(D);_viewContainerRef=r(c);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}attached=new P;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let o=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,n=o.createComponent(t.component,{index:o.length,injector:t.injector||o.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return o!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);let o=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachDomPortal=t=>{let o=t.element;o.parentNode;let n=this._document.createComment("dom-portal");t.setAttachedHost(this),o.parentNode.insertBefore(n,o),this._getRootNode().appendChild(o),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(o,n)})};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=function(o){return new(o||i)};static \u0275dir=l({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u]})}return i})();var b=(()=>
1{class i{static \u0275fac=function(o){return new(o||i)};static \u0275mod=g({type:i});static \u0275inj=m({})}return i})();export{f as a,s as b,d as c,C as d,O as e,H as f,b as g};
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.