@skill-map/cli 0.20.1 → 0.22.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.
Files changed (37) hide show
  1. package/dist/cli/tutorial/sm-tutorial.md +93 -14
  2. package/dist/cli.js +7660 -6354
  3. package/dist/cli.js.map +1 -1
  4. package/dist/index.js +1244 -1065
  5. package/dist/index.js.map +1 -1
  6. package/dist/kernel/index.d.ts +300 -194
  7. package/dist/kernel/index.js +1244 -1065
  8. package/dist/kernel/index.js.map +1 -1
  9. package/dist/migrations/001_initial.sql +13 -0
  10. package/dist/ui/chunk-25AWRVIC.js +965 -0
  11. package/dist/ui/chunk-GETTEQ3S.js +123 -0
  12. package/dist/ui/{chunk-4NLC7QD2.js → chunk-GXRWH2VL.js} +1 -1
  13. package/dist/ui/chunk-HC6PNQMW.js +251 -0
  14. package/dist/ui/chunk-HJHWJTFH.js +1 -0
  15. package/dist/ui/chunk-MF2M6GYF.js +1 -0
  16. package/dist/ui/{chunk-EZZF5RL5.js → chunk-MPMBTIUR.js} +2 -2
  17. package/dist/ui/{chunk-6GUHSAP5.js → chunk-OPPQMCMQ.js} +1 -1
  18. package/dist/ui/chunk-V3SZQETX.js +61 -0
  19. package/dist/ui/{chunk-E4ALROJS.js → chunk-VVOEPDQD.js} +1 -1
  20. package/dist/ui/{chunk-6BZZQV42.js → chunk-W2EFGI3J.js} +1 -1
  21. package/dist/ui/index.html +2 -10
  22. package/dist/ui/main-Q2WC254P.js +2 -0
  23. package/dist/ui/media/fa-brands-400-AHOAZHCU.woff2 +0 -0
  24. package/dist/ui/media/fa-regular-400-VRZYIBIZ.woff2 +0 -0
  25. package/dist/ui/media/fa-solid-900-MDEYK55F.woff2 +0 -0
  26. package/dist/ui/media/fa-v4compatibility-ETEVP6IB.woff2 +0 -0
  27. package/dist/ui/styles-M2FETVAG.css +1 -0
  28. package/migrations/001_initial.sql +13 -0
  29. package/package.json +6 -5
  30. package/dist/ui/chunk-FWX4RRDF.js +0 -125
  31. package/dist/ui/chunk-GGMXMGRJ.js +0 -1
  32. package/dist/ui/chunk-K5PULFK7.js +0 -1
  33. package/dist/ui/chunk-OJ6W6OIB.js +0 -61
  34. package/dist/ui/chunk-PTCD42GB.js +0 -247
  35. package/dist/ui/chunk-ZSRIBCAW.js +0 -965
  36. package/dist/ui/main-5FJWWH5I.js +0 -1
  37. package/dist/ui/styles-VJ5Q6D2X.css +0 -1
