"use strict";exports.id=5087,exports.ids=[5087],exports.modules={95087:(a,b,c)=>{c.r(b),c.d(b,{searchPexels:()=>e});var d=c(70333);async function e(a){let b=await (0,d.CG)("pexels");if(!b)throw Error("Pexels API Key is not configured. Open Settings → Images.");let c=new URL("https://api.pexels.com/v1/search");c.searchParams.set("query",a.query),c.searchParams.set("per_page",String(a.count));let e=await fetch(c,{headers:{Authorization:b}});if(!e.ok){let a=await e.text().catch(()=>"");throw Error(`Pexels search ${e.status}: ${a.slice(0,200)}`)}return((await e.json()).photos??[]).map(a=>({url:a.src.large,thumb:a.src.tiny,attribution:{name:a.photographer,link:a.photographer_url},width:a.width,height:a.height,provider:"pexels"}))}}};