function e(e,t){let n=String(e||``).toLowerCase();return n===`sim`?`/sim-cards?tab=list&open=${t}`:n===`account`?`/accounts?tab=list&open=${t}`:n===`device`?`/devices?tab=list&open=${t}`:n===`user`?`/users/${t}`:n===`pool`?`/sim-cards?tab=fees&fee=pools`:n===`package`?`/sim-cards?tab=fees&fee=combos`:`/dashboard`}function t(e,t){let n=String(e||``).toLowerCase(),r=new URLSearchParams({tab:`compliance`,...t||{}});return n===`account`?`/accounts?${r}`:n===`device`?`/devices?${r}`:n===`sim`||n===`pool`||n===`package`?`/sim-cards?${r}`:`/accounts?${r}`}function n(e,t){return e?t.reduce((t,n)=>t+Number(e[n]||0),0):0}function r(e,r){let i=[{types:[`account`],base:`account`},{types:[`device`],base:`device`},{types:[`sim`,`pool`,`package`],base:`sim`}],a=i[0],o=-1;for(let t of i){let r=n(e,t.types);r>o&&(o=r,a=t)}return t(a.base,r)}export{r as n,n as r,e as t};