PageSourceSearch

https://www.dutch.com/cdn/shop/t/1169/assets/image-CVWeWAIc.js

js dutch.com collected 2026-09-24 19:53:05 UTC 23,916 bytes, 3 lines download raw bytes

1import{d as J,p as K,j as Q,c as Y,b as tt,T as et,U as rt}from"./useTheme-D7D2XGkJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9889a153-d85a-4a72-8c21-2ff35dc6be3d",e._sentryDebugIdIdentifier="sentry-dbid-9889a153-d85a-4a72-8c21-2ff35dc6be3d")}catch{}})();const nt={"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"},st={"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"},at={"/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"},y=e=>{if(!e)return e;const t=Number(e);return isNaN(t)?e:Math.round(t)},c=(e,t,r,s,n)=>{r?(n&&(r=y(r)),e.searchParams.set(t,r.toString())):s&&e.searchParams.delete(t)},g=(e,t,r)=>{e.searchParams.has(t)||e.searchParams.set(t,r.toString())},x=(e,t)=>{const r=Number(e.searchParams.get(t));return isNaN(r)?void 0:r},z=e=>{const{pathname:t,search:r}=e;return`${t}${r}`},P=e=>e.hostname==="n"?z(e):e.toString(),m=(e,t)=>typeof e=="string"?new URL(e,t??"http://n/"):e,R=new Map(Object.entries(nt)),ot=Object.entries(st);function it(e){return W(e)||ct(e)}function W(e){if(typeof e=="string"&&!e.startsWith("https://"))return!1;const{hostname:t}=m(e);if(R.has(t))return R.get(t);for(const[r,s]of ot)if(t.endsWith(`.${r}`))return s;return!1}function ct(e){const{pathname:t}=m(e);for(const[r,s]of Object.entries(at))if(t.startsWith(r))return s;return!1}const ut=({url:e,width:t,height:r,format:s})=>{const n=m(e);return t&&t>4e3&&(r&&(r=Math.round(r*4e3/t)),t=4e3),r&&r>4e3&&(t&&(t=Math.round(t*4e3/r)),r=4e3),c(n,"w",t,!0,!0),c(n,"h",r,!0,!0),c(n,"fm",s),g(n,"fit","fill"),n},ft=({url:e,width:t,height:r,format:s})=>{const n=m(e);return c(n,"width",t,!0,!0),c(n,"height",r,!0,!0),c(n,"format",s),t&&r&&(g(n,"fit","cover"),g(n,"sharp","true")),n},mt=({url:e,width:t,height:r,format:s})=>{const n=m(e);if(c(n,"w",t,!0,!0),c(n,"h",r,!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},lt=/(.+?)(?:_(?:(pico|icon|thumb|small|compact|medium|large|grande|original|master)|(\d*)x(\d*)))?(?:_crop_([a-z]+))?(\.[a-zA-Z]+)(\.png|\.jpg|\.webp|\.avif)?$/,dt=e=>{const t=m(e),r=t.pathname.match(lt);if(!r)throw new Error("Invalid Shopify URL");const[,s,n,a,o,i,u,f]=r;t.pathname=`${s}${u}`;const l=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(l)||void 0,height:Number(d)||void 0,format:f?f.slice(1):void 0,params:{crop:i,size:n},cdn:"shopify"}},pt=({base:e,width:t,height:r,format:s,params:n})=>{const a=m(e);return c(a,"width",t,!0,!0),c(a,"height",r,!0,!0),c(a,"crop",n?.crop),c(a,"format",s),a},gt=({url:e,width:t,height:r})=>{const s=dt(e);if(!s)return;const n={...s,width:t,height:r};return pt(n)},ht=({url:e,width:t,height:r})=>{const s=m(e);return c(s,"w",t,!0,!0),c(s,"h",r,!0,!0),g(s,"crop","1"),s},bt=({url:e,width:t,height:r})=>{const s=m(e);return c(s,"w",t,!0,!0),c(s,"h",r,!0,!0),c(s,"q",x(s,"q"),!0),s},$t=/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,yt=e=>e?Object.fromEntries(e.split(",").map(t=>t.split("_"))):{},q=({host:e,cloudName:t,assetType:r,deliveryType:s,signature:n,transformations:a={},version:o,id:i,format:u})=>{u&&(a.f=u);const f=Object.entries(a).map(([d,p])=>`${d}_${p}`).join(",");
1return`https://${[e,t,r,s,n,f,o,i].filter(Boolean).join("/")}`},F=e=>{const r=[...m(e).toString().matchAll($t)];if(!r.length)throw new Error("Invalid Cloudinary URL");const s=r[0].groups||{},{transformations:n="",idAndFormat:a,...o}=s;delete s.idAndFormat;const i=a.lastIndexOf("."),u=i<0?a:a.slice(0,i),f=i<0?void 0:a.slice(i+1),{w:l,h:d,f:p,...h}=yt(n),$=p&&p!=="auto"?p:f;return{base:q({...o,id:u,transformations:h}),width:Number(l)||void 0,height:Number(d)||void 0,format:$,cdn:"cloudinary",params:{...s,id:s.deliveryType==="fetch"?a:u,format:$,transformations:h}}},wt=({base:e,width:t,height:r,format:s,params:n})=>{const a=F(e.toString()),o={transformations:{},...a.params,...n,format:s||"auto"};return t&&(o.transformations.w=y(t).toString()),r&&(o.transformations.h=y(r).toString()),o.transformations.c||="lfill",q(o)},xt=({url:e,width:t,height:r,format:s="auto"})=>{const n=F(e);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:r,format:s};return wt(a)},St=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/image\/(?<transformations>[^\/]+)?\/(?<path>.*)$/g,vt=e=>Object.fromEntries(e.split(",").map(t=>t.split("="))),T=({host:e,transformations:t={},path:r})=>{const s=Object.entries(t).map(([a,o])=>`${a}=${o}`).join(",");return`https://${[e,"cdn-cgi","image",s,r].join("/")}`},A=e=>{const t=m(e),r=[...t.toString().matchAll(St)];if(!r.length)throw new Error("Invalid Cloudflare URL");const s=r[0].groups||{},{transformations:n,...a}=s,{width:o,height:i,f:u,...f}=vt(n);return T({...a,transformations:f}),{base:t.toString(),width:Number(o)||void 0,height:Number(i)||void 0,format:u,cdn:"cloudflare",params:{...s,transformations:f}}},Pt=({base:e,width:t,height:r,format:s,params:n})=>{const a=A(e.toString()),o={transformations:{},...a.params,...n};return t&&(o.transformations.width=t?.toString()),r&&(o.transformations.height=r?.toString()),s&&(o.transformations.f=s==="jpg"?"jpeg":s),o.transformations.fit||="cover",new URL(T(o))},_t=({url:e,width:t,height:r,format:s="auto"})=>{const n=A(e);if(!n)throw new Error("Invalid Cloudflare URL");const a={...n,width:t,height:r,format:s};return Pt(a)},Ut=({url:e,width:t,height:r})=>{const s=m(e);return c(s,"width",t,!0,!0),t&&r&&g(s,"aspect_ratio",`${t}:${r}`),s},jt=/(?<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,It=/^(?<modifiers>\/(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?\/?)?(?<id>\/f\/.+)$/g,Rt=e=>e?Object.fromEntries(e.split(":").map(t=>{if(!t)return[];const[r,s]=t.split("(");return[r,s.replace(")","")]})):{},Ot=e=>{if(!e)return;const t=Object.entries(e).map(([r,s])=>`${r}(${s??""})`);if(t.length!==0)return`filters:${t.join(":")}`},kt=e=>{const t=m(e),r=t.hostname==="img2.storyblok.com"?It:jt,[s]=t.pathname.matchAll(r);if(!s||!s.groups)throw new Error("Invalid Storyblok URL");const{id:n,crop:a,width:o,height:i,filters:u,flipx:f,flipy:l}=s.groups,{format:d,...p}=Rt(u);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:f,flipy:l},cdn:"storyblok"}},Et=({base:e,width:t=0,height:r=0,format:s,params:n={}})=>{const{crop:a,filters:o,flipx:i="",flipy:u=""}=n,f=`${i}${t}x${u}${r}`;return new URL([e,"m",a,f,Ot(o),s].filter(Boolean).join("/"))},Nt=({url:e,width:t,height:r,format:s})=>{const n=kt(e);if(n)return s&&(n.params||(n.params={filters:{}}),n.params.filters||(n.params.filters={}),n.params.filters.format=s),Et({...n,width:t,height:r})},Lt=({url:e,width:t,height:r,format:s})=>{const n=m(e);return c(n,"w",t,!0,!0),c(n,"h",r,!0,!0),c(n,"fm",s,!0),t&&r&&g(n,"fit","crop"),n},O=e=>{const r=m(e).searchParams.get("url");if(!r||!r.startsWith("http"))return!1;const s=W(r);return s?{cdn:s,url:r}:!1},zt=({base:e,width:t,params:{quality:r=75,root:s="_vercel"}={}})=>{const n=new URL("http://n");return n.pathname=`/${s}/image`,n.searchParams.set("url",e.toString()),c(n,"w",t,!1,!0),g(n,"q",r),z(n)},C=({url:e,width:t,cdn:r})=>{const s=m(e),n=s.pathname.startsWith("/_next/image")||s.pathname.startsWith("/_vercel/image"),a=n?s.searchParams.get("url"):e.toString();
1if(a)return c(s,"w",t,!0,!0),n?P(s):zt({base:a,width:t,params:{root:r==="nextjs"?"_next":"_vercel"}})},Wt=e=>C({...e,cdn:"nextjs"}),qt=({url:e,width:t,height:r,format:s})=>{const n=m(e);return c(n,"wid",t,!0,!0),c(n,"hei",r,!0,!0),c(n,"fmt",s,!0),c(n,"qlt",x(n,"qlt"),!0),c(n,"scl",x(n,"scl"),!0),g(n,"fit","crop"),!t&&!r&&g(n,"scl",1),n},Ft=({url:e,width:t,height:r,format:s})=>{const n=m(e);return c(n,"width",t,!0,!0),c(n,"height",r,!0,!0),c(n,"format",s,!0),c(n,"quality",x(n,"quality"),!0),g(n,"enlarge",0),n},Tt=({url:e,width:t,height:r,format:s})=>{const n=m(e);return c(n,"width",t,!0,!0),c(n,"height",r,!0,!0),c(n,"format",s),c(n,"quality",x(n,"quality"),!0),n},v={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 At(e){return Object.keys(v).find(s=>v[s]===e)||""}function Ct(e){let t=e.toString(),r=[];if(t){let s=t.split("imgeng=");s.length>1&&(r=s[1].split("/"))}return r}function Dt(e){let t=e.toString(),r="";if(t){let s=t.split("imgeng=");s.length>1?r=s[0].slice(0,-1):r=t}return r}const Bt=({url:e,width:t,height:r,format:s})=>{const n=m(e),a=Dt(n);let o={};const i=n.toString()===a?[]:Ct(n);i.length&&(o=Xt(i)),t&&(o.width=t),r&&(o.height=r),s&&(o.format=s),o.hasOwnProperty("fit")||(o={...o,fit:"cropbox"});let u=Mt(o),f=Ht(u),l=f===""?"":a.includes("?")?"&":"?";return`${a}${l}${f}`};function Mt(e){return Object.entries(e).reduce((t,[r,s])=>t+Vt(r,s),"")}function Ht(e){return e&&e!==""?`imgeng=${e}`:""}function Vt(e,t){let r=v[e];return r&&(t||t===0)?`/${r}_${t}`:""}function Xt(e){let t={};return e.forEach(r=>{let s=r.split("_");if(s.length>1){let n=s[0],a=s[1],o=At(n);o&&(t[o]=a)}}),t}const Zt=({url:e,width:t,height:r,format:s})=>{const n=m(e);return c(n,"width",t,!0,!0),c(n,"height",r,!0,!0),c(n,"format",s),n.searchParams.has("format")||g(n,"auto","webp"),t&&r&&g(n,"fit","crop"),n},Gt=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/imagedelivery\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,Jt=/https?:\/\/(?<host>imagedelivery.net)\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,Kt=e=>Object.fromEntries(e?.split(",")?.map(t=>t.split("="))??[]),Qt=({host:e,accountHash:t,transformations:r={},imageId:s})=>{const n=Object.entries(r).filter(([o,i])=>!!o&&i!==void 0).map(([o,i])=>`${o}=${i}`).join(",");return`https://${[...e==="imagedelivery.net"?[e]:[e,"cdn-cgi","imagedelivery"],t,s,n].join("/")}`},D=e=>{const t=m(e),r=[...t.toString().matchAll(Gt),...t.toString().matchAll(Jt)];if(!r.length)throw new Error("Invalid Cloudflare Images URL");const s=r[0].groups||{},{transformations:n,...a}=s,{w:o,h:i,f:u,...f}=Kt(n);return{base:t.toString(),width:Number(o)||void 0,height:Number(i)||void 0,format:u,cdn:"cloudflare_images",params:{...a,transformations:f}}},Yt=({base:e,width:t,height:r,format:s,params:n})=>{const a=D(e.toString()),o={transformations:{},...a.params,...n};return t&&(o.transformations.w=t?.toString()),r&&(o.transformations.h=r?.toString()),s&&(o.transformations.f=s),o.transformations.fit||="cover",new URL(Qt(o))},te=({url:e,width:t,height:r,format:s="auto"})=>{const n=D(e);if(!n)throw new Error("Invalid Cloudflare Images URL");const a={...n,width:t,height:r,format:s};return Yt(a)},ee=e=>{const t=m(e),[r,...s]=t.pathname.split("/").slice(1),n=Object.fromEntries(r.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"}},k=({base:e,width:t,height:r,format:s,params:n})=>{const a=n?.modifiers??{};t&&r?a.s=`${t}x${r}`:t?a.w=`${t}`:r&&(a.h=`${r}`),s&&(a.f=s);const o=n?.base.endsWith("/")?n?.base:`${n?.base}/`,i=Object.entries(a).map(([l,d])=>`${l}_${d}`).join(","),u=e.toString(),f=u.startsWith("/")?u.slice(1):u;return`${o}${i}/${f}`},re=e=>{const t=String(e.url),r=m(t),s=r.pathname.startsWith("/_ipx")&&r.hostname!=="n"?`${r.origin}/_ipx`:"/_ipx",n=e.cdnOptions?.ipx?.base??s;if(n&&n!=="/"&&t.startsWith(n)){const o=ee(t.replace(n,""));return k({...o,...e,params:{...e.cdnOptions?.ipx,base:n}})}
1return k({...e,base:t,params:{...e.cdnOptions?.ipx,base:n}})},ne=({url:e,width:t,height:r,format:s,cdnOptions:n})=>{const a=m(e),o=P(new URL(a.pathname,a.origin)),i={searchParams:new URLSearchParams};return c(i,"href",o,!0,!0),c(i,"w",t,!0,!0),c(i,"h",r,!0,!0),c(i,"f",s),g(i,"fit","cover"),`${n?.astro?.endpoint??"/_image"}?${i.searchParams.toString()}`},se=new Set(["w","h","q","fm","url","width","height","quality"]),ae=e=>{const t=m(e),r=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((u,f)=>{se.has(f)||(i[f]=u)}),t.search="",{base:o,width:r,height:s,format:a,params:i,cdn:"netlify"}},E=({base:e,width:t,height:r,format:s,params:{site:n,quality:a,...o}={}})=>{const i=m("/.netlify/images",n);return Object.entries(o).forEach(([u,f])=>c(i,u,f)),c(i,"q",a,!0,!0),c(i,"w",t,!0,!0),c(i,"h",r,!0,!0),c(i,"fm",s),g(i,"fit","cover"),i.searchParams.set("url",e.toString()),P(i)},oe=e=>{const t=m(e.url);if(t.pathname.startsWith("/.netlify/images")){const{params:r,base:s,format:n}=ae(t);return E({base:s,format:n,...e,params:{...r,site:t.hostname==="n"?void 0:t.origin}})}return E({...e,base:e.url,params:{site:e.cdnOptions?.netlify?.site}})},ie=e=>(e.searchParams.get("tr")||"").split(",").reduce((r,s)=>{const[n,a]=s.split("-");return r[n]=a,r},{}),ce=({url:e,width:t,height:r,format:s})=>{const n=m(e),a=ie(n);a.w=t&&Math.round(t),a.h=r&&Math.round(r),a.f||(a.f="auto"),s&&(a.f=s);const o=Object.keys(a).map(i=>{const u=a[i];if(u)return`${i}-${u}`}).filter(i=>i).join(",");return n.searchParams.set("tr",o),n},ue=/^https?:\/\/(?<host>[^\/]+)\/(?<uuid>[^\/]+)/g;function B(e){const t=new URL(e),r=t.pathname+t.search+t.hash,s=r.lastIndexOf("http"),n=r.lastIndexOf("/");let a="";return s>=0?a=r.slice(s):n>=0&&(a=r.slice(n+1)),a}function fe(e){return e.startsWith("http")}function me(e){const t=new URL(e);return{pathname:t.origin+t.pathname||"",search:t.search||"",hash:t.hash||""}}function le(e){const t=new URL(e),r=B(e),s=fe(r)?me(r).pathname:r;return t.pathname=t.pathname.replace(s,""),t.search="",t.hash="",t.toString()}const de=e=>{if(typeof e!="string"||!e)return"";let t=e.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 pe(e){const t=le(e),r=new URL(t),s=r.pathname.indexOf("/-/");return s===-1?[]:r.pathname.substring(s).split("/-/").filter(Boolean).map(a=>de(a))}const ge=e=>e.length?e.reduce((t,r)=>{const[s,n]=r.split("/");return{...t,[s]:n}},{}):{},M=({host:e,uuid:t,operations:r={},filename:s})=>{const n=Object.entries(r).map(([o,i])=>`${o}/${i}`).join("/-/");return`https://${[e,t,n?`-/${n}`:"",s].join("/")}`},H=e=>{const t=m(e),r=[...t.toString().matchAll(ue)];if(!r.length)throw new Error("Invalid Uploadcare URL");const s=r[0].groups||{},{...n}=s,a=B(t.toString()),{format:o,...i}=ge(pe(t.toString())),u=o&&o!=="auto"?o:"auto";return{base:M({...n,filename:a||void 0,operations:{...i,format:u}}),cdn:"uploadcare",params:{...s,filename:a||void 0,operations:{...i,format:u}}}},he=({base:e,width:t,height:r,params:s})=>{const n=e.toString(),a=H(n.endsWith("/")?n:`${n}/`),o={operations:{},...a.params,...s};return t&&r?o.operations={...o.operations,resize:`${t}x${r}`}:(t&&(o.operations={...o.operations,resize:`${t}x`}),r&&(o.operations={...o.operations,resize:`x${r}`})),M(o)},be=({url:e,width:t,height:r})=>{const s=H(e);if(!s)throw new Error("Invalid Uploadcare URL");const n={...s,width:t,height:r};return he(n)},$e=["origin"],V="/storage/v1/object/public/",_="/storage/v1/render/image/public/",ye=e=>e.pathname.startsWith(_),X=e=>{const t=m(e);if(!ye(t))return{cdn:"supabase",base:t.origin+t.pathname};const s=t.pathname.replace(_,""),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,u=t.searchParams.has("resize")?t.searchParams.get("resize"):void 0;return{cdn:"supabase",base:t.origin+V+s,width:a,height:o,format:i,params:{quality:n,resize:u}}},we=({base:e,width:t,height:r,format:s,params:n})=>{const a=X(e.toString());e=a.base,t=t||a.width,r=r||a.height,s=s||a.format,n={...a.params,...n};const o=new URLSearchParams;return t&&o.set("width",y(t).toString()),r&&o.set("height",y(r).toString()),s&&$e.includes(s)&&o.set("format",s),n?.quality&&o.set("qual
1ity",y(n.quality).toString()),n?.resize&&o.set("resize",n.resize),o.toString()===""?e:a.base.replace(V,_)+"?"+o.toString()},xe=({url:e,width:t,height:r,format:s,cdnOptions:n})=>{const a=X(e);return we({base:a.base,width:t||a.width,height:r||a.height,format:s||a.format,params:n?.supabase||a.params})},Se=/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-z0-9]+)$/,Z=e=>{const t=e.toString(),r=t.match(Se);if(!r?.length)throw new Error("Invalid Hygraph URL");const s=r.groups||{},{transformations:n,...a}=s,o=_e(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"}},ve=({base:e,width:t,height:r,format:s,params:n})=>{const a=Z(e.toString()),o={transformations:{},...a.params,...n};(t||r)&&(o.transformations.resize||={}),t&&r&&(o.transformations.resize.fit||="crop"),t&&(o.transformations.resize.width=t),r&&(o.transformations.resize.height=r),s==="auto"?o.transformations.auto_image={}:s&&(o.transformations.output||={},o.transformations.output.format=s);const i=new URL(e);return i.pathname=`/${o.envId}/${Ue(o.transformations)}/${o.handle}`,i.toString()},Pe=({url:e,width:t,height:r,format:s="auto"})=>{const n=Z(e);if(!n)throw new Error("Invalid Hygraph URL");const a={...n,width:t,height:r,format:s};return ve(a)},_e=e=>e?e.split("/").reduce((t,r)=>{const[s,n]=r.split("=");return n?t[s]=n.split(",").reduce((a,o)=>{const[i,u]=o.split(":");return a[i]=isNaN(Number(u))?u:Number(u),a},{}):t[s]={},t},{}):{},Ue=e=>Object.entries(e).filter(([t,r])=>!!t&&r!==void 0).map(([t,r])=>Object.keys(r).length===0?t:`${t}=${Object.entries(r).map(([s,n])=>`${s}:${n}`).join(",")}`).join("/"),N={vercel:O,nextjs:O};function je(e,t){if(!(t in N))return!1;const r=N[t];return r?r(e):!1}function U(e,t){const r=it(e)||t;if(!r)return!1;const s=je(e,r);return s||{cdn:r,url:e}}const j=e=>({imgix:mt,contentful:ut,"builder.io":ft,shopify:gt,wordpress:ht,cloudimage:bt,cloudinary:xt,bunny:Ut,storyblok:Nt,cloudflare:_t,vercel:C,nextjs:Wt,scene7:qt,"kontent.ai":Lt,keycdn:Ft,directus:Tt,imageengine:Bt,contentstack:Zt,cloudflare_images:te,ipx:re,astro:ne,netlify:oe,imagekit:ce,uploadcare:be,supabase:xe,hygraph:Pe})[e];var Ie=(e,t)=>{if(!(!e||!t))switch(t){case"constrained":return`(min-width: ${e}px) ${e}px, 100vw`;case"fixed":return`${e}px`;case"fullWidth":return"100vw";default:return}},w=e=>e||e===0?`${e}px`:void 0,Re=({width:e,height:t,aspectRatio:r,layout:s,objectFit:n="cover",background:a})=>{const o=[["object-fit",n]];return a?.startsWith("https:")||a?.startsWith("http:")||a?.startsWith("data:")||a?.startsWith("/")?(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",w(e)]),o.push(["height",w(t)])),s==="constrained"&&(o.push(["max-width",w(e)]),o.push(["max-height",w(t)]),o.push(["aspect-ratio",r?`${r}`:void 0]),o.push(["width","100%"])),s==="fullWidth"&&(o.push(["width","100%"]),o.push(["aspect-ratio",r?`${r}`:void 0]),o.push(["height",w(t)])),Object.fromEntries(o.filter(([,i])=>i))},Oe=[6016,5120,4480,3840,3200,2560,2048,1920,1668,1280,1080,960,828,750,640],L=24,ke=({width:e,layout:t,resolutions:r=Oe})=>{if(t==="fullWidth")return r;if(!e)return[];const s=e*2;return t==="fixed"?[e,s]:t==="constrained"?[e,s,...r.filter(n=>n<s)]:[]},Ee=({src:e,width:t,layout:r="constrained",height:s,aspectRatio:n,breakpoints:a,cdn:o,transformer:i,format:u,cdnOptions:f})=>{const l=U(e,o);return l&&!i&&(i=j(l.cdn)),i?(a||=ke({width:t,layout:r}),a.sort((d,p)=>d-p).map(d=>{let p;return s&&n&&(p=Math.round(d/n)),{url:l?l.url:e,width:d,height:p,format:u,cdnOptions:f}})):[]},Ne=e=>{let{src:t,cdn:r,transformer:s}=e;const n=U(t,r);return n&&!s&&(s=j(n.cdn)),s?Ee({...e,transformer:s}).map(a=>`${s(a)?.toString()} ${a.width}w`).join(`,
2`):""};function Le({width:e,height:t,priority:r,layout:s="constrained",aspectRatio:n,...a}){return e=e&&Number(e)||void 0,t=t&&Number(t)||void 0,r?(a.loading||="eager",a.fetchpriority||="high"):(a.loading||="lazy",a.decoding||="async"),a.alt===""&&(a.role||="presentation"),n?e?t||(t=Math.round(e/n)):t&&(e=Math.round(t*n)):e&&t&&(n=e/t),{width:e,height:t,aspectRatio:n,layout:s,...a}}function ze(e){let{src:t,cdn:r,transformer:s,background:n,layout:a,objectFit:o,breakpoints:i,width:u,height:f,aspectRatio:l,unstyled:d,cdnOptions:p,...h}=Le(e);const $=t?U(t,r):void 0;let b=t;if($&&(b=$.url,s||=j($.cdn)),s&&n==="auto"){const S=l?Math.round(L/l):void 0,I=s({url:b,width:L,height:S,cdnOptions:p});I&&(n=I.toString())}const G={width:u,height:f,aspectRatio:l,layout:a,objectFit:o,background:n};if(h.sizes||=Ie(u,a),d||(h.style={...Re(G),...h.style}),s){h.srcset=Ne({src:b,width:u,height:f,aspectRatio:l,layout:a,breakpoints:i,transformer:s,cdn:r,cdnOptions:p});const S=s({url:b,width:u,height:f,cdnOptions:p});
2S&&(b=S),(a==="fullWidth"||a==="constrained")&&(u=void 0,f=void 0)}return{...h,src:b?.toString(),width:u,height:f}}const qe=J({__name:"image",props:{src:{},width:{},height:{},layout:{},cdn:{},priority:{type:Boolean},background:{},aspectRatio:{},objectFit:{},unstyled:{type:Boolean},transformer:{type:Function}},setup(e){const t=e,r=K(),s=Q(()=>ze({...r,...t}));return(n,a)=>(tt(),Y("img",et(rt(s.value)),null,16))}});export{qe as h};
3//# sourceMappingURL=image-CVWeWAIc.js.map

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.