PageSourceSearch

https://bienestar.mil.ar/_nuxt/C4Jj8hui.js

js bienestar.mil.ar collected 2026-09-24 23:52:53 UTC 25,010 bytes, 2 lines download raw bytes

1import{A as B,aZ as Y,o as q,c as tt,a$ as rt,b2 as et,z as nt,v as st,a_ as at,q as I,h as ot}from"./BZ30Lp4L.js";import{u as O}from"./fVR21H17.js";import"./B_LVWz38.js";const it={"images.ctfassets.net":"contentful","cdn.builder.io":"builder.io","images.prismic.io":"imgix","www.datocms-assets.com":"imgix","cdn.sanity.io":"imgix","images.unsplash.com":"imgix","cdn.shopify.com":"shopify","s7d1.scene7.com":"scene7","ip.keycdn.com":"keycdn","assets.caisy.io":"bunny","images.contentstack.io":"contentstack","ucarecdn.com":"uploadcare","imagedelivery.net":"cloudflare_images"},ct={"imgix.net":"imgix","files.wordpress.com":"wordpress","b-cdn.net":"bunny","storyblok.com":"storyblok","kc-usercontent.com":"kontent.ai","cloudinary.com":"cloudinary","kxcdn.com":"keycdn","imgeng.in":"imageengine","imagekit.io":"imagekit","cloudimg.io":"cloudimage","ucarecdn.com":"uploadcare","supabase.co":"supabase","graphassets.com":"hygraph"},ut={"/cdn-cgi/image/":"cloudflare","/cdn-cgi/imagedelivery/":"cloudflare_images","/_next/image":"nextjs","/_next/static":"nextjs","/_vercel/image":"vercel","/is/image":"scene7","/_ipx/":"ipx","/_image":"astro","/.netlify/images":"netlify","/storage/v1/object/public/":"supabase","/storage/v1/render/image/public/":"supabase"},b=r=>{if(!r)return r;const t=Number(r);return isNaN(t)?r:Math.round(t)},u=(r,t,e,s,n)=>{e?(n&&(e=b(e)),r.searchParams.set(t,e.toString())):s&&r.searchParams.delete(t)},g=(r,t,e)=>{r.searchParams.has(t)||r.searchParams.set(t,e.toString())},w=(r,t)=>{const e=Number(r.searchParams.get(t));return isNaN(e)?void 0:e},F=r=>{const{pathname:t,search:e}=r;return`${t}${e}`},v=r=>r.hostname==="n"?F(r):r.toString(),m=(r,t)=>typeof r=="string"?new URL(r,t??"http://n/"):r,R=new Map(Object.entries(it)),lt=Object.entries(ct);function ft(r){return T(r)||mt(r)}function T(r){if(typeof r=="string"&&!r.startsWith("https://"))return!1;const{hostname:t}=m(r);if(R.has(t))return R.get(t);for(const[e,s]of lt)if(t.endsWith(`.${e}`))return s;return!1}function mt(r){const{pathname:t}=m(r);for(const[e,s]of Object.entries(ut))if(t.startsWith(e))return s;return!1}const dt=({url:r,width:t,height:e,format:s})=>{const n=m(r);return t&&t>4e3&&(e&&(e=Math.round(e*4e3/t)),t=4e3),e&&e>4e3&&(t&&(t=Math.round(t*4e3/e)),e=4e3),u(n,"w",t,!0,!0),u(n,"h",e,!0,!0),u(n,"fm",s),g(n,"fit","fill"),n},pt=({url:r,width:t,height:e,format:s})=>{const n=m(r);return u(n,"width",t,!0,!0),u(n,"height",e,!0,!0),u(n,"format",s),t&&e&&(g(n,"fit","cover"),g(n,"sharp","true")),n},gt=({url:r,width:t,height:e,format:s})=>{const n=m(r);if(u(n,"w",t,!0,!0),u(n,"h",e,!0,!0),g(n,"fit","min"),s){n.searchParams.set("fm",s);const a=n.searchParams.get("auto");a==="format"?n.searchParams.delete("auto"):a?.includes("format")&&n.searchParams.set("auto",a.split(",").filter(o=>o!=="format").join(","))}else n.searchParams.delete("fm"),n.searchParams.get("auto")?.includes("format")||n.searchParams.append("auto","format");return n},ht=/(.+?)(?:_(?:(pico|icon|thumb|small|compact|medium|large|grande|original|master)|(\d*)x(\d*)))?(?:_crop_([a-z]+))?(\.[a-zA-Z]+)(\.png|\.jpg|\.webp|\.avif)?$/,yt=r=>{const t=m(r),e=t.pathname.match(ht);if(!e)throw new Error("Invalid Shopify URL");const[,s,n,a,o,i,c,l]=e;t.pathname=`${s}${c}`;const f=a||t.searchParams.get("width"),d=o||t.searchParams.get("height");return t.searchParams.delete("width"),t.searchParams.delete("height"),{base:t.toString(),width:Number(f)||void 0,height:Number(d)||void 0,format:l?l.slice(1):void 0,params:{crop:i,size:n},cdn:"shopify"}},bt=({base:r,width:t,height:e,format:s,params:n})=>{const a=m(r);return u(a,"width",t,!0,!0),u(a,"height",e,!0,!0),u(a,"crop",n?.crop),u(a,"format",s),a},$t=({url:r,width:t,height:e})=>{const s=yt(r);if(!s)return;const n={...s,width:t,height:e};return bt(n)},wt=({url:r,width:t,height:e})=>{const s=m(r);return u(s,"w",t,!0,!0),u(s,"h",e,!0,!0),g(s,"crop","1"),s},xt=({url:r,width:t,height:e})=>{const s=m(r);return u(s,"w",t,!0,!0),u(s,"h",e,!0,!0),u(s,"q",w(s,"q"),!0),s},St=/https?:\/\/(?<host>[^\/]+)\/(?<cloudName>[^\/]+)\/(?<assetType>image|video|raw)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)\/?(?<signature>s\-\-[a-zA-Z0-9]+\-\-)?\/?(?<transformations>(?:[^_\/]+_[^,\/]+,?)*)?\/(?:(?<version>v\d+)\/)?(?<idAndFormat>[^\s]+)$/g,vt=r=>r?Object.fromEntries(r.split(",").map(t=>t.split("_"))):{},A=({host:r,cloudName:t,assetType:e,deliveryType:s,signature:n,transformations:a={},version:o,id:i,format:c})=>{c&&(a.f=c);const l=Object.entries(a).map(([d,p])=>`${d}_${p}`).join(",");
1return`https://${[r,t,e,s,n,l,o,i].filter(Boolean).join("/")}`},C=r=>{const e=[...m(r).toString().matchAll(St)];if(!e.length)throw new Error("Invalid Cloudinary URL");const s=e[0].groups||{},{transformations:n="",idAndFormat:a,...o}=s;delete s.idAndFormat;const i=a.lastIndexOf("."),c=i<0?a:a.slice(0,i),l=i<0?void 0:a.slice(i+1),{w:f,h:d,f:p,...y}=vt(n),h=p&&p!=="auto"?p:l;return{base:A({...o,id:c,transformations:y}),width:Number(f)||void 0,height:Number(d)||void 0,format:h,cdn:"cloudinary",params:{...s,id:s.deliveryType==="fetch"?a:c,format:h,transformations:y}}},Pt=({base:r,width:t,height:e,format:s,params:n})=>{const a=C(r.toString()),o={transformations:{},...a.params,...n,format:s||"auto"};return t&&(o.transformations.w=b(t).toString()),e&&(o.transformations.h=b(e).toString()),o.transformations.c||="lfill",A(o)},_t=({url:r,width:t,height:e,format:s="auto"})=>{const n=C(r);if(!n)throw new Error("Invalid Cloudinary URL");if(n.params?.assetType!=="image")throw new Error("Cloudinary transformer only supports images");if(n.params?.signature)throw new Error("Cloudinary transformer does not support signed URLs");const a={...n,width:t,height:e,format:s};return Pt(a)},Ut=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/image\/(?<transformations>[^\/]+)?\/(?<path>.*)$/g,jt=r=>Object.fromEntries(r.split(",").map(t=>t.split("="))),D=({host:r,transformations:t={},path:e})=>{const s=Object.entries(t).map(([a,o])=>`${a}=${o}`).join(",");return`https://${[r,"cdn-cgi","image",s,e].join("/")}`},M=r=>{const t=m(r),e=[...t.toString().matchAll(Ut)];if(!e.length)throw new Error("Invalid Cloudflare URL");const s=e[0].groups||{},{transformations:n,...a}=s,{width:o,height:i,f:c,...l}=jt(n);return D({...a,transformations:l}),{base:t.toString(),width:Number(o)||void 0,height:Number(i)||void 0,format:c,cdn:"cloudflare",params:{...s,transformations:l}}},kt=({base:r,width:t,height:e,format:s,params:n})=>{const a=M(r.toString()),o={transformations:{},...a.params,...n};return t&&(o.transformations.width=t?.toString()),e&&(o.transformations.height=e?.toString()),s&&(o.transformations.f=s==="jpg"?"jpeg":s),o.transformations.fit||="cover",new URL(D(o))},It=({url:r,width:t,height:e,format:s="auto"})=>{const n=M(r);if(!n)throw new Error("Invalid Cloudflare URL");const a={...n,width:t,height:e,format:s};return kt(a)},Ot=({url:r,width:t,height:e})=>{const s=m(r);return u(s,"width",t,!0,!0),t&&e&&g(s,"aspect_ratio",`${t}:${e}`),s},Rt=/(?<id>\/f\/\d+\/\d+x\d+\/\w+\/[^\/]+)\/?(?<modifiers>m\/?(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?)?$/g,Et=/^(?<modifiers>\/(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?\/?)?(?<id>\/f\/.+)$/g,Nt=r=>r?Object.fromEntries(r.split(":").map(t=>{if(!t)return[];const[e,s]=t.split("(");return[e,s.replace(")","")]})):{},zt=r=>{if(!r)return;const t=Object.entries(r).map(([e,s])=>`${e}(${s??""})`);if(t.length!==0)return`filters:${t.join(":")}`},Lt=r=>{const t=m(r),e=t.hostname==="img2.storyblok.com"?Et:Rt,[s]=t.pathname.matchAll(e);if(!s||!s.groups)throw new Error("Invalid Storyblok URL");const{id:n,crop:a,width:o,height:i,filters:c,flipx:l,flipy:f}=s.groups,{format:d,...p}=Nt(c);return t.hostname==="img2.storyblok.com"&&(t.hostname="a.storyblok.com"),{base:t.origin+n,width:Number(o)||void 0,height:Number(i)||void 0,format:d,params:{crop:a,filters:p,flipx:l,flipy:f},cdn:"storyblok"}},Wt=({base:r,width:t=0,height:e=0,format:s,params:n={}})=>{const{crop:a,filters:o,flipx:i="",flipy:c=""}=n,l=`${i}${t}x${c}${e}`;return new URL([r,"m",a,l,zt(o),s].filter(Boolean).join("/"))},Bt=({url:r,width:t,height:e,format:s})=>{const n=Lt(r);if(n)return s&&(n.params||(n.params={filters:{}}),n.params.filters||(n.params.filters={}),n.params.filters.format=s),Wt({...n,width:t,height:e})},qt=({url:r,width:t,height:e,format:s})=>{const n=m(r);return u(n,"w",t,!0,!0),u(n,"h",e,!0,!0),u(n,"fm",s,!0),t&&e&&g(n,"fit","crop"),n},E=r=>{const e=m(r).searchParams.get("url");if(!e||!e.startsWith("http"))return!1;const s=T(e);return s?{cdn:s,url:e}:!1},Ft=({base:r,width:t,params:{quality:e=75,root:s="_vercel"}={}})=>{const n=new URL("http://n");return n.pathname=`/${s}/image`,n.searchParams.set("url",r.toString()),u(n,"w",t,!1,!0),g(n,"q",e),F(n)},H=({url:r,width:t,cdn:e})=>{const s=m(r),n=s.pathname.startsWith("/_next/image")||s.pathname.startsWith("/_vercel/image"),a=n?s.searchParams.get("url"):r.toString();if(a)return u(s,"w",t,!0,!0),n?v(s):Ft({base:a,width:t,params:{root:e==="nextjs"?"_next":"_vercel"}})},Tt=r=>H({...r,cdn:"nextjs"}),At=({url:r,width:t,height:e,format:s})=>{const n=m(r);return u(n,"wid",t,!0,!0),u(n,"hei",e,!0,!0),u(n,"fmt",s,!0),u(n,"qlt",w(n,"qlt"),!0),u(n,"scl",w(n,"scl"),!0),g(n,"fit","crop"),!t&&!e&&g(n,"scl",1),n},Ct=({url:r,width:t,height:e,format:s})=>{const n=m(r);return u(n,"width",t,!0,!0),u(n,"height",e,!0,!0),u(n,"format",s,!0),u(n,"quality",w(n,"quality"),!0),g(n,"enlarge",0),n},Dt=({url:r,width:t,height:e,format:s})=>{const n=m(r);return u(n,"width",t,!0,!0),u(n,"height",e,!0,!0),u(n,"format",s),u(n,"quality",w(n,"quality"),!0),n},S={width:"w",height:"h",autoWidthWithFallback:"w_auto",auto_width_fallback:"w_auto",scaleToScreenWidth:"pc",scale_to_screen_width:"pc",crop:"cr",outputFormat:"f",format:"f",fit:"m",fitMethod:"m",compression:"cmpr",sharpness:"s",rotate:"r",inline:"in",keepMeta:"meta",keep_meta:"meta",noOptimization:"pass",no_optimization:"pass",force_download:"dl",max_device_pixel_ratio:"maxdpr",maxDevicePixelRatio:"maxdpr"};function Mt(r){return Object.keys(S).find(s=>S[s]===r)||""}function Ht(r){let t=r.toString(),e=[];
1if(t){let s=t.split("imgeng=");s.length>1&&(e=s[1].split("/"))}return e}function Zt(r){let t=r.toString(),e="";if(t){let s=t.split("imgeng=");s.length>1?e=s[0].slice(0,-1):e=t}return e}const Kt=({url:r,width:t,height:e,format:s})=>{const n=m(r),a=Zt(n);let o={};const i=n.toString()===a?[]:Ht(n);i.length&&(o=Jt(i)),t&&(o.width=t),e&&(o.height=e),s&&(o.format=s),o.hasOwnProperty("fit")||(o={...o,fit:"cropbox"});let c=Vt(o),l=Xt(c),f=l===""?"":a.includes("?")?"&":"?";return`${a}${f}${l}`};function Vt(r){return Object.entries(r).reduce((t,[e,s])=>t+Gt(e,s),"")}function Xt(r){return r&&r!==""?`imgeng=${r}`:""}function Gt(r,t){let e=S[r];return e&&(t||t===0)?`/${e}_${t}`:""}function Jt(r){let t={};return r.forEach(e=>{let s=e.split("_");if(s.length>1){let n=s[0],a=s[1],o=Mt(n);o&&(t[o]=a)}}),t}const Qt=({url:r,width:t,height:e,format:s})=>{const n=m(r);return u(n,"width",t,!0,!0),u(n,"height",e,!0,!0),u(n,"format",s),n.searchParams.has("format")||g(n,"auto","webp"),t&&e&&g(n,"fit","crop"),n},Yt=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/imagedelivery\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,tr=/https?:\/\/(?<host>imagedelivery.net)\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,rr=r=>Object.fromEntries(r?.split(",")?.map(t=>t.split("="))??[]),er=({host:r,accountHash:t,transformations:e={},imageId:s})=>{const n=Object.entries(e).filter(([o,i])=>!!o&&i!==void 0).map(([o,i])=>`${o}=${i}`).join(",");return`https://${[...r==="imagedelivery.net"?[r]:[r,"cdn-cgi","imagedelivery"],t,s,n].join("/")}`},Z=r=>{const t=m(r),e=[...t.toString().matchAll(Yt),...t.toString().matchAll(tr)];if(!e.length)throw new Error("Invalid Cloudflare Images URL");const s=e[0].groups||{},{transformations:n,...a}=s,{w:o,h:i,f:c,...l}=rr(n);return{base:t.toString(),width:Number(o)||void 0,height:Number(i)||void 0,format:c,cdn:"cloudflare_images",params:{...a,transformations:l}}},nr=({base:r,width:t,height:e,format:s,params:n})=>{const a=Z(r.toString()),o={transformations:{},...a.params,...n};return t&&(o.transformations.w=t?.toString()),e&&(o.transformations.h=e?.toString()),s&&(o.transformations.f=s),o.transformations.fit||="cover",new URL(er(o))},sr=({url:r,width:t,height:e,format:s="auto"})=>{const n=Z(r);if(!n)throw new Error("Invalid Cloudflare Images URL");const a={...n,width:t,height:e,format:s};return nr(a)},ar=r=>{const t=m(r),[e,...s]=t.pathname.split("/").slice(1),n=Object.fromEntries(e.split(",").map(a=>{const[o,i]=a.split("_");return[o,i]}));if(n.s){const[a,o]=n.s.split("x");n.w||=a,n.h||=o}return{base:s.join("/"),width:Number(n.w)||void 0,height:Number(n.h)||void 0,quality:Number(n.q)||void 0,format:n.f||"auto",params:n,cdn:"ipx"}},N=({base:r,width:t,height:e,format:s,params:n})=>{const a=n?.modifiers??{};t&&e?a.s=`${t}x${e}`:t?a.w=`${t}`:e&&(a.h=`${e}`),s&&(a.f=s);const o=n?.base.endsWith("/")?n?.base:`${n?.base}/`,i=Object.entries(a).map(([f,d])=>`${f}_${d}`).join(","),c=r.toString(),l=c.startsWith("/")?c.slice(1):c;return`${o}${i}/${l}`},or=r=>{const t=String(r.url),e=m(t),s=e.pathname.startsWith("/_ipx")&&e.hostname!=="n"?`${e.origin}/_ipx`:"/_ipx",n=r.cdnOptions?.ipx?.base??s;if(n&&n!=="/"&&t.startsWith(n)){const o=ar(t.replace(n,""));return N({...o,...r,params:{...r.cdnOptions?.ipx,base:n}})}return N({...r,base:t,params:{...r.cdnOptions?.ipx,base:n}})},ir=({url:r,width:t,height:e,format:s,cdnOptions:n})=>{const a=m(r),o=v(new URL(a.pathname,a.origin)),i={searchParams:new URLSearchParams};return u(i,"href",o,!0,!0),u(i,"w",t,!0,!0),u(i,"h",e,!0,!0),u(i,"f",s),g(i,"fit","cover"),`${n?.astro?.endpoint??"/_image"}?${i.searchParams.toString()}`},cr=new Set(["w","h","q","fm","url","width","height","quality"]),ur=r=>{const t=m(r),e=Number(t.searchParams.get("w")??t.searchParams.get("width"))??void 0,s=Number(t.searchParams.get("h")??t.searchParams.get("height"))??void 0,n=Number(t.searchParams.get("q")??t.searchParams.get("quality"))||void 0,a=t.searchParams.get("fm")||void 0,o=t.searchParams.get("url")||"",i={quality:n};return t.searchParams.forEach((c,l)=>{cr.has(l)||(i[l]=c)}),t.search="",{base:o,width:e,height:s,format:a,params:i,cdn:"netlify"}},z=({base:r,width:t,height:e,format:s,params:{site:n,quality:a,...o}={}})=>{const i=m("/.netlify/images",n);
1return Object.entries(o).forEach(([c,l])=>u(i,c,l)),u(i,"q",a,!0,!0),u(i,"w",t,!0,!0),u(i,"h",e,!0,!0),u(i,"fm",s),g(i,"fit","cover"),i.searchParams.set("url",r.toString()),v(i)},lr=r=>{const t=m(r.url);if(t.pathname.startsWith("/.netlify/images")){const{params:e,base:s,format:n}=ur(t);return z({base:s,format:n,...r,params:{...e,site:t.hostname==="n"?void 0:t.origin}})}return z({...r,base:r.url,params:{site:r.cdnOptions?.netlify?.site}})},fr=r=>(r.searchParams.get("tr")||"").split(",").reduce((e,s)=>{const[n,a]=s.split("-");return e[n]=a,e},{}),mr=({url:r,width:t,height:e,format:s})=>{const n=m(r),a=fr(n);a.w=t&&Math.round(t),a.h=e&&Math.round(e),a.f||(a.f="auto"),s&&(a.f=s);const o=Object.keys(a).map(i=>{const c=a[i];if(c)return`${i}-${c}`}).filter(i=>i).join(",");return n.searchParams.set("tr",o),n},dr=/^https?:\/\/(?<host>[^\/]+)\/(?<uuid>[^\/]+)/g;function K(r){const t=new URL(r),e=t.pathname+t.search+t.hash,s=e.lastIndexOf("http"),n=e.lastIndexOf("/");let a="";return s>=0?a=e.slice(s):n>=0&&(a=e.slice(n+1)),a}function pr(r){return r.startsWith("http")}function gr(r){const t=new URL(r);return{pathname:t.origin+t.pathname||"",search:t.search||"",hash:t.hash||""}}function hr(r){const t=new URL(r),e=K(r),s=pr(e)?gr(e).pathname:e;return t.pathname=t.pathname.replace(s,""),t.search="",t.hash="",t.toString()}const yr=r=>{if(typeof r!="string"||!r)return"";let t=r.trim();return t.startsWith("-/")?t=t.slice(2):t.startsWith("/")&&(t=t.slice(1)),t.endsWith("/")&&(t=t.slice(0,t.length-1)),t};function br(r){const t=hr(r),e=new URL(t),s=e.pathname.indexOf("/-/");return s===-1?[]:e.pathname.substring(s).split("/-/").filter(Boolean).map(a=>yr(a))}const $r=r=>r.length?r.reduce((t,e)=>{const[s,n]=e.split("/");return{...t,[s]:n}},{}):{},V=({host:r,uuid:t,operations:e={},filename:s})=>{const n=Object.entries(e).map(([o,i])=>`${o}/${i}`).join("/-/");return`https://${[r,t,n?`-/${n}`:"",s].join("/")}`},X=r=>{const t=m(r),e=[...t.toString().matchAll(dr)];if(!e.length)throw new Error("Invalid Uploadcare URL");const s=e[0].groups||{},{...n}=s,a=K(t.toString()),{format:o,...i}=$r(br(t.toString())),c=o&&o!=="auto"?o:"auto";return{base:V({...n,filename:a||void 0,operations:{...i,format:c}}),cdn:"uploadcare",params:{...s,filename:a||void 0,operations:{...i,format:c}}}},wr=({base:r,width:t,height:e,params:s})=>{const n=r.toString(),a=X(n.endsWith("/")?n:`${n}/`),o={operations:{},...a.params,...s};return t&&e?o.operations={...o.operations,resize:`${t}x${e}`}:(t&&(o.operations={...o.operations,resize:`${t}x`}),e&&(o.operations={...o.operations,resize:`x${e}`})),V(o)},xr=({url:r,width:t,height:e})=>{const s=X(r);if(!s)throw new Error("Invalid Uploadcare URL");const n={...s,width:t,height:e};return wr(n)},Sr=["origin"],G="/storage/v1/object/public/",P="/storage/v1/render/image/public/",vr=r=>r.pathname.startsWith(P),J=r=>{const t=m(r);if(!vr(t))return{cdn:"supabase",base:t.origin+t.pathname};const s=t.pathname.replace(P,""),n=t.searchParams.has("quality")?Number(t.searchParams.get("quality")):void 0,a=t.searchParams.has("width")?Number(t.searchParams.get("width")):void 0,o=t.searchParams.has("height")?Number(t.searchParams.get("height")):void 0,i=t.searchParams.has("format")?t.searchParams.get("format"):void 0,c=t.searchParams.has("resize")?t.searchParams.get("resize"):void 0;return{cdn:"supabase",base:t.origin+G+s,width:a,height:o,format:i,params:{quality:n,resize:c}}},Pr=({base:r,width:t,height:e,format:s,params:n})=>{const a=J(r.toString());r=a.base,t=t||a.width,e=e||a.height,s=s||a.format,n={...a.params,...n};const o=new URLSearchParams;return t&&o.set("width",b(t).toString()),e&&o.set("height",b(e).toString()),s&&Sr.includes(s)&&o.set("format",s),n?.quality&&o.set("quality",b(n.quality).toString()),n?.resize&&o.set("resize",n.resize),o.toString()===""?r:a.base.replace(G,P)+"?"+o.toString()},_r=({url:r,width:t,height:e,format:s,cdnOptions:n})=>{const a=J(r);return Pr({base:a.base,width:t||a.width,height:e||a.height,format:s||a.format,params:n?.supabase||a.params})},Ur=/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-z0-9]+)$/,Q=r=>{const t=r.toString(),e=t.match(Ur);if(!e?.length)throw new Error("Invalid Hygraph URL");const s=e.groups||{},{transformations:n,...a}=s,o=Ir(n||"");return{base:t,width:Number(o.resize?.width)||void 0,height:Number(o.resize?.height)||void 0,format:o.auto_image?"auto":o.output?.format?.toString()||void 0,params:{transformations:o,...a},cdn:"hygraph"}},jr=({base:r,width:t,height:e,format:s,params:n})=>{const a=Q(r.toString()),o={transformations:{},...a.params,...n};(t||e)&&(o.transformations.resize||={}),t&&e&&(o.transformations.resize.fit||="crop"),t&&(o.transformations.resize.width=t),e&&(o.transformations.resize.height=e),s==="auto"?o.transformations.auto_image={}:s&&(o.transformations.output||={},o.transformations.output.format=s);const i=new URL(r);return i.pathname=`/${o.envId}/${Or(o.transformations)}/${o.handle}`,i.toString()},kr=({url:r,width:t,height:e,format:s="auto"})=>{const n=Q(r);if(!n)throw new Error("Invalid Hygraph URL");const a={...n,width:t,height:e,format:s};return jr(a)},Ir=r=>r?r.split("/").reduce((t,e)=>{const[s,n]=e.split("=");return n?t[s]=n.split(",").reduce((a,o)=>{const[i,c]=o.split(":");return a[i]=isNaN(Number(c))?c:Number(c),a},{}):t[s]={},t},{}):{},Or=r=>Object.entries(r).filter(([t,e])=>!!t&&e!==void 0).map(([t,e])=>Object.keys(e).length===0?t:`${t}=${Object.entries(e).map(([s,n])=>`${s}:${n}`).join(",")}`).join("/"),L={vercel:E,nextjs:E};function Rr(r,t){if(!(t in L))return!1;const e=L[t];return e?e(r):!1}function _(r,t){const e=ft(r)||t;if(!e)return!1;const s=Rr(r,e);return s||{cdn:e,url:r}}const U=r=>({imgix:gt,contentful:dt,"builder.io":pt,shopify:$t,wordpress:wt,cloudimage:xt,cloudinary:_t,bunny:Ot,storyblok:Bt,cloudflare:It,vercel:H,nextjs:Tt,scene7:At,"kontent.ai":qt,keycdn:Ct,directus:Dt,imageengine:Kt,contentstack:Qt,cloudflare_images:sr,ipx:or,astro:ir,netlify:lr,imagekit:mr,uploadcare:xr,supabase:_r,hygraph:kr})[r];var Er=(r,t)=>{if(!(!r||!t))switch(t){case"constrained":return`(min-width: ${r}px) ${r}px, 100vw`;case"fixed":return`${r}px`;case"fullWidth":return"100vw";default:return}},$=r=>r||r===0?`${r}px`:void 0,Nr=({width:r,height:t,aspectRatio:e,layout:s,objectFit:n="cover",background:a})=>{const o=[["object-fit",n]];return a?.startsWith("https:")||a?.startsWith("http:")||a?.startsWith("data:")?(o.push(["background-image",`url(${a})`]),o.push(["background-size","cover"]),o.push(["background-repeat","no-repeat"])):o.push(["background",a]),s==="fixed"&&(o.push(["width",$(r)]),o.push(["height",$(t)])),s==="constrained"&&(o.push(["max-width",$(r)]),o.push(["max-height",$(t)]),o.push(["aspect-ratio",e?`${e}`:void 0]),o.push(["width","100%"])),s==="fullWidth"&&(o.push(["width","100%"]),o.push(["aspect-ratio",e?`${e}`:void 0]),o.push(["height",$(t)])),Object.fromEntries(o.filter(([,i])=>i))},zr=[6016,5120,4480,3840,3200,2560,2048,1920,1668,1280,1080,960,828,750,640],W=24,Lr=({width:r,layout:t,resolutions:e=zr})=>
1{if(t==="fullWidth")return e;if(!r)return[];const s=r*2;return t==="fixed"?[r,s]:t==="constrained"?[r,s,...e.filter(n=>n<s)]:[]},Wr=({src:r,width:t,layout:e="constrained",height:s,aspectRatio:n,breakpoints:a,cdn:o,transformer:i,format:c})=>{const l=_(r,o);return l&&!i&&(i=U(l.cdn)),i?(a||=Lr({width:t,layout:e}),a.sort((f,d)=>f-d).map(f=>{let d;return s&&n&&(d=Math.round(f/n)),{url:l?l.url:r,width:f,height:d,format:c}})):[]},Br=r=>{let{src:t,cdn:e,transformer:s}=r;const n=_(t,e);return n&&!s&&(s=U(n.cdn)),s?Wr({...r,transformer:s}).map(a=>`${s(a)?.toString()} ${a.width}w`).join(`,
2`):""};function qr({width:r,height:t,priority:e,layout:s="constrained",aspectRatio:n,...a}){return r=r&&Number(r)||void 0,t=t&&Number(t)||void 0,e?(a.loading||="eager",a.fetchpriority||="high"):(a.loading||="lazy",a.decoding||="async"),a.alt===""&&(a.role||="presentation"),n?r?t||(t=r/n):t&&(r=t*n):r&&t&&(n=r/t),{width:r,height:t,aspectRatio:n,layout:s,...a}}function Fr(r){let{src:t,cdn:e,transformer:s,background:n,layout:a,objectFit:o,breakpoints:i,width:c,height:l,aspectRatio:f,unstyled:d,...p}=qr(r);const y=t?_(t,e):void 0;let h=t;if(y&&(h=y.url,s||=U(y.cdn)),s&&n==="auto"){const x=f?Math.round(W/f):void 0,k=s({url:h,width:W,height:x});k&&(n=k.toString())}const j={width:c,height:l,aspectRatio:f,layout:a,objectFit:o,background:n};if(p.sizes||=Er(c,a),d||(p.style={...Nr(j),...p.style}),s){p.srcset=Br({src:h,width:c,height:l,aspectRatio:f,layout:a,breakpoints:i,transformer:s,cdn:e});const x=s({url:h,width:c,height:l});x&&(h=x),(a==="fullWidth"||a==="constrained")&&(c=void 0,l=void 0)}return{...p,src:h?.toString(),width:c,height:l}}const Tr=B({__name:"image",props:{src:{},width:{},height:{},layout:{},cdn:{},priority:{type:Boolean},background:{},aspectRatio:{},objectFit:{},unstyled:{type:Boolean},transformer:{type:Function}},setup(r){const t=r,e=Y(),s=nt(()=>Fr({...e,...t}));return(n,a)=>(q(),tt("img",rt(et(s.value)),null,16))}}),Mr=B({__name:"CldImage",props:{loading:{},fetchPriority:{},alt:{},width:{},height:{},config:{},layout:{},priority:{type:Boolean},background:{},blur:{},pixelate:{type:Boolean},grayscale:{type:Boolean},tint:{},opacity:{},shear:{},border:{},loaderOptions:{},zoompan:{type:[String,Boolean,Object]},fillBackground:{type:[Boolean,Object]},recolor:{},remove:{},replace:{},restore:{type:Boolean},replaceBackground:{type:[Boolean,String,Object]},assetType:{},crop:{},deliveryType:{},effects:{},flags:{},format:{},gravity:{},overlays:{},quality:{},rawTransformations:{},removeBackground:{type:Boolean},sanitize:{type:Boolean},seoSuffix:{},src:{},text:{},namedTransformations:{},underlay:{},underlays:{},version:{},zoom:{}},setup(r){const t=r,{config:e,loaderOptions:s,...n}=t,{url:a}=O({options:n,config:e}),o=()=>{const f={...t};f.width=typeof f.width=="string"?Number.parseInt(f.width):f.width,f.height=typeof f.height=="string"?Number.parseInt(f.height):f.height;const{url:d}=O({options:f,config:e});return d},i=ot("image-key"),c=async f=>{await l(f)&&(i.value=`${i.value}-${Math.random()}`)},l=async f=>{const{src:d}=f.target;try{await new Promise((p,y)=>{fetch(d).then(h=>{if(!h.ok){y(h);return}p(h)})})}catch(p){return p.status===423?await l(f):!1}return!0};return(f,d)=>(q(),st(I(Tr),at({key:i.value,src:I(a),layout:r.layout||"constrained",width:r.width,height:r.height},f.$attrs,{alt:r.alt,priority:r.priority,cdn:"cloudinary",transformer:o,onError:c}),null,16,["src","layout","width","height","alt","priority"]))}});export{Mr 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.