@skill-map/cli 0.37.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{a as wn,c as Tn,d as In,e as kn}from"./chunk-UMCC32EJ.js";import{e as tn,j as mi,n as gn,o as bn,u as fi,v as yn,x as gi}from"./chunk-S2NIJM7Z.js";import{a as nt,b as bi,c as Lt,d as Sn,e as Rt,f as Mn,h as En,i as Dn,j as On}from"./chunk-YZ7KCL3G.js";import{a as ht,b as hi,d as Ft,e as qe,f as vn,g as Bt,h as wt,i as Tt,m as ct,o as mt,p as xn,q as Cn}from"./chunk-5CFY2K3Y.js";import{$ as I,$a as M,$c as Wt,Aa as V,Ba as p,Bb as ft,Cb as gt,Cc as dn,Db as bt,Dc as Ri,Ec as Et,Fc as ut,Gc as pn,Hb as se,Hc as un,I as Ge,Ib as rt,Ic as he,J as de,Jb as j,Jc as W,K as ke,Ka as C,Kb as Ee,Kc as De,La as Yi,Lb as oi,Lc as Ie,M as pe,Ma as Zi,Mb as Oi,Na as ye,Nb as ai,O as R,Oa as ve,Ob as Kt,Oc as fe,Pb as Xi,Pc as Le,Qb as J,Qc as U,Rc as hn,Sc as Dt,T as _,Ta as r,Tb as ie,Tc as Ut,U as f,Ua as u,Uc as tt,V as T,Va as m,Vc as $,Wa as F,Wc as ze,X as ti,Xa as ne,Xb as Y,Xc as mn,Ya as oe,Yc as _n,Za as K,Zc as ui,_a as S,_c as q,aa as Ae,ab as E,ad as Ot,bc as en,bd as Ct,cc as w,cd as Vt,d as St,da as Oe,db as P,dc as X,dd as Q,ea as ii,eb as xe,ed as fn,fb as k,fd as it,ga as D,hb as s,ib as dt,jb as We,jc as Je,kb as Ve,lb as Fe,lc as je,mb as b,mc as we,nb as y,nc as He,nd as _i,oa as c,oc as Te,pc as ue,qc as Xe,rb as Me,sa as _e,sb as Pe,ub as Ce,vb as g,wa as O,wb as H,xa as Se,xb as ee,ya as ni,yb as le,za as be,zb as Ji,zc as ce}from"./chunk-LTQTJU54.js";import{A as jt,B as ci,E as an,F as xt,G as rn,H as Bi,K as lt,O as ln,P as qt,R as Li,S as di,U as Ne,V as Ke,W as st,X as sn,Y as pt,a as Ye,b as $t,ba as cn,ca as Qt,d as nn,da as pi,k as Gt,l as Vi,m as ri,n as li,o as on,p as Mt,t as et,u as ae,v as Be,w as Fi,x as yt,y as si,z as vt}from"./chunk-3SI3TVER.js";import{a as me,b as Ue}from"./chunk-VB56BUGO.js";var Vn=`
1
+ import{a as wn,c as Tn,d as In,e as kn}from"./chunk-G5CKBDBB.js";import{e as tn,j as mi,m as gn,n as bn,v as yn,x as fi,y as gi}from"./chunk-QZM2G474.js";import{a as nt,b as bi,c as Lt,d as Sn,e as Rt,f as Mn,h as En,i as Dn,j as On}from"./chunk-4CDTW64C.js";import{a as ht,b as hi,d as Ft,e as qe,f as vn,g as Bt,h as wt,i as Tt,m as ct,o as mt,p as xn,q as Cn}from"./chunk-KKOZFBXQ.js";import{$ as I,$a as M,$c as Wt,Aa as V,Ba as p,Bb as ft,Cb as gt,Cc as dn,Db as bt,Dc as Ri,Ec as Et,Fc as ut,Gc as pn,Hb as se,Hc as un,I as Ge,Ib as rt,Ic as he,J as de,Jb as j,Jc as W,K as ke,Ka as C,Kb as Ee,Kc as De,La as Yi,Lb as oi,Lc as Ie,M as pe,Ma as Zi,Mb as Oi,Na as ye,Nb as ai,O as R,Oa as ve,Ob as Kt,Oc as fe,Pb as Xi,Pc as Le,Qb as J,Qc as U,Rc as hn,Sc as Dt,T as _,Ta as r,Tb as ie,Tc as Ut,U as f,Ua as u,Uc as tt,V as T,Va as m,Vc as $,Wa as F,Wc as ze,X as ti,Xa as ne,Xb as Y,Xc as mn,Ya as oe,Yc as _n,Za as K,Zc as ui,_a as S,_c as q,aa as Ae,ab as E,ad as Ot,bc as en,bd as Ct,cc as w,cd as Vt,d as St,da as Oe,db as P,dc as X,dd as Q,ea as ii,eb as xe,ed as fn,fb as k,fd as it,ga as D,hb as s,ib as dt,jb as We,jc as Je,kb as Ve,lb as Fe,lc as je,mb as b,mc as we,nb as y,nc as He,nd as _i,oa as c,oc as Te,pc as ue,qc as Xe,rb as Me,sa as _e,sb as Pe,ub as Ce,vb as g,wa as O,wb as H,xa as Se,xb as ee,ya as ni,yb as le,za as be,zb as Ji,zc as ce}from"./chunk-O5N7UH37.js";import{A as jt,B as ci,E as an,F as xt,G as rn,H as Bi,K as lt,O as ln,P as qt,R as Li,S as di,U as Ne,V as Ke,W as st,X as sn,Y as pt,a as Ye,b as $t,ba as cn,ca as Qt,d as nn,da as pi,k as Gt,l as Vi,m as ri,n as li,o as on,p as Mt,t as et,u as ae,v as Be,w as Fi,x as yt,y as si,z as vt}from"./chunk-3SI3TVER.js";import{a as me,b as Ue}from"./chunk-VB56BUGO.js";var Vn=`
2
2
  .p-datatable {
3
3
  position: relative;
4
4
  display: block;
@@ -2324,7 +2324,7 @@ p-sortIcon, p-sort-icon, p-sorticon {
2324
2324
  stroke: dt('progressspinner.color.four');
2325
2325
  }
2326
2326
  }
