1import{Q as W,x as L,ds as X,J as Z,ae as K,dt as ee,aW as te,o as x,c as S,d as e,g as a,t as d,bV as R,k as se,h as ae,w as ne,C as k,b1 as z,l as N,du as oe,b5 as ie,bb as le,y as re,aU as de,b0 as ce}from"./6pRuBprh.js";import{$ as he}from"./y6M1z6RU.js";import{u as pe}from"./CvTAXoS_.js";import"./DhVjVb-Y.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};h.SENTRY_RELEASE={id:"pikpak-ssr-production-9-23-2026"};var m=new h.Error().stack;m&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[m]="12cbe4b8-1ef3-4d65-8420-014e0ea9690a",h._sentryDebugIdIdentifier="sentry-dbid-12cbe4b8-1ef3-4d65-8420-014e0ea9690a")}catch{}})();const ue="data:image/svg+xml,%3csvg%20width='16'%20height='2'%20viewBox='0%200%2016%202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%201H16'%20stroke='%23306EFF'%20stroke-width='2'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20width='16'%20height='2'%20viewBox='0%200%2016%202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%201H16'%20stroke='%233E3E46'%20stroke-width='2'/%3e%3c/svg%3e",_e={class:"speed-chart-container"},fe={class:"speed-line-description"},ve={class:"box global"},me=["alt","src"],be={class:"box person"},we=["alt","src"],ye={class:"speed-canvas-container"},$e=["height","width"],ke=["d"],Me={id:"svgTextPath"},xe=["d"],Se=["height","width"],ze=["font-size","x","y"],Ie=["dur","path"],De=["d"],Ae=["font-size","x","y"],Te={class:"speed-data"},Be={class:"data-container person-data"},Ce={class:"value"},Ee={class:"other describe"},Pe={class:"data-container amount-data"},Le={class:"value"},Re={class:"other describe"},Ne={class:"data-container global-data"},Ve={class:"value"},Oe={class:"other describe"},Ue={class:"bt-intro-title"},Fe=["href"],V=50,Ge=W({__name:"SpeedChart",props:{count:{},dur:{},delay:{},speedData:{}},emits:["update"],setup(h,{emit:m}){const r=h,O=m,I=k(),b=k(),u=k(!1),p=z({bezierPath:"",bezierArea:"",personalSpeedPath:""}),{locale:U}=pe(),F=N(()=>`https://${oe[0]}/${U.value}${ie.BT_INTRO}`),n=z({width:725,height:211}),c=N(()=>le().isMobile),f=[],D=[],A=[],T=[],g=z({average_speed:0,task_count:0,total_speed:0}),B=k(0),G=t=>Math.ceil(t/1024/1024/1024),C=t=>Math.ceil(t/1024/1024),H=t=>Math.ceil(n.width/100*t),w=t=>Math.ceil(n.height-n.height/700*t),q=()=>{const t=r.dur*1e3,s=Date.now(),o=s+t,l=()=>{requestAnimationFrame(()=>{const _=Date.now();if(_>=o)return null;const i=Math.ceil((_-s)/t*r.count);f[i]&&(B.value=f[i].y,g.total_speed=D[i],g.task_count=A[i],g.average_speed=T[i]),l()})};l()},M=()=>{n.width=c.value?351:725,n.height=c.value?104:211;let t=f.length?"":"M 0,0",s={x:0,y:0},o=!1;f.forEach((l,_)=>{if(_===0){const i=w(l.y);t+=`M 0,${i}`,s={x:0,y:i}}else{const i=H(l.x),$=w(l.y);o?t+=` T ${i} ${$}`:(t+=` Q ${Math.ceil((+s.x+i)/2)} ${Math.ceil((+s.y+$)/2)},${i} ${$}`,o=!0),s={x:i,y:$}}}),p.bezierPath=t,p.bezierArea=`${t} L ${n.width},${n.height} L 0,${n.height} Z`,p.personalSpeedPath=`M 0,${w(20)} L ${n.width},${w(20)}`};L(b,()=>{X(b.value,()=>{const t=b.value?.getTotalLength();if(t){let s=document.querySelector("#bezier-path");const o=`:root{--speed-bezier-length: ${Math.ceil(t)};--speed-bezier-dur: ${r.dur}s;}`;s||(s=document.createElement("style"),s.setAttribute("id","bezier-path"),document.head.appendChild(s)),s.innerHTML=o}},{attributes:!0})});let v=0;const Q=async()=>{O("update"),v=0},Y=t=>de(()=>{const s=r.speedData.slice(v,v+r.count);s.forEach((o,l)=>{const _=Math.ceil(l/(r.count-1)*100);f[l]={x:_,y:C(o.average_speed)},D[l]=G(o.total_speed),A[l]=o.task_count,T[l]=C(o.average_speed)}),M(),q(),v+=r.count,v>=r.speedData.length&&Q(),s.length!==0&&(u.value=t)});let y=null;const E=()=>{y&&(clearInterval(y),y=null)},P=()=>{E();const t=()=>(u.value&&(u.value=!1),re(()=>{Y(!0)}),t);y=window.setInterval(t(),r.dur*1e3+(r?.delay||0)*1e3)};L(c,()=>{M(),P()}),Z(M),K(()=>{E()});const j=()=>{he.web_official_main_page_click({button:"learn_bt_download"})},{stop:J}=ee(I,([{isIntersecting:t}])=>{t&&(P(),J())});return(t,s)=>{const o=te("i18n-t");return x(),S("div",_e,[e("div",fe,[e("div",ve,[e("img",{alt:t.$t("home-speed-cloud-average"),src:a(ue),height:"18",width:"16"},null,8,me),e("span",null,d(t.$t("home-speed-cloud-average")),1)]),e("div",be,[e("img",{ref_key:"speedImageElementRef",ref:I,alt:t.$t("home-speed-line-person"),src:a(ge),height:"18",width:"16"},null,8,we),e("span",null,d(t.$t("home-speed-line-person")),1)])]),e("div",ye,[e("div",{class:R({"actual-size":!0,"actual-size-animate":a(u)})},[(x(),S("svg",{class:R({"speed-svg":!0,"speed-svg-animate":a(u)}),height:a(n).height,width:a(n).width+V,xmlns:"http://www.w3.org/2000/svg"},[e("g",null,[e("path",{ref_key:"bezierPathRef",ref:b,d:a(p).bezierPath,class:"speed-svg-line",fill:"none",stroke:"rgb(48,110,225)",style:{"stroke-width":"2px"}},null,8,ke),e("clipPath",Me,[e("path",{d:a(p).bezierArea,fill:"none",stroke:"none"},null,8,xe)])])],10,$e))],2),a(u)?(x(),S("svg",{key:0,height:a(n).height,width:a(n).width+V,class:"speed-static-line",xmlns:"http://www.w3.org/2000/svg"},[e("g",null,[s[0]||(s[0]=e("circle",{fill:"rgba(255,255,255,0.5)",r:"10"},null,-1)),s[1]||(s[1]=e("circle",{fill:"#fff",r:"6"},null,-1)),e("text",{"font-size":a(c)?10:14,x:a(c)?-26:-29,y:a(c)?22:-15,fill:"rgba(255,255,255,0.6)"},d(a(B))+" MB/s ",9,ze),e("animateMotion",{dur:`${t.$props.dur}s`,path:a(p).bezierPath,fill:"freeze"},null,8,Ie)]),e("g",null,[e("path",{d:a(p).personalSpeedPath,fill:"none",stroke:"#3e3e46",style:{"stroke-width":"2px"}},null,8,De),e("text",{"font-size":a(c)?10:14,x:a(c)?330:703.5,y:a(c)?97:198,fill:"rgba(255,255,255,0.6)"}," 20 MB/s ",8,Ae)])],8,Se)):se("",!0)]),e("div",Te,[e("div",Be,[e("div",null,[e("span",Ce,d(a(g).average_speed),1),s[2]||(s[2]=e("span",{class:"other"},"MB/s",-1))]),e("span",Ee,d(t.$t("home-speed-cloud-average")),1)]),e("div",Pe,[e("div",null,[e("span",Le,d(a(g).task_count),1)]),e("span",Re,d(t.$t("home-speed-file-account")),1)]),e("div",Ne,[e("div",null,[e("span",Ve,d(a(g).total_speed),1),s[3]||(s[3]=e("span",{class:"other"},"GB/s",-1))]),e("span",Oe,d(t.$t("home-speed-line-global")),1)])]),e("div",Ue,[ae(o,{keypath:"home-bt-intro-title"},{one:ne(()=>[e("a",{href:a(F),target:"_blank",class:"bt-intro-title-text",onClick:j},d(t.$t("learn-more")),9,Fe)]),_:1})])])}}}),je=Object.assign(ce(Ge,[["__scopeId","data-v-8933a626"]]),{__name:"HomeSpeedChart"});export{je as default};
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.