import{a as kt}from"./chunk-XULGDGRO.js";import{a as Et}from"./chunk-43NB6BM4.js";import{a as Tt}from"./chunk-OVEGWW7W.js";import{a as wt,b as Vt}from"./chunk-LL4377Z2.js";import{a as Ft}from"./chunk-GAOYV53E.js";import{a as Ot}from"./chunk-W6JPMHYE.js";import{g as St}from"./chunk-MQVHFWCE.js";import{a as Ke}from"./chunk-VPS35GPI.js";import{a as Ct}from"./chunk-XN7T54IM.js";import{a as xt}from"./chunk-2HIDUY57.js";import{b as Re,c as X,d as se,g as vt,i as V,j as he}from"./chunk-2MELUOYA.js";import{$ as be,A as ht,B as ut,C as pe,Ea as le,G as mt,K as de,N as Je,Q as _t,U as ft,X as Xe,Y as gt,_ as Ae,aa as yt,ea as et,la as bt,ra as It,va as He,wa as W,x as ne,xa as $e,y as oe}from"./chunk-WOPE6PPO.js";import{a as dt}from"./chunk-MDIMQ3H3.js";import{$b as ye,Ad as J,Bb as qe,Bc as Y,Bd as Ye,Ca as M,Cc as Be,Da as ke,Db as Qe,Dc as z,Ec as ie,Fa as _e,Ha as st,Ib as s,Jb as f,Ka as D,Kb as g,Lb as q,Mb as We,Nb as je,Ob as xe,Pb as T,Qb as w,Qc as R,Rb as E,Tc as De,Ub as K,Vb as at,Xb as B,Yc as Ze,Za as c,Zb as r,_b as ge,ac as ze,bc as Le,cc as h,dc as u,eb as ve,fd as O,gd as Pe,hc as Q,ib as N,ic as Me,jb as fe,kc as Ce,lc as m,ma as lt,mb as te,mc as ce,na as ee,nb as A,nc as Se,oa as me,ob as d,oc as Ue,pa as Z,pd as Ne,qd as Te,ra as F,rc as rt,rd as we,sc as ct,sd as Oe,tc as pt,va as C,wa as S,xa as $,xb as k}from"./chunk-GJDGQISV.js";import{a as ue,b as Ie}from"./chunk-SNAKHGZS.js";var zt=`
    .p-iconfield {
        position: relative;
        display: block;
    }

    .p-inputicon {
        position: absolute;
        top: 50%;
        margin-top: calc(-1 * (dt('icon.size') / 2));
        color: dt('iconfield.icon.color');
        line-height: 1;
        z-index: 1;
    }

    .p-iconfield .p-inputicon:first-child {
        inset-inline-start: dt('form.field.padding.x');
    }

    .p-iconfield .p-inputicon:last-child {
        inset-inline-end: dt('form.field.padding.x');
    }

    .p-iconfield .p-inputtext:not(:first-child),
    .p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
        padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
    }

    .p-iconfield .p-inputtext:not(:last-child) {
        padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
    }

    .p-iconfield:has(.p-inputfield-sm) .p-inputicon {
        font-size: dt('form.field.sm.font.size');
        width: dt('form.field.sm.font.size');
        height: dt('form.field.sm.font.size');
        margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
    }

    .p-iconfield:has(.p-inputfield-lg) .p-inputicon {
        font-size: dt('form.field.lg.font.size');
        width: dt('form.field.lg.font.size');
        height: dt('form.field.lg.font.size');
        margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
    }
`;var Jt=["*"],Xt={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},Lt=(()=>{class t extends le{name="iconfield";style=zt;classes=Xt;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=ee({token:t,factory:t.\u0275fac})}return t})();var Mt=new Z("ICONFIELD_INSTANCE"),Bt=(()=>{class t extends se{componentName="IconField";hostName="";_componentStyle=F(Lt);$pcIconField=F(Mt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=F(V,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(i,n){i&2&&m(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[Y([Lt,{provide:Mt,useExisting:t},{provide:X,useExisting:t}]),te([V]),A],ngContentSelectors:Jt,decls:1,vars:0,template:function(i,n){i&1&&(ge(),ye(0))},dependencies:[J,he],encapsulation:2,changeDetection:0})}return t})();var ei=["data-p-icon","blank"],Dt=(()=>{class t extends Ke{static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","blank"]],features:[A],attrs:ei,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&($(),xe(0,"rect",0))},encapsulation:2})}return t})();var ti=["data-p-icon","search"],Pt=(()=>{class t extends Ke{pathId;onInit(){this.pathId="url(#"+Re()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","search"]],features:[A],attrs:ti,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&($(),We(0,"g"),xe(1,"path",0),je(),We(2,"defs")(3,"clipPath",1),xe(4,"rect",2),je()()),i&2&&(k("clip-path",n.pathId),c(3),at("id",n.pathId))},encapsulation:2})}return t})();var ii=["*"],ni={root:"p-inputicon"},Nt=(()=>{class t extends le{name="inputicon";classes=ni;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=ee({token:t,factory:t.\u0275fac})}return t})(),At=new Z("INPUTICON_INSTANCE"),Rt=(()=>{class t extends se{componentName="InputIcon";hostName="";styleClass;_componentStyle=F(Nt);$pcInputIcon=F(At,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=F(V,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(i,n){i&2&&m(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[Y([Nt,{provide:At,useExisting:t},{provide:X,useExisting:t}]),te([V]),A],ngContentSelectors:ii,decls:1,vars:0,template:function(i,n){i&1&&(ge(),ye(0))},dependencies:[J,W,he],encapsulation:2,changeDetection:0})}return t})();var Ht=["content"],li=["item"],si=["loader"],ai=["loadericon"],ri=["element"],ci=["*"],it=(t,a)=>({$implicit:t,options:a}),pi=t=>({numCols:t}),Gt=t=>({options:t}),di=()=>({styleClass:"p-virtualscroller-loading-icon"}),hi=(t,a)=>({rows:t,columns:a});function ui(t,a){t&1&&E(0)}function mi(t,a){if(t&1&&(T(0),d(1,ui,1,0,"ng-container",10),w()),t&2){let e=r(2);c(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",ie(2,it,e.loadedItems,e.getContentOptions()))}}function _i(t,a){t&1&&E(0)}function fi(t,a){if(t&1&&(T(0),d(1,_i,1,0,"ng-container",10),w()),t&2){let e=a.$implicit,i=a.index,n=r(3);c(),s("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",ie(2,it,e,n.getOptions(i)))}}function gi(t,a){if(t&1&&(f(0,"div",11,3),d(2,fi,2,5,"ng-container",12),g()),t&2){let e=r(2);Ce(e.contentStyle),m(e.cn(e.cx("content"),e.contentStyleClass)),s("pBind",e.ptm("content")),c(2),s("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function yi(t,a){if(t&1&&q(0,"div",13),t&2){let e=r(2);m(e.cx("spacer")),s("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function bi(t,a){t&1&&E(0)}function Ii(t,a){if(t&1&&(T(0),d(1,bi,1,0,"ng-container",10),w()),t&2){let e=a.index,i=r(4);c(),s("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",z(4,Gt,i.getLoaderOptions(e,i.both&&z(2,pi,i.numItemsInViewport.cols))))}}function vi(t,a){if(t&1&&(T(0),d(1,Ii,2,6,"ng-container",14),w()),t&2){let e=r(3);c(),s("ngForOf",e.loaderArr)}}function xi(t,a){t&1&&E(0)}function Ci(t,a){if(t&1&&(T(0),d(1,xi,1,0,"ng-container",10),w()),t&2){let e=r(4);c(),s("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",z(3,Gt,Be(2,di)))}}function Si(t,a){if(t&1&&($(),q(0,"svg",15)),t&2){let e=r(4);m(e.cx("loadingIcon")),s("spin",!0)("pBind",e.ptm("loadingIcon"))}}function Ti(t,a){if(t&1&&d(0,Ci,2,5,"ng-container",6)(1,Si,1,4,"ng-template",null,5,R),t&2){let e=Q(2),i=r(3);s("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function wi(t,a){if(t&1&&(f(0,"div",11),d(1,vi,2,1,"ng-container",6)(2,Ti,3,2,"ng-template",null,4,R),g()),t&2){let e=Q(3),i=r(2);m(i.cx("loader")),s("pBind",i.ptm("loader")),c(),s("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function Oi(t,a){if(t&1){let e=K();T(0),f(1,"div",7,1),B("scroll",function(n){C(e);let o=r();return S(o.onContainerScroll(n))}),d(3,mi,2,5,"ng-container",6)(4,gi,3,7,"ng-template",null,2,R)(6,yi,1,4,"div",8)(7,wi,4,5,"div",9),g(),w()}if(t&2){let e=Q(5),i=r();c(),m(i.cn(i.cx("root"),i.styleClass)),s("ngStyle",i._style)("pBind",i.ptm("root")),k("id",i._id)("tabindex",i.tabindex),c(2),s("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),c(3),s("ngIf",i._showSpacer),c(),s("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function Ei(t,a){t&1&&E(0)}function Vi(t,a){if(t&1&&(T(0),d(1,Ei,1,0,"ng-container",10),w()),t&2){let e=r(2);c(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",ie(5,it,e.items,ie(2,hi,e._items,e.loadedColumns)))}}function Fi(t,a){if(t&1&&(ye(0),d(1,Vi,2,8,"ng-container",16)),t&2){let e=r();c(),s("ngIf",e.contentTemplate||e._contentTemplate)}}var ki=`
.p-virtualscroller {
    position: relative;
    overflow: auto;
    contain: strict;
    transform: translateZ(0);
    will-change: scroll-position;
    outline: 0 none;
}

.p-virtualscroller-content {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    min-width: 100%;
    will-change: transform;
}

.p-virtualscroller-spacer {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 1px;
    transform-origin: 0 0;
    pointer-events: none;
}

.p-virtualscroller-loader {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: dt('virtualscroller.loader.mask.background');
    color: dt('virtualscroller.loader.mask.color');
}

.p-virtualscroller-loader-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-virtualscroller-loading-icon {
    font-size: dt('virtualscroller.loader.icon.size');
    width: dt('virtualscroller.loader.icon.size');
    height: dt('virtualscroller.loader.icon.size');
}

.p-virtualscroller-horizontal > .p-virtualscroller-content {
    display: flex;
}

.p-virtualscroller-inline .p-virtualscroller-content {
    position: static;
}
`,zi={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},$t=(()=>{class t extends le{name="virtualscroller";css=ki;classes=zi;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=ee({token:t,factory:t.\u0275fac})}return t})();var Kt=new Z("SCROLLER_INSTANCE"),nt=(()=>{class t extends se{zone;componentName="VirtualScroller";bindDirectiveInstance=F(V,{self:!0});$pcScroller=F(Kt,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([i,n])=>this[`_${i}`]!==n&&(this[`_${i}`]=n)),Object.entries(e).forEach(([i,n])=>this[`${i}`]!==n&&(this[`${i}`]=n)))}onLazyLoad=new M;onScroll=new M;onScrollIndexChange=new M;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=F($t);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let i=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:n,currentValue:o}=e.loading;this.lazy&&n!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:n,currentValue:o}=e.numToleratedItems;n!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:n,currentValue:o}=e.options;this.lazy&&n?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),n?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Ye(this.platformId)&&!this.initialized&&Je(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=de(this.elementViewChild?.nativeElement),this.defaultHeight=pe(this.elementViewChild?.nativeElement),this.defaultContentWidth=de(this.contentEl),this.defaultContentHeight=pe(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||ne(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:l=0,scrollLeft:p=0}=this.elementViewChild?.nativeElement,{numToleratedItems:v}=this.calculateNumItems(),I=this.getContentPosition(),y=this.itemSize,H=(b=0,x)=>b<=x?0:b,L=(b,x,G)=>b*x+G,j=(b=0,x=0)=>this.scrollTo({left:b,top:x,behavior:i}),P=this.both?{rows:0,cols:0}:0,ae=!1,_=!1;this.both?(P={rows:H(e[0],v[0]),cols:H(e[1],v[1])},j(L(P.cols,y[1],I.left),L(P.rows,y[0],I.top)),_=this.lastScrollPos.top!==l||this.lastScrollPos.left!==p,ae=P.rows!==o.rows||P.cols!==o.cols):(P=H(e,v),this.horizontal?j(L(P,y,I.left),l):j(p,L(P,y,I.top)),_=this.lastScrollPos!==(this.horizontal?p:l),ae=P!==o),this.isRangeChanged=ae,_&&(this.first=P)}}scrollInView(e,i,n="auto"){if(i){let{first:o,viewport:l}=this.getRenderedRange(),p=(y=0,H=0)=>this.scrollTo({left:y,top:H,behavior:n}),v=i==="to-start",I=i==="to-end";if(v){if(this.both)l.first.rows-o.rows>e[0]?p(l.first.cols*this._itemSize[1],(l.first.rows-1)*this._itemSize[0]):l.first.cols-o.cols>e[1]&&p((l.first.cols-1)*this._itemSize[1],l.first.rows*this._itemSize[0]);else if(l.first-o>e){let y=(l.first-1)*this._itemSize;this.horizontal?p(y,0):p(0,y)}}else if(I){if(this.both)l.last.rows-o.rows<=e[0]+1?p(l.first.cols*this._itemSize[1],(l.first.rows+1)*this._itemSize[0]):l.last.cols-o.cols<=e[1]+1&&p((l.first.cols+1)*this._itemSize[1],l.first.rows*this._itemSize[0]);else if(l.last-o<=e+1){let y=(l.first+1)*this._itemSize;this.horizontal?p(y,0):p(0,y)}}}else this.scrollToIndex(e,n)}getRenderedRange(){let e=(o,l)=>l||o?Math.floor(o/(l||o)):0,i=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:l}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(o,this._itemSize[0]),cols:e(l,this._itemSize[1])},n={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let p=this.horizontal?l:o;i=e(p,this._itemSize),n=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:n}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(I,y)=>y||I?Math.ceil(I/(y||I)):0,l=I=>Math.ceil(I/2),p=this.both?{rows:o(n,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:n,this._itemSize),v=this.d_numToleratedItems||(this.both?[l(p.rows),l(p.cols)]:l(p));return{numItemsInViewport:p,numToleratedItems:v}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),n=(p,v,I,y=!1)=>this.getLast(p+v+(p<I?2:3)*I,y),o=this.first,l=this.both?{rows:n(this.first.rows,e.rows,i[0]),cols:n(this.first.cols,e.cols,i[1],!0)}:n(this.first,e,i);this.last=l,this.numItemsInViewport=e,this.d_numToleratedItems=i,this._showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,i]=[de(this.contentEl),pe(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,o]=[de(this.elementViewChild.nativeElement),pe(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=o<this.defaultHeight?o+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),i=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),l=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:n,top:o,bottom:l,x:i+n,y:o+l}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement,i=e.parentElement?.parentElement,n=e.offsetWidth,o=i?.offsetWidth||0,l=this._scrollWidth||`${n||o}px`,p=e.offsetHeight,v=i?.offsetHeight||0,I=this._scrollHeight||`${p||v}px`,y=(H,L)=>e.style[H]=L;this.both||this.horizontal?(y("height",I),y("width",l)):y("height",I)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),i=(n,o,l,p=0)=>this.spacerStyle=Ie(ue({},this.spacerStyle),{[`${n}`]:(o||[]).length*l+p+"px"});this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,n=(l,p)=>l*p,o=(l=0,p=0)=>this.contentStyle=Ie(ue({},this.contentStyle),{transform:`translate3d(${l}px, ${p}px, 0)`});if(this.both)o(n(i.cols,this._itemSize[1]),n(i.rows,this._itemSize[0]));else{let l=n(i,this._itemSize);this.horizontal?o(l,0):o(0,l)}}}onScrollPositionChange(e){let i=e.target;if(!i)throw new Error("Event target is null");let n=this.getContentPosition(),o=(_,b)=>_?_>b?_-b:_:0,l=(_,b)=>b||_?Math.floor(_/(b||_)):0,p=(_,b,x,G,U,re)=>_<=U?U:re?x-G-U:b+U-1,v=(_,b,x,G,U,re,Fe)=>_<=re?0:Math.max(0,Fe?_<b?x:_-re:_>b?x:_-2*re),I=(_,b,x,G,U,re=!1)=>{let Fe=b+G+2*U;return _>=U&&(Fe+=U+1),this.getLast(Fe,re)},y=o(i.scrollTop,n.top),H=o(i.scrollLeft,n.left),L=this.both?{rows:0,cols:0}:0,j=this.last,P=!1,ae=this.lastScrollPos;if(this.both){let _=this.lastScrollPos.top<=y,b=this.lastScrollPos.left<=H;if(!this._appendOnly||this._appendOnly&&(_||b)){let x={rows:l(y,this._itemSize[0]),cols:l(H,this._itemSize[1])},G={rows:p(x.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],_),cols:p(x.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],b)};L={rows:v(x.rows,G.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],_),cols:v(x.cols,G.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],b)},j={rows:I(x.rows,L.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:I(x.cols,L.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},P=L.rows!==this.first.rows||j.rows!==this.last.rows||L.cols!==this.first.cols||j.cols!==this.last.cols||this.isRangeChanged,ae={top:y,left:H}}}else{let _=this.horizontal?H:y,b=this.lastScrollPos<=_;if(!this._appendOnly||this._appendOnly&&b){let x=l(_,this._itemSize),G=p(x,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,b);L=v(x,G,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,b),j=I(x,L,this.last,this.numItemsInViewport,this.d_numToleratedItems),P=L!==this.first||j!==this.last||this.isRangeChanged,ae=_}}return{first:L,last:j,isRangeChanged:P,scrollPos:ae}}onScrollChange(e){let{first:i,last:n,isRangeChanged:o,scrollPos:l}=this.onScrollPositionChange(e);if(o){let p={first:i,last:n};if(this.setContentPosition(p),this.first=i,this.last=n,this.lastScrollPos=l,this.handleEvents("onScrollIndexChange",p),this._lazy&&this.isPageChanged(i)){let v={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this._items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:n,this._items.length)};(this.lazyLoadState.first!==v.first||this.lazyLoadState.last!==v.last)&&this.handleEvents("onLazyLoad",v),this.lazyLoadState=v}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){Ye(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,i=_t()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Je(this.elementViewChild?.nativeElement)){let[e,i]=[de(this.elementViewChild?.nativeElement),pe(this.elementViewChild?.nativeElement)],[n,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?n||o:this.horizontal?n:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=de(this.contentEl),this.defaultContentHeight=pe(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let i=(this._items||[]).length,n=this.both?this.first.rows+e:this.first+e;return{index:n,count:i,first:n===0,last:n===i-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(e,i){let n=this.loaderArr.length;return ue({index:e,count:n,first:e===0,last:e===n-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},i)}static \u0275fac=function(i){return new(i||t)(ve(ke))};static \u0275cmp=N({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,n,o){if(i&1&&ze(o,Ht,4)(o,li,4)(o,si,4)(o,ai,4)(o,He,4),i&2){let l;h(l=u())&&(n.contentTemplate=l.first),h(l=u())&&(n.itemTemplate=l.first),h(l=u())&&(n.loaderTemplate=l.first),h(l=u())&&(n.loaderIconTemplate=l.first),h(l=u())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&Le(ri,5)(Ht,5),i&2){let o;h(o=u())&&(n.elementViewChild=o.first),h(o=u())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&2&&Me("height",n.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Y([$t,{provide:Kt,useExisting:t},{provide:X,useExisting:t}]),te([V]),A],ngContentSelectors:ci,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(i,n){if(i&1&&(ge(),d(0,Oi,8,10,"ng-container",6)(1,Fi,2,1,"ng-template",null,0,R)),i&2){let o=Q(2);s("ngIf",!n._disabled)("ngIfElse",o)}},dependencies:[J,Ne,Te,Oe,we,wt,W,V],encapsulation:2})}return t})(),ml=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=fe({type:t});static \u0275inj=me({imports:[nt,W,W]})}return t})();var qt=`
    .p-select {
        display: inline-flex;
        cursor: pointer;
        position: relative;
        user-select: none;
        background: dt('select.background');
        border: 1px solid dt('select.border.color');
        transition:
            background dt('select.transition.duration'),
            color dt('select.transition.duration'),
            border-color dt('select.transition.duration'),
            outline-color dt('select.transition.duration'),
            box-shadow dt('select.transition.duration');
        border-radius: dt('select.border.radius');
        outline-color: transparent;
        box-shadow: dt('select.shadow');
    }

    .p-select:not(.p-disabled):hover {
        border-color: dt('select.hover.border.color');
    }

    .p-select:not(.p-disabled).p-focus {
        border-color: dt('select.focus.border.color');
        box-shadow: dt('select.focus.ring.shadow');
        outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');
        outline-offset: dt('select.focus.ring.offset');
    }

    .p-select.p-variant-filled {
        background: dt('select.filled.background');
    }

    .p-select.p-variant-filled:not(.p-disabled):hover {
        background: dt('select.filled.hover.background');
    }

    .p-select.p-variant-filled:not(.p-disabled).p-focus {
        background: dt('select.filled.focus.background');
    }

    .p-select.p-invalid {
        border-color: dt('select.invalid.border.color');
    }

    .p-select.p-disabled {
        opacity: 1;
        background: dt('select.disabled.background');
    }

    .p-select-clear-icon {
        align-self: center;
        color: dt('select.clear.icon.color');
        inset-inline-end: dt('select.dropdown.width');
    }

    .p-select-dropdown {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: transparent;
        color: dt('select.dropdown.color');
        width: dt('select.dropdown.width');
        border-start-end-radius: dt('select.border.radius');
        border-end-end-radius: dt('select.border.radius');
    }

    .p-select-label {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        flex: 1 1 auto;
        width: 1%;
        padding: dt('select.padding.y') dt('select.padding.x');
        text-overflow: ellipsis;
        cursor: pointer;
        color: dt('select.color');
        background: transparent;
        border: 0 none;
        outline: 0 none;
        font-size: 1rem;
    }

    .p-select-label.p-placeholder {
        color: dt('select.placeholder.color');
    }

    .p-select.p-invalid .p-select-label.p-placeholder {
        color: dt('select.invalid.placeholder.color');
    }

    .p-select.p-disabled .p-select-label {
        color: dt('select.disabled.color');
    }

    .p-select-label-empty {
        overflow: hidden;
        opacity: 0;
    }

    input.p-select-label {
        cursor: default;
    }

    .p-select-overlay {
        position: absolute;
        top: 0;
        left: 0;
        background: dt('select.overlay.background');
        color: dt('select.overlay.color');
        border: 1px solid dt('select.overlay.border.color');
        border-radius: dt('select.overlay.border.radius');
        box-shadow: dt('select.overlay.shadow');
        min-width: 100%;
        transform-origin: inherit;
        will-change: transform;
    }

    .p-select-header {
        padding: dt('select.list.header.padding');
    }

    .p-select-filter {
        width: 100%;
    }

    .p-select-list-container {
        overflow: auto;
    }

    .p-select-option-group {
        cursor: auto;
        margin: 0;
        padding: dt('select.option.group.padding');
        background: dt('select.option.group.background');
        color: dt('select.option.group.color');
        font-weight: dt('select.option.group.font.weight');
    }

    .p-select-list {
        margin: 0;
        padding: 0;
        list-style-type: none;
        padding: dt('select.list.padding');
        gap: dt('select.list.gap');
        display: flex;
        flex-direction: column;
    }

    .p-select-option {
        cursor: pointer;
        font-weight: normal;
        white-space: nowrap;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        padding: dt('select.option.padding');
        border: 0 none;
        color: dt('select.option.color');
        background: transparent;
        transition:
            background dt('select.transition.duration'),
            color dt('select.transition.duration'),
            border-color dt('select.transition.duration'),
            box-shadow dt('select.transition.duration'),
            outline-color dt('select.transition.duration');
        border-radius: dt('select.option.border.radius');
    }

    .p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
        background: dt('select.option.focus.background');
        color: dt('select.option.focus.color');
    }

    .p-select-option:not(.p-select-option-selected):not(.p-disabled):hover {
        background: dt('select.option.focus.background');
        color: dt('select.option.focus.color');
    }

    .p-select-option.p-select-option-selected {
        background: dt('select.option.selected.background');
        color: dt('select.option.selected.color');
    }

    .p-select-option.p-select-option-selected.p-focus {
        background: dt('select.option.selected.focus.background');
        color: dt('select.option.selected.focus.color');
    }
   
    .p-select-option-blank-icon {
        flex-shrink: 0;
    }

    .p-select-option-check-icon {
        position: relative;
        flex-shrink: 0;
        margin-inline-start: dt('select.checkmark.gutter.start');
        margin-inline-end: dt('select.checkmark.gutter.end');
        color: dt('select.checkmark.color');
    }

    .p-select-empty-message {
        padding: dt('select.empty.message.padding');
    }

    .p-select-fluid {
        display: flex;
        width: 100%;
    }

    .p-select-sm .p-select-label {
        font-size: dt('select.sm.font.size');
        padding-block: dt('select.sm.padding.y');
        padding-inline: dt('select.sm.padding.x');
    }

    .p-select-sm .p-select-dropdown .p-icon {
        font-size: dt('select.sm.font.size');
        width: dt('select.sm.font.size');
        height: dt('select.sm.font.size');
    }

    .p-select-lg .p-select-label {
        font-size: dt('select.lg.font.size');
        padding-block: dt('select.lg.padding.y');
        padding-inline: dt('select.lg.padding.x');
    }

    .p-select-lg .p-select-dropdown .p-icon {
        font-size: dt('select.lg.font.size');
        width: dt('select.lg.font.size');
        height: dt('select.lg.font.size');
    }

    .p-floatlabel-in .p-select-filter {
        padding-block-start: dt('select.padding.y');
        padding-block-end: dt('select.padding.y');
    }
`;var Ve=t=>({height:t}),ot=t=>({$implicit:t});function Li(t,a){if(t&1&&($(),q(0,"svg",6)),t&2){let e=r(2);m(e.cx("optionCheckIcon")),s("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function Mi(t,a){if(t&1&&($(),q(0,"svg",7)),t&2){let e=r(2);m(e.cx("optionBlankIcon")),s("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function Bi(t,a){if(t&1&&(T(0),d(1,Li,1,3,"svg",4)(2,Mi,1,3,"svg",5),w()),t&2){let e=r();c(),s("ngIf",e.selected),c(),s("ngIf",!e.selected)}}function Di(t,a){if(t&1&&(f(0,"span",8),ce(1),g()),t&2){let e=r();s("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),c(),Se(e.label??"empty")}}function Pi(t,a){t&1&&E(0)}var Ni=["item"],Ai=["group"],Ri=["loader"],Hi=["selectedItem"],$i=["header"],Qt=["filter"],Ki=["footer"],Gi=["emptyfilter"],qi=["empty"],Qi=["dropdownicon"],Wi=["loadingicon"],ji=["clearicon"],Ui=["filtericon"],Zi=["onicon"],Yi=["officon"],Ji=["cancelicon"],Xi=["focusInput"],en=["editableInput"],tn=["items"],nn=["scroller"],on=["overlay"],ln=["firstHiddenFocusableEl"],sn=["lastHiddenFocusableEl"],Wt=t=>({class:t}),jt=t=>({options:t}),Ut=(t,a)=>({$implicit:t,options:a}),an=()=>({});function rn(t,a){if(t&1&&(T(0),ce(1),w()),t&2){let e=r(2);c(),Se(e.label()==="p-emptylabel"?"\xA0":e.label())}}function cn(t,a){if(t&1&&E(0,24),t&2){let e=r(2);s("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",z(2,ot,e.selectedOption))}}function pn(t,a){if(t&1&&(f(0,"span"),ce(1),g()),t&2){let e=r(3);c(),Se(e.label()==="p-emptylabel"?"\xA0":e.label())}}function dn(t,a){if(t&1&&d(0,pn,2,1,"span",18),t&2){let e=r(2);s("ngIf",e.isSelectedOptionEmpty())}}function hn(t,a){if(t&1){let e=K();f(0,"span",22,3),B("focus",function(n){C(e);let o=r();return S(o.onInputFocus(n))})("blur",function(n){C(e);let o=r();return S(o.onInputBlur(n))})("keydown",function(n){C(e);let o=r();return S(o.onKeyDown(n))}),d(2,rn,2,1,"ng-container",20)(3,cn,1,4,"ng-container",23)(4,dn,1,1,"ng-template",null,4,R),g()}if(t&2){let e=Q(5),i=r();m(i.cx("label")),s("pBind",i.ptm("label"))("pTooltip",i.tooltip)("pTooltipUnstyled",i.unstyled())("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),k("aria-disabled",i.$disabled())("id",i.inputId)("aria-label",i.ariaLabel||(i.label()==="p-emptylabel"?void 0:i.label()))("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.$disabled()?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-required",i.required())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0)("data-p",i.labelDataP),c(2),s("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate)("ngIfElse",e),c(),s("ngIf",(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function un(t,a){if(t&1){let e=K();f(0,"input",25,5),B("input",function(n){C(e);let o=r();return S(o.onEditableInput(n))})("keydown",function(n){C(e);let o=r();return S(o.onKeyDown(n))})("focus",function(n){C(e);let o=r();return S(o.onInputFocus(n))})("blur",function(n){C(e);let o=r();return S(o.onInputBlur(n))}),g()}if(t&2){let e=r();m(e.cx("label")),s("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),k("id",e.inputId)("aria-haspopup","listbox")("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)("data-p",e.labelDataP)}}function mn(t,a){if(t&1){let e=K();$(),f(0,"svg",28),B("click",function(n){C(e);let o=r(2);return S(o.clear(n))}),g()}if(t&2){let e=r(2);m(e.cx("clearIcon")),s("pBind",e.ptm("clearIcon")),k("data-pc-section","clearicon")}}function _n(t,a){}function fn(t,a){t&1&&d(0,_n,0,0,"ng-template")}function gn(t,a){if(t&1){let e=K();f(0,"span",29),B("click",function(n){C(e);let o=r(2);return S(o.clear(n))}),d(1,fn,1,0,null,30),g()}if(t&2){let e=r(2);m(e.cx("clearIcon")),s("pBind",e.ptm("clearIcon")),k("data-pc-section","clearicon"),c(),s("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",z(6,Wt,e.cx("clearIcon")))}}function yn(t,a){if(t&1&&(T(0),d(1,mn,1,4,"svg",26)(2,gn,2,8,"span",27),w()),t&2){let e=r();c(),s("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),s("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function bn(t,a){t&1&&E(0)}function In(t,a){if(t&1&&(T(0),d(1,bn,1,0,"ng-container",31),w()),t&2){let e=r(2);c(),s("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function vn(t,a){if(t&1&&q(0,"span",33),t&2){let e=r(3);m(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),s("pBind",e.ptm("loadingIcon"))}}function xn(t,a){if(t&1&&q(0,"span",33),t&2){let e=r(3);m(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),s("pBind",e.ptm("loadingIcon"))}}function Cn(t,a){if(t&1&&(T(0),d(1,vn,1,3,"span",32)(2,xn,1,3,"span",32),w()),t&2){let e=r(2);c(),s("ngIf",e.loadingIcon),c(),s("ngIf",!e.loadingIcon)}}function Sn(t,a){if(t&1&&(T(0),d(1,In,2,1,"ng-container",18)(2,Cn,3,2,"ng-container",18),w()),t&2){let e=r();c(),s("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),s("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Tn(t,a){if(t&1&&q(0,"span",36),t&2){let e=r(3);m(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),s("pBind",e.ptm("dropdownIcon"))}}function wn(t,a){if(t&1&&($(),q(0,"svg",37)),t&2){let e=r(3);m(e.cx("dropdownIcon")),s("pBind",e.ptm("dropdownIcon"))}}function On(t,a){if(t&1&&(T(0),d(1,Tn,1,3,"span",34)(2,wn,1,3,"svg",35),w()),t&2){let e=r(2);c(),s("ngIf",e.dropdownIcon),c(),s("ngIf",!e.dropdownIcon)}}function En(t,a){}function Vn(t,a){t&1&&d(0,En,0,0,"ng-template")}function Fn(t,a){if(t&1&&(f(0,"span",36),d(1,Vn,1,0,null,30),g()),t&2){let e=r(2);m(e.cx("dropdownIcon")),s("pBind",e.ptm("dropdownIcon")),c(),s("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",z(5,Wt,e.cx("dropdownIcon")))}}function kn(t,a){if(t&1&&d(0,On,3,2,"ng-container",18)(1,Fn,2,7,"span",34),t&2){let e=r();s("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),c(),s("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zn(t,a){t&1&&E(0)}function Ln(t,a){t&1&&E(0)}function Mn(t,a){if(t&1&&(T(0),d(1,Ln,1,0,"ng-container",30),w()),t&2){let e=r(3);c(),s("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",z(2,jt,e.filterOptions))}}function Bn(t,a){if(t&1&&($(),q(0,"svg",45)),t&2){let e=r(4);s("pBind",e.ptm("filterIcon"))}}function Dn(t,a){}function Pn(t,a){t&1&&d(0,Dn,0,0,"ng-template")}function Nn(t,a){if(t&1&&(f(0,"span",36),d(1,Pn,1,0,null,31),g()),t&2){let e=r(4);s("pBind",e.ptm("filterIcon")),c(),s("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function An(t,a){if(t&1){let e=K();f(0,"p-iconfield",41)(1,"input",42,10),B("input",function(n){C(e);let o=r(3);return S(o.onFilterInputChange(n))})("keydown",function(n){C(e);let o=r(3);return S(o.onFilterKeyDown(n))})("blur",function(n){C(e);let o=r(3);return S(o.onFilterBlur(n))}),g(),f(3,"p-inputicon",41),d(4,Bn,1,1,"svg",43)(5,Nn,2,2,"span",44),g()()}if(t&2){let e=r(3);s("pt",e.ptm("pcFilterContainer"))("unstyled",e.unstyled()),c(),m(e.cx("pcFilter")),s("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter"))("unstyled",e.unstyled()),k("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),c(2),s("pt",e.ptm("pcFilterIconContainer"))("unstyled",e.unstyled()),c(),s("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),s("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function Rn(t,a){if(t&1&&(f(0,"div",29),B("click",function(i){return i.stopPropagation()}),d(1,Mn,2,4,"ng-container",20)(2,An,6,17,"ng-template",null,9,R),g()),t&2){let e=Q(3),i=r(2);m(i.cx("header")),s("pBind",i.ptm("header")),c(),s("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function Hn(t,a){t&1&&E(0)}function $n(t,a){if(t&1&&d(0,Hn,1,0,"ng-container",30),t&2){let e=a.$implicit,i=a.options;r(2);let n=Q(9);s("ngTemplateOutlet",n)("ngTemplateOutletContext",ie(2,Ut,e,i))}}function Kn(t,a){t&1&&E(0)}function Gn(t,a){if(t&1&&d(0,Kn,1,0,"ng-container",30),t&2){let e=a.options,i=r(4);s("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",z(2,jt,e))}}function qn(t,a){t&1&&(T(0),d(1,Gn,1,4,"ng-template",null,12,R),w())}function Qn(t,a){if(t&1){let e=K();f(0,"p-scroller",46,11),B("onLazyLoad",function(n){C(e);let o=r(2);return S(o.onLazyLoad.emit(n))}),d(2,$n,1,5,"ng-template",null,2,R)(4,qn,3,0,"ng-container",18),g()}if(t&2){let e=r(2);Ce(z(9,Ve,e.scrollHeight)),s("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),c(4),s("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Wn(t,a){t&1&&E(0)}function jn(t,a){if(t&1&&(T(0),d(1,Wn,1,0,"ng-container",30),w()),t&2){r();let e=Q(9),i=r();c(),s("ngTemplateOutlet",e)("ngTemplateOutletContext",ie(3,Ut,i.visibleOptions(),Be(2,an)))}}function Un(t,a){if(t&1&&(f(0,"span",36),ce(1),g()),t&2){let e=r(2).$implicit,i=r(3);m(i.cx("optionGroupLabel")),s("pBind",i.ptm("optionGroupLabel")),c(),Se(i.getOptionGroupLabel(e.optionGroup))}}function Zn(t,a){t&1&&E(0)}function Yn(t,a){if(t&1&&(T(0),f(1,"li",50),d(2,Un,2,4,"span",34)(3,Zn,1,0,"ng-container",30),g(),w()),t&2){let e=r(),i=e.$implicit,n=e.index,o=r().options,l=r(2);c(),m(l.cx("optionGroup")),s("ngStyle",z(8,Ve,o.itemSize+"px"))("pBind",l.ptm("optionGroup")),k("id",l.id+"_"+l.getOptionIndex(n,o)),c(),s("ngIf",!l.groupTemplate&&!l._groupTemplate),c(),s("ngTemplateOutlet",l.groupTemplate||l._groupTemplate)("ngTemplateOutletContext",z(10,ot,i.optionGroup))}}function Jn(t,a){if(t&1){let e=K();T(0),f(1,"p-selectItem",51),B("onClick",function(n){C(e);let o=r().$implicit,l=r(3);return S(l.onOptionSelect(n,o))})("onMouseEnter",function(n){C(e);let o=r().index,l=r().options,p=r(2);return S(p.onOptionMouseEnter(n,p.getOptionIndex(o,l)))}),g(),w()}if(t&2){let e=r(),i=e.$implicit,n=e.index,o=r().options,l=r(2);c(),s("id",l.id+"_"+l.getOptionIndex(n,o))("option",i)("checkmark",l.checkmark)("selected",l.isSelected(i))("label",l.getOptionLabel(i))("disabled",l.isOptionDisabled(i))("template",l.itemTemplate||l._itemTemplate)("focused",l.focusedOptionIndex()===l.getOptionIndex(n,o))("ariaPosInset",l.getAriaPosInset(l.getOptionIndex(n,o)))("ariaSetSize",l.ariaSetSize)("index",n)("unstyled",l.unstyled())("scrollerOptions",o)}}function Xn(t,a){if(t&1&&d(0,Yn,4,12,"ng-container",18)(1,Jn,2,13,"ng-container",18),t&2){let e=a.$implicit,i=r(3);s("ngIf",i.isOptionGroup(e)),c(),s("ngIf",!i.isOptionGroup(e))}}function eo(t,a){if(t&1&&ce(0),t&2){let e=r(4);Ue(" ",e.emptyFilterMessageLabel," ")}}function to(t,a){t&1&&E(0,null,14)}function io(t,a){if(t&1&&d(0,to,2,0,"ng-container",31),t&2){let e=r(4);s("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function no(t,a){if(t&1&&(f(0,"li",50),qe(1,eo,1,1)(2,io,1,1,"ng-container"),g()),t&2){let e=r().options,i=r(2);m(i.cx("emptyMessage")),s("ngStyle",z(5,Ve,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),c(),Qe(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate?1:2)}}function oo(t,a){if(t&1&&ce(0),t&2){let e=r(4);Ue(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function lo(t,a){t&1&&E(0,null,15)}function so(t,a){if(t&1&&d(0,lo,2,0,"ng-container",31),t&2){let e=r(4);s("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function ao(t,a){if(t&1&&(f(0,"li",50),qe(1,oo,1,1)(2,so,1,1,"ng-container"),g()),t&2){let e=r().options,i=r(2);m(i.cx("emptyMessage")),s("ngStyle",z(5,Ve,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),c(),Qe(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function ro(t,a){if(t&1&&(f(0,"ul",47,13),d(2,Xn,2,2,"ng-template",48)(3,no,3,7,"li",49)(4,ao,3,7,"li",49),g()),t&2){let e=a.$implicit,i=a.options,n=r(2);Ce(i.contentStyle),m(n.cn(n.cx("list"),i.contentStyleClass)),s("pBind",n.ptm("list")),k("id",n.id+"_list")("aria-label",n.listLabel),c(2),s("ngForOf",e),c(),s("ngIf",n.filterValue&&n.isEmpty()),c(),s("ngIf",!n.filterValue&&n.isEmpty())}}function co(t,a){t&1&&E(0)}function po(t,a){if(t&1){let e=K();f(0,"div",38)(1,"span",39,6),B("focus",function(n){C(e);let o=r();return S(o.onFirstHiddenFocus(n))}),g(),d(3,zn,1,0,"ng-container",31)(4,Rn,4,5,"div",27),f(5,"div",36),d(6,Qn,5,11,"p-scroller",40)(7,jn,2,6,"ng-container",18)(8,ro,5,10,"ng-template",null,7,R),g(),d(10,co,1,0,"ng-container",31),f(11,"span",39,8),B("focus",function(n){C(e);let o=r();return S(o.onLastHiddenFocus(n))}),g()()}if(t&2){let e=r();m(e.cn(e.cx("overlay"),e.panelStyleClass)),s("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),k("data-p",e.overlayDataP),c(),s("pBind",e.ptm("hiddenFirstFocusableEl")),k("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),s("ngIf",e.filter),c(),m(e.cx("listContainer")),Me("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),s("pBind",e.ptm("listContainer")),c(),s("ngIf",e.virtualScroll),c(),s("ngIf",!e.virtualScroll),c(3),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),c(),s("pBind",e.ptm("hiddenLastFocusableEl")),k("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var ho=`
    ${qt}

    /* For PrimeNG */
    .p-select-label.p-placeholder {
        color: dt('select.placeholder.color');
    }

    .p-select.ng-invalid.ng-dirty {
        border-color: dt('select.invalid.border.color');
    }

    .p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,
    .p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
        color: dt('select.invalid.placeholder.color');
    }
`,uo={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Ge=(()=>{class t extends le{name="select";style=ho;classes=uo;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=ee({token:t,factory:t.\u0275fac})}return t})();var Zt=new Z("SELECT_INSTANCE"),mo=new Z("SELECT_ITEM_INSTANCE"),_o={provide:dt,useExisting:lt(()=>Yt),multi:!0},fo=(()=>{class t extends se{hostName="select";$pcSelectItem=F(mo,{optional:!0,skipSelf:!0})??void 0;$pcSelect=F(Zt,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new M;onMouseEnter=new M;_componentStyle=F(Ge);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",O],focused:[2,"focused","focused",O],label:"label",disabled:[2,"disabled","disabled",O],visible:[2,"visible","visible",O],itemSize:[2,"itemSize","itemSize",Pe],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",O],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Y([Ge,{provide:X,useExisting:t}]),A],decls:4,vars:21,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(i,n){i&1&&(f(0,"li",0),B("click",function(l){return n.onOptionClick(l)})("mouseenter",function(l){return n.onOptionMouseEnter(l)}),d(1,Bi,3,2,"ng-container",1)(2,Di,2,2,"span",2)(3,Pi,1,0,"ng-container",3),g()),i&2&&(m(n.cx("option")),s("id",n.id)("pBind",n.getPTOptions())("ngStyle",z(17,Ve,(n.scrollerOptions==null?null:n.scrollerOptions.itemSize)+"px")),k("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-selected",n.selected)("data-p-disabled",n.disabled),c(),s("ngIf",n.checkmark),c(),s("ngIf",!n.template),c(),s("ngTemplateOutlet",n.template)("ngTemplateOutletContext",z(19,ot,n.option)))},dependencies:[J,Te,Oe,we,W,Vt,St,Dt,he,V],encapsulation:2})}return t})(),Yt=(()=>{class t extends Ft{zone;filterService;componentName="Select";bindDirectiveInstance=F(V,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){gt(e,this._options())||this._options.set(e)}appendTo=Ze(void 0);motionOptions=Ze(void 0);onChange=new M;onFilter=new M;onFocus=new M;onBlur=new M;onClick=new M;onShow=new M;onHide=new M;onClear=new M;onLazyLoad=new M;_componentStyle=F(Ge);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=De(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=_e(null);_placeholder=_e(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=_e(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=_e(-1);labelId;listId;clicked=_e(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation($e.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation($e.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation($e.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=De(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let n=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],l=[];return o.forEach(p=>{let I=this.getOptionGroupChildren(p).filter(y=>n?.includes(y));I.length>0&&l.push(Ie(ue({},p),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...I]}))}),this.flatOptions(l)}return n}return e});label=De(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(n=>this.isOptionValueEqualsModelValue(n));if(i!==-1){let n=e[i];return this.getOptionLabel(n)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,st(()=>{let n=this.modelValue(),o=this.visibleOptions();if(o&&Ae(o)){let l=this.findSelectedOptionIndex();if(l!==-1||n===void 0||typeof n=="string"&&n.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[l];else{let p=o.findIndex(v=>this.isSelected(v));p!==-1&&(this.selectedOption=o[p])}}Xe(o)&&(n===void 0||this.isModelValueNotSet())&&Ae(this.selectedOption)&&(this.selectedOption=null),n!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||Re("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=ne(this.overlayViewChild?.overlayViewChild?.nativeElement,'li[data-p-selected="true"]');e&&ft(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let l=this.getOptionGroupChildren(n);return l&&l.forEach(p=>i.push(p)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,n=!0,o=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let l=this.getOptionValue(i);this.updateModel(l,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:l})}n&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&yt(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){let n=e.querySelector("label");n&&this._placeholder.set(n.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?be(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?be(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,n,o){return this.ptm(o,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return Xe(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?be(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?be(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?be(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&Ae(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&oe(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=ne(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-section="listcontainer"]'),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&setTimeout(()=>{this.scroller?.scrollToIndex(i)},10)}else{let i=ne(this.itemsWrapper,'[data-p-selected="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e)}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&vt(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&oe(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&oe(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&bt(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let n=this.visibleOptions()[i];this.onOptionSelect(e,n,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=ne(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?et(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastOptionIndex(){return et(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide()}else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;e.shiftKey?n.setSelectionRange(0,n.value.length):(n.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;if(e.shiftKey)n.setSelectionRange(0,n.value.length);else{let o=n.value.length;n.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())oe(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ut(this.overlayViewChild?.el?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;oe(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?mt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;oe(i)}hasFocusableElements(){return ht(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return n=this.visibleOptions().findIndex(l=>this.isOptionMatched(l)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,n)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?ne(this.el.nativeElement,'[data-pc-section="label"]').focus():oe(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}get containerDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",[this.size()]:this.size()})}get labelDataP(){return this.cn({placeholder:this.label===this.placeholder,clearable:this.showClear,disabled:this.$disabled(),[this.size()]:this.size(),empty:!this.editable&&!this.selectedItemTemplate&&(!this.label?.()||this.label()==="p-emptylabel"||this.label()?.length===0)})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.$appendTo()]:"overlay-"+this.$appendTo()})}static \u0275fac=function(i){return new(i||t)(ve(ke),ve(It))};static \u0275cmp=N({type:t,selectors:[["p-select"]],contentQueries:function(i,n,o){if(i&1&&ze(o,Ni,4)(o,Ai,4)(o,Ri,4)(o,Hi,4)(o,$i,4)(o,Qt,4)(o,Ki,4)(o,Gi,4)(o,qi,4)(o,Qi,4)(o,Wi,4)(o,ji,4)(o,Ui,4)(o,Zi,4)(o,Yi,4)(o,Ji,4)(o,He,4),i&2){let l;h(l=u())&&(n.itemTemplate=l.first),h(l=u())&&(n.groupTemplate=l.first),h(l=u())&&(n.loaderTemplate=l.first),h(l=u())&&(n.selectedItemTemplate=l.first),h(l=u())&&(n.headerTemplate=l.first),h(l=u())&&(n.filterTemplate=l.first),h(l=u())&&(n.footerTemplate=l.first),h(l=u())&&(n.emptyFilterTemplate=l.first),h(l=u())&&(n.emptyTemplate=l.first),h(l=u())&&(n.dropdownIconTemplate=l.first),h(l=u())&&(n.loadingIconTemplate=l.first),h(l=u())&&(n.clearIconTemplate=l.first),h(l=u())&&(n.filterIconTemplate=l.first),h(l=u())&&(n.onIconTemplate=l.first),h(l=u())&&(n.offIconTemplate=l.first),h(l=u())&&(n.cancelIconTemplate=l.first),h(l=u())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&Le(Qt,5)(Xi,5)(en,5)(tn,5)(nn,5)(on,5)(ln,5)(sn,5),i&2){let o;h(o=u())&&(n.filterViewChild=o.first),h(o=u())&&(n.focusInputViewChild=o.first),h(o=u())&&(n.editableInputViewChild=o.first),h(o=u())&&(n.itemsViewChild=o.first),h(o=u())&&(n.scroller=o.first),h(o=u())&&(n.overlayViewChild=o.first),h(o=u())&&(n.firstHiddenFocusableElementOnOverlay=o.first),h(o=u())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&B("click",function(l){return n.onContainerClick(l)}),i&2&&(k("id",n.id)("data-p",n.containerDataP),m(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",O],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",O],editable:[2,"editable","editable",O],tabindex:[2,"tabindex","tabindex",Pe],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",O],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",O],checkmark:[2,"checkmark","checkmark",O],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",O],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",O],showClear:[2,"showClear","showClear",O],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",O],virtualScroll:[2,"virtualScroll","virtualScroll",O],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Pe],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",O],selectOnFocus:[2,"selectOnFocus","selectOnFocus",O],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",O],autofocusFilter:[2,"autofocusFilter","autofocusFilter",O],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[Y([_o,Ge,{provide:Zt,useExisting:t},{provide:X,useExisting:t}]),te([V]),A],decls:11,vars:18,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","unstyled","scrollerOptions"]],template:function(i,n){if(i&1){let o=K();d(0,hn,6,25,"span",16)(1,un,2,20,"input",17)(2,yn,3,2,"ng-container",18),f(3,"div",19),d(4,Sn,3,2,"ng-container",20)(5,kn,2,2,"ng-template",null,0,R),g(),f(7,"p-overlay",21,1),pt("visibleChange",function(p){return C(o),ct(n.overlayVisible,p)||(n.overlayVisible=p),S(p)}),B("onBeforeEnter",function(p){return n.onOverlayBeforeEnter(p)})("onAfterLeave",function(p){return n.onOverlayAfterLeave(p)})("onHide",function(){return n.hide()}),d(9,po,13,23,"ng-template",null,2,R),g()}if(i&2){let o=Q(6);s("ngIf",!n.editable),c(),s("ngIf",n.editable),c(),s("ngIf",n.isVisibleClearIcon),c(),m(n.cx("dropdown")),s("pBind",n.ptm("dropdown")),k("aria-expanded",n.overlayVisible??!1)("data-pc-section","trigger"),c(),s("ngIf",n.loading)("ngIfElse",o),c(3),s("hostAttrSelector",n.$attrSelector),rt("visible",n.overlayVisible),s("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[J,Ne,Te,Oe,we,fo,Et,kt,xt,Ot,Tt,Pt,Ct,Bt,Rt,nt,W,he,V],encapsulation:2,changeDetection:0})}return t})(),Zl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=fe({type:t});static \u0275inj=me({imports:[Yt,W,W]})}return t})();export{Dt as a,Pt as b,Bt as c,Rt as d,nt as e,ml as f,Yt as g,Zl as h};
