1import{B as u}from"./BxawZQSS.js";import{v as f,r as c}from"./CFxGRstO.js";function w(e){const a=document.createElement("iframe");a.style.display="none",a.src=e,a.setAttribute("aria-hidden","true"),document.body.appendChild(a),window.setTimeout(()=>{a.remove()},6e4)}function y({platform:e=u.WIN,id:a,endpoint:r="/api/download",startInBackground:l=!1,onSuccess:s}={}){const o=c(!1);async function d(){if(o.value)return;o.value=!0;let t=`${r}?platform=${e}`;a&&(t+=`&id=${a}`);try{const i=await $fetch(t);if(!i.success){await f("/");return}const n={downloadUrl:i.data,endpoint:r,id:a,platform:e,requestUri:t};l?w(n.downloadUrl):window.location.assign(n.downloadUrl),await s?.(n)}finally{o.value=!1}}return{loading:o,onDownload:d}}export{y as u};
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.