function $(i,{subRoute:n,use:l}={}){return(typeof i=="number"?l==="displayId"?`/p/${i}`:`/p/id/${i}`:!l&&i.displayId||l==="displayId"?`/p/${i.displayId}`:`/p/id/${i.id}`)+(n?`/${n}`:"")}function o(i,{hideHashTagOnDisplayId:n,use:l}={}){return typeof i=="number"?l==="displayId"?`${n?"":"#"}${i}`:`P${i}`:!l&&i.displayId||l==="displayId"?`${n?"":"#"}${i.displayId}`:`P${i.id}`}function y(i,n,l,s){const t=i&&(i.displayId?`#${i.displayId}`:`P${i.id}`),p=n.trim()||l("problem_set.no_title"),d=t?`${t}. ${p}`:p;switch(s){case"tuple":return[t,p,d];case"titleOnly":return p;case"all":default:return d}}export{y as a,o as b,$ as g};
