PageSourceSearch

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

js bioer.com collected 2026-10-09 22:41:19 UTC 5,389 bytes, 1 lines download raw bytes

1import{C as e,E as t,H as n,O as r,U as i,_ as a,h as o,v as s,y as c}from"./DKhRV_XD.js";async function l(e,t){return await u(t).catch(e=>(console.error(`Failed to get image meta for `+t,e+``),{width:0,height:0,ratio:0}))}async function u(e){if(typeof Image>`u`)throw TypeError(`Image not supported`);return new Promise((t,n)=>{let r=new Image;r.onload=()=>{t({width:r.width,height:r.height,ratio:r.width/r.height})},r.onerror=e=>n(e),r.src=e})}function d(e){return(t=>t===void 0?e.missingValue:e[t]||t)}function f(e={}){let t=e.formatter,n=e.keyMap&&typeof e.keyMap!=`function`?d(e.keyMap):e.keyMap,r={};for(let t in e.valueMap){let n=t,i=e.valueMap[n];r[n]=typeof i==`object`?d(i):i}return i=>{let a=[];for(let e in i){let t=e;if(i[t]===void 0)continue;let o=typeof r[t]==`function`?r[t](i[t]):i[t];a.push([n?n(t):t,o])}return t?a.map(e=>t(...e)).join(e.joinWith??`&`):new URLSearchParams(a).toString()}}function p(e=``){if(e===void 0||!e.length)return[];let t=new Set;for(let n of e.split(` `)){let e=Number.parseInt(n.replace(`x`,``));e&&t.add(e)}return Array.from(t)}function m(e){if(e.length===0)throw Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function h(e=``){if(typeof e==`number`)return e;if(typeof e==`string`&&e.replace(`px`,``).match(/^\d+$/g))return Number.parseInt(e,10)}function g(e){let t={};if(typeof e==`string`)for(let n of e.split(/[\s,]+/).filter(e=>e)){let e=n.split(`:`);e.length===2?t[e[0].trim()]=e[1].trim():t[`1px`]=e[0].trim()}else Object.assign(t,e);return t}function _(e){let t={options:e},n=(e,n={})=>y(t,e,n),r=((e,t,r)=>n(e,o({modifiers:t},r)).url);for(let t in e.presets)r[t]=((n,i,a)=>r(n,i,{...e.presets[t],...a}));return r.options=e,r.getImage=n,r.getMeta=((e,n)=>v(t,e,n)),r.getSizes=((e,n)=>S(t,e,n)),t.$img=r,r}async function v(e,t,n){let r=y(e,t,{...n});return typeof r.getMeta==`function`?await r.getMeta():await l(e,r.url)}function y(n,i,a){if(i&&typeof i!=`string`)throw TypeError(`input must be a string (received ${typeof i}: ${JSON.stringify(i)})`);if(!i||i.startsWith(`data:`))return{url:i};let{setup:s,defaults:l}=b(n,a.provider||n.options.provider),u=s(),d=x(n,a.preset);if(i=c(i)?i:r(i),!u.supportsAlias){for(let t in n.options.alias)if(i.startsWith(t)){let r=n.options.alias[t];r&&(i=e(r,i.slice(t.length)))}}if(u.validateDomains&&c(i)){let e=t(i).host;if(!n.options.domains.find(t=>t===e))return{url:i}}let f=o(a,d,l),p={...f,modifiers:{...f.modifiers,width:f.modifiers?.width?h(f.modifiers.width):void 0,height:f.modifiers?.height?h(f.modifiers.height):void 0}},m=u.getImage(i,p,n);return m.format||=p.modifiers.format||``,m}function b(e,t){let n=e.options.providers[t];if(!n)throw Error(`Unknown provider: `+t);return n}function x(e,t){if(!t)return{};if(!e.options.presets[t])throw Error(`Unknown preset: `+t);return e.options.presets[t]}function S(e,t,n){let r=x(e,n.preset),i=o(n,r),a=h(i.modifiers?.width),s=h(i.modifiers?.height),c=i.sizes?g(i.sizes):{},l=i.densities?.trim(),u=l?p(l):e.options.densities;m(u);let d=a&&s?s/a:0,f=[],_=[];if(Object.keys(c).length>=1){for(let r in c){let i=C(r,String(c[r]),s,d,e);if(i!==void 0){f.push({size:i.size,screenMaxWidth:i.screenMaxWidth,media:`(max-width: ${i.screenMaxWidth-1}px)`});for(let r of u)_.push({width:i._cWidth*r,src:w(e,t,n,i,r)})}}T(f)}else for(let r of u){let i=Object.keys(c)[0],a=i?C(i,String(c[i]),s,d,e):void 0;a===void 0&&(a={size:``,screenMaxWidth:0,_cWidth:n.modifiers?.width,_cHeight:n.modifiers?.height}),_.push({width:r,src:w(e,t,n,a,r)})}E(_);let v=_[_.length-1],y=f.length?f.map(e=>`${e.media?e.media+` `:``}${e.size}`).join(`, `):void 0,b=y?`w`:`x`;return{sizes:y,srcset:_.map(e=>`${e.src}
1 ${e.width}${b}`).join(`, `),src:v?.src}}function C(e,t,n,r,i){let a=i.options.screens&&i.options.screens[e]||Number.parseInt(e),o=t.endsWith(`vw`);if(!o&&/^\d+$/.test(t)&&(t+=`px`),!o&&!t.endsWith(`px`))return;let s=Number.parseInt(t);if(!a||!s)return;o&&(s=Math.round(s/100*a));let c=r?Math.round(s*r):n;return{size:t,screenMaxWidth:a,_cWidth:s,_cHeight:c}}function w(e,t,n,r,i){return e.$img(t,{...n.modifiers,width:r._cWidth?r._cWidth*i:void 0,height:r._cHeight?r._cHeight*i:void 0},n)}function T(e){e.sort((e,t)=>e.screenMaxWidth-t.screenMaxWidth);let t=null;for(let n=e.length-1;n>=0;n--){let r=e[n];r.media===t&&e.splice(n,1),t=r.media}for(let t=0;t<e.length;t++)e[t].media=e[t+1]?.media||``}function E(e){e.sort((e,t)=>e.width-t.width);let t=null;for(let n=e.length-1;n>=0;n--){let r=e[n];r.width===t&&e.splice(n,1),t=r.width}}function D(e){let t;return()=>t||(t=typeof e==`function`?e():e,t)}var O=f({keyMap:{format:`f`,width:`w`,height:`h`,resize:`s`,quality:`q`,background:`b`,position:`pos`},formatter:(e,t)=>a(e)+`_`+a(t.toString())}),k={screens:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},presets:{},domains:[`cms.bioer.com`,`media.bioer.com`],alias:{},densities:[1,2],format:[`webp`],quality:void 0,provider:`ipx`,providers:{ipx:{setup:D({validateDomains:!0,supportsAlias:!0,getImage:(t,{modifiers:n,baseURL:r},i)=>{n.width&&n.height&&(n.resize=`${n.width}x${n.height}`,delete n.width,delete n.height);let a=O(n)||`_`;return r||=e(i.options.nuxt.baseURL,`/_ipx`),{url:e(r,a,s(t))}}}),defaults:{http:{maxAge:31536e3,ignoreCacheControl:!0}}}}},A=e=>{let t=i(),r=n();return r.$img||r._img||(r._img=_({...k,event:e||r.ssrContext?.event,nuxt:{baseURL:t.app.baseURL},runtimeConfig:t}))};export{h as n,A 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.