var e=`https://www.goofish.com`,t=[`itmUrl`,`itemUrl`,`itemLink`,`detailUrl`,`jumpUrl`,`pcUrl`,`url`,`targetUrl`];function n(e){return/^https?:\/\//i.test(e)}function r(r,i){if(r)for(let e of t){let t=String(r[e]??``).trim();if(t&&n(t))return t}let a=i.trim();return a?`${e}/item?id=${encodeURIComponent(a)}`:null}async function i(e){let t=e.trim();!t||!n(t)||await chrome.tabs.create({url:t,active:!0})}export{i as n,r,e as t};