PageSourceSearch

https://www.costco.com.au/spartacus/assets/chunk-QBKLDZGY.js

js costco.com.au collected 2026-10-02 06:08:20 UTC 67,606 bytes, 1 lines download raw bytes

1import{A as U,B as at,U as Pe,a as L,d as ve,e as gt,f as mt,g as Mt,h as vt,k as Ft,l as _,m as ye,t as be,u as we,x as Ce,z as Se}from"./chunk-XI4FVBZT.js";import{b as xe}from"./chunk-IDGFXIUB.js";import{a as Oe,b as ke,c as Tt}from"./chunk-DZFR5FMO.js";import{$a as oe,$b as kt,Ac as rt,B as te,Ba as f,Bb as ae,Ca as V,Da as I,Ea as K,F as ee,H as X,Ia as Dt,Ib as F,Ic as pe,J as Ct,Jb as T,Kb as nt,Lb as le,Lc as At,Mb as he,Nc as N,Qa as C,R as Z,Rb as pt,Rc as v,Ta as R,Tc as _e,Ua as A,Ub as Ot,Vb as _t,Xa as se,Xc as ge,Ya as ne,a as S,ac as xt,ae as Ee,b as qt,bc as Pt,c as g,dc as ce,ec as de,ee as De,fb as M,gb as p,ib as G,ja as St,la as Et,ld as me,ma as ie,mb as ft,na as ut,nc as It,p as tt,pb as E,qb as et,qc as ue,rc as fe,sa as m,sb as it,ta as x,tb as Rt,ua as $,ub as re,uh as Re,va as h,vb as st,wa as P,wb as j,z as Jt,zc as ot}from"./chunk-ZIECK5QA.js";import{a as k,b as Qt}from"./chunk-3JMZ37NM.js";var Ke="",Ge="modal.close",Ie=(()=>{let t=class t{constructor(e){this.modalRef=e,this.cssClass="",this.confirmKey="modal.close"}ngOnInit(){this.cssClass=this.modalRef.data?.cssClass??this.cssClass??Ke,this.id=this.modalRef.data?.id??this.id,this.titleKey=this.modalRef.data?.titleKey??this.titleKey,this.contentKey=this.modalRef.data?.contentKey??this.contentKey,this.confirmKey=this.modalRef.data?.confirmKey??this.confirmKey??Ge,this.cancelKey=this.modalRef.data?.cancelKey??this.cancelKey}closeModal(e){this.modalRef.close(e)}dismissModal(e){this.modalRef.dismiss(e)}};t.\u0275fac=function(i){return new(i||t)(p(B))},t.\u0275cmp=V({type:t,selectors:[["sip-generic-modal"]],decls:6,vars:10,consts:[[3,"modalId","modalTitle","ngClass"],[3,"innerHTML"],["footer",""],[3,"confirmed","cancelled","cancelKey","confirmKey"]],template:function(i,s){i&1&&(F(0,"sip-modal-dialog",0),ot(1,"cxTranslate"),nt(2,"span",1),ot(3,"cxTranslate"),le(4,2),F(5,"sip-modal-actions",3),pt("confirmed",function(){return s.closeModal()})("cancelled",function(){return s.dismissModal()}),T(),he(),T()),i&2&&(j("modalId",s.id)("modalTitle",rt(1,6,s.titleKey))("ngClass",s.cssClass),M(2),j("innerHTML",rt(3,8,s.contentKey),oe),M(3),j("cancelKey",s.cancelKey)("confirmKey",s.confirmKey))},encapsulation:2,changeDetection:0});let o=t;return o})();var Me=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,n,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new g,n&&n.length&&(t?n.forEach(s=>this._markSelected(s)):this._markSelected(n[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}setSelection(...t){this._verifyValueAssignment(t);let n=this.selected,e=new Set(t);t.forEach(s=>this._markSelected(s)),n.filter(s=>!e.has(this._getConcreteValue(s,e))).forEach(s=>this._unmarkSelected(s));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let n=this._hasQueuedChanges();return t&&this._emitChangeEvent(),n}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,n){if(this.compareWith){n=n??this._selection;for(let e of n)if(this.compareWith(t,e))return e;return t}else return t}};var Ii=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let s of this._listeners)s(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o}
1)();var Je=20,Te=(()=>{let t=class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new g,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=Je){return this._platform.isBrowser?new qt(i=>{this._globalSubscription||this._addGlobalListener();let s=e>0?this._scrolled.pipe(Ct(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):tt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(X(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=ye(i),r=e.getElementRef().nativeElement;do if(s==r)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return te(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(h(E),h(L),h(v,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var ti=20,Lt=(()=>{let t=class t{constructor(e,i,s){this._platform=e,this._change=new g,this._changeListener=r=>{this._change.next(r)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){let r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}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:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect(),a=-r.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,l=-r.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0;return{top:a,left:l}}change(e=ti){return e>0?this._change.pipe(Ct(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}}};t.\u0275fac=function(i){return new(i||t)(h(L),h(E),h(v,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var Fe=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=I({type:t}),t.\u0275inj=x({});let o=t;return o})(),jt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=I({type:t}),t.\u0275inj=x({imports:[at,Fe,at,Fe]});let o=t;return o})();var lt=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Q=class extends lt{constructor(t,n,e,i,s){super(),this.component=t,this.viewContainerRef=n,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=s}},H=class extends lt{constructor(t,n,e,i){super(),this.templateRef=t,this.viewContainerRef
1=n,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,n=this.context){return this.context=n,super.attach(t)}detach(){return this.context=void 0,super.detach()}},Bt=class extends lt{constructor(t){super(),this.element=t instanceof R?t.nativeElement:t}},q=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof Q)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof H)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof Bt)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var yt=class extends q{constructor(t,n,e,i,s){super(),this.outletElement=t,this._componentFactoryResolver=n,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||C.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let n=t.viewContainerRef,e=n.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=n.indexOf(e);i!==-1&&n.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Vt=(()=>{let t=class t extends q{constructor(e,i,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new A,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let l=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}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)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;
1return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(p(ft),p(et),p(v))},t.\u0275dir=K({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[f.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[it]});let o=t;return o})();var ht=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=I({type:t}),t.\u0275inj=x({});let o=t;return o})();var Le=ve(),Nt=class{constructor(t,n){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_(-this._previousScrollPosition.left),t.style.top=_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,n=this._document.body,e=t.style,i=n.style,s=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Le&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Le&&(e.scrollBehavior=s,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.body,e=this._viewportRuler.getViewportSize();return n.scrollHeight>e.height||n.scrollWidth>e.width}};var zt=class{constructor(t,n,e,i){this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(X(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},bt=class{enable(){}disable(){}attach(){}};function Ht(o,t){return t.some(n=>{let e=o.bottom<n.top,i=o.top>n.bottom,s=o.right<n.left,r=o.left>n.right;return e||i||s||r})}function je(o,t){return t.some(n=>{let e=o.top<n.top,i=o.bottom>n.bottom,s=o.left<n.left,r=o.right>n.right;return e||i||s||r})}var Yt=class{constructor(t,n,e,i){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Ht(n,[{width:e,height:i,bottom:i,right:e,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}},si=(()=>{let t=class t{constructor(e,i,s,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new bt,this.close=a=>new zt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Nt(this._viewportRuler,this._document),this.reposition=a=>new Yt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}};t.\u0275fac=function(i){return new(i||t)(h(Te),h(Lt),h(E),h(v))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o}
1)(),J=class{constructor(t){if(this.scrollStrategy=new bt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let n=Object.keys(t);for(let e of n)t[e]!==void 0&&(this[e]=t[e])}}};var Wt=class{constructor(t,n){this.connectionPair=t,this.scrollableViewProperties=n}};var Ye=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(h(v))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),ni=(()=>{let t=class t extends Ye{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=s=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){let l=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};t.\u0275fac=function(i){return new(i||t)(h(v),h(E,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),oi=(()=>{let t=class t extends Ye{constructor(e,i,s){super(e),this._platform=i,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=mt(r)},this._clickListener=r=>{let a=mt(r),l=r.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let c=d.length-1;c>-1;c--){let u=d[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(l))break;let b=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>b.next(r)):b.next(r)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(h(v),h(L),h(E,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),wt=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Mt()){let s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<s.length;r++)s[r].remove()}let i=this._document.createElement("div");i.classList.add(e),Mt()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}};t.\u0275fac=function(i){return new(i||t)(h(v),h(L))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o}
1)(),W=class{constructor(t,n,e,i,s,r,a,l,d,c=!1){this._portalOutlet=t,this._host=n,this._pane=e,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=c,this._backdropElement=null,this._backdropClick=new g,this._attachments=new g,this._detachments=new g,this._locationChanges=S.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new g,this._outsidePointerEvents=new g,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Z(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=k(k({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Qt(k({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=_(this._config.width),t.height=_(this._config.height),t.minWidth=_(this._config.minWidth),t.minHeight=_(this._config.minHeight),t.maxWidth=_(this._config.maxWidth),t.maxHeight=_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,n,e){let i=Ft(n||[]).filter(s=>!!s);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{let t=this._ngZone.onStable.pipe(Et(ee(this._attachments,this._detachments))).subscribe(()=>{(!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()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Be="cdk-overlay-connected-position-bounding-box",ri=/([A-Za-z%]+)$/,Xt=class{get positions(){return this._preferredPositions}
vendor: 10,833 bytes, line 1
1constructor(t,n,e,i,s){this._viewportRuler=n,this._document=e,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new g,this._resizeSubscription=S.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Be),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,n=this._overlayRect,e=this._viewportRect,i=this._containerRect,s=[],r;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(l,n,a),c=this._getOverlayFit(d,n,e,a);if(c.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(c,d,e)){s.push({position:a,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:d,originPoint:l,position:a,overlayRect:n})}if(s.length){let a=null,l=-1;for(let d of s){let c=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);c>l&&(l=c,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.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&&Y(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,n)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,n,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?r:a}n.left<0&&(i-=n.left);let s;return e.originY=="center"?s=t.top+t.height/2:s=e.originY=="top"?t.top:t.bottom,n.top<0&&(s-=n.top),{x:i,y:s}}_getOverlayPoint(t,n,e){let i;e.overlayX=="center"?i=-n.width/2:e.overlayX==="start"?i=this._isRtl()?-n.width:0:i=this._isRtl()?0:-n.width;let s;return e.overlayY=="center"?s=-n.height/2:s=e.overlayY=="top"?0:-n.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,n,e,i){let s=Ne(n),{x:r,y:a}=t,l=this._getOffset(i,"x"),d=this._getOffset(i,"y");l&&(r+=l),d&&(a+=d);let c=0-r,u=r+s.width-e.width,b=0-a,w=a+s.height-e.height,y=this._subtractOverflows(s.width,c,u),D=this._subtractOverflows(s.height,b,w),Ut=y*D;return{visibleArea:Ut,isCompletelyWithinViewport:s.width*s.height===Ut,fitsInViewportVertically:D===s.height,fitsInViewportHorizontally:y==s.width}}_canFitWithFlexibleDimensions(t,n,e){if(this._hasFlexibleDimensions){let i=e.bottom-n.y,s=e.right-n.x,r=Ve(this._overlayRef.getConfig().minHeight),a=Ve(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||r!=null&&r<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=s;return l&&d}return!1}_pushOverlayOnScreen(t,n,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=Ne(n),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),a=Math.max(t.y+i.height-s.height,0),l=Math.max(s.top-e.top-t.y,0),d=Math.max(s.left-e.left-t.x,0),c=0,u=0;return i.width<=s.width?c=d||-r:c=t.x<this._viewportMargin?s.left-e.left-t.x:0,i.height<=s.height?u=l||-a:u=t.y<this._viewportMargin?s.top-e.top-t.y:0,this._previousPushAmount={x:c,y:u},{x:t.x+c,y:t.y+u}}_applyPosition(t,n){if(this._setTransformOrigin(t),this._setOverlayElementStyles(n,t),this._setBoundingBoxStyles(n,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!ai(this._lastScrollVisibility,e)){let i=new Wt(t,e);this._positionChanges.next(i)}this._lastScrollVisibility=e}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let n=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,i=t.overlayY;t.overlayX==="center"?e="center":this._isRtl()?e=t.overlayX==="start"?"right":"left":e=t.overlayX==="start"?"left":"right";for(let s=0;s<n.length;s++)n[s].style.transformOrigin=`${e} ${i}`}_calculateBoundingBoxRect(t,n){let e=this._viewportRect,i=this._isRtl(),s,r,a;if(n.overlayY==="top")r=t.y,s=e.height-r+this._viewportMargin;else if(n.overlayY==="bottom")a=e.height-t.y+this._viewportMargin*2,s=e.height-a+this._viewportMargin;else{let w=Math.min(e.bottom-t.y+e.top,t.y),y=this._lastBoundingBoxSize.height;s=w*2,r=t.y-w,s>y&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-y/2)}let l=n.overlayX==="start"&&!i||n.overlayX==="end"&&i,d=n.overlayX==="end"&&!i||n.overlayX==="start"&&i,c,u,b;if(d)b=e.width-t.x+this._viewportMargin*2,c=t.x-this._viewportMargin;else if(l)u=t.x,c=e.right-t.x;else{let w=Math.min(e.right-t.x+e.left,t.x),y=this._lastBoundingBoxSize.width;c=w*2,u=t.x-w,c>y&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-y/2)}return{top:r,left:u,bottom:a,right:b,width:c,height:s}}_setBoundingBoxStyles(t,n){let e=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=_(e.height),i.top=_(e.top),i.bottom=_(e.bottom),i.width=_(e.width),i.left=_(e.left),i.right=_(e.right),n.overlayX==="center"?i.alignItems="center":i.alignItems=n.overlayX==="end"?"flex-end":"flex-start",n.overlayY==="center"?i.justifyContent="center":i.justifyContent=n.overlayY==="bottom"?"flex-end":"flex-start",s&&(i.maxHeight=_(s)),r&&(i.maxWidth=_(r))}this._lastBoundingBoxSize=e,Y(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Y(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Y(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,n){let e={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){let c=this._viewportRuler.getViewportScrollPosition();Y(e,this._getExactOverlayY(n,t,c)),Y(e,this._getExactOverlayX(n,t,c))}else e.position="static";let a="",l=this._getOffset(n,"x"),d=this._getOffset(n,"y");l&&(a+=`translateX(${l}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(i?e.maxHeight=_(r.maxHeight):s&&(e.maxHeight="")),r.maxWidth&&(i?e.maxWidth=_(r.maxWidth):s&&(e.maxWidth="")),Y(this._pane.style,e)}_getExactOverlayY(t,n,e){let i={top:"",bottom:""},s=this._getOverlayPoint(n,this._overlayRect,t);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;i.bottom=`${r-(s.y+this._overlayRect.height)}px`}else i.top=_(s.y);return i}_getExactOverlayX(t,n,e){let i={left:"",right:""},s=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(s.x+this._overlayRect.width)}px`}else i.left=_(s.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:je(t,e),isOriginOutsideView:Ht(t,e),isOverlayClipped:je(n,e),isOverlayOutsideView:Ht(n,e)}}_subtractOverflows(t,...n){return n.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+n-this._viewportMargin,width:t-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,n){return n==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Ft(t).forEach(n=>
1{n!==""&&this._appliedPanelClasses.indexOf(n)===-1&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof R)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let n=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+n,height:e,width:n}}};function Y(o,t){for(let n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);return o}function Ve(o){if(typeof o!="number"&&o!=null){let[t,n]=o.split(ri);return!n||n==="px"?parseFloat(t):null}return o||null}function Ne(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function ai(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var ze="cdk-global-overlay-wrapper",Zt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let n=t.getConfig();this._overlayRef=t,this._width&&!n.width&&t.updateSize({width:this._width}),this._height&&!n.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(ze),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:a}=e,l=(i==="100%"||i==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),c=this._xPosition,u=this._xOffset,b=this._overlayRef.getConfig().direction==="rtl",w="",y="",D="";l?D="flex-start":c==="center"?(D="center",b?y=u:w=u):b?c==="left"||c==="end"?(D="flex-end",w=u):(c==="right"||c==="start")&&(D="flex-start",y=u):c==="left"||c==="start"?(D="flex-start",w=u):(c==="right"||c==="end")&&(D="flex-end",y=u),t.position=this._cssPosition,t.marginLeft=l?"0":w,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":y,n.justifyContent=D,n.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,e=n.style;n.classList.remove(ze),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},li=(()=>{let t=class t{constructor(e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r}global(){return new Zt}flexibleConnectedTo(e){return new Xt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(h(Lt),h(v),h(L),h(wt))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),hi=0,O=(()=>{let t=class t{constructor(e,i,s,r,a,l,d,c,u,b,w,y){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=l,this._ngZone=d,this._document=c,this._directionality=u,this._location=b,this._outsideClickDispatcher=w,this._animationsModuleType=y}create(e){let i=this._createHostElement(),s=this._createPaneElement(i),r=this._createPortalOutlet(s),a=new J(e);return a.direction=a.direction||this._directionality.value,new W(r,i,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations")}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${hi++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(pe)),new yt(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(h(si),h(wt),h(ft),h(li),h(ni),h(C),h(E),h(v),h(U),h(_e),h(oi),h(ne,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o}
1)(),ci=[{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"}],We=new $("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=P(O);return()=>o.scrollStrategies.reposition()}}),He=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(p(R))},t.\u0275dir=K({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let o=t;return o})(),ws=(()=>{let t=class t{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)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,s,r,a){this._overlay=e,this._dir=a,this._backdropSubscription=S.EMPTY,this._attachSubscription=S.EMPTY,this._detachSubscription=S.EMPTY,this._positionSubscription=S.EMPTY,this._disposeOnNavigation=!1,this._ngZone=P(E),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new A,this.positionChange=new A,this.attach=new A,this.detach=new A,this.overlayKeydown=new A,this.overlayOutsideClick=new A,this._templatePortal=new H(i,s),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ci);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!vt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let s=this._getOriginElement(),r=mt(i);(!s||s!==r&&!s.contains(r))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new J({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=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(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}
1_getOrigin(){return this.origin instanceof He?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof He?this.origin.elementRef.nativeElement:this.origin instanceof R?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(ie(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(p(O),p(G),p(et),p(We),p(U,8))},t.\u0275dir=K({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[f.None,"cdkConnectedOverlayOrigin","origin"],positions:[f.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[f.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[f.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[f.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[f.None,"cdkConnectedOverlayWidth","width"],height:[f.None,"cdkConnectedOverlayHeight","height"],minWidth:[f.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[f.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[f.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[f.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[f.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[f.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[f.None,"cdkConnectedOverlayOpen","open"],disableClose:[f.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[f.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[f.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",N],lockPosition:[f.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",N],flexibleDimensions:[f.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",N],growAfterOpen:[f.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",N],push:[f.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",N],disposeOnNavigation:[f.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",N]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Rt,Dt]});let o=t;return o})();function di(o){return()=>o.scrollStrategies.reposition()}var ui={provide:We,deps:[O],useFactory:di},Xe=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=I({type:t}),t.\u0275inj=x({providers:[O,ui],imports:[at,ht,jt,jt]});let o=t;return o})();function fi(o,t){}var dt=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var pi=(()=>
1{let t=class t extends q{constructor(e,i,s,r,a,l,d,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=d,this._focusMonitor=c,this._platform=P(L),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=P(At),this.attachDomPortal=u=>{this._portalOutlet.hasAttached();let b=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),b},this._document=s,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(i)}_focusByCssSelector(e,i){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,i)}_trapFocus(){let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let s=gt(),r=this._elementRef.nativeElement;(!s||s===this._document.body||s===r||r.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=gt();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=gt()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};t.\u0275fac=function(i){return new(i||t)(p(R),p(we),p(v,8),p(dt),p(be),p(E),p(W),p(Ce))},t.\u0275cmp=V({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,s){if(i&1&&kt(Vt,7),i&2){let r;xt(r=Pt())&&(s._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,s){i&2&&st("id",s._config.id||null)("role",s._config.role)("aria-modal",s._config.ariaModal)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null)},standalone:!0,features:[it,It],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,s){i&1&&re(0,fi,0,0,"ng-template",0)},dependencies:[Vt],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let o=t;return o}
1)(),ct=class{constructor(t,n){this.overlayRef=t,this.config=n,this.closed=new g,this.disableClose=n.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!vt(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{n.closeOnOverlayDetachments!==!1&&this.close()})}close(t,n){if(this.containerInstance){let e=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(t),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",n=""){return this.overlayRef.updateSize({width:t,height:n}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}},_i=new $("DialogScrollStrategy",{providedIn:"root",factory:()=>{let o=P(O);return()=>o.scrollStrategies.block()}}),gi=new $("DialogData"),mi=new $("DefaultDialogConfig");var vi=0,Gt=(()=>{let t=class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,s,r,a,l){this._overlay=e,this._injector=i,this._defaultOptions=s,this._parentDialog=r,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new g,this._afterOpenedAtThisLevel=new g,this._ariaHiddenElements=new Map,this.afterAllClosed=Jt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(St(void 0))),this._scrollStrategy=l}open(e,i){let s=this._defaultOptions||new dt;i=k(k({},s),i),i.id=i.id||`cdk-dialog-${vi++}`,i.id&&this.getDialogById(i.id);let r=this._getOverlayConfig(i),a=this._overlay.create(r),l=new ct(a,i),d=this._attachContainer(a,l,i);return l.containerInstance=d,this._attachDialogContent(e,l,d,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){Kt(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){Kt(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Kt(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new J({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,s){let r=s.injector||s.viewContainerRef?.injector,a=[{provide:dt,useValue:s},{provide:ct,useValue:i},{provide:W,useValue:e}],l;s.container?typeof s.container=="function"?l=s.container:(l=s.container.type,a.push(...s.container.providers(s))):l=pi;let d=new Q(l,s.viewContainerRef,C.create({parent:r||this._injector,providers:a}),s.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,i,s,r){if(e instanceof G){let a=this._createInjector(r,i,s,void 0),l={$implicit:r.data,dialogRef:i};r.templateContext&&(l=k(k({},l),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),s.attachTemplatePortal(new H(e,null,l,a))}else{let a=this._createInjector(r,i,s,this._injector),l=s.attachComponentPortal(new Q(e,r.viewContainerRef,a,r.componentFactoryResolver));i.componentRef=l,i.componentInstance=l.instance}}_createInjector(e,i,s,r){let a=e.injector||e.viewContainerRef?.injector,l=[{provide:gi,useValue:e.data},{provide:ct,useValue:i}];return e.providers&&(typeof e.providers=="function"?l.push(...e.providers(i,e,s)):l.push(...e.providers)),e.direction&&(!a||!a.get(U,null,{optional:!0}))&&l.push({provide:U,useValue:{value:e.direction,change:tt()}}),C.create({parent:a||r,providers:l})}_removeOpenDialog(e,i){let s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEac
1h((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let s=i.length-1;s>-1;s--){let r=i[s];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}};t.\u0275fac=function(i){return new(i||t)(h(O),h(C),h(mi,8),h(t,12),h(wt),h(_i))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Kt(o,t){let n=o.length;for(;n--;)t(o[n])}var Ys=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=I({type:t}),t.\u0275inj=x({providers:[Gt],imports:[Xe,ht,Se,ht]});let o=t;return o})();var bi="cds-modal-dialog",wi="cds-modal-closing",Ci="cds-modal-backdrop",Si="cds-modal-backdrop-closing",B=class{get dialog(){return this._dialog}set dialog(t){this._dialog=t,this.backdropClickSubscription.unsubscribe(),this.backdropClickSubscription=this._dialog.backdropClick.pipe(ut(()=>{this.disableClose||this.dismiss("Click outside or ESC pressed")})).subscribe()}get result(){return this._closed.pipe(Z(1)).toPromise()}get config(){return this.dialog.config}get data(){return this.config?.data}get componentInstance(){return this.dialog.componentInstance}constructor(t,n){this.docRef=t,this.disableClose=n,this.backdropClickSubscription=new S,this._closed=new g,this.closed$=this._closed.asObservable()}close(t){this.closeDialog(t)}dismiss(t){this.closeDialog(t,!0),this.config.beforeDismiss&&this.config.beforeDismiss()}closeDialog(t,n){try{this.dialog.addPanelClass(wi);let e=Tt.modalTransitionDuration,i=parseFloat(e.replace(/s/gi,""));if(isNaN(i))throw new Error("Failed to parse transition time from style import");let s=this.docRef.querySelector(".cdk-overlay-container .cdk-overlay-backdrop");s&&s.classList.add(Si),setTimeout(()=>{n?(this._closed.error(t),this.dialog.close()):(this._closed.next(t),this.dialog.close(t))},i*1e3)}catch(e){console.error(e)}finally{this.backdropClickSubscription.unsubscribe()}}},$e=(()=>{let t=class t{constructor(e,i,s,r,a){this.cdkDialogService=e,this.platformId=i,this.docRef=s,this._injector=r,this._overlay=a,this.modals=[]}open(e,i={}){if(me(this.platformId)){i.width=void 0,i.minWidth=void 0,i.maxWidth=void 0;let s=new B(this.docRef,i.disableClose??!0);i.panelClass=[bi,i.panelClass].flat().filter(Boolean),i.backdropClass=[Ci,i.backdropClass].flat().filter(Boolean),i.injector=C.create({providers:[{provide:B,useValue:s}],parent:i.injector??this._injector}),i.disableClose=!0;let r=this._overlay.position().global().centerHorizontally();return i.centered?i.positionStrategy=r.centerVertically():i.positionStrategy=r.top(Tt.spaceXl),s.dialog=this.cdkDialogService.open(e,i),this.modals.push(s),this.handleModalRemoveEvents(s),s}}openGeneric(e){return this.open(Ie,e)}handleModalRemoveEvents(e){e.result.finally(()=>{this.modals=this.modals.filter(i=>i!==e)})}getActiveModal(){let e=this.modals[this.modals.length-1];return e||null}dismissActiveModal(e){let i=this.getActiveModal();i&&i.dismiss(e)}closeActiveModal(e){let i=this.getActiveModal();i&&i.close(e)}};t.\u0275fac=function(i){return new(i||t)(h(Gt),h(se),h(v),h(C),h(O))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var Ei=["*",[["","footer",""]]],Di=["*","[footer]"],Ri=o=>["cds-modal-content",o],Oi=(o,t)=>({static:o,dynamic:t}),pn=(()=>{let t=class t{constructor(e,i){this.modalService=e,this.router=i,this.subscriptions=new S,this.SIP_DATA_SELECTOR=Oe,this.SipCostcoIcon=xe,this.modalRef=P(B)}ngOnInit(){this.subscriptions.add(this.router.events.pipe(X(e=>e instanceof Ee&&!this.router.getCurrentNavigation()?.extras?.state?.keepModals),Z(1),ut(e=>this.modalRef.dismiss("navigated"))).subscribe())}closeModal(e){this.modalRef.close(e)}dismissModal(e){this.modalRef.dismiss(e)}ngOnDestroy(){this.subscriptions.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(p($e),p(De))},t.\u0275cmp=V({type:t,selectors:[["sip-modal-dialog"]],inputs:{modalClass:"modalClass",modalId:"modalId",modalTitle:"modalTitle",modalTitleClass:"modalTitleClass",hideDismiss:"hideDismiss"},ngContentSelectors:Di,decls:11,vars:17,consts:[[3,"ngClass","sipDataSelector"],[1,"cds-modal-header"],["type","button","data-dismiss","modal",1,"cds-btn-icon",3,"click","hidden"],[3,"fontIcon"],[1,"cds-modal-body"],[1,"cds-modal-footer"]],template:function(i,s){if(i&1&&(Ot(Ei),F(0,"div",0)(1,"div",1)(2,"span"),ce(3),T(),F(4,"button",2),ot(5,"cxTranslate"),pt("click",function(){return s.dismissModal("Cross click")}),nt(6,"mat-icon",3),T()(),F(7,"div",4),_t(8),T(),F(9,"div",5),_t(10,1),T()()),i&2){let r;j("ngClass",ue(12,Ri,(r=s.modalClass)!==null&&r!==void 0?r:""))("sipDataSelector",fe(14,Oi,s.SIP_DATA_SELECTOR.MODAL,s.modalId)),st("id",s.modalId),M(2),ae("cds-modal-title ",s.modalTitleClass,""),M(),de(s.modalTitle),M(),j("hidden",s.hideDismiss),st("aria-label",rt(5,10,"modal.close")),M(2),j("fontIcon",s.SipCostcoIcon.X_THIN)}},dependencies:[ge,ke,Pe,Re],styles:[".cds-modal-content[_ngcontent-%COMP%]    {padding:16px}.cds-modal-content[_ngcontent-%COMP%]     .cds-modal-header{display:flex;align-items:center;margin-bottom:8px}.cds-modal-content[_ngcontent-%COMP%]     .cds-modal-header .cds-modal-title{flex:1;font-size:18px;font-weight:700}.cds-modal-content[_ngcontent-%COMP%]     .cds-modal-header .mat-icon.cds-icon{font-size:18px}.cds-modal-content[_ngcontent-%COMP%]     .cds-modal-body{margin-bottom:24px;max-height:65vh;overflow-x:hidden;overflow-y:auto}"],changeDetection:0});let o=t;return o}
1)();export{Me as a,Ii as b,Lt as c,Fe as d,Q as e,H as f,Vt as g,ht as h,J as i,Xt as j,O as k,He as l,ws as m,Xe as n,gi as o,Gt as p,Ys as q,Ie as r,B as s,$e as t,pn as u};

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.