@@ -0,0 +1 @@
1
+ import{J as s,M as i,O as r,Sb as n,W as l,ba as o,ca as d,gd as c,hd as u,id as g}from"./chunk-25AWRVIC.js";var L={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},comingSoonTitle:"Coming soon",comingSoonBody:t=>`${t} settings will land in a future release. The section is reserved here so you know where to look when it ships.`,general:{heading:"General",intro:"User-scope preferences. These settings live in your home directory (`~/.skill-map/settings.json`) and follow you across projects.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."}}},project:{heading:"Project",intro:"These settings apply only to this project and are saved in its `.skill-map/settings.local.json` file.",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",extraFoldersLabel:"Extra folders to scan",extraFoldersDescription:"Additional folders included in the scan. Their files show up in the graph next to this project. Use ~/ for paths inside your home folder. This is the only way to extend the scan beyond this project.",extraFoldersPlaceholder:"~/.claude/agents, /path/to/another/folder",referencePathsLabel:"Folders for link validation",referencePathsDescription:'Folders checked only to validate links. Files here are not indexed and do not appear in the graph \u2014 they just stop "broken link" warnings when a link points to a real file outside this project.',referencePathsPlaceholder:"~/Documents/research, ~/.claude",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel"},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release \u2014 focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutScopeLabel:"Scope",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutHomeLabel:"Skill-map home",aboutDbValue:(t,e)=>t==="present"?e:`${t} \xB7 ${e}`,aboutLoading:"Loading\u2026",aboutUnknown:"\u2014",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.dev/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub \u2014 it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:t=>`No plugins match "${t}".`,pluginsKindFilterAll:"All",pluginsKindFilterA11y:"Filter plugins by kind",pluginsKindFilterOptionA11y:(t,e)=>e?`Show only ${t} extensions`:"Show all kinds",unsavedChangesMessage:t=>t===1?'1 unsaved change. Click "Apply" to persist it.':`${t} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started \u2014 consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the graph",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:t=>t===1?"You have 1 unsaved change.":`You have ${t} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",sourceGlobal:"Global",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host \u2014 cannot be toggled.",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(t,e)=>e?`Enable plugin ${t}`:`Disable plugin ${t}`,extensionToggle:(t,e)=>e?`Enable ${t}`:`Disable ${t}`}};var w=new i("SKILL_MAP_MODE");function p(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}var h=class t{dataSource=r(c);loader=r(g);scanning=o(!1);scanError=o(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(e){let a=e instanceof u||e instanceof Error?e.message:String(e);this.scanError.set(a),console.warn(`scan-trigger failed: ${a}`)}finally{this.scanning.set(!1)}}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};var f=class t{status=o(null);isOutdated=n(()=>this.status()?.isOutdated===!0);latest=n(()=>this.status()?.latest??null);current=n(()=>this.status()?.current??null);async load(){if(p()!=="demo")try{let e=await globalThis.fetch("/api/update-status");if(!e.ok){console.warn(`UpdateCheckService: /api/update-status returned HTTP ${e.status}`);return}let a=await e.json();this.status.set(a)}catch(e){let a=e instanceof Error?e.message:String(e);console.warn(`UpdateCheckService: fetch failed (${a})`)}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};var b="skill-map.ui.theme",S="app-dark",T="dark",y="(prefers-color-scheme: dark)",v=class t{doc=r(l);mode=o(this.readInitial());systemPrefersDark=o(this.readSystemPref());resolved=n(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),d(()=>{let e=this.resolved()==="dark",a=this.doc.documentElement;a.classList.toggle(S,e),a.classList.toggle(T,e);try{this.doc.defaultView?.localStorage.setItem(b,this.mode())}catch{}})}toggle(){this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}readInitial(){try{let e=this.doc.defaultView?.localStorage.getItem(b);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readSystemPref(){try{return this.doc.defaultView?.matchMedia(y).matches??!1}catch{return!1}}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;e.matchMedia(y).addEventListener("change",k=>{this.systemPrefersDark.set(k.matches)})}static \u0275fac=function(a){return new(a||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{w as a,p as b,L as c,h as d,f as e,v as f};
@@ -0,0 +1 @@
1
+ import{i as N,j as w}from"./chunk-V3SZQETX.js";import{$a as ae,Aa as re,Hb as pe,Ib as me,J as Z,Ja as y,Ma as p,Na as m,O as ee,Oa as ie,Qa as I,Ra as x,S as te,Sa as C,Sb as i,T as ne,Ta as f,Ua as v,Va as P,Vb as ue,Wa as d,Wb as g,Xa as c,Ya as $,ba as oe,cb as se,fb as de,gb as a,jc as ye,na as r,rb as le,sb as D,ub as X,va as _,vb as s,wb as l,xb as ce}from"./chunk-25AWRVIC.js";import{c as Q}from"./chunk-Q7L6LLAK.js";var L=class n{registry=oe({});setRegistry(e){e&&this.registry.set(e)}get(e){return this.registry()[e]}all(){return this.registry()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"})};var h={panelHeader:"Plugin contributions",panelCount:n=>`${n} contribution${n===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:n=>`Unknown slot: ${n}. Update the UI to a newer catalog version.`,overflowBadge:n=>`+${n}`,overflowTooltip:n=>`Hidden: ${n}`};var Ce=(n,e)=>e.label;function Ie(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function xe(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function he(n,e){if(n&1&&(d(0,"li",4)(1,"span",5),s(2),c(),d(3,"span",6),$(4,"span",7),c(),d(5,"span",8),s(6),c()()),n&2){let t=e.$implicit,o=a(2);y("title",t.tooltip??""),r(2),l(t.label),r(2),le("width",o.percent(t.value),"%"),r(2),l(t.value)}}function Ne(n,e){if(n&1&&(d(0,"ul",3),I(1,he,7,5,"li",4,Ce),c()),n&2){let t=a();r(),x(t.entries())}}var B=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);maxValue=i(()=>this.entries().reduce((t,o)=>o.value>t?o.value:t,0));percent(e){let t=this.maxValue();return t===0?0:Math.round(e/t*100)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Ie,2,1,"h5",1),p(2,xe,2,1,"p",2)(3,Ne,3,0,"ul",3),c()),t&2&&(y("data-testid","renderer-node-breakdown"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-surface-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:.25rem;height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function we(n,e){if(n&1&&(d(0,"span",1),s(1),c()),n&2){let t=a(),o=a();X(o.hostClass()),r(),l(t.text)}}function Te(n,e){if(n&1&&$(0,"i",1),n&2){let t=a(),o=a();X(o.hostClass()+" "+t.cls)}}function Me(n,e){n&1&&p(0,we,2,3,"span",0)(1,Te,1,2,"i",0),n&2&&m(e.kind==="emoji"?0:1)}function ke(n){if(!n)return null;let e=n.trim();if(e.length===0)return null;let t=e.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:e};if(/^pi pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:e};if(/^pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:`pi ${e}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(e))return{kind:"fa",cls:e};if(/^fa-[a-z0-9-]+$/.test(e)){let u=e.slice(3);return u==="solid"||u==="regular"||u==="brands"||u.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${e}`}}return null}var S=class n{icon=g(void 0);hostClass=g("");resolved=i(()=>{let e=this.icon(),t=ke(e);return e&&!t&&console.warn(`[sm-icon] Invalid icon string "${e}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),t});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(t,o){if(t&1&&p(0,Me,2,1),t&2){let u;m((u=o.resolved())?0:-1,u)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})};function Ee(n,e){if(n&1&&(f(0,"span",3),s(1),v()),n&2){let t=a();y("aria-label",t.ariaLabel()),r(),l(t.value())}}var O=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=i(()=>this.typed().value);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=i(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(t,o){t&1&&(f(0,"span",0)(1,"span",1),P(2,"sm-icon",2),v(),p(3,Ee,2,2,"span",3),v()),t&2&&(D("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-counter"),r(2),C("icon",o.icon()),r(),m(o.value()>0?3:-1))},dependencies:[w,N,S],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%], .vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%], .vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var De=(n,e)=>e.key;function Se(n,e){if(n&1&&(f(0,"h5",1),s(1),v()),n&2){let t=a();r(),l(t.label())}}function Pe(n,e){if(n&1&&(f(0,"p",2),s(1),v()),n&2){let t=a();r(),l(t.emptyText())}}function Oe(n,e){if(n&1&&(f(0,"dt",4),s(1),v(),f(2,"dd"),s(3),v()),n&2){let t=e.$implicit,o=a(2);C("pTooltip",t.tooltip??""),r(),l(t.key),r(2),l(o.formatValue(t.value))}}function Re(n,e){if(n&1&&(f(0,"dl",3),I(1,Oe,4,3,null,null,De),v()),n&2){let t=a();r(),x(t.entries())}}var F=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatValue(e){return e==null?"\u2014":typeof e=="boolean"?e?"true":"false":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(t,o){t&1&&(f(0,"section",0),p(1,Se,2,1,"h5",1),p(2,Pe,2,1,"p",2)(3,Re,3,0,"dl",3),v()),t&2&&(y("data-testid","renderer-node-key-values"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},dependencies:[w,N],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var We=(n,e)=>e.path;function $e(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Le(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function Be(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.kind)}}function Fe(n,e){if(n&1){let t=se();d(0,"li")(1,"button",4),de("click",function(){let u=te(t).$implicit,b=a(2);return ne(b.openPath.emit(u.path))}),p(2,Be,2,1,"span",5),d(3,"span",6),s(4),c()()()}if(n&2){let t=e.$implicit;r(2),m(t.kind?2:-1),r(2),l(t.label??t.path)}}function ze(n,e){if(n&1&&(d(0,"ul",3),I(1,Fe,5,2,"li",null,We),c()),n&2){let t=a();r(),x(t.entries())}}var z=class n{inputs=g.required();openPath=ue();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},outputs:{openPath:"openPath"},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,$e,2,1,"h5",1),p(2,Le,2,1,"p",2)(3,ze,3,0,"ul",3),c()),t&2&&(y("data-testid","renderer-node-link-list"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:.25rem;color:var(--p-primary-600);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-surface-500);font-family:var(--p-font-family-mono, monospace);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var ge=(n,e)=>e.key;function Ve(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Ae(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function je(n,e){if(n&1&&(d(0,"th"),s(1),c()),n&2){let t=e.$implicit;r(),l(t.label)}}function qe(n,e){if(n&1&&(d(0,"td"),s(1),c()),n&2){let t=e.$implicit,o=a().$implicit,u=a(2);r(),l(u.formatCell(o[t.key]))}}function Ke(n,e){if(n&1&&(d(0,"tr"),I(1,qe,2,1,"td",null,ge),c()),n&2){let t=a(2);r(),x(t.columns())}}function Ue(n,e){if(n&1&&(d(0,"table",3)(1,"thead")(2,"tr"),I(3,je,2,1,"th",null,ge),c()(),d(5,"tbody"),I(6,Ke,3,0,"tr",null,ie),c()()),n&2){let t=a();r(3),x(t.columns()),r(3),x(t.rows())}}var V=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{columns:[],rows:[]}:e});columns=i(()=>this.typed().columns??[]);rows=i(()=>this.typed().rows??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatCell(e){return e==null?"":typeof e=="boolean"?e?"\u2713":"\xB7":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Ve,2,1,"h5",1),p(2,Ae,2,1,"p",2)(3,Ue,8,0,"table",3),c()),t&2&&(y("data-testid","renderer-node-records"),r(),m(o.label()?1:-1),r(),m(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-surface-700);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function He(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Xe(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function Ye(n,e){if(n&1&&(d(0,"pre",3),s(1),c()),n&2){let t=a();r(),l(t.markdown())}}var A=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{markdown:""}:e});markdown=i(()=>this.typed().markdown??"");label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,He,2,1,"h5",1),p(2,Xe,2,1,"p",2)(3,Ye,2,1,"pre",3),c()),t&2&&(y("data-testid","renderer-node-markdown"),r(),m(o.label()?1:-1),r(),m(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);background:var(--p-surface-50);padding:.5rem;border-radius:.25rem;white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Ge(n,e){if(n&1&&(f(0,"span",1),s(1),v()),n&2){let t=a();r(),l(t.icon())}}var j=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=i(()=>this.typed().label||"");icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(t,o){t&1&&(f(0,"span",0),p(1,Ge,2,1,"span",1),f(2,"span",2),s(3),v()()),t&2&&(D("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-tag"),r(),m(o.icon()?1:-1),r(2),l(o.label()))},dependencies:[w,N],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:3px}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:3px}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:3px}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:3px}"],changeDetection:0})};var Je=()=>[],fe=(n,e)=>e.label;function Qe(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Ze(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function et(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.marker)}}function tt(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.marker)}}function nt(n,e){if(n&1&&(d(0,"li",4),p(1,tt,2,1,"span",5),d(2,"span",6),s(3),c()()),n&2){let t=e.$implicit;y("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),l(t.label)}}function ot(n,e){if(n&1&&(d(0,"ul",7),I(1,nt,4,3,"li",4,fe),c()),n&2){let t=a().$implicit;r(),x(t.children)}}function rt(n,e){if(n&1&&(d(0,"li",4),p(1,et,2,1,"span",5),d(2,"span",6),s(3),c(),p(4,ot,3,0,"ul",7),c()),n&2){let t=e.$implicit;y("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),l(t.label),r(),m(t.children&&t.children.length>0?4:-1)}}function it(n,e){if(n&1&&(d(0,"ul",3),I(1,rt,5,4,"li",4,fe),c()),n&2){let t=a();r(),x(t.root().children??pe(0,Je))}}var q=class n{inputs=g.required();root=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});rootIsEmpty=i(()=>{let e=this.root();return!e.children||e.children.length===0});label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Qe,2,1,"h5",1),p(2,Ze,2,1,"p",2)(3,it,3,1,"ul",3),c()),t&2&&(y("data-testid","renderer-node-tree"),r(),m(o.label()?1:-1),r(),m(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function at(n,e){if(n&1&&(f(0,"span",2),s(1),v()),n&2){let t=a();r(),l(t.formattedCount())}}var K=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=i(()=>this.typed().icon??this.inputs().icon);severity=i(()=>this.typed().severity);count=i(()=>this.typed().count??null);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=i(()=>{let e=this.count();return e===null?"":e>=99?"99+":String(e)});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),p(2,at,2,1,"span",2),v()),t&2&&(D("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-alert"),r(),C("icon",o.icon()),r(),m(o.count()!==null?2:-1))},dependencies:[w,N,S],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var U=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=i(()=>this.typed().icon??this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=i(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),v()),t&2&&(D("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),r(),C("icon",o.icon()))},dependencies:[w,N,S],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};function st(n,e){if(n&1&&(f(0,"span",3),s(1),v()),n&2){let t=a();r(),l(t.label())}}var H=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=i(()=>String(this.typed().value??""));label=i(()=>this.typed().label??this.inputs().label);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),f(2,"span",2),s(3),v(),p(4,st,2,1,"span",3),v()),t&2&&(D("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-scope-stat"),r(),C("icon",o.icon()),r(2),l(o.value()),r(),m(o.label()?4:-1))},dependencies:[w,N,S],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})};var Y={"card.title.right":U,"card.subtitle.left":O,"card.footer.left":O,"card.footer.right":O,"graph.node.alert":K,"inspector.header.badge.counter":O,"inspector.header.badge.tag":j,"inspector.body.panel.breakdown":B,"inspector.body.panel.records":V,"inspector.body.panel.tree":q,"inspector.body.panel.key-values":F,"inspector.body.panel.link-list":z,"inspector.body.panel.markdown":A,"topbar.nav.start":H};function ve(n){return n in Y}var R={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge.counter":{id:"inspector.header.badge.counter",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.header.badge.tag":{id:"inspector.header.badge.tag",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};var dt=n=>({inputs:n}),lt=(n,e)=>e.qualifiedId;function ct(n,e){n&1&&ae(0)}function pt(n,e){if(n&1&&(f(0,"span",1),re(1,ct,1,0,"ng-container",3),v()),n&2){let t=e.$implicit,o=a(2);y("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),r(),C("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",me(3,dt,t.rendererInputs))}}function mt(n,e){if(n&1&&(f(0,"span",2),s(1),v()),n&2){let t=a(2);C("pTooltip",t.overflowTooltip()),r(),ce(" ",t.overflowBadge()," ")}}function ut(n,e){if(n&1&&(f(0,"span",0),I(1,pt,2,5,"span",1,lt),p(3,mt,2,2,"span",2),v()),n&2){let t=a();y("data-testid","view-contributions-host-"+t.testidSuffix()),r(),x(t.visible()),r(2),m(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var _e=class n{slot=g.required();node=g(null);testidSuffix=i(()=>this.slot().replaceAll(".","-"));registry=ee(L);dispatched=i(()=>{let e=this.node();if(!e)return[];let t=e.contributions??[];if(t.length===0)return[];let o=this.slot(),u=t.filter(b=>b.slot===o).filter(b=>ve(b.slot));return this.sortBySlotOrder(u,o).map(b=>({qualifiedId:`${b.pluginId}/${b.extensionId}/${b.contributionId}`,slot:b.slot,rendererInputs:this.buildInputs(b,o)}))});visible=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return e.slice(0,t)});overflowCount=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return Math.max(0,e.length-t)});showOverflowBadge=i(()=>R[this.slot()].showOverflowBadge!==!1);overflowBadge=i(()=>h.overflowBadge(this.overflowCount()));overflowTooltip=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems,o=e.slice(t).map(u=>u.qualifiedId).join(", ");return h.overflowTooltip(o)});rendererFor(e){return Y[e]}buildInputs(e,t){let o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,u=this.registry.get(o),b=R[t].respectSeverity!==!1,M=e.payload;if(!b&&typeof M=="object"&&M!==null&&"severity"in M){let J=M,{severity:gt}=J;M=Q(J,["severity"])}let E={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:M};return u?.label&&(E.label=u.label),u?.tooltip&&(E.tooltip=u.tooltip),u?.icon&&(E.icon=u.icon),u?.emptyText&&(E.emptyText=u.emptyText),E}sortBySlotOrder(e,t){let o=R[t].order;return o==="fifo"?e.slice():o==="priority"?e.slice().sort((u,b)=>{let M=this.priorityFor(u),E=this.priorityFor(b);return M!==E?M-E:G(u,b)}):o==="severity"?e.slice().sort((u,b)=>{let M=be(u),E=be(b);return M!==E?E-M:G(u,b)}):e.slice().sort(G)}priorityFor(e){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return this.registry.get(t)?.priority??100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-view-contributions-host"]],inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(t,o){t&1&&p(0,ut,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[ye,w,N],styles:[".vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})};function G(n,e){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return t<o?-1:t>o?1:0}function be(n){let e=n.payload;if(typeof e!="object"||e===null)return 0;switch(e.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}function yt(n){if(typeof n!="object"||n===null)return!1;let e=n;if(typeof e.type!="string"||e.type.length===0)return!1;let t=e.timestamp;return!(typeof t!="number"&&typeof t!="string"||!("data"in e))}function no(n){if(!yt(n)||n.type!=="sidecar.bumped")return!1;let e=n.data;if(typeof e!="object"||e===null||typeof e.nodePath!="string"||e.nodePath.length===0)return!1;let t=e.version;return!(t!==null&&typeof t!="number"||e.status!=="fresh")}export{L as a,_e as b,yt as c,no as d};
@@ -1,4 +1,4 @@
1
- import{a as bi,b as Tn,c as In,d as kn,e as Sn}from"./chunk-6BZZQV42.js";import{d as ln,k as mi,m as _i,o as zi,p as fi,q as Cn,r as gi}from"./chunk-OJ6W6OIB.js";import{a as lt,b as yi,c as Lt,d as Mn,e as Rt,f as En,g as Dn,h as On}from"./chunk-E4ALROJS.js";import{a as gt,b as hi,d as Vt,e as Ke,f as wn,g as Bt,h as pt,i as ut,j as Je,l as rt}from"./chunk-6GUHSAP5.js";import{$a as D,$c as Tt,Aa as p,Ab as bt,Ac as _n,Bb as yt,Bc as Pi,Cb as vt,Cc as Et,Dc as ft,Ec as fn,Fc as gn,Gb as se,Gc as he,Hb as ct,Hc as U,I as Ne,Ib as j,Ic as De,J as ce,Ja as w,Jb as Te,Jc as ye,K as xe,Ka as Xi,Kb as oi,La as en,Lb as Fi,M as de,Ma as fe,Mb as ai,Mc as me,Na as ge,Nb as Kt,Nc as Re,O as R,Ob as an,Oc as W,Pb as Z,Pc as bn,Qa as tn,Qc as Dt,Ra as nn,Rc as Ut,S as _,Sa as l,Sb as ie,Sc as ot,T as f,Ta as u,Tc as $,U as I,Ua as m,Uc as Pe,V as ti,Va as V,Vc as yn,Wa as ne,Wb as Y,Wc as vn,Xa as oe,Xc as ui,Ya as K,Yc as q,Z as T,Za as S,Zc as Wt,_ as $e,_a as M,_c as Ot,ac as rn,ad as Ft,ba as Fe,bc as C,bd as Q,ca as ii,cb as P,cc as X,cd as xn,d as St,db as ke,dd as at,ea as E,eb as k,gb as s,hb as mt,ib as Ye,ic as tt,jb as Oe,kb as Ve,kc as Qe,lb as b,lc as Me,mb as y,mc as Ge,na as c,nc as be,oc as pe,pc as it,qb as Ee,ra as Ce,rb as Ae,tb as Se,ub as g,va as O,vb as N,wa as we,wb as ee,xa as ni,xb as le,xc as ue,ya as _e,yb as on,za as F}from"./chunk-ZSRIBCAW.js";import{A as jt,B as ci,E as dn,F as wt,G as pn,H as Li,J as dt,N as un,O as qt,Q as Ri,R as di,T as je,U as Le,V as He,W as hn,X as _t,a as Ze,aa as mn,b as $t,ba as Qt,ca as pi,d as sn,k as Gt,l as Vi,m as ri,n as li,o as cn,p as Mt,t as nt,u as ae,v as Be,w as Bi,x as xt,y as si,z as Ct}from"./chunk-3R7E3HPC.js";import{a as ve,b as We}from"./chunk-Q7L6LLAK.js";var Fn=`
1
+ import{a as bi,b as Tn,c as In,d as kn,e as Sn}from"./chunk-W2EFGI3J.js";import{d as ln,i as mi,l as zi,m as fi,n as Cn,o as gi}from"./chunk-V3SZQETX.js";import{a as lt,b as yi,c as Lt,d as Mn,e as Rt,f as En,g as Dn,h as On}from"./chunk-VVOEPDQD.js";import{a as gt,b as hi,d as Vt,e as Ke,f as wn,g as Bt,h as pt,i as ut,j as Je,l as rt}from"./chunk-OPPQMCMQ.js";import{$a as D,$c as Wt,Aa as p,Ab as bt,Ac as _n,Bb as yt,Bc as Pi,Cb as vt,Cc as Et,Dc as ft,Ec as fn,Fc as gn,Gb as se,Gc as he,Hb as ct,Hc as U,I as Ne,Ib as j,Ic as De,J as ce,Ja as w,Jb as Te,Jc as ye,K as xe,Ka as Xi,Kb as oi,La as en,Lb as Fi,M as de,Ma as fe,Mb as ai,Na as ge,Nb as Kt,O as R,Ob as an,Oc as me,Pb as Z,Pc as Re,Qa as tn,Qc as W,Ra as nn,Rc as bn,S as _,Sa as l,Sb as ie,Sc as Dt,T as f,Ta as u,Tc as Ut,U as I,Ua as m,Uc as ot,V as ti,Va as V,Vc as $,Wa as ne,Wb as Y,Wc as Pe,Xa as oe,Xc as yn,Ya as K,Yc as vn,Z as T,Za as S,Zc as ui,_ as $e,_a as M,_c as q,ac as rn,ad as Ot,ba as Fe,bc as C,bd as Tt,ca as ii,cb as P,cc as X,cd as Ft,d as St,db as ke,dd as Q,ea as E,eb as k,ed as xn,fd as at,gb as s,hb as mt,ib as Ye,ic as tt,id as _i,jb as Oe,kb as Ve,kc as Qe,lb as b,lc as Me,mb as y,mc as Ge,na as c,nc as be,oc as pe,pc as it,qb as Ee,ra as Ce,rb as Ae,tb as Se,ub as g,va as O,vb as N,wa as we,wb as ee,xa as ni,xb as le,xc as ue,ya as _e,yb as on,za as F}from"./chunk-25AWRVIC.js";import{A as jt,B as ci,E as dn,F as wt,G as pn,H as Li,J as dt,N as un,O as qt,Q as Ri,R as di,T as je,U as Le,V as He,W as hn,X as _t,a as Ze,aa as mn,b as $t,ba as Qt,ca as pi,d as sn,k as Gt,l as Vi,m as ri,n as li,o as cn,p as Mt,t as nt,u as ae,v as Be,w as Bi,x as xt,y as si,z as Ct}from"./chunk-3R7E3HPC.js";import{a as ve,b as We}from"./chunk-Q7L6LLAK.js";var Fn=`
2
2
  .p-datatable {
3
3
  position: relative;
4
4
  display: block;
@@ -2635,4 +2635,4 @@ p-sortIcon, p-sort-icon, p-sorticon {
2635
2635
  p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
2636
2636
  color: dt('multiselect.invalid.placeholder.color');
2637
2637
  }
2638
- `,bf={root:({instance:i})=>({position:i.$appendTo()==="self"?"relative":void 0})},yf={root:({instance:i})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":i.display==="chip","p-disabled":i.$disabled(),"p-invalid":i.invalid(),"p-variant-filled":i.$variant()==="filled","p-focus":i.focused,"p-inputwrapper-filled":i.$filled(),"p-inputwrapper-focus":i.focused||i.overlayVisible,"p-multiselect-open":i.overlayVisible,"p-multiselect-fluid":i.hasFluid,"p-multiselect-sm p-inputfield-sm":i.size()==="small","p-multiselect-lg p-inputfield-lg":i.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:i})=>({"p-multiselect-label":!0,"p-placeholder":i.label()===i.placeholder(),"p-multiselect-label-empty":!i.placeholder()&&!i.defaultLabel&&(!i.modelValue()||i.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:i})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":i.selected&&i.highlightOnSelect,"p-disabled":i.disabled,"p-focus":i.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},Mi=(()=>{class i extends ye{name="multiselect";style=gf;classes=yf;inlineStyles=bf;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(i)))(n||i)}})();static \u0275prov=ce({token:i,factory:i.\u0275fac})}return i})();var Jo=new de("MULTISELECT_INSTANCE"),vf=new de("MULTISELECT_ITEM_INSTANCE"),xf={provide:Ke,useExisting:Ne(()=>Di),multi:!0},Cf=(()=>{class i extends Re{$pcMultiSelectItem=R(vf,{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 T;onMouseEnter=new T;_componentStyle=R(Mi);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=E(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(t,n){t&1&&k("click",function(a){return n.onOptionClick(a)})("mouseenter",function(a){return n.onOptionMouseEnter(a)}),t&2&&(w("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")),Ae("height",n.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",C],label:"label",disabled:[2,"disabled","disabled",C],itemSize:[2,"itemSize","itemSize",X],focused:[2,"focused","focused",C],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",C]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[se([Mi]),F],attrs:p0,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(u(0,"p-checkbox",1),p(1,f0,3,0,"ng-container",2),m(),p(2,g0,2,1,"span",2)(3,b0,1,0,"ng-container",3)),t&2&&(l("ngModel",n.selected)("binary",!0)("tabindex",-1)("variant",n.variant)("ariaLabel",n.label)("pt",n.getPTOptions("pcOptionCheckbox"))("unstyled",n.unstyled()),c(),l("ngIf",n.itemCheckboxIconTemplate),c(),l("ngIf",!n.template),c(),l("ngTemplateOutlet",n.template)("ngTemplateOutletContext",j(11,Xo,n.option)))},dependencies:[pe,Me,be,Yt,Je,pt,ut,U],encapsulation:2})}return i})(),Di=(()=>{class i extends rt{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:C});appendTo=Y(void 0);motionOptions=Y(void 0);onChange=new T;onFilter=new T;onFocus=new T;onBlur=new T;onClick=new T;onClear=new T;onPanelShow=new T;onPanelHide=new T;onLazyLoad=new T;onRemove=new T;onSelectAllChange=new T;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=R(Mi);bindDirectiveInstance=R($,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=Fe(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(Jo,{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=Fe(null);_filterValue=Fe(null);_options=Fe([]);startRangeIndex=Fe(-1);focusedOptionIndex=Fe(-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()!==""&&je(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(),t=mn(e)&&Q.isObject(e[0]);if(this._filterValue()){let n;if(t?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(We(ve({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...v]}))}),this.flatOptions(a)}return n}return e});label=ie(()=>{let e,t=this.modelValue();if(t&&t?.length&&this.displaySelectedLabel){if(je(this.maxSelectedLabels)&&t?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let n=0;n<t.length;n++)n!==0&&(e+=", "),e+=this.getLabelByValue(t[n])}else e=this.placeholder()||"";return e});chipSelectedItems=ie(()=>je(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,t,n){super(),this.zone=e,this.filterService=t,this.overlayService=n,ii(()=>{let o=this.modelValue(),a=this.getAllVisibleAndNonVisibleOptions();a&&je(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||ue("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((t,n,o)=>{t.push({optionGroup:n,group:!0,index:o});let a=this.getOptionGroupChildren(n);return a&&a.forEach(d=>t.push(d)),t},[])}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,t){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,t=!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=>!He(v,this.getOptionValue(a),this.equalityKey()||"")):h=[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(h,o),n!==-1&&this.focusedOptionIndex.set(n),t&&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,t=-1,n=-1){if(t===-1&&(t=this.findNearestSelectedOptionIndex(n,!0)),n===-1&&(n=this.findNearestSelectedOptionIndex(t)),t!==-1&&n!==-1){let o=Math.min(t,n),a=Math.max(t,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,t=!1){let n=-1;return this.hasSelectedOption()&&(t?(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 t=this.hasSelectedOption()&&e>0?_t(this.visibleOptions().slice(0,e),n=>this.isValidSelectedOption(n)):-1;return t>-1?t:-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 t=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidSelectedOption(n)):-1;return t>-1?t+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return je(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?Le(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let t=this.getOptionValue(e);return(this.modelValue()||[]).some(n=>He(n,t,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,t){return this.virtualScrollerDisabled?e:t&&t.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(t=>this.isOptionGroup(t)).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)&&He(this.getOptionValue(o),e,this.equalityKey()||""));return n?this.getOptionLabel(n):null}getSelectedItemsLabel(){let e=/{(.*?)}/,t=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(De.SELECTION_MESSAGE);return e.test(t)?t.replace(t.match(e)[0],this.modelValue().length+""):t}getOptionLabel(e){return this.optionLabel?Le(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Le(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Le(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?Le(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let t=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"&&t){let n=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),e.preventDefault();break}!t&&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,t=!1){t&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let t=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),t),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,t=!1){if(e.altKey&&!t)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,t=!1){let{currentTarget:n}=e;if(t){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,t=!1){let{currentTarget:n}=e;if(t){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,t=!1){if(!t)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 t=e.relatedTarget===this.focusInputViewChild?.nativeElement?si(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(t)}onInputFocus(e){this.focused=!0;let t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(t),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 t=e.target.value;this._filterValue.set(t),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 t=e.relatedTarget===this.focusInputViewChild?.nativeElement?ci(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(t)}onOptionMouseEnter(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)}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 t=this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&(this.optionDisabled?Le(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)):[],...t,...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}),W.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,t){this.focusedOptionIndex()!==t&&(this.focusedOptionIndex.set(t),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let t=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=ae(this.itemsViewChild.nativeElement,`li[id="${t}"]`);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:je(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 t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(t),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 t=this.modelValue()?this.focusedOptionIndex():-1;t!==-1&&this.scroller?.scrollToIndex(t)}else{let t=ae(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');t&&t.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,t){let n=this.modelValue().filter(o=>!He(o,e,this.equalityKey()||""));this.updateModel(n,t),this.onChange.emit({originalEvent:t,value:n,itemValue:e}),this.onRemove.emit({newValue:n,removed:e}),t&&t.stopPropagation()}findNextOptionIndex(e){let t=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return t>-1?t+e+1:e}findPrevOptionIndex(e){let t=e>0?_t(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return t>-1?t:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?_t(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return _t(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,t){this.searchValue=(this.searchValue||"")+t;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 xt(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,t){this.value=e,t(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,t,n,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(t){return new(t||i)(Ce($e),Ce(Et),Ce(ft))};static \u0275cmp=O({type:i,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(t,n,o){if(t&1&&Oe(o,gn,5)(o,fn,5)(o,y0,4)(o,v0,4)(o,x0,4)(o,C0,4)(o,w0,4)(o,T0,4)(o,I0,4)(o,k0,4)(o,S0,4)(o,M0,4)(o,E0,4)(o,D0,4)(o,O0,4)(o,F0,4)(o,V0,4)(o,B0,4)(o,L0,4)(o,he,4),t&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(t,n){if(t&1&&Ve(R0,5)(P0,5)(z0,5)(A0,5)(N0,5)(H0,5)(K0,5)($0,5),t&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(t,n){t&1&&k("click",function(a){return n.onContainerClick(a)}),t&2&&(w("id",n.id)("data-p",n.containerDataP),Se(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",C],group:[2,"group","group",C],filter:[2,"filter","filter",C],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",C],tabindex:[2,"tabindex","tabindex",X],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",X],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",C],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",C],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",C],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",C],virtualScroll:[2,"virtualScroll","virtualScroll",C],loading:[2,"loading","loading",C],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",C],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",C],autofocus:[2,"autofocus","autofocus",C],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",C],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",C],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",C],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",C],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([xf,Mi,{provide:Jo,useExisting:i},{provide:me,useExisting:i}]),_e([$]),F],ngContentSelectors:j0,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(t,n){if(t&1){let o=P();mt(G0),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,s_,3,2,"ng-container",20)(6,p_,3,6,"ng-container",20),m()(),p(7,f_,3,2,"ng-container",20),u(8,"div",19),p(9,C_,3,2,"ng-container",21)(10,E_,2,2,"ng-template",null,1,Z),m(),u(12,"p-overlay",22,2),vt("visibleChange",function(d){return _(o),yt(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,ff,13,24,"ng-template",null,3,Z),m()}if(t&2){let o=Ee(11);l("pBind",n.ptm("hiddenInputContainer")),w("data-p-hidden-accessible",!0),c(),l("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),w("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")),l("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")),l("pBind",n.ptm("label")),w("data-p",n.labelDataP),c(),l("ngIf",!n.selectedItemsTemplate&&!n._selectedItemsTemplate),c(),l("ngIf",n.selectedItemsTemplate||n._selectedItemsTemplate),c(),l("ngIf",n.isVisibleClearIcon),c(),g(n.cx("dropdown")),l("pBind",n.ptm("dropdown")),c(),l("ngIf",n.loading)("ngIfElse",o),c(3),l("hostAttrSelector",n.$attrSelector),bt("visible",n.overlayVisible),l("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[pe,tt,Qe,Me,be,Ge,Cf,Ci,U,mi,It,ot,Pt,vi,gt,zt,Lt,Rt,lt,Sn,Yt,Je,pt,ut,Pe,$],encapsulation:2,changeDetection:0})}return i})(),ia=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=we({type:i});static \u0275inj=xe({imports:[Di,U,U]})}return i})();var na={searchPlaceholder:"Search path, name, description\u2026",allKindsPlaceholder:"All kinds",allStabilitiesPlaceholder:"All stabilities",hasIssues:"Has issues",staleOnly:"Stale only",favoritesOnly:"Favorites only",reset:"Reset"};var oa={stable:"Stable",experimental:"Experimental",deprecated:"Deprecated"};function kf(i,r){if(i&1){let e=P();u(0,"p-multiselect",10),k("ngModelChange",function(n){_(e);let o=s();return f(o.onKindsChange(n))}),m()}if(i&2){let e=s();l("options",e.kindOptions())("ngModel",e.selectedKinds())("placeholder",e.texts.allKindsPlaceholder)("showToggleAll",!1)("filter",!1)}}function Sf(i,r){if(i&1){let e=P();u(0,"p-togglebutton",11),k("ngModelChange",function(n){_(e);let o=s();return f(o.onFavoritesOnlyToggle(n))}),m()}if(i&2){let e=s();l("ngModel",e.favoritesOnly())("onLabel",e.texts.favoritesOnly)("offLabel",e.texts.favoritesOnly)}}function Mf(i,r){if(i&1){let e=P();u(0,"p-button",12),k("onClick",function(){_(e);let n=s();return f(n.reset())}),m()}if(i&2){let e=s();l("label",e.texts.reset)("text",!0)}}var Oi=class i{store=R(gi);kindRegistry=R(fi);collection=R(_i);texts=na;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(r=>({label:r.label,value:r.name})));stabilityOptions=Cn.map(r=>({label:oa[r],value:r}));onSearchChange(r){this.store.setSearchText(r)}onKindsChange(r){this.store.setKinds(r)}onStabilitiesChange(r){this.store.setStabilities(r)}onIssuesToggle(r){this.store.setHasIssuesOnly(r)}onStaleOnlyToggle(r){this.store.setStaleOnly(r)}onFavoritesOnlyToggle(r){this.store.setFavoritesOnly(r)}reset(){this.store.reset()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-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","pi pi-search"],["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","pi pi-exclamation-triangle","offIcon","pi pi-exclamation-triangle","styleClass","filter-bar__toggle","data-testid","filter-has-issues",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","pi pi-clock","offIcon","pi pi-clock","styleClass","filter-bar__toggle","data-testid","filter-stale-only",3,"ngModelChange","ngModel","onLabel","offLabel"],["onIcon","pi pi-heart-fill","offIcon","pi pi-heart","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","pi pi-heart-fill","offIcon","pi pi-heart","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,t){e&1&&(u(0,"div",0)(1,"p-iconfield",1),V(2,"p-inputicon",2),u(3,"input",3),k("ngModelChange",function(o){return t.onSearchChange(o)}),m()(),fe(4,kf,1,5,"p-multiselect",4),u(5,"p-multiselect",5),k("ngModelChange",function(o){return t.onStabilitiesChange(o)}),m(),u(6,"p-togglebutton",6),k("ngModelChange",function(o){return t.onIssuesToggle(o)}),m(),u(7,"p-togglebutton",7),k("ngModelChange",function(o){return t.onStaleOnlyToggle(o)}),m(),fe(8,Sf,1,3,"p-togglebutton",8),fe(9,Mf,1,2,"p-button",9),m()),e&2&&(c(3),l("placeholder",t.texts.searchPlaceholder)("ngModel",t.searchText()),c(),ge(t.showKinds()?4:-1),c(),l("options",t.stabilityOptions)("ngModel",t.selectedStabilities())("placeholder",t.texts.allStabilitiesPlaceholder)("showToggleAll",!1)("filter",!1),c(),l("ngModel",t.hasIssuesOnly())("onLabel",t.texts.hasIssues)("offLabel",t.texts.hasIssues),c(),l("ngModel",t.staleOnly())("onLabel",t.texts.staleOnly)("offLabel",t.texts.staleOnly),c(),ge(t.showFavoritesToggle()?8:-1),c(),ge(t.isActive()?9:-1))},dependencies:[Je,wn,pt,ut,Mn,Lt,En,Rt,yi,lt,ia,Di,Ft,Tt,Tn,bi],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 Ef(i,r){if(i&1&&(N(0),u(1,"strong"),N(2),m(),N(3)),i&2){let e=s();le(" ",e.texts.showingPrefix," "),c(2),ee(e.visibleCount()),c(),le("",e.texts.showingSuffix(e.total())," ")}}function Df(i,r){if(i&1&&N(0),i&2){let e=s();le(" ",e.texts.subtitleDefault," ")}}function Of(i,r){if(i&1&&V(0,"p-message",3),i&2){let e=s();l("text",e.error())}}function Ff(i,r){if(i&1&&(u(0,"div",4),V(1,"p-progressSpinner",6),u(2,"span"),N(3),m()()),i&2){let e=s();c(3),ee(e.texts.loading)}}function Vf(i,r){if(i&1&&(u(0,"tr")(1,"th",10),N(2),V(3,"p-sortIcon",11),m(),u(4,"th",12),N(5),V(6,"p-sortIcon",13),m(),u(7,"th",14),N(8),V(9,"p-sortIcon",15),m(),u(10,"th",16),N(11),V(12,"p-sortIcon",17),m(),u(13,"th",18),N(14),V(15,"p-sortIcon",19),m()()),i&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 Bf(i,r){if(i&1&&(u(0,"span",23),N(1),m()),i&2){let e=s().$implicit;c(),ee(e.detail)}}function Lf(i,r){if(i&1){let e=P();u(0,"tr",20),k("click",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))}),u(1,"td"),V(2,"p-tag",21),m(),u(3,"td",22),N(4),fe(5,Bf,2,1,"span",23),m(),u(6,"td")(7,"code"),N(8),m()(),u(9,"td"),N(10),m(),u(11,"td"),V(12,"p-tag",24),m()()}if(i&2){let e=r.$implicit,t=s(2);w("data-testid","list-row-"+e.path),c(2),Se(t.kindStyle(e.kind)),l("value",t.kindLabel(e.kind)),c(2),le(" ",e.name," "),c(),ge(e.detail?5:-1),c(3),ee(e.path),c(2),ee(e.version),c(2),l("value",e.stability)("severity",t.stabilitySeverity(e.stability))("rounded",!0)}}function Rf(i,r){if(i&1){let e=P();u(0,"p",27),N(1),m(),u(2,"p-button",28),k("onClick",function(){_(e);let n=s(3);return f(n.resetFilters())}),m()}if(i&2){let e=s(3);c(),ee(e.texts.emptyFiltered),c(),l("label",e.texts.resetFilters)("text",!0)}}function Pf(i,r){if(i&1&&(u(0,"span",26),N(1),m()),i&2){let e=s(3);c(),ee(e.texts.emptyAll)}}function zf(i,r){if(i&1&&(u(0,"tr")(1,"td",25),fe(2,Rf,3,3)(3,Pf,2,1,"span",26),m()()),i&2){let e=s(2);c(2),ge(e.filtersActive()?2:3)}}function Af(i,r){if(i&1&&(u(0,"p-table",5),p(1,Vf,16,5,"ng-template",7)(2,Lf,13,11,"ng-template",8)(3,zf,4,1,"ng-template",9),m()),i&2){let e=s();l("value",e.rows())("paginator",!1)("scrollable",!0)}}var Nf={stable:"success",experimental:"info",deprecated:"warn","\u2014":"secondary"},aa=class i{loader=R(_i);filters=R(gi);router=R(ln);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=>({path:e.path,kind:e.kind,name:e.frontmatter.name??Xt.missing,detail:Hf(e),version:Kf(e),stability:$f(e),node:e})));visibleCount=ie(()=>this.rows().length);ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}kindLabel(r){return this.kindRegistry.labelOf(r)}kindStyle(r){return{background:`var(--sm-kind-${r}-bg)`,color:`var(--sm-kind-${r}-fg)`}}stabilitySeverity(r){return Nf[r]}openNode(r){this.router.navigate(["/graph"],{queryParams:{path:r.path}})}resetFilters(){this.filters.reset()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-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"],[1,"list__row",3,"click"],[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,t){e&1&&(u(0,"section",0)(1,"header",1)(2,"div")(3,"h2"),N(4),m(),u(5,"p",2),fe(6,Ef,4,3)(7,Df,1,1),m()()(),V(8,"app-filter-bar"),fe(9,Of,1,1,"p-message",3),fe(10,Ff,4,1,"div",4)(11,Af,4,3,"p-table",5),m()),e&2&&(c(4),ee(t.texts.title),c(2),ge(t.filtersActive()?6:7),c(3),ge(t.error()?9:-1),c(),ge(t.loading()?10:t.error()?-1:11))},dependencies:[Oi,qo,Jt,he,Go,jo,kn,In,Yo,Ji,On,Dn,Ft,Tt],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:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.list__row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-size:.8rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:var(--p-text-muted-color)}.list__empty[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:var(--p-text-muted-color)}"],changeDetection:0})};function Hf(i){return i.kind==="agent"?i.frontmatter.model??null:null}function Kf(i){let r=i.sidecar?.annotations;if(r&&typeof r.version=="number")return`v${r.version}`;let e=zi(i.frontmatter)?.version;return typeof e=="string"&&e.length>0?e:Xt.missing}function $f(i){let e=i.sidecar?.annotations?.stability;if(e==="stable"||e==="experimental"||e==="deprecated")return e;let t=zi(i.frontmatter)?.stability;return t==="stable"||t==="experimental"||t==="deprecated"?t:Xt.missing}export{aa as ListView};
2638
+ `,bf={root:({instance:i})=>({position:i.$appendTo()==="self"?"relative":void 0})},yf={root:({instance:i})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":i.display==="chip","p-disabled":i.$disabled(),"p-invalid":i.invalid(),"p-variant-filled":i.$variant()==="filled","p-focus":i.focused,"p-inputwrapper-filled":i.$filled(),"p-inputwrapper-focus":i.focused||i.overlayVisible,"p-multiselect-open":i.overlayVisible,"p-multiselect-fluid":i.hasFluid,"p-multiselect-sm p-inputfield-sm":i.size()==="small","p-multiselect-lg p-inputfield-lg":i.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:i})=>({"p-multiselect-label":!0,"p-placeholder":i.label()===i.placeholder(),"p-multiselect-label-empty":!i.placeholder()&&!i.defaultLabel&&(!i.modelValue()||i.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:i})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":i.selected&&i.highlightOnSelect,"p-disabled":i.disabled,"p-focus":i.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},Mi=(()=>{class i extends ye{name="multiselect";style=gf;classes=yf;inlineStyles=bf;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(i)))(n||i)}})();static \u0275prov=ce({token:i,factory:i.\u0275fac})}return i})();var Jo=new de("MULTISELECT_INSTANCE"),vf=new de("MULTISELECT_ITEM_INSTANCE"),xf={provide:Ke,useExisting:Ne(()=>Di),multi:!0},Cf=(()=>{class i extends Re{$pcMultiSelectItem=R(vf,{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 T;onMouseEnter=new T;_componentStyle=R(Mi);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=E(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(t,n){t&1&&k("click",function(a){return n.onOptionClick(a)})("mouseenter",function(a){return n.onOptionMouseEnter(a)}),t&2&&(w("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")),Ae("height",n.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",C],label:"label",disabled:[2,"disabled","disabled",C],itemSize:[2,"itemSize","itemSize",X],focused:[2,"focused","focused",C],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",C]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[se([Mi]),F],attrs:p0,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(u(0,"p-checkbox",1),p(1,f0,3,0,"ng-container",2),m(),p(2,g0,2,1,"span",2)(3,b0,1,0,"ng-container",3)),t&2&&(l("ngModel",n.selected)("binary",!0)("tabindex",-1)("variant",n.variant)("ariaLabel",n.label)("pt",n.getPTOptions("pcOptionCheckbox"))("unstyled",n.unstyled()),c(),l("ngIf",n.itemCheckboxIconTemplate),c(),l("ngIf",!n.template),c(),l("ngTemplateOutlet",n.template)("ngTemplateOutletContext",j(11,Xo,n.option)))},dependencies:[pe,Me,be,Yt,Je,pt,ut,U],encapsulation:2})}return i})(),Di=(()=>{class i extends rt{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:C});appendTo=Y(void 0);motionOptions=Y(void 0);onChange=new T;onFilter=new T;onFocus=new T;onBlur=new T;onClick=new T;onClear=new T;onPanelShow=new T;onPanelHide=new T;onLazyLoad=new T;onRemove=new T;onSelectAllChange=new T;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=R(Mi);bindDirectiveInstance=R($,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=Fe(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(Jo,{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=Fe(null);_filterValue=Fe(null);_options=Fe([]);startRangeIndex=Fe(-1);focusedOptionIndex=Fe(-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()!==""&&je(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(),t=mn(e)&&Q.isObject(e[0]);if(this._filterValue()){let n;if(t?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(We(ve({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...v]}))}),this.flatOptions(a)}return n}return e});label=ie(()=>{let e,t=this.modelValue();if(t&&t?.length&&this.displaySelectedLabel){if(je(this.maxSelectedLabels)&&t?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let n=0;n<t.length;n++)n!==0&&(e+=", "),e+=this.getLabelByValue(t[n])}else e=this.placeholder()||"";return e});chipSelectedItems=ie(()=>je(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,t,n){super(),this.zone=e,this.filterService=t,this.overlayService=n,ii(()=>{let o=this.modelValue(),a=this.getAllVisibleAndNonVisibleOptions();a&&je(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||ue("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((t,n,o)=>{t.push({optionGroup:n,group:!0,index:o});let a=this.getOptionGroupChildren(n);return a&&a.forEach(d=>t.push(d)),t},[])}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,t){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,t=!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=>!He(v,this.getOptionValue(a),this.equalityKey()||"")):h=[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(h,o),n!==-1&&this.focusedOptionIndex.set(n),t&&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,t=-1,n=-1){if(t===-1&&(t=this.findNearestSelectedOptionIndex(n,!0)),n===-1&&(n=this.findNearestSelectedOptionIndex(t)),t!==-1&&n!==-1){let o=Math.min(t,n),a=Math.max(t,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,t=!1){let n=-1;return this.hasSelectedOption()&&(t?(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 t=this.hasSelectedOption()&&e>0?_t(this.visibleOptions().slice(0,e),n=>this.isValidSelectedOption(n)):-1;return t>-1?t:-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 t=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidSelectedOption(n)):-1;return t>-1?t+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return je(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?Le(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let t=this.getOptionValue(e);return(this.modelValue()||[]).some(n=>He(n,t,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,t){return this.virtualScrollerDisabled?e:t&&t.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(t=>this.isOptionGroup(t)).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)&&He(this.getOptionValue(o),e,this.equalityKey()||""));return n?this.getOptionLabel(n):null}getSelectedItemsLabel(){let e=/{(.*?)}/,t=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(De.SELECTION_MESSAGE);return e.test(t)?t.replace(t.match(e)[0],this.modelValue().length+""):t}getOptionLabel(e){return this.optionLabel?Le(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Le(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?Le(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?Le(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let t=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"&&t){let n=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),e.preventDefault();break}!t&&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,t=!1){t&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let t=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),t),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,t=!1){if(e.altKey&&!t)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,t=!1){let{currentTarget:n}=e;if(t){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,t=!1){let{currentTarget:n}=e;if(t){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,t=!1){if(!t)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 t=e.relatedTarget===this.focusInputViewChild?.nativeElement?si(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(t)}onInputFocus(e){this.focused=!0;let t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(t),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 t=e.target.value;this._filterValue.set(t),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 t=e.relatedTarget===this.focusInputViewChild?.nativeElement?ci(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Be(t)}onOptionMouseEnter(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)}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 t=this.getAllVisibleAndNonVisibleOptions().filter(h=>this.isSelected(h)&&(this.optionDisabled?Le(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)):[],...t,...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}),W.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,t){this.focusedOptionIndex()!==t&&(this.focusedOptionIndex.set(t),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let t=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=ae(this.itemsViewChild.nativeElement,`li[id="${t}"]`);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:je(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 t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(t),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 t=this.modelValue()?this.focusedOptionIndex():-1;t!==-1&&this.scroller?.scrollToIndex(t)}else{let t=ae(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');t&&t.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,t){let n=this.modelValue().filter(o=>!He(o,e,this.equalityKey()||""));this.updateModel(n,t),this.onChange.emit({originalEvent:t,value:n,itemValue:e}),this.onRemove.emit({newValue:n,removed:e}),t&&t.stopPropagation()}findNextOptionIndex(e){let t=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return t>-1?t+e+1:e}findPrevOptionIndex(e){let t=e>0?_t(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return t>-1?t:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?_t(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return _t(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,t){this.searchValue=(this.searchValue||"")+t;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 xt(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,t){this.value=e,t(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,t,n,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(t){return new(t||i)(Ce($e),Ce(Et),Ce(ft))};static \u0275cmp=O({type:i,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(t,n,o){if(t&1&&Oe(o,gn,5)(o,fn,5)(o,y0,4)(o,v0,4)(o,x0,4)(o,C0,4)(o,w0,4)(o,T0,4)(o,I0,4)(o,k0,4)(o,S0,4)(o,M0,4)(o,E0,4)(o,D0,4)(o,O0,4)(o,F0,4)(o,V0,4)(o,B0,4)(o,L0,4)(o,he,4),t&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(t,n){if(t&1&&Ve(R0,5)(P0,5)(z0,5)(A0,5)(N0,5)(H0,5)(K0,5)($0,5),t&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(t,n){t&1&&k("click",function(a){return n.onContainerClick(a)}),t&2&&(w("id",n.id)("data-p",n.containerDataP),Se(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",C],group:[2,"group","group",C],filter:[2,"filter","filter",C],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",C],tabindex:[2,"tabindex","tabindex",X],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",X],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",C],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",C],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",C],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",C],virtualScroll:[2,"virtualScroll","virtualScroll",C],loading:[2,"loading","loading",C],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",C],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",C],autofocus:[2,"autofocus","autofocus",C],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",C],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",C],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",C],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",C],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([xf,Mi,{provide:Jo,useExisting:i},{provide:me,useExisting:i}]),_e([$]),F],ngContentSelectors:j0,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(t,n){if(t&1){let o=P();mt(G0),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,s_,3,2,"ng-container",20)(6,p_,3,6,"ng-container",20),m()(),p(7,f_,3,2,"ng-container",20),u(8,"div",19),p(9,C_,3,2,"ng-container",21)(10,E_,2,2,"ng-template",null,1,Z),m(),u(12,"p-overlay",22,2),vt("visibleChange",function(d){return _(o),yt(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,ff,13,24,"ng-template",null,3,Z),m()}if(t&2){let o=Ee(11);l("pBind",n.ptm("hiddenInputContainer")),w("data-p-hidden-accessible",!0),c(),l("pTooltip",n.tooltip)("pTooltipUnstyled",n.unstyled())("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),w("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")),l("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")),l("pBind",n.ptm("label")),w("data-p",n.labelDataP),c(),l("ngIf",!n.selectedItemsTemplate&&!n._selectedItemsTemplate),c(),l("ngIf",n.selectedItemsTemplate||n._selectedItemsTemplate),c(),l("ngIf",n.isVisibleClearIcon),c(),g(n.cx("dropdown")),l("pBind",n.ptm("dropdown")),c(),l("ngIf",n.loading)("ngIfElse",o),c(3),l("hostAttrSelector",n.$attrSelector),bt("visible",n.overlayVisible),l("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[pe,tt,Qe,Me,be,Ge,Cf,Ci,U,mi,It,ot,Pt,vi,gt,zt,Lt,Rt,lt,Sn,Yt,Je,pt,ut,Pe,$],encapsulation:2,changeDetection:0})}return i})(),ia=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=we({type:i});static \u0275inj=xe({imports:[Di,U,U]})}return i})();var na={searchPlaceholder:"Search path, name, description\u2026",allKindsPlaceholder:"All kinds",allStabilitiesPlaceholder:"All stabilities",hasIssues:"Has issues",staleOnly:"Stale only",favoritesOnly:"Favorites only",reset:"Reset"};var oa={stable:"Stable",experimental:"Experimental",deprecated:"Deprecated"};function kf(i,r){if(i&1){let e=P();u(0,"p-multiselect",10),k("ngModelChange",function(n){_(e);let o=s();return f(o.onKindsChange(n))}),m()}if(i&2){let e=s();l("options",e.kindOptions())("ngModel",e.selectedKinds())("placeholder",e.texts.allKindsPlaceholder)("showToggleAll",!1)("filter",!1)}}function Sf(i,r){if(i&1){let e=P();u(0,"p-togglebutton",11),k("ngModelChange",function(n){_(e);let o=s();return f(o.onFavoritesOnlyToggle(n))}),m()}if(i&2){let e=s();l("ngModel",e.favoritesOnly())("onLabel",e.texts.favoritesOnly)("offLabel",e.texts.favoritesOnly)}}function Mf(i,r){if(i&1){let e=P();u(0,"p-button",12),k("onClick",function(){_(e);let n=s();return f(n.reset())}),m()}if(i&2){let e=s();l("label",e.texts.reset)("text",!0)}}var Oi=class i{store=R(gi);kindRegistry=R(fi);collection=R(_i);texts=na;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(r=>({label:r.label,value:r.name})));stabilityOptions=Cn.map(r=>({label:oa[r],value:r}));onSearchChange(r){this.store.setSearchText(r)}onKindsChange(r){this.store.setKinds(r)}onStabilitiesChange(r){this.store.setStabilities(r)}onIssuesToggle(r){this.store.setHasIssuesOnly(r)}onStaleOnlyToggle(r){this.store.setStaleOnly(r)}onFavoritesOnlyToggle(r){this.store.setFavoritesOnly(r)}reset(){this.store.reset()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-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,t){e&1&&(u(0,"div",0)(1,"p-iconfield",1),V(2,"p-inputicon",2),u(3,"input",3),k("ngModelChange",function(o){return t.onSearchChange(o)}),m()(),fe(4,kf,1,5,"p-multiselect",4),u(5,"p-multiselect",5),k("ngModelChange",function(o){return t.onStabilitiesChange(o)}),m(),u(6,"p-togglebutton",6),k("ngModelChange",function(o){return t.onIssuesToggle(o)}),m(),u(7,"p-togglebutton",7),k("ngModelChange",function(o){return t.onStaleOnlyToggle(o)}),m(),fe(8,Sf,1,3,"p-togglebutton",8),fe(9,Mf,1,2,"p-button",9),m()),e&2&&(c(3),l("placeholder",t.texts.searchPlaceholder)("ngModel",t.searchText()),c(),ge(t.showKinds()?4:-1),c(),l("options",t.stabilityOptions)("ngModel",t.selectedStabilities())("placeholder",t.texts.allStabilitiesPlaceholder)("showToggleAll",!1)("filter",!1),c(),l("ngModel",t.hasIssuesOnly())("onLabel",t.texts.hasIssues)("offLabel",t.texts.hasIssues),c(),l("ngModel",t.staleOnly())("onLabel",t.texts.staleOnly)("offLabel",t.texts.staleOnly),c(),ge(t.showFavoritesToggle()?8:-1),c(),ge(t.isActive()?9:-1))},dependencies:[Je,wn,pt,ut,Mn,Lt,En,Rt,yi,lt,ia,Di,Ft,Tt,Tn,bi],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 Ef(i,r){if(i&1&&(N(0),u(1,"strong"),N(2),m(),N(3)),i&2){let e=s();le(" ",e.texts.showingPrefix," "),c(2),ee(e.visibleCount()),c(),le("",e.texts.showingSuffix(e.total())," ")}}function Df(i,r){if(i&1&&N(0),i&2){let e=s();le(" ",e.texts.subtitleDefault," ")}}function Of(i,r){if(i&1&&V(0,"p-message",3),i&2){let e=s();l("text",e.error())}}function Ff(i,r){if(i&1&&(u(0,"div",4),V(1,"p-progressSpinner",6),u(2,"span"),N(3),m()()),i&2){let e=s();c(3),ee(e.texts.loading)}}function Vf(i,r){if(i&1&&(u(0,"tr")(1,"th",10),N(2),V(3,"p-sortIcon",11),m(),u(4,"th",12),N(5),V(6,"p-sortIcon",13),m(),u(7,"th",14),N(8),V(9,"p-sortIcon",15),m(),u(10,"th",16),N(11),V(12,"p-sortIcon",17),m(),u(13,"th",18),N(14),V(15,"p-sortIcon",19),m()()),i&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 Bf(i,r){if(i&1&&(u(0,"span",23),N(1),m()),i&2){let e=s().$implicit;c(),ee(e.detail)}}function Lf(i,r){if(i&1){let e=P();u(0,"tr",20),k("click",function(){let n=_(e).$implicit,o=s(2);return f(o.openNode(n))}),u(1,"td"),V(2,"p-tag",21),m(),u(3,"td",22),N(4),fe(5,Bf,2,1,"span",23),m(),u(6,"td")(7,"code"),N(8),m()(),u(9,"td"),N(10),m(),u(11,"td"),V(12,"p-tag",24),m()()}if(i&2){let e=r.$implicit,t=s(2);w("data-testid","list-row-"+e.path),c(2),Se(t.kindStyle(e.kind)),l("value",t.kindLabel(e.kind)),c(2),le(" ",e.name," "),c(),ge(e.detail?5:-1),c(3),ee(e.path),c(2),ee(e.version),c(2),l("value",e.stability)("severity",t.stabilitySeverity(e.stability))("rounded",!0)}}function Rf(i,r){if(i&1){let e=P();u(0,"p",27),N(1),m(),u(2,"p-button",28),k("onClick",function(){_(e);let n=s(3);return f(n.resetFilters())}),m()}if(i&2){let e=s(3);c(),ee(e.texts.emptyFiltered),c(),l("label",e.texts.resetFilters)("text",!0)}}function Pf(i,r){if(i&1&&(u(0,"span",26),N(1),m()),i&2){let e=s(3);c(),ee(e.texts.emptyAll)}}function zf(i,r){if(i&1&&(u(0,"tr")(1,"td",25),fe(2,Rf,3,3)(3,Pf,2,1,"span",26),m()()),i&2){let e=s(2);c(2),ge(e.filtersActive()?2:3)}}function Af(i,r){if(i&1&&(u(0,"p-table",5),p(1,Vf,16,5,"ng-template",7)(2,Lf,13,11,"ng-template",8)(3,zf,4,1,"ng-template",9),m()),i&2){let e=s();l("value",e.rows())("paginator",!1)("scrollable",!0)}}var Nf={stable:"success",experimental:"info",deprecated:"warn","\u2014":"secondary"},aa=class i{loader=R(_i);filters=R(gi);router=R(ln);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=>({path:e.path,kind:e.kind,name:e.frontmatter.name??Xt.missing,detail:Hf(e),version:Kf(e),stability:$f(e),node:e})));visibleCount=ie(()=>this.rows().length);ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}kindLabel(r){return this.kindRegistry.labelOf(r)}kindStyle(r){return{background:`var(--sm-kind-${r}-bg)`,color:`var(--sm-kind-${r}-fg)`}}stabilitySeverity(r){return Nf[r]}openNode(r){this.router.navigate(["/graph"],{queryParams:{path:r.path}})}resetFilters(){this.filters.reset()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-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"],[1,"list__row",3,"click"],[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,t){e&1&&(u(0,"section",0)(1,"header",1)(2,"div")(3,"h2"),N(4),m(),u(5,"p",2),fe(6,Ef,4,3)(7,Df,1,1),m()()(),V(8,"app-filter-bar"),fe(9,Of,1,1,"p-message",3),fe(10,Ff,4,1,"div",4)(11,Af,4,3,"p-table",5),m()),e&2&&(c(4),ee(t.texts.title),c(2),ge(t.filtersActive()?6:7),c(3),ge(t.error()?9:-1),c(),ge(t.loading()?10:t.error()?-1:11))},dependencies:[Oi,qo,Jt,he,Go,jo,kn,In,Yo,Ji,On,Dn,Ft,Tt],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:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.list__row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-size:.8rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:var(--p-text-muted-color)}.list__empty[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:var(--p-text-muted-color)}"],changeDetection:0})};function Hf(i){return i.kind==="agent"?i.frontmatter.model??null:null}function Kf(i){let r=i.sidecar?.annotations;if(r&&typeof r.version=="number")return`v${r.version}`;let e=zi(i.frontmatter)?.version;return typeof e=="string"&&e.length>0?e:Xt.missing}function $f(i){let e=i.sidecar?.annotations?.stability;if(e==="stable"||e==="experimental"||e==="deprecated")return e;let t=zi(i.frontmatter)?.stability;return t==="stable"||t==="experimental"||t==="deprecated"?t:Xt.missing}export{aa as ListView};
@@ -1,4 +1,4 @@
1
- import{Da as Le,Gb as N,I as se,J as ae,Jc as Ye,K as T,M as E,Ma as Be,Mc as me,Na as ke,Nc as L,O as I,Rb as b,Sb as C,Tc as X,U as xe,Uc as Ke,Vb as u,Wb as o,Ya as Re,Yc as Je,Z as U,ac as We,ba as D,bc as S,ca as W,d as Ie,da as Te,dc as ue,ea as M,eb as je,fc as ce,ga as le,h as Ne,hb as Ge,ib as He,n as Se,oc as qe,qa as de,ra as v,sb as $e,t as Oe,ub as Ue,va as q,wa as P,xa as _,ya as Pe,za as m}from"./chunk-ZSRIBCAW.js";import{I as Ze,K as Z,P as fe,T as Xe,b as z,d as he,fa as pe,g as ze}from"./chunk-3R7E3HPC.js";import{a as p,b as A}from"./chunk-Q7L6LLAK.js";var Et=["data-p-icon","times"],Mn=(()=>{class t extends Je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["","data-p-icon","times"]],features:[m],attrs:Et,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,r){i&1&&(xe(),Re(0,"path",0))},encapsulation:2})}return t})();var Ft=Object.defineProperty,Qe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,et=(t,n,e)=>n in t?Ft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,tt=(t,n)=>{for(var e in n||(n={}))wt.call(n,e)&&et(t,e,n[e]);if(Qe)for(var e of Qe(n))It.call(n,e)&&et(t,e,n[e]);return t},Nt=(t,n,e)=>new Promise((i,r)=>{var s=l=>{try{f(e.next(l))}catch(c){r(c)}},a=l=>{try{f(e.throw(l))}catch(c){r(c)}},f=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);f((e=e.apply(t,n)).next())}),K="animation",B="transition";function St(t){return t?t.disabled||!!(t.safe&&Ze()):!1}function Ot(t,n){return t?tt(tt({},t),Object.entries(n).reduce((e,[i,r])=>{var s;return e[i]=(s=t[i])!=null?s:r,e},{})):n}function xt(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 Tt(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 Pt(t,n){let e=window.getComputedStyle(t),i=g=>{let F=e[`${g}Delay`],V=e[`${g}Duration`];return[F.split(", ").map(pe),V.split(", ").map(pe)]},[r,s]=i(B),[a,f]=i(K),l=Math.max(...s.map((g,F)=>g+r[F])),c=Math.max(...f.map((g,F)=>g+a[F])),d,h=0,y=0;return n===B?l>0&&(d=B,h=l,y=s.length):n===K?c>0&&(d=K,h=c,y=f.length):(h=Math.max(l,c),d=h>0?l>c?B:K:void 0,y=d?d===B?s.length:f.length:0),{type:d,timeout:h,count:y}}function J(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function Lt(t,n=!0,e=!1){if(!n&&!e)return;let i=ze(t);n&&fe(t,"--pui-motion-height",i.height+"px"),e&&fe(t,"--pui-motion-width",i.width+"px")}var Bt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function ge(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,r={},s=null,a={},f=d=>{if(Object.assign(e,Ot(d,Bt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=Tt(e),i=St(e),r=xt(e),s=null},l=d=>Nt(null,null,function*(){s?.();let{onBefore:h,onStart:y,onAfter:g,onCancelled:F}=a[d]||{},V={element:t};if(i){h?.(V),y?.(V),g?.(V);return}let{from:Ve,active:Ae,to:Ee}=r[d]||{};return Lt(t,e.autoHeight,e.autoWidth),h?.(V),z(t,Ve),z(t,Ae),t.offsetHeight,he(t,Ve),z(t,Ee),y?.(V),new Promise(Fe=>{let Vt=J(e.duration,d),we=()=>{he(t,[Ee,Ae]),s=null},At=()=>{we(),g?.(V),Fe()};s=()=>{we(),F?.(V),Fe()},Rt(t,e.type,Vt,At)})});f(n);let c={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{s?.(),s=null},update:(d,h)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(h)}};return e.appear&&c.enter(),c}var kt=0;function Rt(t,n,e,i){let r=t._motionEndId=++kt,s=()=>{r===t._motionEndId&&i()};if(e!=null)return setTimeout(s,e);let{type:a,timeout:f,count:l}=Pt(t,n);if(!a){i();return}let c=a+"end",d=0,h=()=>{t.removeEventListener(c,y,!0),s()},y=g=>{g.target===t&&++d>=l&&h()};t.addEventListener(c,y,{capture:!0,once:!0}),setTimeout(()=>{d<l&&h()},f+1)}var jt=["*"];function Gt(t,n){t&1&&He(0)}var Q=new WeakMap;function k(t,n){if(t)switch(Q.has(t)||Q.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 ee(t,n){if(!t)return;let e=Q.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}Q.delete(t)}var Ht=`
1
+ import{Da as Le,Gb as N,I as se,J as ae,Jc as Ye,K as T,M as E,Ma as Be,Na as ke,O as I,Oc as me,Pc as L,Rb as b,Sb as C,U as xe,Vb as u,Vc as X,Wb as o,Wc as Ke,Ya as Re,Z as U,_c as Je,ac as We,ba as D,bc as S,ca as W,d as Ie,da as Te,dc as ue,ea as M,eb as je,fc as ce,ga as le,h as Ne,hb as Ge,ib as He,n as Se,oc as qe,qa as de,ra as v,sb as $e,t as Oe,ub as Ue,va as q,wa as P,xa as _,ya as Pe,za as m}from"./chunk-25AWRVIC.js";import{I as Ze,K as Z,P as fe,T as Xe,b as z,d as he,fa as pe,g as ze}from"./chunk-3R7E3HPC.js";import{a as p,b as A}from"./chunk-Q7L6LLAK.js";var Et=["data-p-icon","times"],Mn=(()=>{class t extends Je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["","data-p-icon","times"]],features:[m],attrs:Et,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,r){i&1&&(xe(),Re(0,"path",0))},encapsulation:2})}return t})();var Ft=Object.defineProperty,Qe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,et=(t,n,e)=>n in t?Ft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,tt=(t,n)=>{for(var e in n||(n={}))wt.call(n,e)&&et(t,e,n[e]);if(Qe)for(var e of Qe(n))It.call(n,e)&&et(t,e,n[e]);return t},Nt=(t,n,e)=>new Promise((i,r)=>{var s=l=>{try{f(e.next(l))}catch(c){r(c)}},a=l=>{try{f(e.throw(l))}catch(c){r(c)}},f=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);f((e=e.apply(t,n)).next())}),K="animation",B="transition";function St(t){return t?t.disabled||!!(t.safe&&Ze()):!1}function Ot(t,n){return t?tt(tt({},t),Object.entries(n).reduce((e,[i,r])=>{var s;return e[i]=(s=t[i])!=null?s:r,e},{})):n}function xt(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 Tt(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 Pt(t,n){let e=window.getComputedStyle(t),i=g=>{let F=e[`${g}Delay`],V=e[`${g}Duration`];return[F.split(", ").map(pe),V.split(", ").map(pe)]},[r,s]=i(B),[a,f]=i(K),l=Math.max(...s.map((g,F)=>g+r[F])),c=Math.max(...f.map((g,F)=>g+a[F])),d,h=0,y=0;return n===B?l>0&&(d=B,h=l,y=s.length):n===K?c>0&&(d=K,h=c,y=f.length):(h=Math.max(l,c),d=h>0?l>c?B:K:void 0,y=d?d===B?s.length:f.length:0),{type:d,timeout:h,count:y}}function J(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function Lt(t,n=!0,e=!1){if(!n&&!e)return;let i=ze(t);n&&fe(t,"--pui-motion-height",i.height+"px"),e&&fe(t,"--pui-motion-width",i.width+"px")}var Bt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function ge(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,r={},s=null,a={},f=d=>{if(Object.assign(e,Ot(d,Bt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=Tt(e),i=St(e),r=xt(e),s=null},l=d=>Nt(null,null,function*(){s?.();let{onBefore:h,onStart:y,onAfter:g,onCancelled:F}=a[d]||{},V={element:t};if(i){h?.(V),y?.(V),g?.(V);return}let{from:Ve,active:Ae,to:Ee}=r[d]||{};return Lt(t,e.autoHeight,e.autoWidth),h?.(V),z(t,Ve),z(t,Ae),t.offsetHeight,he(t,Ve),z(t,Ee),y?.(V),new Promise(Fe=>{let Vt=J(e.duration,d),we=()=>{he(t,[Ee,Ae]),s=null},At=()=>{we(),g?.(V),Fe()};s=()=>{we(),F?.(V),Fe()},Rt(t,e.type,Vt,At)})});f(n);let c={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{s?.(),s=null},update:(d,h)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(h)}};return e.appear&&c.enter(),c}var kt=0;function Rt(t,n,e,i){let r=t._motionEndId=++kt,s=()=>{r===t._motionEndId&&i()};if(e!=null)return setTimeout(s,e);let{type:a,timeout:f,count:l}=Pt(t,n);if(!a){i();return}let c=a+"end",d=0,h=()=>{t.removeEventListener(c,y,!0),s()},y=g=>{g.target===t&&++d>=l&&h()};t.addEventListener(c,y,{capture:!0,once:!0}),setTimeout(()=>{d<l&&h()},f+1)}var jt=["*"];function Gt(t,n){t&1&&He(0)}var Q=new WeakMap;function k(t,n){if(t)switch(Q.has(t)||Q.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 ee(t,n){if(!t)return;let e=Q.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}Q.delete(t)}var Ht=`
2
2
  .p-motion {
3
3
  display: block;
4
4
  }