PageSourceSearch

https://skywork.ai/skypage/_nuxt/CTZLimP5.js

js skywork.ai collected 2026-10-01 10:15:22 UTC 2,965 bytes, 3 lines download raw bytes

1import{j as l}from"./DZ9z05-8.js";/* empty css        */import{S as i}from"./C1PTRZ8A.js";import{u as d,a as p}from"./B-AVQtdE.js";import{i as g}from"./BgKgRPvN.js";import{T as m}from"./m8l60_y0.js";import{D as u,Q as f,G as w,ag as y,P as _}from"./VbZ-GkDV.js";import{_ as b}from"./DlAUqK2U.js";function j(o){if(!o)return o;let e=o;return e=e.replace(/<em[^>]*data-skywork[^>]*>.*?<\/em>/gi,""),e=e.replace(/\s+data-sk-source-[^=]*="[^"]*"/gi,""),e}function q(o){if(!o)return"";let e=o;return e=e.replace(/<img[^>]*alt=["']([^"']*)["'][^>]*>/gi," $1 "),e=e.replace(/<script[^>]*>[\s\S]*?<\/script>/gi,""),e=e.replace(/<style[^>]*>[\s\S]*?<\/style>/gi,""),e=e.replace(/<[^>]+>/g,""),e=e.replace(/&nbsp;/g," "),e=e.replace(/&lt;/g,"<"),e=e.replace(/&gt;/g,">"),e=e.replace(/&amp;/g,"&"),e=e.replace(/&quot;/g,'"'),e=e.replace(/&#39;/g,"'"),e=e.replace(/\s+/g," ").trim(),e}const B=o=>{if(!o)return"";let e=o;return e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/\*(.+?)\*/g,"$1"),e=e.replace(/_(.+?)_/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/\[(.+?)\]\(.+?\)/g,"$1"),e=e.replace(/!\[.*?\]\(.+?\)/g,""),e=e.replace(/`(.+?)`/g,"$1"),e=e.replace(/```[\s\S]*?```/g,""),e=e.replace(/^>\s+/gm,""),e=e.replace(/^[\-\*\+]\s+/gm,""),e=e.replace(/^\d+\.\s+/gm,""),e=e.replace(/^[\-\*]{3,}$/gm,""),e=e.replace(/\n{3,}/g,`
2
3`),e=e.trim(),e},k=o=>{var a,c,r,t;let e;try{e=(t=(r=(c=(a=decodeURIComponent(o).split("?")[0].split("/").pop())==null?void 0:a.split)==null?void 0:c.call(a,"."))==null?void 0:r.pop)==null?void 0:t.call(r)}catch{}return(e||"").toLocaleLowerCase()},U=async(o,e)=>{if(o)try{const c=await(await fetch(o)).blob(),r=URL.createObjectURL(c),t=document.createElement("a");t.href=r,t.download=e||"file",document.body.appendChild(t),t.click(),URL.revokeObjectURL(r),document.body.removeChild(t)}catch{}},L=async(o,e)=>{o.includes(window.location.origin)||o.includes("skywork.ai")||o.includes("tiangong.cn");const a=k(o),c=e!=null&&e.includes(".")?e:`${e}.${a}`,r=l.warning({message:"Downloading...",duration:0});try{await U(o,c),r.close(),l.success("Download successfully")}catch(t){throw r.close(),l.error("Download failed"),t}},$=u({__name:"index",props:{downloadUrl:{type:String,required:!0},name:{type:String,required:!0}},setup(o){const e=o,{redirectToLogin:a}=d({}),{isLogin:c}=p(),r=m(),t=()=>{if(!c.value){a("100","",r.href,"slide");return}if(!e.downloadUrl)return;if(g())L(e.downloadUrl,e.name);else{const n=document.createElement("a");n.href=e.downloadUrl,n.download="",n.target="_blank",document.body.appendChild(n),n.click(),document.body.removeChild(n)}};return(s,n)=>(_(),f("div",{class:"down-load-trigger",onClick:t},[w(i,{name:"ic_download picture"}),n[0]||(n[0]=y(" Download "))]))}}),S=b($,[["__scopeId","data-v-7b4886bf"]]),F=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"}));export{S as D,j as c,q as e,F as i,B as r};

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.