var e=new Set([`catalog`,`subscription`]);function t(e){return[...new Set(e.map(e=>String(e??``).trim()).filter(Boolean))]}function n(t){return e.has(t)}function r({availableDirectors:e=[],selectedDirectors:n=[],currentDirector:r=``,fallbackDirector:i=``}={}){let a=t(e);return a.length>0?(a.length===1?a:t([...a,r,i,...n])).map(e=>({label:e,value:e})):t([r,i,...n]).map(e=>({label:e,value:e}))}function i(e){return typeof e?.directorTarget==`string`&&e.directorTarget?e.directorTarget:``}function a(e,{tab:t,targetDirector:r}={}){let i={...e};return delete i.tab,delete i.directorTarget,t&&t!==`status`&&(i.tab=t),n(t)&&r&&(i.directorTarget=r),i}export{i,a as n,n as r,r as t};