PageSourceSearch

https://www.bioer.com/_nuxt/BWXkXPQ2.js

js bioer.com collected 2026-10-09 22:41:28 UTC 4,523 bytes, 1 lines download raw bytes

1import{$t as e,Dr as t,Mn as n,Ot as r,U as i,Vn as a,Xr as o,_r as s,at as c,ei as l,en as u,gt as d,ht as f,pn as p,sn as m,vt as h,yn as g,yt as _}from"./DKhRV_XD.js";import{n as v}from"./C-6T4v8M.js";import{t as y}from"./DJE7Rdu9.js";import{l as b}from"./ClpPPQOZ.js";function x(){let e=i();return e.public?.mediaUrl||e.public?.strapiUrl||``}function S(e){return e.split(`,`).map(e=>e.trim()).filter(Boolean).map(e=>{let t=e.split(/\s+/),n=t.shift()||``,r=t.join(` `),i=r.match(/^(\d+)w$/);return{src:n,descriptor:r,width:i?Number(i[1]):void 0}}).filter(e=>e.src)}function C(e){return e.map(e=>[e.src,e.descriptor].filter(Boolean).join(` `)).join(`, `)}function w(e){return Math.max(0,...S(e.srcset).map(e=>e.width||0))}function T(e){return e.filter(e=>e.type!==`image/webp`&&e.srcset).slice().sort((e,t)=>{let n=w(t)-w(e);return n===0?e.type===`image/jpeg`?-1:t.type===`image/jpeg`?1:e.type.localeCompare(t.type):n})[0]}function E(e){return/^https?:\/\//i.test(e)}function D(e,t){if(!e||/^(?:data|blob):/i.test(e))return!1;if(!E(e))return e.startsWith(`/`);try{let n=new URL(t).origin;return new URL(e).origin===n}catch{return!1}}function O(e,t,n,r=85){let i=T(e.sources),a=S(i?i.srcset:e.srcset);!a.length&&e.src&&a.push({src:e.src,descriptor:e.width?`${e.width}w`:``,width:e.width});let o=a.flatMap(e=>{if(!n(e.src))return[];let i={format:`webp`,quality:r};return e.width&&(i.width=e.width),[{...e,src:t(e.src,i)}]}),s=e.sources.find(e=>e.type===`image/webp`&&e.srcset),c=o.length?{type:`image/webp`,srcset:C(o)}:s,l=C(a),u=a.slice().sort((e,t)=>(t.width||0)-(e.width||0))[0],d=u?.width||e.width,f=e.width&&e.height?e.height/e.width:void 0;return{...e,src:u?.src||e.src,srcset:l,width:d,height:d&&f?Math.round(d*f):e.height,type:i?.type||e.type,sources:[...c?[c]:[],...e.sources.filter(e=>e.type!==`image/webp`)]}}var k=[`aria-busy`],A=[`type`,`srcset`,`sizes`],j=[`src`,`srcset`,`sizes`,`width`,`height`,`alt`,`aria-hidden`,`loading`,`decoding`,`fetchpriority`],M={key:0,class:`pointer-events-none absolute inset-0 z-0 grid place-items-center bg-base-200/88`,"aria-hidden":`true`},N=[`aria-label`],P=[`aria-label`],F=Object.assign(r({inheritAttrs:!1,__name:`StrapiImage`,props:{media:{default:void 0},src:{default:``},alt:{default:``},sizes:{default:`100vw`},loading:{default:`lazy`},decoding:{default:`async`},fetchpriority:{default:void 0},fallbackLabel:{},mediaOptions:{default:void 0},webpQuality:{default:85}},setup(r){let i=r,{t:S}=v(),C=y(),w=x(),T=n(),E=s(null),F=s(`loading`),I=f(()=>i.fallbackLabel||S(`common.noImage`)),L=f(()=>{let{class:e,style:t,...n}=T;return n}),R=f(()=>b(i.media||i.src,w,i.mediaOptions)),z=f(()=>{let e=R.value;return e?O(e,(e,t)=>C(e,t),e=>D(e,w),i.webpQuality):null}),B=f(()=>{let e=z.value;return e?[e.src,e.srcset||``,...e.sources.map(e=>`${e.type}:${e.srcset}`)].join(`|`):`empty`}),V=f(()=>{let{class:e,style:t,...n}=T;return n});function H(e){return e.complete&&e.naturalWidth>0}function U(){let e=E.value;return e&&H(e)?(F.value=`loaded`,!0):e?.complete&&e.currentSrc?(F.value=`error`,!0):!1}function W(){F.value=`loaded`}function G(){F.value=`error`}return a(B,async()=>{F.value=`loading`,await u(),U()},{immediate:!0}),m(U),(n,i)=>t(z)?(p(),_(`span`,{key:0,class:o([`relative isolate block overflow-hidden`,t(T).class]),"aria-busy":t(F)===`loading`},[(p(),_(`picture`,{key:t(B),class:`contents`},[(p(!0),_(c,null,g(t(z).sources,e=>(p(),_(`source`,{key:`${e.type}-${e.srcset}`,type:e.type,srcset:e.srcset,sizes:r.sizes},null,8,A))),128)),d(`img`,e({ref_key:`imageRef`,ref:E},t(V),{class:[t(T).class,`relative z-10`],src:t(z).src,srcset:t(z).srcset||void 0,sizes:t(z).srcset?r.sizes:void 0,width:t(z).width,height:t(z).height,alt:r.alt||t(z).alt,"aria-hidden":t(F)===`error`||void 0,loading:r.loading,decoding:r.decoding,fetchpriority:r.fetchpriority,onLoad:W,onError:G}),null,16,j)])),t(F)===`loading`?(p(),_(`span`,M,[...i[0]||=[d(`span`,{class:`size-6 animate-[spin_760ms_linear_infinite] rounded-full border-2 border-current/18 border-t-primary motion-reduce:animate-none`},null,-1)]])):t(F)===`error`?(p(),_(`span`,{key:1,class:`absolute inset-0 z-30 grid place-items-center bg-base-200/88 p-4 text-center text-xs font-bold text-copy-muted`,role:`img`,"aria-label":r.alt||t(I)},l(t(I)),9,N)):h(``,!0)],10,k)):(p(),_(`div`,e({key:1},t(L),{class:[t(T).class,`grid place-items-center bg-base-200 px-4 text-center text-sm font-bold text-copy-muted`],role:`img`,"aria-label":r.alt||t(I)}),[d(`span`,null,l(t(I)),1)],16,P))}}),{__name:`StrapiImage`});export{x as n,F 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.