PageSourceSearch

https://swag.live/static/js/getResourceUrl-kk7kEzkq.js

js swag.live collected 2026-10-01 12:16:39 UTC 973 bytes, 1 lines download raw bytes

1import{i as e,r as t,t as n}from"./getJsEnvironment-Dgx4vb26.js";var r=`watch`,i=`public`,a=`rssFeed`,o=t(),s=n(),c=e(),l={api:`api`,[r]:`https://watch.swag.live`,[i]:`https://public.swag.live`,[a]:`api`},u=()=>`swag.live`,d=({endpoint:e=`/`,path:t,resourceType:n=`api`})=>{let r=l[n]||l.api;(o||c)&&globalThis?.__RESOURCE_URL__&&(r=globalThis.__RESOURCE_URL__[n]||globalThis.__RESOURCE_URL__.api||r),s&&(r=window.__RESOURCE_URL__?.[n]||window.__RESOURCE_URL__?.api||r);let i=t?t.replace(/^\//,``).replace(/[/]*$/,`/`):``,a=e.replace(/^\//,``),d=!1;try{d=!!new URL(r).protocol}catch{}if(d)return new URL(a,new URL(i,r));{let e=u();return new URL(a,new URL(i,`https://${r}.${e}`))}},f=({path:e=``,endpoint:t,resourceType:n=`api`,origin:r})=>{let i=d({endpoint:t,path:e,resourceType:n});return r?i.searchParams.set(`_o`,r):s&&n===`api`&&![`swag.live`,`localhost`].includes(window.location.hostname)&&i.searchParams.set(`_o`,window.location.origin),i};export{i as n,r,f as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.