1import{a as C,b as pe,c as ge}from"./chunk-DFKOY57W.js";import{a as _e,b as me,c as fe}from"./chunk-3OSB33KW.js";import{Da as g,F as J,Ga as l,Ja as D,Ka as re,Ld as he,Q as v,Qa as L,Ra as k,S as ee,Sa as oe,Ta as ae,V as te,Va as ce,a as $,b as Y,c as u,d as z,da as T,fa as ie,ia as M,ib as de,ka as se,o as Q,pb as ue,qa as d,qb as R,ra as ne,sa as p,u as y,ua as o,ud as le,v as X,vb as S,x as q}from"./chunk-PMSJWPYZ.js";import{a as F}from"./chunk-NIF3MU5U.js";function x(t){return t.buttons===0||t.detail===0}function P(t){let s=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!s&&s.identifier===-1&&(s.radiusX==null||s.radiusX===1)&&(s.radiusY==null||s.radiusY===1)}var U;function Ke(){if(U==null){let t=typeof document<"u"?document.head:null;U=!!(t&&(t.createShadowRoot||t.attachShadow))}return U}function be(t){if(Ke()){let s=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function b(t){return t.composedPath?t.composedPath()[0]:t.target}var B;try{B=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){B=!1}var h=(()=>{class t{_platformId=o(ae);isBrowser=this._platformId?le(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||B)&&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(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var A;function je(){if(A==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}function Ie(t){return je()?t:!!t.capture}var ye=new p("cdk-input-modality-detector-options"),Ae={ignoreKeys:[18,17,224,91,16]},Ee=650,K={passive:!0,capture:!0},ve=(()=>{class t{_platform=o(h);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new z(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>
vendor: 6,737 bytes, line 1
1i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=b(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<Ee||(this._modality.next(x(e)?"keyboard":"mouse"),this._mostRecentTarget=b(e))};_onTouchstart=e=>{if(P(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=b(e)};constructor(){let e=o(l),i=o(g),n=o(ye,{optional:!0});if(this._options=F(F({},Ae),n),this.modalityDetected=this._modality.pipe(T(1)),this.modalityChanged=this.modalityDetected.pipe(te()),this._platform.isBrowser){let r=o(de).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(i,"keydown",this._onKeydown,K),r.listen(i,"mousedown",this._onMousedown,K),r.listen(i,"touchstart",this._onTouchstart,K)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),E=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(E||{}),Te=new p("cdk-focus-monitor-default-options"),O=Ie({passive:!0,capture:!0}),We=(()=>{class t{_ngZone=o(l);_platform=o(h);_inputModalityDetector=o(ve);_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=o(g);_stopInputModalityDetector=new u;constructor(){let e=o(Te,{optional:!0});this._detectionMode=e?.detectionMode||E.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=b(e);for(let n=i;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,i=!1){let n=C(e);if(!this._platform.isBrowser||n.nodeType!==1)return Q();let r=be(n)||this._document,a=this._elementInfo.get(n);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new u,rootNode:r};return this._elementInfo.set(n,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){let i=C(e),n=this._elementInfo.get(i);n&&(n.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(n))}focusVia(e,i,n){let r=C(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([c,f])=>this._originChanged(c,i,f)):(this._setOrigin(i),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===E.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===E.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?Ee:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,i){let n=this._elementInfo.get(i),r=b(e);!n||!n.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),n)}_onBlur(e,i){let n=this._elementInfo.get(i);!n||n.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(n,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,O),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,O)}),this._rootNodeFocusListenerCount.set(i,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(M(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let n=this._rootNodeFocusListenerCount.get(i);n>1?this._rootNodeFocusListenerCount.set(i,n-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,O),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,O),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,n){this._setClasses(e,i),this._emitOrigin(n,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&i.push([r,n])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(i))return!0}return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function j(t){return Array.isArray(t)?t:[t]}var Me=new Set,m,He=(()=>{class t{_platform=o(h);_nonce=o(ce,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ge}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Ve(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ve(t,s){if(!Me.has(t))try{m||(m=document.createElement("style"),s&&m.setAttribute("nonce",s),m.setAttribute("type","text/css"),document.head.appendChild(m)),m.sheet&&(m.sheet.insertRule(`@media ${t} {body{ }}`,0),Me.add(t))}catch(e){console.error(e)}}function Ge(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var we=(()=>{class t{_mediaMatcher=o(He);_zone=o(l);_queries=new Map;
1_destroySubject=new u;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Ce(j(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Ce(j(e)).map(a=>this._registerQuery(a).observable),r=X(n);return r=q(r.pipe(ee(1)),r.pipe(T(1),v(0))),r.pipe(y(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:f,query:Be})=>{c.matches=c.matches||f,c.breakpoints[Be]=f}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),r={observable:new Y(a=>{let c=f=>this._zone.run(()=>a.next(f));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(ie(i),y(({matches:a})=>({query:e,matches:a})),M(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ce(t){return t.map(s=>s.split(",")).reduce((s,e)=>s.concat(e)).map(s=>s.trim())}var Ze=(()=>{class t{_platform=o(h);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Ye(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=$e(it(e));if(i&&(Oe(i)===-1||!this.isVisible(i)))return!1;let n=e.nodeName.toLowerCase(),r=Oe(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!et(e)?!1:n==="audio"?e.hasAttribute("controls")?r!==-1:!1:n==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return tt(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $e(t){try{return t.frameElement}catch(s){return null}}function Ye(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function ze(t){let s=t.nodeName.toLowerCase();return s==="input"||s==="select"||s==="button"||s==="textarea"}function Qe(t){return qe(t)&&t.type=="hidden"}function Xe(t){return Je(t)&&t.hasAttribute("href")}function qe(t){return t.nodeName.toLowerCase()=="input"}function Je(t){return t.nodeName.toLowerCase()=="a"}function De(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let s=t.getAttribute("tabindex");return!!(s&&!isNaN(parseInt(s,10)))}function Oe(t){if(!De(t))return null;let s=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}function et(t){let s=t.nodeName.toLowerCase(),e=s==="input"&&t.type;return e==="text"||e==="password"||s==="select"||s==="textarea"}function tt(t){return Qe(t)?!1:ze(t)||Xe(t)||t.hasAttribute("contenteditable")||De(t)}function it(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Le=new p("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),ke=new p("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),st=0,Re=(()=>{class t{_ngZone=o(l);_defaultOptions=o(ke,{optional:!0});_liveElement;_document=o(g);_sanitizer=o(he);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(Le,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let n=this._defaultOptions,r,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:fe(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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",i=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${st++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<i.length;n++){let r=i[n],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nt=(()=>{class t{_elementRef=o(L);_liveAnnouncer=o(Re);_contentObserver=o(pe);_ngZone=o(l);get politeness(){return this._politeness}set politeness(e){this._politeness=e==="off"||e==="assertive"?e:"polite",this._politeness==="off"?this._subscription&&(this._subscription.unsubscribe(),this._subscription=void 0):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{let i=this._elementRef.nativeElement.textContent;i!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(i,this._politeness,this.duration),this._previousAnnouncedText=i)})))}_politeness="polite";duration;_previousAnnouncedText;_subscription;constructor(){o(_e).load(me)}ngOnDestroy(){this._subscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=R({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:[0,"cdkAriaLive","politeness"],duration:[0,"cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"]})}return t})(),_=(function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t})(_||{}),Ne="cdk-high-contrast-black-on-white",Fe="cdk-high-contrast-white-on-black",W="cdk-high-contrast-active",Se=(()=>{class t{_platform=o(h);_hasCheckedHighContrastMode=!1;_document=o(g);_breakpointSubscription;constructor(){this._breakpointSubscription=o(we).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasse
vendor: 5,909 bytes, line 1
1s())})}getHighContrastMode(){if(!this._platform.isBrowser)return _.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,n=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return _.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return _.BLACK_ON_WHITE}return _.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(W,Ne,Fe),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===_.BLACK_ON_WHITE?e.add(W,Ne):i===_.WHITE_ON_BLACK&&e.add(W,Fe)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rt=(()=>{class t{constructor(){o(Se)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ue({type:t});static \u0275inj=ne({imports:[ge]})}return t})();var ot=200,N=class{_letterKeyStream=new u;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new u;selectedItem=this._selectedItem;constructor(s,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:ot;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(s),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(s){this._selectedItemIndex=s}setItems(s){this._items=s}handleKey(s){let e=s.keyCode;s.key&&s.key.length===1?this._letterKeyStream.next(s.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(s){this._letterKeyStream.pipe(se(e=>this._pressedLetters.push(e)),v(s),J(()=>this._pressedLetters.length>0),y(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let n=(this._selectedItemIndex+i)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};function xe(t,...s){return s.length?s.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var I=class{_items;_activeItemIndex=D(-1);_activeItem=D(null);_wrap=!1;_typeaheadSubscription=$.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=s=>s.disabled;constructor(s,e){this._items=s,s instanceof k?this._itemChangesSubscription=s.changes.subscribe(i=>this._itemsChanged(i.toArray())):S(s)&&(this._effectRef=re(()=>this._itemsChanged(s()),{injector:e}))}tabOut=new u;change=new u;skipPredicate(s){return this._skipPredicateFn=s,this}withWrap(s=!0){return this._wrap=s,this}withVerticalOrientation(s=!0){return this._vertical=s,this}withHorizontalOrientation(s){return this._horizontal=s,this}withAllowedModifierKeys(s){return this._allowedModifierKeys=s,this}withTypeAhead(s=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new N(e,{debounceInterval:typeof s=="number"?s:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(s=!0){return this._homeAndEnd=s,this}withPageUpDown(s=!0,e=10){return this._pageUpAndDown={enabled:s,delta:e},this}setActiveItem(s){let e=this._activeItem();this.updateActiveItem(s),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(s){let e=s.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!s[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||xe(s,"shiftKey"))&&this._typeahead?.handleKey(s);return}this._typeahead?.reset(),s.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(s){let e=this._getItemsArray(),i=typeof s=="number"?s:e.indexOf(s),n=e[i];this._activeItem.set(n??null),this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i)}
1destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(s){this._wrap?this._setActiveInWrapMode(s):this._setActiveInDefaultMode(s)}_setActiveInWrapMode(s){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let n=(this._activeItemIndex()+s*i+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(s){this._setActiveItemByIndex(this._activeItemIndex()+s,s)}_setActiveItemByIndex(s,e){let i=this._getItemsArray();if(i[s]){for(;this._skipPredicateFn(i[s]);)if(s+=e,!i[s])return;this.setActiveItem(s)}}_getItemsArray(){return S(this._items)?this._items():this._items instanceof k?this._items.toArray():this._items}_itemsChanged(s){this._typeahead?.setItems(s);let e=this._activeItem();if(e){let i=s.indexOf(e);i>-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var H=class extends I{setActiveItem(s){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(s),this.activeItem&&this.activeItem.setActiveStyles()}};var V=class extends I{_origin="program";setFocusOrigin(s){return this._origin=s,this}setActiveItem(s){super.setActiveItem(s),this.activeItem&&this.activeItem.focus(this._origin)}};var G={},Z=class t{_appId=o(oe);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(s,e=!1){return this._appId!=="ng"&&(s+=this._appId),G.hasOwnProperty(s)||(G[s]=0),`${s}${e?t._infix+"-":""}${G[s]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pe=" ";function Ui(t,s,e){let i=Ue(t,s);e=e.trim(),!i.some(n=>n.trim()===e)&&(i.push(e),t.setAttribute(s,i.join(Pe)))}function Bi(t,s,e){let i=Ue(t,s);e=e.trim();let n=i.filter(r=>r!==e);n.length?t.setAttribute(s,n.join(Pe)):t.removeAttribute(s)}function Ue(t,s){return t.getAttribute(s)?.match(/\S+/g)??[]}export{x as a,P as b,b as c,h as d,Ie as e,We as f,j as g,He as h,Ze as i,Re as j,nt as k,rt as l,xe as m,H as n,V as o,Z as p,Ui as q,Bi as r};
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.