1import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{bt as t,wt as n}from"./vendor-Bb9yCo9K.js";import{t as r}from"./env-CC6ipo_Q.js";var i=e(n(),1),a=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M21%2012a9%209%200%201%201-6.219-8.56'/%3e%3c/svg%3e`,o=`data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='8'%20fill='%23171716'/%3e%3cpath%20d='M8.2451%209.92131C10.3703%209.2505%2012.1933%209.67166%2013.5928%2010.4701C14.9701%2011.256%2015.9119%2012.3956%2016.4272%2013.2518C16.4272%2013.2518%2017.125%2014.3892%2017.8399%2015.7614C18.4375%2016.8054%2018.8967%2017.4641%2019.4032%2018.1361C20.7119%2019.8724%2022.2307%2020.2528%2023.376%2020.1626C24.5608%2020.0693%2025.5628%2019.4256%2026.1151%2018.8589C26.3749%2018.5751%2026.7257%2018.5729%2026.9701%2018.6479C27.2052%2018.7202%2027.4095%2018.8735%2027.5595%2019.0297C27.7115%2019.188%2027.8527%2019.3957%2027.9235%2019.6265C27.9922%2019.8506%2028.0137%2020.1813%2027.786%2020.4596C26.8198%2021.751%2025.4308%2022.3002%2024.1362%2022.4748C22.846%2022.6489%2021.6018%2022.4597%2020.8322%2022.2263C19.6176%2021.8816%2018.4694%2020.7826%2017.5598%2019.6617C16.6302%2018.5161%2015.8694%2017.2454%2015.4489%2016.4177L15.4444%2016.4088L15.4403%2016.3998C13.7734%2012.7804%2011.6659%2012.0421%2011.0276%2012.042H11.0128L10.9981%2012.0412C9.08271%2011.9318%207.96158%2012.6083%207.30451%2013.439C6.62507%2014.2981%206.39788%2015.38%206.40337%2016.1055L6.40344%2016.1133L6.4033%2016.1211C6.35211%2018.3723%208.08384%2019.5895%209.00939%2019.9313L9.05281%2019.9469L9.05542%2019.9478L9.05802%2019.9488C10.6488%2020.5233%2011.7398%2020.1564%2012.4704%2019.6385C13.2336%2019.0975%2013.6299%2018.3782%2013.7792%2018.1529L14.1732%2017.5584L14.6166%2018.1171C14.8473%2018.4078%2015.3362%2019.0001%2015.5031%2019.2087L15.7538%2019.5218L15.513%2019.8427C14.4631%2021.2419%2013.4262%2021.9767%2012.2519%2022.3358L12.2324%2022.3417L12.2124%2022.3462C9.59048%2022.9268%207.66509%2022.2727%206.34102%2021.1698C5.04019%2020.0864%204.35792%2018.6034%204.12235%2017.5539L4.11895%2017.5384L4.11642%2017.5228C3.35401%2012.7916%206.52093%2010.4821%208.24084%209.92268L8.24293%209.92203L8.2451%209.92131ZM20.8503%209.7287C24.6276%208.76143%2027.0207%2010.4235%2027.7939%2011.5106C28.0295%2011.8161%2028.004%2012.1891%2027.9348%2012.3586C27.8518%2012.5618%2027.6674%2012.7636%2027.5279%2012.9133C27.3886%2013.0626%2027.1968%2013.1896%2027.0099%2013.283C26.9178%2013.3291%2026.7826%2013.367%2026.6385%2013.3751C26.4834%2013.3838%2026.2843%2013.3442%2026.1247%2013.1845C25.6891%2012.7492%2025.1324%2012.4287%2024.5935%2012.2139C24.0558%2011.9997%2023.5731%2011.9054%2023.2991%2011.8941C22.2245%2011.8957%2021.5355%2012.138%2021.0296%2012.4724C20.508%2012.8171%2020.1395%2013.2843%2019.7309%2013.8309L19.2188%2014.5156L18.7813%2013.9844L18.2188%2013.3906L17.7031%2012.9531L17.4219%2012.7344L17.767%2012.2322C18.7683%2010.6309%2019.824%2010.0918%2020.8051%209.74249L20.8274%209.73455L20.8503%209.7287Z'%20fill='white'/%3e%3c/svg%3e`;function s(e){return String(e??``).trim().toUpperCase()}function c(e){let t=new Set,n=[];for(let r of e){let e=typeof r==`string`?{src:r}:r,i=e?.src?.trim();!i||t.has(i)||(t.add(i),n.push({...e,src:i}))}return n}function l(e,t){let n=c(e),r=[],i=new Set,a=e=>{i.has(e.src)||(i.add(e.src),r.push(e))};for(let e of t.map(s))n.filter(t=>s(t.variant)===e).forEach(a);return n.forEach(a),r}function u(e){return e.map(e=>[e.src,s(e.variant),e.width??``,e.height??``,e.optimization??``].join(`�`)).join(`�`)}var d=`x-tos-process=image/format,webp/quality,q_75`,f=/\.(png|jpe?g|webp)(?:[?#]|$)/i,p=`/__remote_asset`;function m(){return r.remoteAssetProxyHosts.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean)}function h(){let e=new Set(m());try{let t=new URL(r.assetBaseUrl);e.add(t.hostname.toLowerCase())}catch{}return[...e]}function g(){return typeof window>`u`?!1:[`localhost`,`127.0.0.1`,`::1`].includes(window.location.hostname)}function _(e){if(!g())return!1;let t=e.hostname.toLowerCase();return m().some(e=>t===e||t.endsWith(`.${e}`))}function v(e){try{let t=new URL(e);if((t.protocol===`http:`||t.protocol===`https:`)&&_(t))return`${p}?url=${encodeURIComponent(e)}`}catch{return e}return e}function y(e){try{let t=new URL(e),n=t.hostname.toLowerCase();return h().some(e=>n===e||n.endsWith(`.${e}`))&&!t.search&&(t.protocol===`http:`||t.protocol===`https:`)&&f.test(t.pathname)}catch{return!1}}function b(e,t=`auto`){if(!e)return``;if(e.startsWith(`data:`)||e.startsWith(`blob:`))return e;if(t===`never`||e.includes(`x-tos-process=`)||!f.test(e)||!y(e))return v(e);let n=e.indexOf(`#`),r=n>=0?e.slice(0,n):e,i=n>=0?e.slice(n):``;return v(`${r}${r.includes(`?`)?`&`:`?`}${d}${i}`)}var x={root:`_root_c9pr0_1`,state:`_state_c9pr0_20`,image:`_image_c9pr0_29`,stateIcon:`_stateIcon_c9pr0_58`,loadingIcon:`_loadingIcon_c9pr0_83`,"remote-image-spin":`_remote-image-spin_c9pr0_1`,remoteImageSpin:`_remote-image-spin_c9pr0_1`,fallbackAvatar:`_fallbackAvatar_c9pr0_87`,"remote-image-pulse":`_remote-image-pulse_c9pr0_1`,remoteImagePulse:`_remote-image-pulse_c9pr0_1`},S=t();function C({alt:e,aspectRatio:t,className:n=``,failureFallback:r,fit:o,height:s,imageClassName:c=``,layout:l=`framed`,onStateChange:u,objectPosition:d,optimization:f=`auto`,stateVariant:p=`content`,style:m,width:h,normalizedSources:g,..._}){let[v,y]=(0,i.useState)(0),[C,w]=(0,i.useState)(g.length>0?`loading`:`failed`),T=(0,i.useRef)(null),E=(0,i.useRef)(0),D=g[v],O=D?b(D.src,D.optimization??f):``;(0,i.useEffect)(()=>{u?.(C)},[u,C]);let k=(0,i.useCallback)(e=>{if(e===E.current){if(E.current+=1,v+1<g.length){w(`loading`),y(v+1);return}w(`failed`)}},[v,g.length]),A=(0,i.useCallback)(async(e,t)=>
1{if(e.naturalWidth<=0){k(t);return}try{await e.decode?.()}catch{}t===E.current&&T.current===e&&w(`loaded`)},[k]);(0,i.useEffect)(()=>{let e=E.current+1;E.current=e;let t=T.current;return t?.complete&&queueMicrotask(()=>{t.naturalWidth>0?A(t,e):k(e)}),()=>{E.current===e&&(E.current+=1)}},[O,k,A]);let j={...m,...t?{aspectRatio:t}:{},...s===void 0?{}:{height:s},...h===void 0?{}:{width:h},"--remote-image-fit":o??`cover`,"--remote-image-position":d??`center`};if(l===`native`){let r=m||t||o||d?{...m,...t?{aspectRatio:t}:{},...o?{objectFit:o}:{},...d?{objectPosition:d}:{}}:void 0;return(0,i.createElement)(`img`,{..._,key:`${v}-${O}`,ref:T,className:[n,c].filter(Boolean).join(` `)||void 0,src:O||void 0,alt:e,width:h,height:s,style:r,onLoad:e=>void A(e.currentTarget,E.current),onError:()=>k(E.current)})}return(0,S.jsxs)(`span`,{className:`${x.root}${n?` ${n}`:``}`,"data-state":C,"data-variant":p,style:j,children:[D&&C!==`failed`?(0,i.createElement)(`img`,{..._,key:`${v}-${O}`,ref:T,className:`${x.image}${c?` ${c}`:``}`,src:O,alt:e,onLoad:e=>void A(e.currentTarget,E.current),onError:()=>k(E.current)}):null,C===`loading`?(0,S.jsx)(`span`,{className:x.state,"aria-hidden":`true`,children:(0,S.jsx)(`span`,{className:`${x.stateIcon} ${x.loadingIcon}`,style:{"--remote-image-state-icon":`url("${a}")`}})}):null,C===`failed`?(0,S.jsx)(`span`,{className:x.state,"aria-hidden":`true`,children:r??(0,S.jsx)(`span`,{className:x.stateIcon,style:{"--remote-image-state-icon":`url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cline%20x1='2'%20x2='22'%20y1='2'%20y2='22'/%3e%3cpath%20d='M10.41%2010.41a2%202%200%201%201%202.83%202.83'/%3e%3cpath%20d='M13.5%2013.5%2021%2021'/%3e%3cpath%20d='M21%2015V5a2%202%200%200%200-2-2H9'/%3e%3cpath%20d='M3%203v16a2%202%200%200%200%202%202h16'/%3e%3cpath%20d='m3%2016%205-5c.9-.86%202.1-.86%203%200l5%205'/%3e%3c/svg%3e")`}})}):null]})}function w({sources:e,variantPriority:t=[],retryToken:n=0,...r}){let a=(0,i.useMemo)(()=>t.length>0?l(e,t):c(e),[e,t]),o=u(a);return(0,S.jsx)(C,{...r,normalizedSources:a},`${o}\u001f${n}`)}function T({alt:e=``,size:t,style:n,...r}){return(0,S.jsx)(w,{...r,alt:e,fit:`cover`,stateVariant:`avatar`,width:t,height:t,style:n,failureFallback:(0,S.jsx)(`img`,{className:x.fallbackAvatar,src:o,alt:``,"aria-hidden":`true`,draggable:!1})})}export{a,o as i,w as n,l as r,T 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.