PageSourceSearch

https://astron.ai/assets/index-ZOYPX2lR.js

js astron.ai collected 2026-09-24 13:19:45 UTC 5,196 bytes, 1 lines download raw bytes

1import{r as s,j as e}from"./index-CJQpyVoF.js";import{u as D,j as R}from"./index-BsiFJMUU.js";import{j as A}from"./common-BC0booSG.js";import{u as B}from"./useTranslation-CZJVCIH1.js";import{m as p}from"./proxy-C3cjFdgs.js";import"./inviteCode-D9rgtvJs.js";import"./react-svg.esm-Dyrc1OCj.js";import"./tslib.es6-BO7bUXQ_.js";import"./index-Chjiymov.js";import"./useLogout-sUgRZBFD.js";import"./auth-BQIBcS1H.js";import"./avator-Bof9bOU9.js";import"./downicon-L6jZP8Jk.js";const E="/assets/opensource-star-QANrm7d0.webp",F="/assets/github-link-button-CTS8wT2A.svg",N=[.22,1,.36,1],I={once:!0,amount:.25},O={hidden:{opacity:0,y:32,scale:.99},visible:{opacity:1,y:0,scale:1,transition:{duration:.68,ease:N,delayChildren:.12,staggerChildren:.08}}},M={hidden:{opacity:0,y:18},visible:{opacity:1,y:0,transition:{duration:.48,ease:N}}},w={hidden:{opacity:0,y:16,scale:.97},visible:{opacity:1,y:0,scale:1,transition:{duration:.46,ease:N}}},C={scale:1.05,y:-2,transition:{duration:.2,ease:[.22,1,.36,1]}},z={scale:1.1,transition:{duration:.2,ease:[.22,1,.36,1]}},G=(o,r)=>!!o||!r,P="_opensource_section_17k7o_1",Q="_container_17k7o_7",Y="_background_17k7o_17",q="_title_17k7o_29",J="_repo_badge_17k7o_44",K="_rpa_badge_17k7o_70",L="_agent_badge_17k7o_77",U="_star_value_17k7o_86",W="_rolling_number_17k7o_87",X="_digits_17k7o_88",Z="_digit_wrapper_17k7o_99",ee="_digit_container_17k7o_100",te="_digit_item_17k7o_101",ae="_visually_hidden_17k7o_132",ne="_github_link_button_17k7o_144",t={opensource_section:P,container:Q,background:Y,title:q,repo_badge:J,rpa_badge:K,agent_badge:L,star_value:U,rolling_number:W,digits:X,digit_wrapper:Z,digit_container:ee,digit_item:te,visually_hidden:ae,github_link_button:ne},x=[{key:"agent",owner:"iflytek",repo:"astron-agent",defaultValue:9718},{key:"rpa",owner:"iflytek",repo:"astron-rpa",defaultValue:6541}],j={agent:x[0].defaultValue,rpa:x[1].defaultValue},$=({target:o,active:r,animationEnabled:a,startDelay:_})=>{const c=Math.max(0,Math.floor(o)),g=c.toString().split("");return e.jsxs("span",{className:t.rolling_number,children:[e.jsx("span",{className:t.visually_hidden,children:c}),e.jsx("span",{className:t.digits,"aria-hidden":"true",children:g.map((b,l)=>{const d=Number(b),f={"--digit-duration":`${.5+l*.1}s`,"--digit-delay":`${_+l*.1}s`,transform:`translateY(-${(r?d:0)*100}%)`,transition:a?void 0:"none"};return e.jsx("span",{className:t.digit_wrapper,children:e.jsx("span",{className:t.digit_container,style:f,children:Array.from({length:10},(v,h)=>e.jsx("span",{className:t.digit_item,children:h},h))})},l)})})]})},oe=s.forwardRef(({startLoading:o=!1},r)=>{const{t:a}=B(),_=s.useId(),[c,g]=s.useState(j),[b,l]=s.useState(!1),d=D(),f=typeof IntersectionObserver<"u",[v,h]=s.useState(o),u=G(d,f),H=u||b,i=d?void 0:C,k=d?void 0:z;return s.useEffect(()=>{o&&h(!0)},[o]),s.useEffect(()=>{if(!v)return;let y=!0;const V=async()=>{try{const n=await A();y&&g({agent:(n==null?void 0:n.agent)||j.agent,rpa:(n==null?void 0:n.rpa)||j.rpa})}catch{}};return(async()=>{try{const n=await Promise.all(x.map(async m=>{const S=await fetch(`https://api.github.com/repos/${m.owner}/${m.repo}`,{headers:{Accept:"application/vnd.github.v3+json"}});if(!S.ok)throw new Error(`Failed to fetch ${m.repo}: ${S.status}`);const T=await S.json();return[m.key,T.stargazers_count]}));y&&g(Object.fromEntries(n))}catch{await V()}})(),()=>{y=!1}},[v]),e.jsx("section",{ref:r,id:"opensource",className:t.opensource_section,"aria-labelledby":_,children:e.jsxs(p.div,{className:t.container,initial:u?!1:"hidden",whileInView:u?void 0:"visible",viewport:I,variants:O,onViewportEnter:()=>l(!0),children:[e.jsx("img",{className:t.background,src:R,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async"}),e.jsx(p.h2,{id:_,className:t.title,variants:M,children:a("newHome.openSourceSection.title")}),e.jsxs(p.a,{href:"https://github.com/iflytek/astron-rpa",target:"_blank",rel:"noopener noreferrer",className:`${t.repo_badge} ${t.rpa_badge}`,variants:w,whileHover:i,whileFocus:i,whileTap:i,children:[e.jsxs("span",{children:[a("newHome.openSourceSection.repositories.rpa"),":"]}),e.jsx("img",{src:E,alt:"","aria-hidden":"true"}
1),e.jsxs("span",{className:t.star_value,children:[e.jsx($,{target:c.rpa,active:H,animationEnabled:!u,startDelay:.52}),e.jsx("span",{children:a("newHome.openSourceSection.stars")})]})]}),e.jsxs(p.a,{href:"https://github.com/iflytek/astron-agent",target:"_blank",rel:"noopener noreferrer",className:`${t.repo_badge} ${t.agent_badge}`,variants:w,whileHover:i,whileFocus:i,whileTap:i,children:[e.jsxs("span",{children:[a("newHome.openSourceSection.repositories.agent"),":"]}),e.jsx("img",{src:E,alt:"","aria-hidden":"true"}),e.jsxs("span",{className:t.star_value,children:[e.jsx($,{target:c.agent,active:H,animationEnabled:!u,startDelay:.6}),e.jsx("span",{children:a("newHome.openSourceSection.stars")})]})]}),e.jsx(p.a,{href:"https://github.com/iflytek/astron-agent",target:"_blank",rel:"noopener noreferrer",className:t.github_link_button,variants:w,whileHover:k,whileFocus:k,whileTap:k,"aria-label":a("newHome.openSourceSection.githubLink"),children:e.jsx("img",{src:F,alt:"","aria-hidden":"true"})})]})})});oe.displayName="OpenSourceSection";export{oe 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.