2327
- `;var Wm={root:()=>["p-progressspinner"],spin:"p-progressspinner-spin",circle:"p-progressspinner-circle"},Go=(()=>{class t extends Ie{name="progressspinner";style=$o;classes=Wm;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var jo=new pe("PROGRESSSPINNER_INSTANCE"),Wi=(()=>{class t extends Le{componentName="ProgressSpinner";$pcProgressSpinner=R(jo,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=R($,{self:!0});styleClass;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=R(Go);static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["p-progressSpinner"],["p-progress-spinner"],["p-progressspinner"]],hostVars:5,hostBindings:function(i,n){i&2&&(C("aria-label",n.ariaLabel)("role","progressbar")("aria-busy",!0),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},features:[se([Go,{provide:jo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],decls:2,vars:10,consts:[["viewBox","25 25 50 50",3,"pBind"],["cx","50","cy","50","r","20","stroke-miterlimit","10",3,"pBind"]],template:function(i,n){i&1&&(T(),u(0,"svg",0),F(1,"circle",1),m()),i&2&&(g(n.cx("spin")),Pe("animation-duration",n.animationDuration),r("pBind",n.ptm("spin")),c(),g(n.cx("circle")),r("pBind",n.ptm("circle")),C("fill",n.fill)("stroke-width",n.strokeWidth))},dependencies:[ue,W,$],encapsulation:2,changeDetection:0})}return t})(),qo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Wi,W,W]})}return t})();var Xt={title:"Nodes",subtitleDefault:"Flat view of the collection \xB7 click a row to inspect it on the graph.",showingPrefix:"Showing",showingSuffix:t=>` of ${t} nodes.`,loading:"Loading collection\u2026",columns:{kind:"Kind",name:"Name",path:"Path",version:"Version",stability:"Stability"},emptyFiltered:"No nodes match the current filters.",emptyAll:"No nodes loaded.",resetFilters:"Reset filters",rowAriaLabel:t=>`Inspect ${t}`,missing:"\u2014"};var Qo=`
2327
+ `;var Wm={root:()=>["p-progressspinner"],spin:"p-progressspinner-spin",circle:"p-progressspinner-circle"},Go=(()=>{class t extends Ie{name="progressspinner";style=$o;classes=Wm;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var jo=new pe("PROGRESSSPINNER_INSTANCE"),Wi=(()=>{class t extends Le{componentName="ProgressSpinner";$pcProgressSpinner=R(jo,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=R($,{self:!0});styleClass;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=R(Go);static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["p-progressSpinner"],["p-progress-spinner"],["p-progressspinner"]],hostVars:5,hostBindings:function(i,n){i&2&&(C("aria-label",n.ariaLabel)("role","progressbar")("aria-busy",!0),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},features:[se([Go,{provide:jo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],decls:2,vars:10,consts:[["viewBox","25 25 50 50",3,"pBind"],["cx","50","cy","50","r","20","stroke-miterlimit","10",3,"pBind"]],template:function(i,n){i&1&&(T(),u(0,"svg",0),F(1,"circle",1),m()),i&2&&(g(n.cx("spin")),Pe("animation-duration",n.animationDuration),r("pBind",n.ptm("spin")),c(),g(n.cx("circle")),r("pBind",n.ptm("circle")),C("fill",n.fill)("stroke-width",n.strokeWidth))},dependencies:[ue,W,$],encapsulation:2,changeDetection:0})}return t})(),qo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Wi,W,W]})}return t})();var Xt={title:"Nodes",subtitleDefault:"Flat view of the collection \xB7 click a row to inspect it on the graph.",showingPrefix:"Showing",showingSuffix:t=>` of ${t} nodes.`,loading:"Loading collection\u2026",columns:{kind:"Kind",name:"Name",path:"Path",version:"Version",stability:"Stability"},emptyFiltered:"No nodes match the current filters.",emptyAll:"No nodes loaded.",resetFilters:"Reset filters",rowAriaLabel:t=>`Inspect ${t}`,missing:"\xB7"};var Qo=`
2328
2328
  .p-multiselect {
2329
2329
  display: inline-flex;
2330
2330
  cursor: pointer;
@@ -2585,4 +2585,4 @@ p-sortIcon, p-sort-icon, p-sorticon {
2585
2585
  p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
2586
2586
  color: dt('multiselect.invalid.placeholder.color');
2587
2587
  }
2588
- `,of={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},af={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size()==="small","p-multiselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},Si=(()=>{class t extends Ie{name="multiselect";style=nf;classes=af;inlineStyles=of;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var Uo=new pe("MULTISELECT_INSTANCE"),rf=new pe("MULTISELECT_ITEM_INSTANCE"),lf={provide:qe,useExisting:Ge(()=>Ei),multi:!0},sf=(()=>{class t extends Le{$pcMultiSelectItem=R(rf,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new I;onMouseEnter=new I;_componentStyle=R(Si);onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onOptionClick(a)})("mouseenter",function(a){return n.onOptionMouseEnter(a)}),i&2&&(C("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled)("aria-checked",n.selected),g(n.cx("option")),Pe("height",n.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",w],label:"label",disabled:[2,"disabled","disabled",w],itemSize:[2,"itemSize","itemSize",X],focused:[2,"focused","focused",w],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[se([Si]),V],attrs:Zm,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(u(0,"p-checkbox",1),p(1,i0,3,0,"ng-container",2),m(),p(2,n0,2,1,"span",2)(3,o0,1,0,"ng-container",3)),i&2&&(r("ngModel",n.selected)("binary",!0)("tabindex",-1)("variant",n.variant)("ariaLabel",n.label)("pt",n.getPTOptions("pcOptionCheckbox"))("unstyled",n.unstyled()),c(),r("ngIf",n.itemCheckboxIconTemplate),c(),r("ngIf",!n.template),c(),r("ngTemplateOutlet",n.template)("ngTemplateOutletContext",j(11,Wo,n.option)))},dependencies:[ue,we,Te,Yt,ct,wt,Tt,W],encapsulation:2})}return t})(),Ei=(()=>{class t extends mt{zone;filterService;overlayService;componentName="MultiSelect";id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){di(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=Y();variant=Y();fluid=Y(void 0,{transform:w});appendTo=Y(void 0);motionOptions=Y(void 0);onChange=new I;onFilter=new I;onFocus=new I;onBlur=new I;onClick=new I;onClear=new I;onPanelShow=new I;onPanelHide=new I;onLazyLoad=new I;onRemove=new I;onSelectAllChange=new I;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=R(Si);bindDirectiveInstance=R($,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=Oe(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=ie(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=ie(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=R(Uo,{optional:!0,skipSelf:!0})??void 0;pcFluid=R(ui,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=Oe(null);_filterValue=Oe(null);_options=Oe([]);startRangeIndex=Oe(-1);focusedOptionIndex=Oe(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(De.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(De.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&Ne(this.modelValue())&&this.showClear&&!this.$disabled()&&!this.readonly&&this.$filled()}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get listLabel(){return this.config.getTranslation(De.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=ie(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=cn(e)&&Q.isObject(e[0]);if(this._filterValue()){let n;if(i?n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):n=e.filter(o=>o.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let o=this.options||[],a=[];return o.forEach(d=>{let v=this.getOptionGroupChildren(d).filter(x=>n.includes(x));v.length>0&&a.push(Ue(me({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...v]}))}),this.flatOptions(a)}return n}return e});label=ie(()=>{let e,i=this.modelValue();if(i&&i?.length&&this.displaySelectedLabel){if(Ne(this.maxSelectedLabels)&&i?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let n=0;n<i.length;n++)n!==0&&(e+=", "),e+=this.getLabelByValue(i[n])}else e=this.placeholder()||"";return e});chipSelectedItems=ie(()=>Ne(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,i,n){super(),this.zone=e,this.filterService=i,this.overlayService=n,ii(()=>{let o=this.modelValue(),a=this.getAllVisibleAndNonVisibleOptions();a&&Ne(a)&&(this.optionValue&&this.optionLabel&&o?this.selectedOptions=a.filter(d=>o.includes(d[this.optionLabel])||o.includes(d[this.optionValue])):this.selectedOptions=o,this.cd.markForCheck())})}onInit(){this.id=this.id||ce("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let a=this.getOptionGroupChildren(n);return a&&a.forEach(d=>i.push(d)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,i=!1,n=-1){let{originalEvent:o,option:a}=e;if(this.$disabled()||this.isOptionDisabled(a))return;let d=this.isSelected(a),h=[];d?h=this.modelValue().filter(v=>!st(v,this.getOptionValue(a),this.equalityKey()||"")):h=[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(h,o),n!==-1&&this.focusedOptionIndex.set(n),i&&Be(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:h,itemValue:a})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,i=-1,n=-1){if(i===-1&&(i=this.findNearestSelectedOptionIndex(n,!0)),n===-1&&(n=this.findNearestSelectedOptionIndex(i)),i!==-1&&n!==-1){let o=Math.min(i,n),a=Math.max(i,n),d=this.visibleOptions().slice(o,a+1).filter(h=>this.isValidOption(h)).map(h=>this.getOptionValue(h));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,i=!1){let n=-1;return this.hasSelectedOption()&&(i?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}findPrevSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e>0?pt(this.visibleOptions().slice(0,e),n=>this.isValidSelectedOption(n)):-1;return i>-1?i:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidSelectedOption(n)):-1;return i>-1?i+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return Ne(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?Ke(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let i=this.getOptionValue(e);return(this.modelValue()||[]).some(n=>st(n,i,this.equalityKey()||""))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}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}getLabelByValue(e){let n=(this.group?this.flatOptions(this._options()):this._options()||[]).find(o=>!this.isOptionGroup(o)&&st(this.getOptionValue(o),e,this.equalityKey()||""));return n?this.getOptionLabel(n):null}getSelectedItemsLabel(){let e=/{(.*?)}/,i=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(De.SELECTION_MESSAGE);return e.test(i)?i.replace(i.match(e)[0],this.modelValue().length+""):i}getOptionLabel(e){return this.optionLabel?Ke(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Ke(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Ke(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?Ke(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&i){let n=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),e.preventDefault();break}!i&&pi(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}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);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,i=!1){if(e.altKey&&!i)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findFirstOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,a,this.startRangeIndex()),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findLastFocusedOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),a),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.stopPropagation(),e.preventDefault())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())Be(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(n)&&this.onOptionSelect({originalEvent:e,option:n})}this.overlayVisible&&this.hide(this.filter)}}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.$disabled()||this.loading||this.readonly||e.target?.isSameNode?.(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?si(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onInputFocus(e){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({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}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()})}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ci(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onToggleAll(e){if(!(this.$disabled()||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let i=this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&(this.optionDisabled?Ke(h,this.optionDisabled):h&&h.disabled!==void 0?h.disabled:!1)),n=this.allSelected()?this.visibleOptions().filter(h=>!this.isValidOption(h)&&this.isSelected(h)):this.visibleOptions().filter(h=>this.isSelected(h)||this.isValidOption(h)),a=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&this.isValidOption(h)):[],...i,...n].map(h=>this.getOptionValue(h)),d=[...new Set(a)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),U.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView())}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=ae(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)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}allSelected(){return this.selectAll!==null?this.selectAll:Ne(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<(this.options?.length||0)}show(e){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&Dt(),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=ae(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&&this.scroller?.scrollToIndex(i)}else{let i=ae(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e)}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,i){let n=this.modelValue().filter(o=>!st(o,e,this.equalityKey()||""));this.updateModel(n,i),this.onChange.emit({originalEvent:i,value:n,itemValue:e}),this.onRemove.emit({newValue:n,removed:e}),i&&i.stopPropagation()}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?pt(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?pt(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return pt(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return this.focusedOptionIndex()!==-1?(n=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)),n=n===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)):n+this.focusedOptionIndex()):n=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}hasFocusableElements(){return yt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}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(),"has-chip":this.display==="chip"&&this.value&&this.value.length&&(this.maxSelectedLabels?this.value.length<=this.maxSelectedLabels:!0),empty:!this.placeholder&&!this.$filled})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.appendTo]:"overlay-"+this.appendTo})}writeControlValue(e,i){this.value=e,i(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,i,n,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(i){return new(i||t)(_e(Ae),_e(Et),_e(ut))};static \u0275cmp=O({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(i,n,o){if(i&1&&Ve(o,un,5)(o,pn,5)(o,a0,4)(o,r0,4)(o,l0,4)(o,s0,4)(o,c0,4)(o,d0,4)(o,p0,4)(o,u0,4)(o,h0,4)(o,m0,4)(o,_0,4)(o,f0,4)(o,g0,4)(o,b0,4)(o,y0,4)(o,v0,4)(o,x0,4)(o,he,4),i&2){let a;b(a=y())&&(n.footerFacet=a.first),b(a=y())&&(n.headerFacet=a.first),b(a=y())&&(n.itemTemplate=a.first),b(a=y())&&(n.groupTemplate=a.first),b(a=y())&&(n.loaderTemplate=a.first),b(a=y())&&(n.headerTemplate=a.first),b(a=y())&&(n.filterTemplate=a.first),b(a=y())&&(n.footerTemplate=a.first),b(a=y())&&(n.emptyFilterTemplate=a.first),b(a=y())&&(n.emptyTemplate=a.first),b(a=y())&&(n.selectedItemsTemplate=a.first),b(a=y())&&(n.loadingIconTemplate=a.first),b(a=y())&&(n.filterIconTemplate=a.first),b(a=y())&&(n.removeTokenIconTemplate=a.first),b(a=y())&&(n.chipIconTemplate=a.first),b(a=y())&&(n.clearIconTemplate=a.first),b(a=y())&&(n.dropdownIconTemplate=a.first),b(a=y())&&(n.itemCheckboxIconTemplate=a.first),b(a=y())&&(n.headerCheckboxIconTemplate=a.first),b(a=y())&&(n.templates=a)}},viewQuery:function(i,n){if(i&1&&Fe(C0,5)(w0,5)(T0,5)(I0,5)(k0,5)(S0,5)(M0,5)(E0,5),i&2){let o;b(o=y())&&(n.overlayViewChild=o.first),b(o=y())&&(n.filterInputChild=o.first),b(o=y())&&(n.focusInputViewChild=o.first),b(o=y())&&(n.itemsViewChild=o.first),b(o=y())&&(n.scroller=o.first),b(o=y())&&(n.lastHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.firstHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.headerCheckboxViewChild=o.first)}},hostVars:6,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onContainerClick(a)}),i&2&&(C("id",n.id)("data-p",n.containerDataP),Ce(n.sx("root")),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",w],group:[2,"group","group",w],filter:[2,"filter","filter",w],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",w],tabindex:[2,"tabindex","tabindex",X],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",X],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",w],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",w],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",w],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",w],virtualScroll:[2,"virtualScroll","virtualScroll",w],loading:[2,"loading","loading",w],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",X],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",w],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",w],autofocus:[2,"autofocus","autofocus",w],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",w],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",w],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",w],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[se([lf,Si,{provide:Uo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],ngContentSelectors:O0,decls:16,vars:51,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","pTooltipUnstyled","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","unstyled","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","unstyled","onChange",4,"ngIf"],[3,"pt","class","unstyled",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled","unstyled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt","unstyled"]],template:function(i,n){if(i&1){let o=P();dt(D0),u(0,"div",16)(1,"input",17,0),k("focus",function(d){return n.onInputFocus(d)})("blur",function(d){return n.onInputBlur(d)})("keydown",function(d){return n.onKeyDown(d)}),m()(),u(3,"div",18),k("mouseleave",function(){return n.labelContainerMouseLeave()}),u(4,"div",19),p(5,U0,3,2,"ng-container",20)(6,Z0,3,6,"ng-container",20),m()(),p(7,i_,3,2,"ng-container",20),u(8,"div",19),p(9,s_,3,2,"ng-container",21)(10,__,2,2,"ng-template",null,1,J),m(),u(12,"p-overlay",22,2),bt("visibleChange",function(d){return _(o),gt(n.overlayVisible,d)||(n.overlayVisible=d),f(d)}),k("onBeforeEnter",function(d){return n.onOverlayBeforeEnter(d)})("onAfterLeave",function(d){return n.onOverlayAfterLeave(d)})("onHide",function(d){return n.onOverlayHide(d)}),p(14,tf,13,24,"ng-template",null,3,J),m()}if(i&2){let o=Me(11);r("pBind",n.ptm("hiddenInputContainer")),C("data-p-hidden-accessible",!0),c(),r("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),C("aria-disabled",n.$disabled())("id",n.inputId)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible??!1)("aria-controls",n.overlayVisible?n.id+"_list":null)("tabindex",n.$disabled()?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("value",n.modelValue())("name",n.name())("required",n.required()?"":void 0)("disabled",n.$disabled()?"":void 0),c(2),g(n.cx("labelContainer")),r("pBind",n.ptm("labelContainer"))("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipDisabled",n._disableTooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),c(),g(n.cx("label")),r("pBind",n.ptm("label")),C("data-p",n.labelDataP),c(),r("ngIf",!n.selectedItemsTemplate&&!n._selectedItemsTemplate),c(),r("ngIf",n.selectedItemsTemplate||n._selectedItemsTemplate),c(),r("ngIf",n.isVisibleClearIcon),c(),g(n.cx("dropdown")),r("pBind",n.ptm("dropdown")),c(),r("ngIf",n.loading)("ngIfElse",o),c(3),r("hostAttrSelector",n.$attrSelector),ft("visible",n.overlayVisible),r("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[ue,Je,je,we,Te,He,sf,xi,W,mi,It,tt,Pt,yi,ht,zt,Lt,Rt,nt,wn,Yt,ct,wt,Tt,ze,$],encapsulation:2,changeDetection:0})}return t})(),Jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Ei,W,W]})}return t})();var Xo={searchPlaceholder:"Search path, name, description\u2026",allKindsPlaceholder:"All kinds",allStabilitiesPlaceholder:"All stabilities",hasIssues:"Has issues",staleOnly:"Stale only",favoritesOnly:"Favorites only",reset:"Reset"};var ea={stable:"Stable",experimental:"Experimental",deprecated:"Deprecated"};function uf(t,l){if(t&1){let e=P();u(0,"p-multiselect",10),k("ngModelChange",function(n){_(e);let o=s();return f(o.onKindsChange(n))}),m()}if(t&2){let e=s();r("options",e.kindOptions())("ngModel",e.selectedKinds())("placeholder",e.texts.allKindsPlaceholder)("showToggleAll",!1)("filter",!1)}}function hf(t,l){if(t&1){let e=P();u(0,"p-togglebutton",11),k("ngModelChange",function(n){_(e);let o=s();return f(o.onFavoritesOnlyToggle(n))}),m()}if(t&2){let e=s();r("ngModel",e.favoritesOnly())("onLabel",e.texts.favoritesOnly)("offLabel",e.texts.favoritesOnly)}}function mf(t,l){if(t&1){let e=P();u(0,"p-button",12),k("onClick",function(){_(e);let n=s();return f(n.reset())}),m()}if(t&2){let e=s();r("label",e.texts.reset)("text",!0)}}var Di=class t{store=R(gi);kindRegistry=R(fi);collection=R(_i);texts=Xo;showKinds=Y(!0);searchText=this.store.searchText;selectedKinds=this.store.selectedKinds;selectedStabilities=this.store.selectedStabilities;hasIssuesOnly=this.store.hasIssuesOnly;staleOnly=this.store.staleOnly;favoritesOnly=this.store.favoritesOnly;isActive=this.store.isActive;showFavoritesToggle=ie(()=>this.collection.hasAnyFavorites()||this.store.favoritesOnly());kindOptions=ie(()=>this.kindRegistry.kinds().map(l=>({label:l.label,value:l.name})));stabilityOptions=yn.map(l=>({label:ea[l],value:l}));onSearchChange(l){this.store.setSearchText(l)}onKindsChange(l){this.store.setKinds(l)}onStabilitiesChange(l){this.store.setStabilities(l)}onIssuesToggle(l){this.store.setHasIssuesOnly(l)}onStaleOnlyToggle(l){this.store.setStaleOnly(l)}onFavoritesOnlyToggle(l){this.store.setFavoritesOnly(l)}reset(){this.store.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-filter-bar"]],inputs:{showKinds:[1,"showKinds"]},decls:10,vars:16,consts:[["data-testid","filter-bar",1,"filter-bar"],["iconPosition","left",1,"filter-bar__search"],["styleClass","fa-solid fa-magnifying-glass"],["pInputText","","type","text","data-testid","filter-search",3,"ngModelChange","placeholder","ngModel"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"options","ngModel","placeholder","showToggleAll","filter"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-stabilities",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-triangle-exclamation","offIcon","fa-solid fa-triangle-exclamation","styleClass","filter-bar__toggle","data-testid","filter-has-issues",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-clock","offIcon","fa-solid fa-clock","styleClass","filter-bar__toggle","data-testid","filter-stale-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"label","text"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"p-iconfield",1),F(2,"p-inputicon",2),u(3,"input",3),k("ngModelChange",function(o){return i.onSearchChange(o)}),m()(),ye(4,uf,1,5,"p-multiselect",4),u(5,"p-multiselect",5),k("ngModelChange",function(o){return i.onStabilitiesChange(o)}),m(),u(6,"p-togglebutton",6),k("ngModelChange",function(o){return i.onIssuesToggle(o)}),m(),u(7,"p-togglebutton",7),k("ngModelChange",function(o){return i.onStaleOnlyToggle(o)}),m(),ye(8,hf,1,3,"p-togglebutton",8),ye(9,mf,1,2,"p-button",9),m()),e&2&&(c(3),r("placeholder",i.texts.searchPlaceholder)("ngModel",i.searchText()),c(),ve(i.showKinds()?4:-1),c(),r("options",i.stabilityOptions)("ngModel",i.selectedStabilities())("placeholder",i.texts.allStabilitiesPlaceholder)("showToggleAll",!1)("filter",!1),c(),r("ngModel",i.hasIssuesOnly())("onLabel",i.texts.hasIssues)("offLabel",i.texts.hasIssues),c(),r("ngModel",i.staleOnly())("onLabel",i.texts.staleOnly)("offLabel",i.texts.staleOnly),c(),ve(i.showFavoritesToggle()?8:-1),c(),ve(i.isActive()?9:-1))},dependencies:[ct,vn,wt,Tt,Sn,Lt,Mn,Rt,bi,nt,Jo,Ei,Vt,Ct,Cn,xn],styles:["[_nghost-%COMP%]{display:block}.filter-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 320px;min-width:280px}.filter-bar__search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.filter-bar__ms[_ngcontent-%COMP%]{min-width:180px}.filter-bar__toggle[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1280px){.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 200px;min-width:200px}.filter-bar__ms[_ngcontent-%COMP%]{min-width:140px}}"],changeDetection:0})};function _f(t,l){if(t&1&&(H(0),u(1,"strong"),H(2),m(),H(3)),t&2){let e=s();le(" ",e.texts.showingPrefix," "),c(2),ee(e.visibleCount()),c(),le("",e.texts.showingSuffix(e.total())," ")}}function ff(t,l){if(t&1&&H(0),t&2){let e=s();le(" ",e.texts.subtitleDefault," ")}}function gf(t,l){if(t&1&&F(0,"p-message",3),t&2){let e=s();r("text",e.error())}}function bf(t,l){if(t&1&&(u(0,"div",4),F(1,"p-progressSpinner",6),u(2,"span"),H(3),m()()),t&2){let e=s();c(3),ee(e.texts.loading)}}function yf(t,l){if(t&1&&(u(0,"tr")(1,"th",10),H(2),F(3,"p-sortIcon",11),m(),u(4,"th",12),H(5),F(6,"p-sortIcon",13),m(),u(7,"th",14),H(8),F(9,"p-sortIcon",15),m(),u(10,"th",16),H(11),F(12,"p-sortIcon",17),m(),u(13,"th",18),H(14),F(15,"p-sortIcon",19),m()()),t&2){let e=s(2);c(2),le(" ",e.texts.columns.kind," "),c(3),le(" ",e.texts.columns.name," "),c(3),le(" ",e.texts.columns.path," "),c(3),le(" ",e.texts.columns.version," "),c(3),le(" ",e.texts.columns.stability," ")}}function vf(t,l){if(t&1&&(u(0,"span",23),H(1),m()),t&2){let e=s().$implicit;c(),ee(e.detail)}}function xf(t,l){if(t&1){let e=P();u(0,"tr",20),k("click",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.enter",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.space",function(n){let o=_(e).$implicit,a=s(2);return n.preventDefault(),f(a.openNode(o))}),u(1,"td"),F(2,"p-tag",21),m(),u(3,"td",22),H(4),ye(5,vf,2,1,"span",23),m(),u(6,"td")(7,"code"),H(8),m()(),u(9,"td"),H(10),m(),u(11,"td"),F(12,"p-tag",24),m()()}if(t&2){let e=l.$implicit,i=s(2);C("aria-label",i.texts.rowAriaLabel(e.name))("data-testid","list-row-"+e.path),c(2),Ce(e.kindStyle),r("value",e.kindLabel),c(2),le(" ",e.name," "),c(),ve(e.detail?5:-1),c(3),ee(e.path),c(2),ee(e.version),c(2),r("value",e.stability)("severity",e.stabilitySeverity)("rounded",!0)}}function Cf(t,l){if(t&1){let e=P();u(0,"p",27),H(1),m(),u(2,"p-button",28),k("onClick",function(){_(e);let n=s(3);return f(n.resetFilters())}),m()}if(t&2){let e=s(3);c(),ee(e.texts.emptyFiltered),c(),r("label",e.texts.resetFilters)("text",!0)}}function wf(t,l){if(t&1&&(u(0,"span",26),H(1),m()),t&2){let e=s(3);c(),ee(e.texts.emptyAll)}}function Tf(t,l){if(t&1&&(u(0,"tr")(1,"td",25),ye(2,Cf,3,3)(3,wf,2,1,"span",26),m()()),t&2){let e=s(2);c(2),ve(e.filtersActive()?2:3)}}function If(t,l){if(t&1&&(u(0,"p-table",5),p(1,yf,16,5,"ng-template",7)(2,xf,13,12,"ng-template",8)(3,Tf,4,1,"ng-template",9),m()),t&2){let e=s();r("value",e.rows())("paginator",!1)("scrollable",!0)}}var ta=class t{loader=R(_i);filters=R(gi);router=R(tn);kindRegistry=R(fi);texts=Xt;loading=this.loader.loading;error=this.loader.error;total=this.loader.count;filtersActive=this.filters.isActive;rows=ie(()=>this.filters.apply(this.loader.nodes()).map(e=>{let i=Mf(e);return{path:e.path,kind:e.kind,kindLabel:this.kindRegistry.labelOf(e.kind),kindStyle:Ef(e.kind),name:e.frontmatter.name??Xt.missing,detail:kf(e),version:Sf(e),stability:i,stabilitySeverity:i==="\u2014"?"secondary":kn[i],node:e}}));visibleCount=ie(()=>this.rows().length);ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}openNode(l){this.router.navigate(["/graph"],{queryParams:{path:l.path}})}resetFilters(){this.filters.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-list-view"]],decls:12,vars:4,consts:[["data-testid","list-view",1,"list"],[1,"list__header"],[1,"list__sub"],["severity","error",3,"text"],[1,"list__loading"],["scrollHeight","calc(100dvh - 280px)","dataKey","path","sortMode","single","styleClass","p-datatable-sm list__table","data-testid","list-table",3,"value","paginator","scrollable"],["strokeWidth","3"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pSortableColumn","kind",2,"width","120px"],["field","kind"],["pSortableColumn","name"],["field","name"],["pSortableColumn","path"],["field","path"],["pSortableColumn","version",2,"width","100px"],["field","version"],["pSortableColumn","stability",2,"width","140px"],["field","stability"],["role","button","tabindex","0",1,"list__row",3,"click","keydown.enter","keydown.space"],[3,"value"],[1,"list__cell-name"],[1,"list__cell-detail"],[3,"value","severity","rounded"],["colspan","5",1,"list__empty"],["data-testid","list-empty-all"],["data-testid","list-empty-filtered"],["size","small","data-testid","list-reset-filters",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"section",0)(1,"header",1)(2,"div")(3,"h2"),H(4),m(),u(5,"p",2),ye(6,_f,4,3)(7,ff,1,1),m()()(),F(8,"sm-filter-bar"),ye(9,gf,1,1,"p-message",3),ye(10,bf,4,1,"div",4)(11,If,4,3,"p-table",5),m()),e&2&&(c(4),ee(i.texts.title),c(2),ve(i.filtersActive()?6:7),c(3),ve(i.error()?9:-1),c(),ve(i.loading()?10:i.error()?-1:11))},dependencies:[Di,Ko,Jt,he,Ho,No,In,Tn,qo,Wi,On,Dn,Vt,Ct],styles:["[_nghost-%COMP%]{display:block;padding:1.5rem;max-width:1400px;width:100%;margin:0 auto;box-sizing:border-box}@media(max-width:1280px){[_nghost-%COMP%]{padding:1rem}}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5rem}.list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600}.list__sub[_ngcontent-%COMP%]{margin:.25rem 0 0;color:var(--p-text-muted-color);font-size:.9rem}.list__loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:2rem;color:var(--p-text-muted-color)}.list__table[_ngcontent-%COMP%]{width:100%}.list__row[_ngcontent-%COMP%]{cursor:pointer}.list__row[_ngcontent-%COMP%]:hover{background:var(--sm-bg-hover)}.list__cell-name[_ngcontent-%COMP%]{font-weight:500}.list__cell-detail[_ngcontent-%COMP%]{display:block;font-size:.75rem;font-weight:400;color:var(--p-text-muted-color);font-family:var(--sm-font-mono)}.list__row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-size:.8rem;font-family:var(--sm-font-mono);color:var(--p-text-muted-color)}.list__empty[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:var(--p-text-muted-color)}"],changeDetection:0})};function kf(t){return t.kind==="agent"?t.frontmatter.model??null:null}function Sf(t){return gn(t)??Xt.missing}function Mf(t){return bn(t)??Xt.missing}function Ef(t){return{background:`var(--sm-kind-${t}-bg)`,color:`var(--sm-kind-${t}-fg)`}}export{ta as ListView};
2588
+ `,of={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},af={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size()==="small","p-multiselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},Si=(()=>{class t extends Ie{name="multiselect";style=nf;classes=af;inlineStyles=of;static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac})}return t})();var Uo=new pe("MULTISELECT_INSTANCE"),rf=new pe("MULTISELECT_ITEM_INSTANCE"),lf={provide:qe,useExisting:Ge(()=>Ei),multi:!0},sf=(()=>{class t extends Le{$pcMultiSelectItem=R(rf,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new I;onMouseEnter=new I;_componentStyle=R(Si);onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=D(t)))(n||t)}})();static \u0275cmp=O({type:t,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onOptionClick(a)})("mouseenter",function(a){return n.onOptionMouseEnter(a)}),i&2&&(C("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled)("aria-checked",n.selected),g(n.cx("option")),Pe("height",n.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",w],label:"label",disabled:[2,"disabled","disabled",w],itemSize:[2,"itemSize","itemSize",X],focused:[2,"focused","focused",w],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[se([Si]),V],attrs:Zm,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(u(0,"p-checkbox",1),p(1,i0,3,0,"ng-container",2),m(),p(2,n0,2,1,"span",2)(3,o0,1,0,"ng-container",3)),i&2&&(r("ngModel",n.selected)("binary",!0)("tabindex",-1)("variant",n.variant)("ariaLabel",n.label)("pt",n.getPTOptions("pcOptionCheckbox"))("unstyled",n.unstyled()),c(),r("ngIf",n.itemCheckboxIconTemplate),c(),r("ngIf",!n.template),c(),r("ngTemplateOutlet",n.template)("ngTemplateOutletContext",j(11,Wo,n.option)))},dependencies:[ue,we,Te,Yt,ct,wt,Tt,W],encapsulation:2})}return t})(),Ei=(()=>{class t extends mt{zone;filterService;overlayService;componentName="MultiSelect";id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){di(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=Y();variant=Y();fluid=Y(void 0,{transform:w});appendTo=Y(void 0);motionOptions=Y(void 0);onChange=new I;onFilter=new I;onFocus=new I;onBlur=new I;onClick=new I;onClear=new I;onPanelShow=new I;onPanelHide=new I;onLazyLoad=new I;onRemove=new I;onSelectAllChange=new I;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=R(Si);bindDirectiveInstance=R($,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=Oe(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=ie(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=ie(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=R(Uo,{optional:!0,skipSelf:!0})??void 0;pcFluid=R(ui,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=Oe(null);_filterValue=Oe(null);_options=Oe([]);startRangeIndex=Oe(-1);focusedOptionIndex=Oe(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(De.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(De.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&Ne(this.modelValue())&&this.showClear&&!this.$disabled()&&!this.readonly&&this.$filled()}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get listLabel(){return this.config.getTranslation(De.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=ie(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=cn(e)&&Q.isObject(e[0]);if(this._filterValue()){let n;if(i?n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):n=e.filter(o=>o.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let o=this.options||[],a=[];return o.forEach(d=>{let v=this.getOptionGroupChildren(d).filter(x=>n.includes(x));v.length>0&&a.push(Ue(me({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...v]}))}),this.flatOptions(a)}return n}return e});label=ie(()=>{let e,i=this.modelValue();if(i&&i?.length&&this.displaySelectedLabel){if(Ne(this.maxSelectedLabels)&&i?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let n=0;n<i.length;n++)n!==0&&(e+=", "),e+=this.getLabelByValue(i[n])}else e=this.placeholder()||"";return e});chipSelectedItems=ie(()=>Ne(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,i,n){super(),this.zone=e,this.filterService=i,this.overlayService=n,ii(()=>{let o=this.modelValue(),a=this.getAllVisibleAndNonVisibleOptions();a&&Ne(a)&&(this.optionValue&&this.optionLabel&&o?this.selectedOptions=a.filter(d=>o.includes(d[this.optionLabel])||o.includes(d[this.optionValue])):this.selectedOptions=o,this.cd.markForCheck())})}onInit(){this.id=this.id||ce("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let a=this.getOptionGroupChildren(n);return a&&a.forEach(d=>i.push(d)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,i=!1,n=-1){let{originalEvent:o,option:a}=e;if(this.$disabled()||this.isOptionDisabled(a))return;let d=this.isSelected(a),h=[];d?h=this.modelValue().filter(v=>!st(v,this.getOptionValue(a),this.equalityKey()||"")):h=[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(h,o),n!==-1&&this.focusedOptionIndex.set(n),i&&Be(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:h,itemValue:a})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,i=-1,n=-1){if(i===-1&&(i=this.findNearestSelectedOptionIndex(n,!0)),n===-1&&(n=this.findNearestSelectedOptionIndex(i)),i!==-1&&n!==-1){let o=Math.min(i,n),a=Math.max(i,n),d=this.visibleOptions().slice(o,a+1).filter(h=>this.isValidOption(h)).map(h=>this.getOptionValue(h));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,i=!1){let n=-1;return this.hasSelectedOption()&&(i?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e}findPrevSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e>0?pt(this.visibleOptions().slice(0,e),n=>this.isValidSelectedOption(n)):-1;return i>-1?i:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidSelectedOption(n)):-1;return i>-1?i+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return Ne(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?Ke(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let i=this.getOptionValue(e);return(this.modelValue()||[]).some(n=>st(n,i,this.equalityKey()||""))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}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}getLabelByValue(e){let n=(this.group?this.flatOptions(this._options()):this._options()||[]).find(o=>!this.isOptionGroup(o)&&st(this.getOptionValue(o),e,this.equalityKey()||""));return n?this.getOptionLabel(n):null}getSelectedItemsLabel(){let e=/{(.*?)}/,i=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(De.SELECTION_MESSAGE);return e.test(i)?i.replace(i.match(e)[0],this.modelValue().length+""):i}getOptionLabel(e){return this.optionLabel?Ke(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Ke(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Ke(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?Ke(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&i){let n=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),e.preventDefault();break}!i&&pi(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}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);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,i=!1){if(e.altKey&&!i)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findFirstOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,a,this.startRangeIndex()),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,i=!1){let{currentTarget:n}=e;if(i){let o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,a=this.findLastFocusedOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),a),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.stopPropagation(),e.preventDefault())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())Be(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(n)&&this.onOptionSelect({originalEvent:e,option:n})}this.overlayVisible&&this.hide(this.filter)}}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.$disabled()||this.loading||this.readonly||e.target?.isSameNode?.(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?si(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onInputFocus(e){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({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}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()})}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ci(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(i)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onToggleAll(e){if(!(this.$disabled()||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let i=this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&(this.optionDisabled?Ke(h,this.optionDisabled):h&&h.disabled!==void 0?h.disabled:!1)),n=this.allSelected()?this.visibleOptions().filter(h=>!this.isValidOption(h)&&this.isSelected(h)):this.visibleOptions().filter(h=>this.isSelected(h)||this.isValidOption(h)),a=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&this.isValidOption(h)):[],...i,...n].map(h=>this.getOptionValue(h)),d=[...new Set(a)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),U.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView())}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=ae(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)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}allSelected(){return this.selectAll!==null?this.selectAll:Ne(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<(this.options?.length||0)}show(e){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&Dt(),e&&Be(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=ae(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&&this.scroller?.scrollToIndex(i)}else{let i=ae(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e)}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,i){let n=this.modelValue().filter(o=>!st(o,e,this.equalityKey()||""));this.updateModel(n,i),this.onChange.emit({originalEvent:i,value:n,itemValue:e}),this.onRemove.emit({newValue:n,removed:e}),i&&i.stopPropagation()}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?pt(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?pt(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return pt(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return this.focusedOptionIndex()!==-1?(n=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)),n=n===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)):n+this.focusedOptionIndex()):n=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}hasFocusableElements(){return yt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}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(),"has-chip":this.display==="chip"&&this.value&&this.value.length&&(this.maxSelectedLabels?this.value.length<=this.maxSelectedLabels:!0),empty:!this.placeholder&&!this.$filled})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.appendTo]:"overlay-"+this.appendTo})}writeControlValue(e,i){this.value=e,i(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,i,n,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(i){return new(i||t)(_e(Ae),_e(Et),_e(ut))};static \u0275cmp=O({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(i,n,o){if(i&1&&Ve(o,un,5)(o,pn,5)(o,a0,4)(o,r0,4)(o,l0,4)(o,s0,4)(o,c0,4)(o,d0,4)(o,p0,4)(o,u0,4)(o,h0,4)(o,m0,4)(o,_0,4)(o,f0,4)(o,g0,4)(o,b0,4)(o,y0,4)(o,v0,4)(o,x0,4)(o,he,4),i&2){let a;b(a=y())&&(n.footerFacet=a.first),b(a=y())&&(n.headerFacet=a.first),b(a=y())&&(n.itemTemplate=a.first),b(a=y())&&(n.groupTemplate=a.first),b(a=y())&&(n.loaderTemplate=a.first),b(a=y())&&(n.headerTemplate=a.first),b(a=y())&&(n.filterTemplate=a.first),b(a=y())&&(n.footerTemplate=a.first),b(a=y())&&(n.emptyFilterTemplate=a.first),b(a=y())&&(n.emptyTemplate=a.first),b(a=y())&&(n.selectedItemsTemplate=a.first),b(a=y())&&(n.loadingIconTemplate=a.first),b(a=y())&&(n.filterIconTemplate=a.first),b(a=y())&&(n.removeTokenIconTemplate=a.first),b(a=y())&&(n.chipIconTemplate=a.first),b(a=y())&&(n.clearIconTemplate=a.first),b(a=y())&&(n.dropdownIconTemplate=a.first),b(a=y())&&(n.itemCheckboxIconTemplate=a.first),b(a=y())&&(n.headerCheckboxIconTemplate=a.first),b(a=y())&&(n.templates=a)}},viewQuery:function(i,n){if(i&1&&Fe(C0,5)(w0,5)(T0,5)(I0,5)(k0,5)(S0,5)(M0,5)(E0,5),i&2){let o;b(o=y())&&(n.overlayViewChild=o.first),b(o=y())&&(n.filterInputChild=o.first),b(o=y())&&(n.focusInputViewChild=o.first),b(o=y())&&(n.itemsViewChild=o.first),b(o=y())&&(n.scroller=o.first),b(o=y())&&(n.lastHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.firstHiddenFocusableElementOnOverlay=o.first),b(o=y())&&(n.headerCheckboxViewChild=o.first)}},hostVars:6,hostBindings:function(i,n){i&1&&k("click",function(a){return n.onContainerClick(a)}),i&2&&(C("id",n.id)("data-p",n.containerDataP),Ce(n.sx("root")),g(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",w],group:[2,"group","group",w],filter:[2,"filter","filter",w],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",w],tabindex:[2,"tabindex","tabindex",X],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",X],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",w],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",w],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",w],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",w],virtualScroll:[2,"virtualScroll","virtualScroll",w],loading:[2,"loading","loading",w],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",X],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",w],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",w],autofocus:[2,"autofocus","autofocus",w],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",w],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",w],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",w],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",w],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[se([lf,Si,{provide:Uo,useExisting:t},{provide:fe,useExisting:t}]),be([$]),V],ngContentSelectors:O0,decls:16,vars:51,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","pTooltipUnstyled","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","unstyled","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","unstyled","onChange",4,"ngIf"],[3,"pt","class","unstyled",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled","unstyled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt","unstyled"]],template:function(i,n){if(i&1){let o=P();dt(D0),u(0,"div",16)(1,"input",17,0),k("focus",function(d){return n.onInputFocus(d)})("blur",function(d){return n.onInputBlur(d)})("keydown",function(d){return n.onKeyDown(d)}),m()(),u(3,"div",18),k("mouseleave",function(){return n.labelContainerMouseLeave()}),u(4,"div",19),p(5,U0,3,2,"ng-container",20)(6,Z0,3,6,"ng-container",20),m()(),p(7,i_,3,2,"ng-container",20),u(8,"div",19),p(9,s_,3,2,"ng-container",21)(10,__,2,2,"ng-template",null,1,J),m(),u(12,"p-overlay",22,2),bt("visibleChange",function(d){return _(o),gt(n.overlayVisible,d)||(n.overlayVisible=d),f(d)}),k("onBeforeEnter",function(d){return n.onOverlayBeforeEnter(d)})("onAfterLeave",function(d){return n.onOverlayAfterLeave(d)})("onHide",function(d){return n.onOverlayHide(d)}),p(14,tf,13,24,"ng-template",null,3,J),m()}if(i&2){let o=Me(11);r("pBind",n.ptm("hiddenInputContainer")),C("data-p-hidden-accessible",!0),c(),r("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),C("aria-disabled",n.$disabled())("id",n.inputId)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible??!1)("aria-controls",n.overlayVisible?n.id+"_list":null)("tabindex",n.$disabled()?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("value",n.modelValue())("name",n.name())("required",n.required()?"":void 0)("disabled",n.$disabled()?"":void 0),c(2),g(n.cx("labelContainer")),r("pBind",n.ptm("labelContainer"))("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipDisabled",n._disableTooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),c(),g(n.cx("label")),r("pBind",n.ptm("label")),C("data-p",n.labelDataP),c(),r("ngIf",!n.selectedItemsTemplate&&!n._selectedItemsTemplate),c(),r("ngIf",n.selectedItemsTemplate||n._selectedItemsTemplate),c(),r("ngIf",n.isVisibleClearIcon),c(),g(n.cx("dropdown")),r("pBind",n.ptm("dropdown")),c(),r("ngIf",n.loading)("ngIfElse",o),c(3),r("hostAttrSelector",n.$attrSelector),ft("visible",n.overlayVisible),r("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[ue,Je,je,we,Te,He,sf,xi,W,mi,It,tt,Pt,yi,ht,zt,Lt,Rt,nt,wn,Yt,ct,wt,Tt,ze,$],encapsulation:2,changeDetection:0})}return t})(),Jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Se({type:t});static \u0275inj=ke({imports:[Ei,W,W]})}return t})();var Xo={searchPlaceholder:"Search path, name, description\u2026",allKindsPlaceholder:"All kinds",allStabilitiesPlaceholder:"All stabilities",hasIssues:"Has issues",staleOnly:"Stale only",favoritesOnly:"Favorites only",reset:"Reset"};var ea={stable:"Stable",experimental:"Experimental",deprecated:"Deprecated"};function uf(t,l){if(t&1){let e=P();u(0,"p-multiselect",10),k("ngModelChange",function(n){_(e);let o=s();return f(o.onKindsChange(n))}),m()}if(t&2){let e=s();r("options",e.kindOptions())("ngModel",e.selectedKinds())("placeholder",e.texts.allKindsPlaceholder)("showToggleAll",!1)("filter",!1)}}function hf(t,l){if(t&1){let e=P();u(0,"p-togglebutton",11),k("ngModelChange",function(n){_(e);let o=s();return f(o.onFavoritesOnlyToggle(n))}),m()}if(t&2){let e=s();r("ngModel",e.favoritesOnly())("onLabel",e.texts.favoritesOnly)("offLabel",e.texts.favoritesOnly)}}function mf(t,l){if(t&1){let e=P();u(0,"p-button",12),k("onClick",function(){_(e);let n=s();return f(n.reset())}),m()}if(t&2){let e=s();r("label",e.texts.reset)("text",!0)}}var Di=class t{store=R(fi);kindRegistry=R(gi);collection=R(_i);texts=Xo;showKinds=Y(!0);searchText=this.store.searchText;selectedKinds=this.store.selectedKinds;selectedStabilities=this.store.selectedStabilities;hasIssuesOnly=this.store.hasIssuesOnly;staleOnly=this.store.staleOnly;favoritesOnly=this.store.favoritesOnly;isActive=this.store.isActive;showFavoritesToggle=ie(()=>this.collection.hasAnyFavorites()||this.store.favoritesOnly());kindOptions=ie(()=>this.kindRegistry.kinds().map(l=>({label:l.label,value:l.name})));stabilityOptions=yn.map(l=>({label:ea[l],value:l}));onSearchChange(l){this.store.setSearchText(l)}onKindsChange(l){this.store.setKinds(l)}onStabilitiesChange(l){this.store.setStabilities(l)}onIssuesToggle(l){this.store.setHasIssuesOnly(l)}onStaleOnlyToggle(l){this.store.setStaleOnly(l)}onFavoritesOnlyToggle(l){this.store.setFavoritesOnly(l)}reset(){this.store.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-filter-bar"]],inputs:{showKinds:[1,"showKinds"]},decls:10,vars:16,consts:[["data-testid","filter-bar",1,"filter-bar"],["iconPosition","left",1,"filter-bar__search"],["styleClass","fa-solid fa-magnifying-glass"],["pInputText","","type","text","data-testid","filter-search",3,"ngModelChange","placeholder","ngModel"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"options","ngModel","placeholder","showToggleAll","filter"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-stabilities",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-triangle-exclamation","offIcon","fa-solid fa-triangle-exclamation","styleClass","filter-bar__toggle","data-testid","filter-has-issues",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-clock","offIcon","fa-solid fa-clock","styleClass","filter-bar__toggle","data-testid","filter-stale-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"label","text"],["optionLabel","label","optionValue","value","display","chip","styleClass","filter-bar__ms","data-testid","filter-kinds",3,"ngModelChange","options","ngModel","placeholder","showToggleAll","filter"],["onIcon","fa-solid fa-star","offIcon","fa-regular fa-star","styleClass","filter-bar__toggle","data-testid","filter-favorites-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["severity","secondary","size","small","data-testid","filter-reset",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"p-iconfield",1),F(2,"p-inputicon",2),u(3,"input",3),k("ngModelChange",function(o){return i.onSearchChange(o)}),m()(),ye(4,uf,1,5,"p-multiselect",4),u(5,"p-multiselect",5),k("ngModelChange",function(o){return i.onStabilitiesChange(o)}),m(),u(6,"p-togglebutton",6),k("ngModelChange",function(o){return i.onIssuesToggle(o)}),m(),u(7,"p-togglebutton",7),k("ngModelChange",function(o){return i.onStaleOnlyToggle(o)}),m(),ye(8,hf,1,3,"p-togglebutton",8),ye(9,mf,1,2,"p-button",9),m()),e&2&&(c(3),r("placeholder",i.texts.searchPlaceholder)("ngModel",i.searchText()),c(),ve(i.showKinds()?4:-1),c(),r("options",i.stabilityOptions)("ngModel",i.selectedStabilities())("placeholder",i.texts.allStabilitiesPlaceholder)("showToggleAll",!1)("filter",!1),c(),r("ngModel",i.hasIssuesOnly())("onLabel",i.texts.hasIssues)("offLabel",i.texts.hasIssues),c(),r("ngModel",i.staleOnly())("onLabel",i.texts.staleOnly)("offLabel",i.texts.staleOnly),c(),ve(i.showFavoritesToggle()?8:-1),c(),ve(i.isActive()?9:-1))},dependencies:[ct,vn,wt,Tt,Sn,Lt,Mn,Rt,bi,nt,Jo,Ei,Vt,Ct,Cn,xn],styles:["[_nghost-%COMP%]{display:block}.filter-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 320px;min-width:280px}.filter-bar__search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.filter-bar__ms[_ngcontent-%COMP%]{min-width:180px}.filter-bar__toggle[_ngcontent-%COMP%]{flex-shrink:0}@media(max-width:1280px){.filter-bar__search[_ngcontent-%COMP%]{flex:1 1 200px;min-width:200px}.filter-bar__ms[_ngcontent-%COMP%]{min-width:140px}}"],changeDetection:0})};function _f(t,l){if(t&1&&(H(0),u(1,"strong"),H(2),m(),H(3)),t&2){let e=s();le(" ",e.texts.showingPrefix," "),c(2),ee(e.visibleCount()),c(),le("",e.texts.showingSuffix(e.total())," ")}}function ff(t,l){if(t&1&&H(0),t&2){let e=s();le(" ",e.texts.subtitleDefault," ")}}function gf(t,l){if(t&1&&F(0,"p-message",3),t&2){let e=s();r("text",e.error())}}function bf(t,l){if(t&1&&(u(0,"div",4),F(1,"p-progressSpinner",6),u(2,"span"),H(3),m()()),t&2){let e=s();c(3),ee(e.texts.loading)}}function yf(t,l){if(t&1&&(u(0,"tr")(1,"th",10),H(2),F(3,"p-sortIcon",11),m(),u(4,"th",12),H(5),F(6,"p-sortIcon",13),m(),u(7,"th",14),H(8),F(9,"p-sortIcon",15),m(),u(10,"th",16),H(11),F(12,"p-sortIcon",17),m(),u(13,"th",18),H(14),F(15,"p-sortIcon",19),m()()),t&2){let e=s(2);c(2),le(" ",e.texts.columns.kind," "),c(3),le(" ",e.texts.columns.name," "),c(3),le(" ",e.texts.columns.path," "),c(3),le(" ",e.texts.columns.version," "),c(3),le(" ",e.texts.columns.stability," ")}}function vf(t,l){if(t&1&&(u(0,"span",23),H(1),m()),t&2){let e=s().$implicit;c(),ee(e.detail)}}function xf(t,l){if(t&1){let e=P();u(0,"tr",20),k("click",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.enter",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))})("keydown.space",function(n){let o=_(e).$implicit,a=s(2);return n.preventDefault(),f(a.openNode(o))}),u(1,"td"),F(2,"p-tag",21),m(),u(3,"td",22),H(4),ye(5,vf,2,1,"span",23),m(),u(6,"td")(7,"code"),H(8),m()(),u(9,"td"),H(10),m(),u(11,"td"),F(12,"p-tag",24),m()()}if(t&2){let e=l.$implicit,i=s(2);C("aria-label",i.texts.rowAriaLabel(e.name))("data-testid","list-row-"+e.path),c(2),Ce(e.kindStyle),r("value",e.kindLabel),c(2),le(" ",e.name," "),c(),ve(e.detail?5:-1),c(3),ee(e.path),c(2),ee(e.version),c(2),r("value",e.stability)("severity",e.stabilitySeverity)("rounded",!0)}}function Cf(t,l){if(t&1){let e=P();u(0,"p",27),H(1),m(),u(2,"p-button",28),k("onClick",function(){_(e);let n=s(3);return f(n.resetFilters())}),m()}if(t&2){let e=s(3);c(),ee(e.texts.emptyFiltered),c(),r("label",e.texts.resetFilters)("text",!0)}}function wf(t,l){if(t&1&&(u(0,"span",26),H(1),m()),t&2){let e=s(3);c(),ee(e.texts.emptyAll)}}function Tf(t,l){if(t&1&&(u(0,"tr")(1,"td",25),ye(2,Cf,3,3)(3,wf,2,1,"span",26),m()()),t&2){let e=s(2);c(2),ve(e.filtersActive()?2:3)}}function If(t,l){if(t&1&&(u(0,"p-table",5),p(1,yf,16,5,"ng-template",7)(2,xf,13,12,"ng-template",8)(3,Tf,4,1,"ng-template",9),m()),t&2){let e=s();r("value",e.rows())("paginator",!1)("scrollable",!0)}}var ta=class t{loader=R(_i);filters=R(fi);router=R(tn);kindRegistry=R(gi);texts=Xt;loading=this.loader.loading;error=this.loader.error;total=this.loader.count;filtersActive=this.filters.isActive;rows=ie(()=>this.filters.apply(this.loader.nodes()).map(e=>{let i=Mf(e);return{path:e.path,kind:e.kind,kindLabel:this.kindRegistry.labelOf(e.kind),kindStyle:Ef(e.kind),name:e.frontmatter.name??Xt.missing,detail:kf(e),version:Sf(e),stability:i,stabilitySeverity:i==="\xB7"?"secondary":kn[i],node:e}}));visibleCount=ie(()=>this.rows().length);ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}openNode(l){this.router.navigate(["/graph"],{queryParams:{path:l.path}})}resetFilters(){this.filters.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=O({type:t,selectors:[["sm-list-view"]],decls:12,vars:4,consts:[["data-testid","list-view",1,"list"],[1,"list__header"],[1,"list__sub"],["severity","error",3,"text"],[1,"list__loading"],["scrollHeight","calc(100dvh - 280px)","dataKey","path","sortMode","single","styleClass","p-datatable-sm list__table","data-testid","list-table",3,"value","paginator","scrollable"],["strokeWidth","3"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pSortableColumn","kind",2,"width","120px"],["field","kind"],["pSortableColumn","name"],["field","name"],["pSortableColumn","path"],["field","path"],["pSortableColumn","version",2,"width","100px"],["field","version"],["pSortableColumn","stability",2,"width","140px"],["field","stability"],["role","button","tabindex","0",1,"list__row",3,"click","keydown.enter","keydown.space"],[3,"value"],[1,"list__cell-name"],[1,"list__cell-detail"],[3,"value","severity","rounded"],["colspan","5",1,"list__empty"],["data-testid","list-empty-all"],["data-testid","list-empty-filtered"],["size","small","data-testid","list-reset-filters",3,"onClick","label","text"]],template:function(e,i){e&1&&(u(0,"section",0)(1,"header",1)(2,"div")(3,"h2"),H(4),m(),u(5,"p",2),ye(6,_f,4,3)(7,ff,1,1),m()()(),F(8,"sm-filter-bar"),ye(9,gf,1,1,"p-message",3),ye(10,bf,4,1,"div",4)(11,If,4,3,"p-table",5),m()),e&2&&(c(4),ee(i.texts.title),c(2),ve(i.filtersActive()?6:7),c(3),ve(i.error()?9:-1),c(),ve(i.loading()?10:i.error()?-1:11))},dependencies:[Di,Ko,Jt,he,Ho,No,In,Tn,qo,Wi,On,Dn,Vt,Ct],styles:["[_nghost-%COMP%]{display:block;padding:1.5rem;max-width:1400px;width:100%;margin:0 auto;box-sizing:border-box}@media(max-width:1280px){[_nghost-%COMP%]{padding:1rem}}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:.5rem}.list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:600}.list__sub[_ngcontent-%COMP%]{margin:.25rem 0 0;color:var(--p-text-muted-color);font-size:.9rem}.list__loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:2rem;color:var(--p-text-muted-color)}.list__table[_ngcontent-%COMP%]{width:100%}.list__row[_ngcontent-%COMP%]{cursor:pointer}.list__row[_ngcontent-%COMP%]:hover{background:var(--sm-bg-hover)}.list__cell-name[_ngcontent-%COMP%]{font-weight:500}.list__cell-detail[_ngcontent-%COMP%]{display:block;font-size:.75rem;font-weight:400;color:var(--p-text-muted-color);font-family:var(--sm-font-mono)}.list__row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-size:.8rem;font-family:var(--sm-font-mono);color:var(--p-text-muted-color)}.list__empty[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:var(--p-text-muted-color)}"],changeDetection:0})};function kf(t){return t.kind==="agent"?t.frontmatter.model??null:null}function Sf(t){return gn(t)??Xt.missing}function Mf(t){return bn(t)??Xt.missing}function Ef(t){return{background:`var(--sm-kind-${t}-bg)`,color:`var(--sm-kind-${t}-fg)`}}export{ta as ListView};
@@ -0,0 +1,3 @@
1
+ import"./chunk-VB56BUGO.js";function Et(n,o){(o==null||o>n.length)&&(o=n.length);for(var a=0,s=Array(o);a<o;a++)s[a]=n[a];return s}function tn(n){if(Array.isArray(n))return n}function nn(n,o){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var s,f,u,C,H=[],B=!0,N=!1;try{if(u=(a=a.call(n)).next,o!==0)for(;!(B=(s=u.call(a)).done)&&(H.push(s.value),H.length!==o);B=!0);}catch(se){N=!0,f=se}finally{try{if(!B&&a.return!=null&&(C=a.return(),Object(C)!==C))return}finally{if(N)throw f}}return H}}function on(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(n,o){return tn(n)||nn(n,o)||an(n,o)||on()}function an(n,o){if(n){if(typeof n=="string")return Et(n,o);var a={}.toString.call(n).slice(8,-1);return a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set"?Array.from(n):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Et(n,o):void 0}}var Mt=Object.entries,At=Object.setPrototypeOf,sn=Object.isFrozen,ln=Object.getPrototypeOf,cn=Object.getOwnPropertyDescriptor,R=Object.freeze,L=Object.seal,J=Object.create,wt=typeof Reflect<"u"&&Reflect,Be=wt.apply,je=wt.construct;R||(R=function(o){return o});L||(L=function(o){return o});Be||(Be=function(o,a){for(var s=arguments.length,f=new Array(s>2?s-2:0),u=2;u<s;u++)f[u-2]=arguments[u];return o.apply(a,f)});je||(je=function(o){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];return new o(...s)});var V=g(Array.prototype.forEach),fn=g(Array.prototype.lastIndexOf),ht=g(Array.prototype.pop),q=g(Array.prototype.push),un=g(Array.prototype.splice),b=Array.isArray,ae=g(String.prototype.toLowerCase),Ue=g(String.prototype.toString),St=g(String.prototype.match),K=g(String.prototype.replace),yt=g(String.prototype.indexOf),mn=g(String.prototype.trim),pn=g(Number.prototype.toString),dn=g(Boolean.prototype.toString),Ot=typeof BigInt>"u"?null:g(BigInt.prototype.toString),bt=typeof Symbol>"u"?null:g(Symbol.prototype.toString),m=g(Object.prototype.hasOwnProperty),ie=g(Object.prototype.toString),S=g(RegExp.prototype.test),Se=Tn(TypeError);function g(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];return Be(n,o,s)}}function Tn(n){return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return je(n,a)}}function l(n,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae;if(At&&At(n,null),!b(o))return n;let s=o.length;for(;s--;){let f=o[s];if(typeof f=="string"){let u=a(f);u!==f&&(sn(o)||(o[s]=u),f=u)}n[f]=!0}return n}function gn(n){for(let o=0;o<n.length;o++)m(n,o)||(n[o]=null);return n}function I(n){let o=J(null);for(let s of Mt(n)){var a=rn(s,2);let f=a[0],u=a[1];m(n,f)&&(b(u)?o[f]=gn(u):u&&typeof u=="object"&&u.constructor===Object?o[f]=I(u):o[f]=u)}return o}function _n(n){switch(typeof n){case"string":return n;case"number":return pn(n);case"boolean":return dn(n);case"bigint":return Ot?Ot(n):"0";case"symbol":return bt?bt(n):"Symbol()";case"undefined":return ie(n);case"function":case"object":{if(n===null)return ie(n);let o=n,a=W(o,"toString");if(typeof a=="function"){let s=a(o);return typeof s=="string"?s:ie(s)}return ie(n)}default:return ie(n)}}function W(n,o){for(;n!==null;){let s=cn(n,o);if(s){if(s.get)return g(s.get);if(typeof s.value=="function")return g(s.value)}n=ln(n)}function a(){return null}return a}function En(n){try{return S(n,""),!0}catch{return!1}}var Rt=R(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),He=R(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ze=R(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),An=R(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ge=R(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hn=R(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dt=R(["#text"]),It=R(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),We=R(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Nt=R(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ye=R(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sn=L(/{{[\w\W]*|^[\w\W]*}}/g),yn=L(/<%[\w\W]*|^[\w\W]*%>/g),On=L(/\${[\w\W]*/g),bn=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rn=L(/^aria-[\-\w]+$/),Lt=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dn=L(/^(?:\w+script|data):/i),In=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nn=L(/^html$/i),Ln=L(/^[a-z][.\w]*(-[.\w]+)+$/i),Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},Cn=function(){return typeof window>"u"?null:window},Mn=function(o,a){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null,f="data-tt-policy-suffix";a&&a.hasAttribute(f)&&(s=a.getAttribute(f));let u="dompurify"+(s?"#"+s:"");try{return o.createPolicy(u,{createHTML(C){return C},createScriptURL(C){return C}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Ct=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xt(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cn(),o=i=>xt(i);if(o.version="3.4.5",o.removed=[],!n||!n.document||n.document.nodeType!==Z.document||!n.Element)return o.isSupported=!1,o;let a=n.document,s=a,f=s.currentScript,u=n.DocumentFragment,C=n.HTMLTemplateElement,H=n.Node,B=n.Element,N=n.NodeFilter,se=n.NamedNodeMap,Pt=se===void 0?n.NamedNodeMap||n.MozNamedAttrMap:se,kt=n.HTMLFormElement,vt=n.DOMParser,le=n.trustedTypes,Q=B.prototype,Ft=W(Q,"cloneNode"),Ut=W(Q,"remove"),Ht=W(Q,"nextSibling"),zt=W(Q,"childNodes"),ce=W(Q,"parentNode"),Ye=H&&H.prototype?W(H.prototype,"nodeType"):null;if(typeof C=="function"){let i=a.createElement("template");i.content&&i.content.ownerDocument&&(a=i.content.ownerDocument)}let y,ee="",fe=a,Oe=fe.implementation,$e=fe.createNodeIterator,Gt=fe.createDocumentFragment,Wt=fe.getElementsByTagName,Bt=s.importNode,O=Ct();o.isSupported=typeof Mt=="function"&&typeof ce=="function"&&Oe&&Oe.createHTMLDocument!==void 0;let ue=Sn,me=yn,pe=On,jt=bn,Yt=Rn,$t=Dn,Xe=In,Xt=Ln,Ve=Lt,E=null,qe=l({},[...Rt,...He,...ze,...Ge,...Dt]),h=null,Ke=l({},[...It,...We,...Nt,...ye]),p=Object.seal(J(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,de=null,v=Object.seal(J(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ze=!0,be=!0,Je=!1,Qe=!0,F=!1,ne=!0,z=!1,Re=!1,De=!1,j=!1,Te=!1,ge=!1,et=!0,tt=!1,nt="user-content-",Ie=!0,oe=!1,Y={},w=null,Ne=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ot=null,rt=l({},["audio","video","img","source","image","track"]),Le=null,it=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_e="http://www.w3.org/1998/Math/MathML",Ee="http://www.w3.org/2000/svg",x="http://www.w3.org/1999/xhtml",$=x,Ce=!1,Me=null,Vt=l({},[_e,Ee,x],Ue),we=l({},["mi","mo","mn","ms","mtext"]),xe=l({},["annotation-xml"]),qt=l({},["title","style","font","a","script"]),re=null,Kt=["application/xhtml+xml","text/html"],Zt="text/html",_=null,X=null,Jt=a.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(X&&X===e)return;(!e||typeof e!="object")&&(e={}),e=I(e),re=Kt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Zt:e.PARSER_MEDIA_TYPE,_=re==="application/xhtml+xml"?Ue:ae,E=m(e,"ALLOWED_TAGS")&&b(e.ALLOWED_TAGS)?l({},e.ALLOWED_TAGS,_):qe,h=m(e,"ALLOWED_ATTR")&&b(e.ALLOWED_ATTR)?l({},e.ALLOWED_ATTR,_):Ke,Me=m(e,"ALLOWED_NAMESPACES")&&b(e.ALLOWED_NAMESPACES)?l({},e.ALLOWED_NAMESPACES,Ue):Vt,Le=m(e,"ADD_URI_SAFE_ATTR")&&b(e.ADD_URI_SAFE_ATTR)?l(I(it),e.ADD_URI_SAFE_ATTR,_):it,ot=m(e,"ADD_DATA_URI_TAGS")&&b(e.ADD_DATA_URI_TAGS)?l(I(rt),e.ADD_DATA_URI_TAGS,_):rt,w=m(e,"FORBID_CONTENTS")&&b(e.FORBID_CONTENTS)?l({},e.FORBID_CONTENTS,_):Ne,te=m(e,"FORBID_TAGS")&&b(e.FORBID_TAGS)?l({},e.FORBID_TAGS,_):I({}),de=m(e,"FORBID_ATTR")&&b(e.FORBID_ATTR)?l({},e.FORBID_ATTR,_):I({}),Y=m(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?I(e.USE_PROFILES):e.USE_PROFILES:!1,Ze=e.ALLOW_ARIA_ATTR!==!1,be=e.ALLOW_DATA_ATTR!==!1,Je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=e.SAFE_FOR_TEMPLATES||!1,ne=e.SAFE_FOR_XML!==!1,z=e.WHOLE_DOCUMENT||!1,j=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,ge=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,et=e.SANITIZE_DOM!==!1,tt=e.SANITIZE_NAMED_PROPS||!1,Ie=e.KEEP_CONTENT!==!1,oe=e.IN_PLACE||!1,Ve=En(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Lt,$=typeof e.NAMESPACE=="string"?e.NAMESPACE:x,we=m(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?I(e.MATHML_TEXT_INTEGRATION_POINTS):l({},["mi","mo","mn","ms","mtext"]),xe=m(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?I(e.HTML_INTEGRATION_POINTS):l({},["annotation-xml"]);let t=m(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?I(e.CUSTOM_ELEMENT_HANDLING):J(null);if(p=J(null),m(t,"tagNameCheck")&&at(t.tagNameCheck)&&(p.tagNameCheck=t.tagNameCheck),m(t,"attributeNameCheck")&&at(t.attributeNameCheck)&&(p.attributeNameCheck=t.attributeNameCheck),m(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(p.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),F&&(be=!1),Te&&(j=!0),Y&&(E=l({},Dt),h=J(null),Y.html===!0&&(l(E,Rt),l(h,It)),Y.svg===!0&&(l(E,He),l(h,We),l(h,ye)),Y.svgFilters===!0&&(l(E,ze),l(h,We),l(h,ye)),Y.mathMl===!0&&(l(E,Ge),l(h,Nt),l(h,ye))),v.tagCheck=null,v.attributeCheck=null,m(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?v.tagCheck=e.ADD_TAGS:b(e.ADD_TAGS)&&(E===qe&&(E=I(E)),l(E,e.ADD_TAGS,_))),m(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?v.attributeCheck=e.ADD_ATTR:b(e.ADD_ATTR)&&(h===Ke&&(h=I(h)),l(h,e.ADD_ATTR,_))),m(e,"ADD_URI_SAFE_ATTR")&&b(e.ADD_URI_SAFE_ATTR)&&l(Le,e.ADD_URI_SAFE_ATTR,_),m(e,"FORBID_CONTENTS")&&b(e.FORBID_CONTENTS)&&(w===Ne&&(w=I(w)),l(w,e.FORBID_CONTENTS,_)),m(e,"ADD_FORBID_CONTENTS")&&b(e.ADD_FORBID_CONTENTS)&&(w===Ne&&(w=I(w)),l(w,e.ADD_FORBID_CONTENTS,_)),Ie&&(E["#text"]=!0),z&&l(E,["html","head","body"]),E.table&&(l(E,["tbody"]),delete te.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=e.TRUSTED_TYPES_POLICY,ee=y.createHTML("")}else y===void 0&&(y=Mn(le,f)),y!==null&&typeof ee=="string"&&(ee=y.createHTML(""));R&&R(e),X=e},st=l({},[...He,...ze,...An]),lt=l({},[...Ge,...hn]),Qt=function(e){let t=ce(e);(!t||!t.tagName)&&(t={namespaceURI:$,tagName:"template"});let r=ae(e.tagName),c=ae(t.tagName);return Me[e.namespaceURI]?e.namespaceURI===Ee?t.namespaceURI===x?r==="svg":t.namespaceURI===_e?r==="svg"&&(c==="annotation-xml"||we[c]):!!st[r]:e.namespaceURI===_e?t.namespaceURI===x?r==="math":t.namespaceURI===Ee?r==="math"&&xe[c]:!!lt[r]:e.namespaceURI===x?t.namespaceURI===Ee&&!xe[c]||t.namespaceURI===_e&&!we[c]?!1:!lt[r]&&(qt[r]||!st[r]):!!(re==="application/xhtml+xml"&&Me[e.namespaceURI]):!1},M=function(e){q(o.removed,{element:e});try{ce(e).removeChild(e)}catch{Ut(e)}},G=function(e,t){try{q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(j||Te)try{M(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ct=function(e){let t=null,r=null;if(De)e="<remove></remove>"+e;else{let T=St(e,/^[\r\n\t ]+/);r=T&&T[0]}re==="application/xhtml+xml"&&$===x&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let c=y?y.createHTML(e):e;if($===x)try{t=new vt().parseFromString(c,re)}catch{}if(!t||!t.documentElement){t=Oe.createDocument($,"template",null);try{t.documentElement.innerHTML=Ce?ee:c}catch{}}let d=t.body||t.documentElement;return e&&r&&d.insertBefore(a.createTextNode(r),d.childNodes[0]||null),$===x?Wt.call(t,z?"html":"body")[0]:z?t.documentElement:d},ft=function(e){return $e.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},ut=function(e){e.normalize();let t=$e.call(e.ownerDocument||e,e,N.SHOW_TEXT|N.SHOW_COMMENT|N.SHOW_CDATA_SECTION|N.SHOW_PROCESSING_INSTRUCTION,null),r=t.nextNode();for(;r;){let c=r.data;V([ue,me,pe],d=>{c=K(c,d," ")}),r.data=c,r=t.nextNode()}},ke=function(e){return e instanceof kt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Pt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Ae=function(e){if(!Ye||typeof e!="object"||e===null)return!1;try{return typeof Ye(e)=="number"}catch{return!1}};function P(i,e,t){V(i,r=>{r.call(o,e,t,X)})}let mt=function(e){let t=null;if(P(O.beforeSanitizeElements,e,null),ke(e))return M(e),!0;let r=_(e.nodeName);if(P(O.uponSanitizeElement,e,{tagName:r,allowedTags:E}),ne&&e.hasChildNodes()&&!Ae(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent)||ne&&e.namespaceURI===x&&r==="style"&&Ae(e.firstElementChild)||e.nodeType===Z.progressingInstruction||ne&&e.nodeType===Z.comment&&S(/<[/\w]/g,e.data))return M(e),!0;if(te[r]||!(v.tagCheck instanceof Function&&v.tagCheck(r))&&!E[r]){if(!te[r]&&dt(r)&&(p.tagNameCheck instanceof RegExp&&S(p.tagNameCheck,r)||p.tagNameCheck instanceof Function&&p.tagNameCheck(r)))return!1;if(Ie&&!w[r]){let c=ce(e)||e.parentNode,d=zt(e)||e.childNodes;if(d&&c){let T=d.length;for(let D=T-1;D>=0;--D){let U=Ft(d[D],!0);c.insertBefore(U,Ht(e))}}}return M(e),!0}return e instanceof B&&!Qt(e)||(r==="noscript"||r==="noembed"||r==="noframes")&&S(/<\/no(script|embed|frames)/i,e.innerHTML)?(M(e),!0):(F&&e.nodeType===Z.text&&(t=e.textContent,V([ue,me,pe],c=>{t=K(t,c," ")}),e.textContent!==t&&(q(o.removed,{element:e.cloneNode()}),e.textContent=t)),P(O.afterSanitizeElements,e,null),!1)},pt=function(e,t,r){if(de[t]||et&&(t==="id"||t==="name")&&(r in a||r in Jt))return!1;let c=h[t]||v.attributeCheck instanceof Function&&v.attributeCheck(t,e);if(!(be&&!de[t]&&S(jt,t))){if(!(Ze&&S(Yt,t))){if(!c||de[t]){if(!(dt(e)&&(p.tagNameCheck instanceof RegExp&&S(p.tagNameCheck,e)||p.tagNameCheck instanceof Function&&p.tagNameCheck(e))&&(p.attributeNameCheck instanceof RegExp&&S(p.attributeNameCheck,t)||p.attributeNameCheck instanceof Function&&p.attributeNameCheck(t,e))||t==="is"&&p.allowCustomizedBuiltInElements&&(p.tagNameCheck instanceof RegExp&&S(p.tagNameCheck,r)||p.tagNameCheck instanceof Function&&p.tagNameCheck(r))))return!1}else if(!Le[t]){if(!S(Ve,K(r,Xe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&yt(r,"data:")===0&&ot[e])){if(!(Je&&!S($t,K(r,Xe,"")))){if(r)return!1}}}}}}return!0},en=l({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dt=function(e){return!en[ae(e)]&&S(Xt,e)},Tt=function(e){P(O.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||ke(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:h,forceKeepAttr:void 0},c=t.length;for(;c--;){let d=t[c],T=d.name,D=d.namespaceURI,U=d.value,k=_(T),Fe=U,A=T==="value"?Fe:mn(Fe);if(r.attrName=k,r.attrValue=A,r.keepAttr=!0,r.forceKeepAttr=void 0,P(O.uponSanitizeAttribute,e,r),A=r.attrValue,tt&&(k==="id"||k==="name")&&yt(A,nt)!==0&&(G(T,e),A=nt+A),ne&&S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,A)){G(T,e);continue}if(k==="attributename"&&St(A,"href")){G(T,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){G(T,e);continue}if(!Qe&&S(/\/>/i,A)){G(T,e);continue}F&&V([ue,me,pe],_t=>{A=K(A,_t," ")});let gt=_(e.nodeName);if(!pt(gt,k,A)){G(T,e);continue}if(y&&typeof le=="object"&&typeof le.getAttributeType=="function"&&!D)switch(le.getAttributeType(gt,k)){case"TrustedHTML":{A=y.createHTML(A);break}case"TrustedScriptURL":{A=y.createScriptURL(A);break}}if(A!==Fe)try{D?e.setAttributeNS(D,T,A):e.setAttribute(T,A),ke(e)?M(e):ht(o.removed)}catch{G(T,e)}}P(O.afterSanitizeAttributes,e,null)},ve=function(e){let t=null,r=ft(e);for(P(O.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)P(O.uponSanitizeShadowNode,t,null),mt(t),Tt(t),t.content instanceof u&&ve(t.content);P(O.afterSanitizeShadowDOM,e,null)},he=function(e){if(e.nodeType===Z.element&&e.shadowRoot instanceof u){let c=e.shadowRoot;he(c),ve(c)}let t=e.childNodes;if(!t)return;let r=[];V(t,c=>{q(r,c)});for(let c of r)he(c)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,c=null,d=null;if(Ce=!i,Ce&&(i="<!-->"),typeof i!="string"&&!Ae(i)&&(i=_n(i),typeof i!="string"))throw Se("dirty is not a string, aborting");if(!o.isSupported)return i;if(Re||Pe(e),o.removed=[],typeof i=="string"&&(oe=!1),oe){let U=i.nodeName;if(typeof U=="string"){let k=_(U);if(!E[k]||te[k])throw Se("root node is forbidden and cannot be sanitized in-place")}he(i)}else if(Ae(i))t=ct("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===Z.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),he(r);else{if(!j&&!F&&!z&&i.indexOf("<")===-1)return y&&ge?y.createHTML(i):i;if(t=ct(i),!t)return j?null:ge?ee:""}t&&De&&M(t.firstChild);let T=ft(oe?i:t);for(;c=T.nextNode();)mt(c),Tt(c),c.content instanceof u&&ve(c.content);if(oe)return F&&ut(i),i;if(j){if(F&&ut(t),Te)for(d=Gt.call(t.ownerDocument);t.firstChild;)d.appendChild(t.firstChild);else d=t;return(h.shadowroot||h.shadowrootmode)&&(d=Bt.call(s,d,!0)),d}let D=z?t.outerHTML:t.innerHTML;return z&&E["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&S(Nn,t.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
3
+ `+D),F&&V([ue,me,pe],U=>{D=K(D,U," ")}),y&&ge?y.createHTML(D):D},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pe(i),Re=!0},o.clearConfig=function(){X=null,Re=!1},o.isValidAttribute=function(i,e,t){X||Pe({});let r=_(i),c=_(e);return pt(r,c,t)},o.addHook=function(i,e){typeof e=="function"&&q(O[i],e)},o.removeHook=function(i,e){if(e!==void 0){let t=fn(O[i],e);return t===-1?void 0:un(O[i],t,1)[0]}return ht(O[i])},o.removeHooks=function(i){O[i]=[]},o.removeAllHooks=function(){O=Ct()},o}var wn=xt();export{wn as default};
@@ -1,4 +1,4 @@
1
- import{$ as J,$a as k,Aa as I,Ba as l,Hb as K,Ic as $,J as M,Jc as C,K as A,Ka as g,Kc as ce,Lc as Y,M as D,O as _,Oc as Z,Pc as U,Qb as re,T as h,Ta as o,U as v,Ua as u,V,Va as f,Vc as d,Wa as P,Xa as W,Ya as X,Za as ee,_a as w,_c as se,cc as S,db as E,eb as ne,fb as B,ga as y,hb as a,ib as j,jb as L,jc as O,kb as R,la as te,mb as x,mc as H,nb as T,oa as c,oc as q,pc as G,rb as ie,ub as oe,vb as p,wa as b,wb as z,xa as N,xb as Q,za as F,zc as ae}from"./chunk-LTQTJU54.js";var pe=`
1
+ import{$ as J,$a as k,Aa as I,Ba as l,Hb as K,Ic as $,J as M,Jc as C,K as A,Ka as g,Kc as ce,Lc as Y,M as D,O as _,Oc as Z,Pc as U,Qb as re,T as h,Ta as o,U as v,Ua as u,V,Va as f,Vc as d,Wa as P,Xa as W,Ya as X,Za as ee,_a as w,_c as se,cc as S,db as E,eb as ne,fb as B,ga as y,hb as a,ib as j,jb as L,jc as O,kb as R,la as te,mb as x,mc as H,nb as T,oa as c,oc as q,pc as G,rb as ie,ub as oe,vb as p,wa as b,wb as z,xa as N,xb as Q,za as F,zc as ae}from"./chunk-O5N7UH37.js";var pe=`
2
2
  .p-tag {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{$ as B,Aa as f,Ba as Fe,Ea as st,Ha as at,Hb as A,I as O,Ic as bt,J as q,Jb as Se,Jc as pe,K as x,Ka as de,Lc as me,M as D,Na as R,O as C,Oa as j,Oc as Y,Pc as X,Sb as E,Ta as G,Tb as M,Ua as we,V as nt,Va as Ie,Vc as N,Wa as lt,Wb as g,Wc as ve,Xb as a,Z as it,Za as dt,_c as Dt,ab as Ne,ad as Mt,bc as Oe,cc as I,d as Xe,da as V,dc as mt,ea as ae,ec as xe,fa as ot,fb as H,ga as v,gc as Te,h as Je,hb as K,ia as z,ib as ut,jb as ct,kb as ht,mb as ue,n as et,nb as ce,oa as Z,oc as vt,pa as rt,pc as he,ra as Q,sa as c,t as tt,tb as ft,vb as k,wa as P,wb as gt,xa as T,xb as pt,ya as p,za as le}from"./chunk-LTQTJU54.js";import{J as _t,L as ge,Q as Le,U as Ct,b as fe,d as ke,g as yt,ga as Be}from"./chunk-3SI3TVER.js";import{a as y,b as w}from"./chunk-VB56BUGO.js";var an=["data-p-icon","times"],vi=(()=>{class t extends Dt{static \u0275fac=(()=>{let e;return function(o){return(e||(e=v(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["","data-p-icon","times"]],features:[f],attrs:an,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(nt(),dt(0,"path",0))},encapsulation:2})}return t})();var ln=Object.defineProperty,Vt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,At=(t,n,e)=>n in t?ln(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Et=(t,n)=>{for(var e in n||(n={}))dn.call(n,e)&&At(t,e,n[e]);if(Vt)for(var e of Vt(n))un.call(n,e)&&At(t,e,n[e]);return t},cn=(t,n,e)=>new Promise((i,o)=>{var r=l=>{try{d(e.next(l))}catch(u){o(u)}},s=l=>{try{d(e.throw(l))}catch(u){o(u)}},d=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,s);d((e=e.apply(t,n)).next())}),ye="animation",ee="transition";function hn(t){return t?t.disabled||!!(t.safe&&_t()):!1}function fn(t,n){return t?Et(Et({},t),Object.entries(n).reduce((e,[i,o])=>{var r;return e[i]=(r=t[i])!=null?r:o,e},{})):n}function gn(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function pn(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function mn(t,n){let e=window.getComputedStyle(t),i=_=>{let S=e[`${_}Delay`],F=e[`${_}Duration`];return[S.split(", ").map(Be),F.split(", ").map(Be)]},[o,r]=i(ee),[s,d]=i(ye),l=Math.max(...r.map((_,S)=>_+o[S])),u=Math.max(...d.map((_,S)=>_+s[S])),h,m=0,b=0;return n===ee?l>0&&(h=ee,m=l,b=r.length):n===ye?u>0&&(h=ye,m=u,b=d.length):(m=Math.max(l,u),h=m>0?l>u?ee:ye:void 0,b=h?h===ee?r.length:d.length:0),{type:h,timeout:m,count:b}}function _e(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function vn(t,n=!0,e=!1){if(!n&&!e)return;let i=yt(t);n&&Le(t,"--pui-motion-height",i.height+"px"),e&&Le(t,"--pui-motion-width",i.width+"px")}var yn={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Pe(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,o={},r=null,s={},d=h=>{if(Object.assign(e,fn(h,yn)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");s=pn(e),i=hn(e),o=gn(e),r=null},l=h=>cn(null,null,function*(){r?.();let{onBefore:m,onStart:b,onAfter:_,onCancelled:S}=s[h]||{},F={element:t};if(i){m?.(F),b?.(F),_?.(F);return}let{from:ze,active:Ze,to:Qe}=o[h]||{};return vn(t,e.autoHeight,e.autoWidth),m?.(F),fe(t,ze),fe(t,Ze),t.offsetHeight,ke(t,ze),fe(t,Qe),b?.(F),new Promise(Ke=>{let rn=_e(e.duration,h),Ye=()=>{ke(t,[Qe,Ze]),r=null},sn=()=>{Ye(),_?.(F),Ke()};r=()=>{Ye(),S?.(F),Ke()},Cn(t,e.type,rn,sn)})});d(n);let u={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{r?.(),r=null},update:(h,m)=>{if(!h)throw new Error("Element is required.");t=h,u.cancel(),d(m)}};return e.appear&&u.enter(),u}var _n=0;function Cn(t,n,e,i){let o=t._motionEndId=++_n,r=()=>{o===t._motionEndId&&i()};if(e!=null)return setTimeout(r,e);let{type:s,timeout:d,count:l}=mn(t,n);if(!s){i();return}let u=s+"end",h=0,m=()=>{t.removeEventListener(u,b,!0),r()},b=_=>{_.target===t&&++h>=l&&m()};t.addEventListener(u,b,{capture:!0,once:!0}),setTimeout(()=>{h<l&&m()},d+1)}var Dn=["*"];function Mn(t,n){t&1&&ct(0)}var Ce=new WeakMap;function te(t,n){if(t)switch(Ce.has(t)||Ce.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function be(t,n){if(!t)return;let e=Ce.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Ce.delete(t)}var Vn=`
1
+ import{$ as B,Aa as f,Ba as Fe,Ea as st,Ha as at,Hb as A,I as O,Ic as bt,J as q,Jb as Se,Jc as pe,K as x,Ka as de,Lc as me,M as D,Na as R,O as C,Oa as j,Oc as Y,Pc as X,Sb as E,Ta as G,Tb as M,Ua as we,V as nt,Va as Ie,Vc as N,Wa as lt,Wb as g,Wc as ve,Xb as a,Z as it,Za as dt,_c as Dt,ab as Ne,ad as Mt,bc as Oe,cc as I,d as Xe,da as V,dc as mt,ea as ae,ec as xe,fa as ot,fb as H,ga as v,gc as Te,h as Je,hb as K,ia as z,ib as ut,jb as ct,kb as ht,mb as ue,n as et,nb as ce,oa as Z,oc as vt,pa as rt,pc as he,ra as Q,sa as c,t as tt,tb as ft,vb as k,wa as P,wb as gt,xa as T,xb as pt,ya as p,za as le}from"./chunk-O5N7UH37.js";import{J as _t,L as ge,Q as Le,U as Ct,b as fe,d as ke,g as yt,ga as Be}from"./chunk-3SI3TVER.js";import{a as y,b as w}from"./chunk-VB56BUGO.js";var an=["data-p-icon","times"],vi=(()=>{class t extends Dt{static \u0275fac=(()=>{let e;return function(o){return(e||(e=v(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["","data-p-icon","times"]],features:[f],attrs:an,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(nt(),dt(0,"path",0))},encapsulation:2})}return t})();var ln=Object.defineProperty,Vt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,At=(t,n,e)=>n in t?ln(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Et=(t,n)=>{for(var e in n||(n={}))dn.call(n,e)&&At(t,e,n[e]);if(Vt)for(var e of Vt(n))un.call(n,e)&&At(t,e,n[e]);return t},cn=(t,n,e)=>new Promise((i,o)=>{var r=l=>{try{d(e.next(l))}catch(u){o(u)}},s=l=>{try{d(e.throw(l))}catch(u){o(u)}},d=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,s);d((e=e.apply(t,n)).next())}),ye="animation",ee="transition";function hn(t){return t?t.disabled||!!(t.safe&&_t()):!1}function fn(t,n){return t?Et(Et({},t),Object.entries(n).reduce((e,[i,o])=>{var r;return e[i]=(r=t[i])!=null?r:o,e},{})):n}function gn(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function pn(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function mn(t,n){let e=window.getComputedStyle(t),i=_=>{let S=e[`${_}Delay`],F=e[`${_}Duration`];return[S.split(", ").map(Be),F.split(", ").map(Be)]},[o,r]=i(ee),[s,d]=i(ye),l=Math.max(...r.map((_,S)=>_+o[S])),u=Math.max(...d.map((_,S)=>_+s[S])),h,m=0,b=0;return n===ee?l>0&&(h=ee,m=l,b=r.length):n===ye?u>0&&(h=ye,m=u,b=d.length):(m=Math.max(l,u),h=m>0?l>u?ee:ye:void 0,b=h?h===ee?r.length:d.length:0),{type:h,timeout:m,count:b}}function _e(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function vn(t,n=!0,e=!1){if(!n&&!e)return;let i=yt(t);n&&Le(t,"--pui-motion-height",i.height+"px"),e&&Le(t,"--pui-motion-width",i.width+"px")}var yn={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Pe(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,o={},r=null,s={},d=h=>{if(Object.assign(e,fn(h,yn)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");s=pn(e),i=hn(e),o=gn(e),r=null},l=h=>cn(null,null,function*(){r?.();let{onBefore:m,onStart:b,onAfter:_,onCancelled:S}=s[h]||{},F={element:t};if(i){m?.(F),b?.(F),_?.(F);return}let{from:ze,active:Ze,to:Qe}=o[h]||{};return vn(t,e.autoHeight,e.autoWidth),m?.(F),fe(t,ze),fe(t,Ze),t.offsetHeight,ke(t,ze),fe(t,Qe),b?.(F),new Promise(Ke=>{let rn=_e(e.duration,h),Ye=()=>{ke(t,[Qe,Ze]),r=null},sn=()=>{Ye(),_?.(F),Ke()};r=()=>{Ye(),S?.(F),Ke()},Cn(t,e.type,rn,sn)})});d(n);let u={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{r?.(),r=null},update:(h,m)=>{if(!h)throw new Error("Element is required.");t=h,u.cancel(),d(m)}};return e.appear&&u.enter(),u}var _n=0;function Cn(t,n,e,i){let o=t._motionEndId=++_n,r=()=>{o===t._motionEndId&&i()};if(e!=null)return setTimeout(r,e);let{type:s,timeout:d,count:l}=mn(t,n);if(!s){i();return}let u=s+"end",h=0,m=()=>{t.removeEventListener(u,b,!0),r()},b=_=>{_.target===t&&++h>=l&&m()};t.addEventListener(u,b,{capture:!0,once:!0}),setTimeout(()=>{h<l&&m()},d+1)}var Dn=["*"];function Mn(t,n){t&1&&ct(0)}var Ce=new WeakMap;function te(t,n){if(t)switch(Ce.has(t)||Ce.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function be(t,n){if(!t)return;let e=Ce.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Ce.delete(t)}var Vn=`
2
2
  .p-motion {
3
3
  display: block;
4
4
  }