PageSourceSearch

https://labs.ratifyprotocol.com/_next/static/chunks/image-DpBa1UJV.js

js ratifyprotocol.com collected 2026-10-09 22:20:22 UTC 32,793 bytes, 2 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,n,r}from"./framework-DTZGTDtF.js";import{en as i,g as a,h as o,m as s}from"./vinext-B2CZE3gb.js";var c=r(),l=e(n(),1),u=e(t(),1),d=new Set([`style`]),f={srcset:`srcSet`,fetchpriority:`use`in u?`fetchPriority`:`fetchpriority`},p=e=>e.startsWith(`data-`)||e.startsWith(`aria-`)?e:f[e]||e.replace(/-./g,e=>e[1].toUpperCase());function m(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[p(e),d.has(e)&&t&&typeof t!=`string`?m(t):t]))}var h=(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}},g=e=>e||e===0?`${e}px`:void 0,_=({width:e,height:t,aspectRatio:n,layout:r,objectFit:i=`cover`,background:a})=>{let o=[[`object-fit`,i]];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]),r===`fixed`&&(o.push([`width`,g(e)]),o.push([`height`,g(t)])),r===`constrained`&&(o.push([`max-width`,g(e)]),o.push([`max-height`,g(t)]),o.push([`aspect-ratio`,n?`${n}`:void 0]),o.push([`width`,`100%`])),r===`fullWidth`&&(o.push([`width`,`100%`]),o.push([`aspect-ratio`,n?`${n}`:void 0]),o.push([`height`,g(t)])),Object.fromEntries(o.filter(([,e])=>e))},v=[6016,5120,4480,3840,3200,2560,2048,1920,1668,1280,1080,960,828,750,640],y=24,b=({width:e,layout:t,resolutions:n=v})=>{if(t===`fullWidth`)return n;if(!e)return[];let r=e*2;return t===`fixed`?[e,r]:t===`constrained`?[e,r,...n.filter(e=>e<r)]:[]},x=({src:e,width:t,layout:n=`constrained`,height:r,aspectRatio:i,breakpoints:a,format:o})=>(a||=b({width:t,layout:n}),a.sort((e,t)=>e-t).map(t=>{let n;return r&&i&&(n=Math.round(t/i)),{url:e,width:t,height:n,format:o}})),S=e=>{let{src:t,transformer:n,operations:r}=e;return n?x(e).map(({url:i,...a})=>`${n(t,{...r,...a},e.options)?.toString()} ${a.width}w`).join(`,
2`):``};function C({width:e,height:t,priority:n,layout:r=`constrained`,aspectRatio:i,...a}){return e=e&&Number(e)||void 0,t=t&&Number(t)||void 0,n?(a.loading||=`eager`,a.fetchpriority||=`high`):(a.loading||=`lazy`,a.decoding||=`async`),a.alt===``&&(a.role||=`presentation`),i?e?t||=Math.round(e/i):t&&(e=Math.round(t*i)):e&&t&&(i=e/t),{width:e,height:t,aspectRatio:i,layout:r,...a}}function w(e){let{src:t,transformer:n,background:r,layout:i,objectFit:a,breakpoints:o,width:s,height:c,aspectRatio:l,unstyled:u,operations:d,options:f,...p}=C(e);if(n&&r===`auto`){let e=l?Math.round(y/l):void 0,i=n(t,{width:y,height:e},f);i&&(r=i.toString())}let m={width:s,height:c,aspectRatio:l,layout:i,objectFit:a,background:r};if(p.sizes||=h(s,i),u||(p.style={..._(m),...p.style}),n){p.srcset=S({src:t,width:s,height:c,aspectRatio:l,layout:i,breakpoints:o,transformer:n,operations:d,options:f});let e=n(t,{...d,width:s,height:c},f);e&&(t=e),(i===`fullWidth`||i===`constrained`)&&(s=void 0,c=void 0)}return{...p,src:t?.toString(),width:s,height:c}}function T(e){return e?e.startsWith(`image/`)?{format:e.slice(6),mimeType:e}:{format:e,mimeType:`image/${e===`jpg`?`jpeg`:e}`}:{}}function E({media:e,type:t,...n}){let{src:r,transformer:i,layout:a,breakpoints:o,width:s,height:c,aspectRatio:l,sizes:u,loading:d,decoding:f,operations:p,options:m,...g}=C(n);if(!i)return{};let{format:_,mimeType:v}=T(t);u||=h(s,a);let y=S({src:r,width:s,height:c,aspectRatio:l,layout:a,breakpoints:o,transformer:i,format:_,operations:p,options:m}),b=i(r,{...p,width:s,height:c},m);b&&(r=b);let x={...g,sizes:u,srcset:y};return e&&(x.media=e),v&&(x.type=v),x}var D={"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`,"wsrv.nl":`wsrv`},O={"imgix.net":`imgix`,"wp.com":`wordpress`,"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`},k={"/cdn-cgi/image/":`cloudflare`,"/cdn-cgi/imagedelivery/":`cloudflare_images`,"/_next/image":`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`,"/v1/storage/buckets/":`appwrite`};function A(e){if(!e)return e;let t=Number(e);return isNaN(t)?e:Math.round(t)}var ee=e=>{let{pathname:t,search:n}=e;return`${t}${n}`},j=e=>e.hostname===`n`?ee(e):e.toString(),M=(e,t)=>typeof e==`string`?new URL(e,t??`http://n/`):e,N=e=>e===` `?`+`:`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`),P=e=>e?.startsWith(`/`)?e.slice(1):e,F=e=>e?.endsWith(`/`)?e.slice(0,-1):e,I=e=>e?.endsWith(`/`)?e:`${e}/`,L=(e,t)=>{let n=N(e),r=N(t);function i(i){return encodeURIComponent(i).replaceAll(e,n).replaceAll(t,r)}function a(t,n){return`${i(t)}${e}${i(String(n))}`}return e=>(Array.isArray(e)?e:Object.entries(e)).flatMap(([e,t])=>t==null?[]:Array.isArray(t)?t.map(t=>a(e,t)):a(e,t)).join(t)},R=(e,t)=>e===`=`&&t===`&`?U:n=>{let r=n.toString();return Object.fromEntries(r.split(t).map(t=>{let[n,r]=t.split(e);return[decodeURI(n),decodeURI(r)]}))};function te(e,t=4e3,n=4e3){let{width:r,height:i}=e;return r=Number(r)||void 0,i=Number(i)||void 0,r&&r>t&&(i&&=Math.round(i*t/r),r=t),i&&i>n&&(r&&=Math.round(r*n/i),i=n),{width:r,height:i}}function z(e){let t=M(e),n=Object.fromEntries(t.searchParams.entr
2ies());for(let e in[`width`,`height`,`quality`]){let t=n[e];if(t){let r=Number(t);isNaN(r)||(n[e]=r)}}return t.search=``,{operations:n,src:j(t)}}function B({keyMap:e={},formatMap:t={},defaults:n={}},r){r.format&&r.format in t&&(r.format=t[r.format]),r.width&&=A(r.width),r.height&&=A(r.height);for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;let n=t;if(e[n]===!1){delete r[n];continue}e[n]&&r[n]&&(r[e[n]]=r[n],delete r[n])}for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;let i=t,a=n[i];if(!r[i]&&a!==void 0){if(e[i]===!1)continue;let t=e[i]??i;if(t in r)continue;r[t]=a}}return r}var V=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]));function H({keyMap:e={},formatMap:t={},defaults:n={}},r){let i=B({keyMap:V(e),formatMap:V(t),defaults:n},r);i.width&&=A(i.width),i.height&&=A(i.height);let a=Number(i.quality);return isNaN(a)||(i.quality=a),i}var U=e=>{let t=M(e);return Object.fromEntries(t.searchParams.entries())};function W({kvSeparator:e=`=`,paramSeparator:t=`&`,...n}={}){let r=L(e,t);return e=>{let t=B(n,e);return r(t)}}function ne({kvSeparator:e=`=`,paramSeparator:t=`&`,defaults:n,...r}={}){let i=R(e,t);return e=>H(r,e?i(e):{})}function G(e){return{operationsGenerator:W(e),operationsParser:ne(e)}}function re(e){if(e!=null)try{return!!JSON.parse(e?.toString())}catch{return!!e}}var ie=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));function K(e,t){return((n,r,i)=>{let a=e(n,i);return a?t(a.src,{...a.operations,...ie(r)},{...a.options,...i}):t(n,r,i)})}var ae=new Map(Object.entries(D)),oe=Object.entries(O),se=Object.entries(k);function ce(e){return le(e)||q(e)}function le(e){if(typeof e==`string`&&!e.startsWith(`https://`))return!1;let{hostname:t}=M(e);return ae.get(t)||oe.find(([e])=>t.endsWith(e))?.[1]||!1}function q(e){let{pathname:t}=M(e);return se.find(([e])=>t.startsWith(e))?.[1]||!1}var ue=`/view?`,de=`/preview?`,{operationsGenerator:fe,operationsParser:pe}=G({keyMap:{format:`output`},kvSeparator:`=`,paramSeparator:`&`}),me=K(e=>{if(q(e)!==`appwrite`)return null;let t=M(e),n=pe(t);delete n.project;let r=t.searchParams.get(`project`)??``;return t.search=``,t.searchParams.append(`project`,r),{src:t.href,operations:n}},(e,t)=>{let n=M(e.toString().replace(ue,de)),r=n.searchParams.get(`project`)??``;return n.search=fe(t),n.searchParams.append(`project`,r),j(n)}),he=`/_image`,{operationsParser:ge,operationsGenerator:_e}=G({keyMap:{format:`f`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`cover`}}),ve=(e,t,n)=>{let r=M(`${F(n?.baseUrl??``)}${n?.endpoint??he}`);return r.search=_e(t),r.searchParams.set(`href`,e.toString()),j(r)},ye=e=>{let t=M(e),n=t.searchParams.get(`href`);return n?(t.searchParams.delete(`href`),{src:n,operations:ge(t),options:{baseUrl:t.origin}}):null},be=(e,t,n={})=>{if(M(e).pathname!==(n?.endpoint??he))return ve(e,t,n);let r=ye(e);return r?(n.baseUrl??=r.options.baseUrl,ve(r.src,{...r.operations,...t},n)):ve(e,t,n)},xe=W({defaults:{fit:`cover`,format:`webp`,sharp:!0}}),Se=K(z,(e,t)=>{let n=xe(t),r=M(e);return r.search=n,j(r)}),Ce=W({keyMap:{format:`output`}}),we=K(z,(e,t)=>{let n=Ce(t),r=M(e);return r.search=n,j(r)}),Te=(e,t)=>{let{width:n,height:r}=t;return n&&r&&(t.aspect_ratio??=`${Math.round(Number(n))}:${Math.round(Number(r))}`),we(e,t)},{operationsGenerator:Ee,operationsParser:De}=G({keyMap:{format:`f`},defaults:{format:`auto`,fit:`cover`},formatMap:{jpg:`jpeg`},kvSeparator:`=`,paramSeparator:`,`}),Oe=K((e,t)=>{if(q(e)!==`cloudflare`)return null;let n=M(e),[,,,r,...i]=n.pathname.split(`/`),a=De(r);return{src:j(M(i.join(`/`))),operations:a,options:{domain:t?.domain??(n.hostname===`n`?void 0:n.hostname)}}},(e,t,n)=>{let r=Ee(t),i=M(n?.domain?`https://${n.domain}`:`/`);return i.pathname=`/cdn-cgi/image/${r}/${P(e.toString())}`,j(i)}),ke=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/imagedelivery\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,Ae=/https?:\/\/(?<host>imagedelivery.net)\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,{operationsGenerator:je,operationsParser:Me}=G({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{fit:`cover`},kvSeparator:`=`,paramSeparator:`,`});function Ne(e,t){let{host:n,accountHash:r,imageId:i}=e;if(!n||!r||!i)throw Error(`Missing required Cloudflare Images options`);return[`https:/`,...n===`imagedelivery.net`?[n]:[n,`cdn-cgi`,`imagedelivery`],r,i,t].filter(
2Boolean).join(`/`)}var Pe=(e,t,n={})=>j(M(Ne(n,je(t)))),Fe=e=>{let t=M(e),n=[...t.toString().matchAll(ke),...t.toString().matchAll(Ae)];if(!n[0]?.groups)return null;let{host:r,accountHash:i,imageId:a,transformations:o}=n[0].groups,s=Me(o||``),c={host:r,accountHash:i,imageId:a};return{src:Ne(c),operations:s,options:c}},Ie=(e,t,n={})=>{let r=Fe(e);if(!r)throw Error(`Invalid Cloudflare Images URL`);let i={...r.operations,...t};return Pe(r.src,i,{...r.options,...n})},{operationsGenerator:Le,operationsParser:Re}=G({keyMap:{format:`force_format`,width:`w`,height:`h`,quality:`q`},defaults:{org_if_sml:1}}),ze=K((e,t={})=>{let n=M(e);if(ce(n)!==`cloudimage`)return null;let r=Re(n),i=n.pathname;return r.ci_url_encoded&&(i=decodeURIComponent(i),delete r.ci_url_encoded),t.token??=n.hostname.replace(`.cloudimg.io`,``),{src:`${n.protocol}/${i}`,operations:r,options:t}},(e,t={},{token:n}={})=>{if(!n)throw Error(`Token is required for Cloudimage URLs`+e);let r=e.toString();r=r.replace(/^https?:\/\//,``),r.includes(`?`)&&(t.ci_url_encoded=1,r=encodeURIComponent(r));let i=Le(t),a=new URL(`https://${n}.cloudimg.io/`);return a.pathname=r,a.search=i,a.toString()}),Be=/https?:\/\/(?<host>res\.cloudinary\.com)\/(?<cloudName>[a-zA-Z0-9-]+)\/(?<assetType>image|video|raw)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)\/?(?<signature>s\-\-[a-zA-Z0-9]+\-\-)?\/?(?<transformations>(?:[^_\/]+_[^,\/]+,?)*)?\/(?:(?<version>v\d+)\/)?(?<id>(?:[^\s\/]+\/)*[^\s\/]+(?:\.[a-zA-Z0-9]+)?)$/,Ve=/https?:\/\/(?<host>(?<cloudName>[a-zA-Z0-9-]+)-res\.cloudinary\.com|[a-zA-Z0-9.-]+)\/(?<assetType>image|video|raw)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)\/?(?<signature>s\-\-[a-zA-Z0-9]+\-\-)?\/?(?<transformations>(?:[^_\/]+_[^,\/]+,?)*)?\/(?:(?<version>v\d+)\/)?(?<id>(?:[^\s\/]+\/)*[^\s\/]+(?:\.[a-zA-Z0-9]+)?)$/,{operationsGenerator:He,operationsParser:Ue}=G({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{format:`auto`,c:`lfill`},kvSeparator:`_`,paramSeparator:`,`});function We({host:e,cloudName:t,assetType:n,deliveryType:r,signature:i,transformations:a,version:o,id:s}){return[`https:/`,e,e===`res.cloudinary.com`?t:void 0,n,r,i,a,o,s].filter(Boolean).join(`/`)}function Ge(e){let t=e.toString().match(Be);return t?.length||(t=e.toString().match(Ve)),t?.length?t.groups||{}:null}var Ke=(e,t)=>{let n=Ge(e.toString());return n?(n.transformations=He({...Ue(n.transformations||``),...t}),We(n)):e.toString()},qe=W({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`fill`}}),Je=K(z,(e,t)=>{let n=qe(t),r=new URL(e);return r.search=n,j(r)}),Ye=(e,t)=>{let{width:n,height:r}=te(t,4e3,4e3);return Je(e,{...t,width:n,height:r})},Xe=W({defaults:{auto:`webp`,disable:`upscale`}}),Ze=K(e=>{let{src:t,operations:n}=z(e)??{};if(!n||!t)return null;let{origin:r}=M(e);return{src:t,operations:n,options:{baseURL:r}}},(e,t,{baseURL:n=`https://images.contentstack.io/`}={})=>{t.width&&t.height&&(t.fit??=`crop`);let r=Xe(t),i=M(e);return i.hostname===`n`&&(i.protocol=`https:`,i.hostname=new URL(n).hostname),i.search=r,j(i)}),Qe=W({defaults:{withoutEnlargement:!0,fit:`cover`}}),$e=K(e=>{let t=z(e);
2if(t?.operations?.transforms&&typeof t.operations.transforms==`string`)try{t.operations.transforms=JSON.parse(t.operations.transforms)}catch{return null}return t},(e,t)=>{Array.isArray(t.transforms)&&(t.transforms=JSON.stringify(t.transforms));let n=Qe(t),r=M(e);return r.search=n,j(r)}),et=/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-zA-Z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-zA-Z0-9]+)$/,{operationsGenerator:tt,operationsParser:nt}=G({keyMap:{width:`width`,height:`height`,format:`format`},defaults:{format:`auto`,fit:`crop`}}),rt=e=>{let t=M(e).toString().match(et);if(!t?.groups)return null;let{region:n,envId:r,handle:i,transformations:a}=t.groups,o={};return a&&a.split(`/`).forEach(e=>{let[t,n]=e.split(`=`);t===`resize`&&n?n.split(`,`).forEach(e=>{let[t,n]=e.split(`:`);t===`width`||t===`height`?o[t]=Number(n):t===`fit`&&(o.fit=n)}):t===`output`&&n?n.split(`,`).forEach(e=>{let[t,n]=e.split(`:`);t===`format`&&(o.format=n)}):t===`auto_image`&&(o.format=`auto`)}),{src:`https://${n}.graphassets.com/${r}/${i}`,operations:o,options:{region:n,envId:r,handle:i}}},it=K(rt,(e,t,n={})=>{let r=rt(e);if(!r)throw Error(`Invalid Hygraph URL`);let{region:i,envId:a,handle:o}={...r.options,...n},s=[];if(t.width||t.height){let e=[];t.width&&t.height?e.push(`fit:crop`):t.fit&&e.push(`fit:${t.fit}`),t.width&&e.push(`width:${t.width}`),t.height&&e.push(`height:${t.height}`),e.length&&s.push(`resize=${e.join(`,`)}`)}return t.format===`auto`||!t.format&&!r.operations.format?s.push(`auto_image`):t.format&&s.push(`output=format:${t.format}`),j(M(`${`https://${i}.graphassets.com/${a}`}${s.length>0?`/`+s.join(`/`):``}/${o}`))}),{operationsGenerator:at,operationsParser:ot}=G({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{m:`cropbox`},kvSeparator:`_`,paramSeparator:`/`}),st=K(e=>{let t=M(e),n=t.searchParams.get(`imgeng`);if(!n)return null;let r=ot(n);return t.searchParams.delete(`imgeng`),{src:j(t),operations:r}},(e,t)=>{let n=at(t),r=M(e);return r.searchParams.set(`imgeng`,n),j(r)}),{operationsGenerator:ct,operationsParser:lt}=G({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{c:`maintain_ratio`,fo:`auto`},kvSeparator:`-`,paramSeparator:`,`}),ut=K(e=>{let t=M(e),n=null,r=t.pathname;if(t.searchParams.has(`tr`))n=t.searchParams.get(`tr`),t.searchParams.delete(`tr`);else{let e=t.pathname.split(`/`),i=e.findIndex(e=>e.startsWith(`tr:`));i!==-1&&(n=e[i].slice(3),r=e.slice(0,i).concat(e.slice(i+1)).join(`/`))}if(!n)return null;t.pathname=r;let i=lt(n);return{src:j(t),operations:i}},(e,t)=>{let n=ct(t),r=M(e);return r.searchParams.set(`tr`,n),j(r)}),{operationsGenerator:dt,operationsParser:ft}=G({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`min`,auto:`format`}}),pt=K(e=>{let t=M(e),n=ft(e);return t.search=``,{src:j(t),operations:n}},(e,t)=>{let n=dt(t),r=M(e);return r.search=n,r.searchParams.has(`fm`)&&r.searchParams.get(`auto`)===`format`&&r.searchParams.delete(`auto`),j(r)}),{operationsGenerator:mt,operationsParser:ht}=G({keyMap:{width:`w`,height:`h`,quality:`q`,format:`f`},defaults:{f:`auto`},kvSeparator:`_`,paramSeparator:`,`}),gt=(e,t,n)=>{t.width&&t.height&&(t.s=`${t.width}x${t.height}`,delete t.width,delete t.height);let r=mt(t),i=M(n?.baseURL??`/_ipx`);return i.pathname=`${F(i.pathname)}/${r}/${P(e.toString())}`,j(i)},_t=e=>{let t=M(e),[,n,r,...i]=t.pathname.split(`/`);if(!r||!i.length)return null;let a=ht(r);if(a.s){let[e,t]=a.s.split(`x`).map(Number);a.width=e,a.height=t,delete a.s}return{src:`/`+i.join(`/`),operations:a,options:{baseURL:`${t.origin}/${n}`}}},vt=(e,t,n)=>{let r=M(e),i=n?.baseURL;if(i&&r.toString().startsWith(i)||r.pathname.startsWith(`/_ipx`)){let n=_t(e);if(n)return gt(n.src,{...n.operations,...t},{baseURL:n.options.baseURL})}return gt(e,t,{baseURL:i})},yt=[`enlarge`,`flip`,`flop`,`negate`,`normalize`,`grayscale`,`removealpha`,`olrepeat`,`progressive`,`adaptive`,`lossless`,`nearlossless`,`metadata`],{operationsGenerator:bt,operationsParser:xt}=G({defaults:{fit:`cover`},formatMap:{jpg:`jpeg`}}),St=K(e=>{let t=M(e),n=xt(t);for(let e of yt)n[e]!==void 0&&(n[e]=re(n[e]));return t.search=``,{src:j(t),operations:n}},(e,t)=>{let n=M(e);for(let e of yt)t[e]!==void 0&&(t[e]=+!!t[e]);return n.search=bt(t),j(n)}),{operationsGenerator:Ct,operationsParser:wt}=G({formatMap:{jpg:`jpeg`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),Tt=K(e=>{let t=M(e),n=wt(t);return n.lossless!==void 0&&(n.lossless=re(n.lossless)),t.search=``,{src:j(t),operations:n}},(e,t)=>{let n=M(e);return t.lossless!==void 0&&(t.lossless=+!!t.lossless),t.width&&t.height&&(t.fit=`crop`),n.search=Ct(t),j(n)}),{operationsGenerator:Et,operationsParser:Dt}=G({defaults:{fit:`cover`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),Ot=K(e=>{if(q(e)!==`netlify`)return null;let t=M(e),n=Dt(t);delete n.url;let r=t.searchParams.get(`url`)||``;return t.search=``,{src:r,operations:n,options:{baseUrl:t.hostname===`n`?void 0:t.origin}}},(e,t,n={})=>{let r=M(`${n.baseUrl||``}/.netlify/images`);return r.search=Et(t),r.searchParams.set(`url`,e.toString()),j(r)}),{operationsGenerator:kt,operationsParser:At}=G({keyMap:{width:`w`,quality:`q`,height:!1,format:!1},defaults:{q:75}}),jt=(e,t,n={})=>{let r=M(`${n.baseUrl||``}/${n.prefix||`_vercel`}/image`);return r.search=kt(t),r.searchParams.append(`url`,e.toString()),j(r)},Mt=(e,t={})=>
2{if(![`vercel`,`nextjs`].includes(q(e)||``))return null;let n=M(e),r=n.searchParams.get(`url`)||``;n.searchParams.delete(`url`);let i=At(n);return n.search=``,{src:r,operations:i,options:{baseUrl:t.baseUrl??n.origin}}},Nt=K(Mt,jt),Pt=K((e,t)=>Mt(e,t),(e,t,n={})=>jt(e,t,{...n,prefix:`_next`})),{operationsGenerator:Ft,operationsParser:It}=G({keyMap:{width:`wid`,height:`hei`,quality:`qlt`,format:`fmt`},defaults:{fit:`crop,0`}}),Lt=`https://s7d1.scene7.com/is/image/`,Rt=K(e=>{if(ce(e)!==`scene7`)return null;let t=new URL(e,Lt),n=It(t);return t.search=``,{src:t.toString(),operations:n}},(e,t)=>{let n=new URL(e,Lt);return n.search=Ft(t),j(n)}),zt=/(.+?)(?:_(?:(pico|icon|thumb|small|compact|medium|large|grande|original|master)|(\d*)x(\d*)))?(?:_crop_([a-z]+))?(\.[a-zA-Z]+)(\.png|\.jpg|\.webp|\.avif)?$/,{operationsGenerator:Bt,operationsParser:Vt}=G({keyMap:{format:!1}}),Ht=K(e=>{let t=M(e),n=zt.exec(t.pathname),r=Vt(t);if(n){let[,,,e,t,i]=n;e&&t&&!r.width&&!r.height&&(r.width=parseInt(e,10),r.height=parseInt(t,10)),i&&(r.crop??=i)}t.pathname=t.pathname.replace(zt,`$1$6`);for(let e of[`width`,`height`,`crop`,`pad_color`,`format`])t.searchParams.delete(e);return{src:t.toString(),operations:r}},(e,t)=>{let n=M(e);return n.pathname=n.pathname.replace(zt,`$1$6`),n.search=Bt(t),j(n)}),Ut=/(?<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>[^\/]+))?)?$/,Wt=/^(?<modifiers>\/(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?\/?)?(?<id>\/f\/.+)$/,Gt=/:(?![^(]*\))/,Kt=e=>e?Object.fromEntries(e.split(Gt).map(e=>{if(!e)return[];let[t,n]=e.split(`(`);return[t,n.replace(`)`,``)]})):{},qt=e=>{if(!e)return;let t=Object.entries(e).map(([e,t])=>`${e}(${t??``})`);if(t.length!==0)return`filters:${t.join(`:`)}`},Jt=K(e=>{let t=M(e),n=(t.hostname===`img2.storyblok.com`?Wt:Ut).exec(t.pathname);if(!n||!n.groups)return null;let{id:r,crop:i,width:a,height:o,filters:s,flipx:c,flipy:l}=n.groups,{format:u,...d}=Kt(s??``);t.hostname===`img2.storyblok.com`&&(t.hostname=`a.storyblok.com`);let f=Object.fromEntries([[`width`,Number(a)||void 0],[`height`,Number(o)||void 0],[`format`,u],[`crop`,i],[`filters`,d],[`flipx`,c],[`flipy`,l]].filter(([e,t])=>t!==void 0));return{src:`${t.origin}${r}`,operations:f}},(e,t)=>{let n=M(e),{width:r=0,height:i=0,format:a,crop:o,filters:s={},flipx:c=``,flipy:l=``}=t,u=`${c}${r}x${l}${i}`;return a&&(s.format=a),n.pathname=[n.pathname,`m`,o,u,qt(s)].filter(Boolean).join(`/`),j(n)}),J=`/storage/v1/object/public/`,Yt=`/storage/v1/render/image/public/`,Xt=e=>e.pathname.startsWith(Yt),{operationsGenerator:Zt,operationsParser:Qt}=G({}),$t=K(e=>{let t=M(e),n=Qt(t),r=Xt(t),i=t.pathname.replace(Yt,``).replace(J,``);return r?{src:`${t.origin}${J}${i}`,operations:n}:{src:j(t),operations:n}},(e,t)=>{let n=M(e);return n.pathname=n.pathname.replace(Yt,J),t.format&&t.format!==`origin`&&delete t.format,n.search=Zt(t),j(n).replace(J,Yt)}),en=/^https?:\/\/(?<host>[^\/]+)\/(?<uuid>[^\/]+)(?:\/(?<filename>[^\/]+)?)?/,{operationsGenerator:tn,operationsParser:nn}=G({keyMap:{width:!1,height:!1},defaults:{format:`auto`},kvSeparator:`/`,paramSeparator:`/-/`}),rn=K(e=>{let t=M(e),n=en.exec(t.toString());if(!n||!n.groups)return null;let{host:r,uuid:i}=n.groups,[,...a]=t.pathname.split(`/-/`),o=nn(a.join(`/-/`)||``);if(o.resize){let[e,t]=o.resize.split(`x`);e&&(o.width=parseInt(e)),t&&(o.height=parseInt(t)),delete o.resize}return{src:`https://${r}/${i}/`,operations:o,options:{host:r}}},(e,t,n={})=>{let r=M(e),i=n.host||r.hostname,a=en.exec(r.toString());a?.groups&&(r.pathname=`/${a.groups.uuid}/`),t.resize=t.resize||`${t.width??``}x${t.height??``}`,delete t.width,delete t.height;let o=I(tn(t));return r.hostname=i,r.pathname=F(r.pathname)+(o?`/-/${o}`:``)+(a?.groups?.filename??``),j(r)}),{operationsGenerator:an,operationsParser:on}=G({keyMap:{width:`w`,height:`h`},defaults:{crop:`1`}}),sn=K(e=>{let t=M(e),n=on(t);return n.crop!==void 0&&(n.crop=n.crop===`1`),t.search=``,{src:j(t),operations:n}},(e,t)=>{let n=M(e),{crop:r}=t;return r!==void 0&&r!==`0`&&(t.crop=r?`1`:`0`),n.search=an(t),j(n)}),{operationsGenerator:cn,operationsParser:ln}=G({keyMap:{width:`w`,height:`h`,format:`output`,quality:`q`},defaults:{fit:`cover`}}),un={appwrite:me,astro:be,"builder.io":Se,bunny:Te,cloudflare:Oe,cloudflare_images:Ie,cloudimage:ze,cloudinary:Ke,contentful:Ye,contentstack:Ze,directus:$e,hygraph:it,imageengine:st,imagekit:ut,imgix:pt,ipx:vt,keycdn:St,"kontent.ai":Tt,netlify:Ot,nextjs:Pt,scene7:Rt,shopify:Ht,storyblok:Jt,supabase:$t,uploadcare:rn,vercel:Nt,wordpress:sn,wsrv:K(e=>{let t=M(e),n=t.searchParams.get(`url`);if(!n)return null;let r=n;!r.startsWith(`http://`)&&!r.startsWith(`https://`)&&(r=`https://`+r),t.searchParams.delete(`url`);let i=ln(t);return{src:r,operations:i}},(e,t)=>{let n=new URL(`https://wsrv.nl/`),r=(typeof e==`string`?e:e.toString()).replace(/^https?:\/\//,``);n.searchParams.set(`url`,r);let i=cn(t),a=new URLSearchParams(i);for(let[e,t]of a)e!==`url`&&n.searchParams.set(e,t);return j(n)})};function dn(e){if(e)return un[e]}function fn({cdn:e,fallback:t,operations:n={},options:r,...i}){if(e??=ce(i.src)||t,!e)return i;let a=dn(e);return a?w({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}function pn({cdn:e,fallback:t,operations:n,options:r,...i}){if(e??=ce(i.src)||t,!e)return i;let a=dn(e);return a?E({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}var mn=u.forwardRef(function(e,t){let n=m(fn(e));return(0,c.jsx)(`img`,{...n,ref:t})});u.forwardRef(function(e,t){let n=m(pn(e));return(0,c.jsx)(`source`,{...n,ref:t})});var hn=(()=>{try{return JSON.parse(`[]`)}catch{return[]}})(),gn=(()=>{try{return JSON.parse(`[]`)}catch{return[]}})(),_n=hn.length>0||gn.length>0,vn=(()=>{try{return JSON.parse(`[640,750,828,1080,1200,1920,2048,3840]`)}catch{return[640,750,828,1080,1200,1920,2048,3840]}})(),yn=(()=>{try{return JSON.parse(`[32,48,64,96,128,256,384]`)}catch{return[32,48,64,96,128,256,384]}})();function bn(e){let t;try{t=new URL(e,`http://n`)}catch{return{allowed:!1,reason:`Invalid URL: ${e}`}}return o(t.hostname)?{allowed:!1,reason:`Image URL "${e}" resolved to private IP. If this is expected and you understand SSRF risk, use images.dangerouslyAllowLocalIP = true to continue.`}:!_n||s(gn,hn,t)?{allowed:!0}:{allowed:!1,reason:`Image URL "${e}" is not configured in images.remotePatterns or images.domains in next.config.js. See: https://nextjs.org/docs/messages/next-image-unconfigured-host`}}var xn=u.useLayoutEffect;function Sn(e){let t=new Event(`load`);Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,r=!1;return{bubbles:t.bubbles,cancelable:t.cancelable,currentTarget:e,defaultPrevented:!1,eventPhase:t.eventPhase,isTrusted:!1,nativeEvent:t,target:e,timeStamp:t.timeStamp,type:`load`,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}}}function Y(e){if(e.startsWith(`data:image/`)&&!/[)(}{\\'"\n\r]/.test(e))return e}function Cn(e){return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`)}function wn(e){try{return new URL(e,`http://vinext.local`).pathname.toLowerCase().endsWith(`.svg`)}catch{return!1}}function X(e,t){return{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,...t,...e}}function Tn(e){let t=typeof e.src==`object`&&`default`in e.src?e.src.default:e.src,n=typeof t==`string`?t:t.src,r=e.width??(typeof t==`object`?t.width:void 0),i=e.height??(typeof t==`object`?t.height:void 0);return{src:n,width:typeof r==`string`?Number(r):r,height:typeof i==`string`?Number(i):i,blurDataURL:e.blurDataURL??(typeof t==`object`?t.blurDataURL:void 0)}}var Z=[...vn].sort((e,t)=>
2e-t),En=[...Z,...yn].sort((e,t)=>e-t);function Dn(e){let t=i();if(!e.startsWith(`/`)||e.startsWith(`//`))return{src:e,deploymentId:t};let n=e.indexOf(`?`);if(n===-1)return{src:e,deploymentId:t};let r=new URLSearchParams(e.slice(n+1)),a=r.get(`dpl`);if(!a)return{src:e,deploymentId:t};t=a,r.delete(`dpl`);let o=r.toString();return{src:e.slice(0,n)+(o?`?${o}`:``),deploymentId:t}}function Q(e,t,n=75){let r=Dn(e),i=r.src.startsWith(`/`)&&r.deploymentId?`&dpl=${r.deploymentId}`:``;return`/_next/image?url=${encodeURIComponent(r.src)}&w=${t}&q=${n}${i}`}function $(e){e.shouldPreload&&typeof l.preload==`function`&&l.preload(e.src,{as:`image`,imageSrcSet:e.srcSet,imageSizes:e.sizes,fetchPriority:e.fetchPriority})}function On(e){return[...new Set([e,e*2].map(e=>En.find(t=>t>=e)??En[En.length-1]))]}function kn(e,t,n=75,r){if(r){let t=Array.from(r.matchAll(/(^|\s)(1?\d?\d)vw/g),e=>Number.parseInt(e[2],10)),i=t.length>0?Z[0]*(Math.min(...t)*.01):0,a=En.filter(e=>e>=i);return{src:Q(e,a[a.length-1],n),srcSet:a.map(t=>`${Q(e,t,n)} ${t}w`).join(`, `)}}let i=On(t);return{src:Q(e,i[i.length-1],n),srcSet:i.map((t,r)=>`${Q(e,t,n)} ${r+1}x`).join(`, `)}}var An=(0,u.forwardRef)(function({src:e,alt:t,width:n,height:r,fill:i,preload:o,priority:s,quality:l,placeholder:d,blurDataURL:f,loader:p,sizes:m,className:h,style:g,onLoad:_,onLoadingComplete:v,onError:y,unoptimized:b,overrideSrc:x,loading:S,...C},w){let T=(0,u.useRef)(void 0),E=(0,u.useRef)(void 0),D=(0,u.useRef)(!1),O=(0,u.useRef)(null),k=a(w,O),A=(0,u.useRef)(_);(0,u.useEffect)(()=>{A.current=_},[_]);let ee=(0,u.useRef)(y);(0,u.useEffect)(()=>{ee.current=y},[y]);let j=(0,u.useRef)(v);(0,u.useEffect)(()=>{j.current=v},[v]);let{src:M,width:N,height:P,blurDataURL:F}=Tn({src:e,width:n,height:r,blurDataURL:f}),I=o===!0||s===!0,L=s?`high`:void 0,R=s?`eager`:I?S:S??`lazy`,[te,z]=(0,u.useState)(void 0),B=te===M,V=()=>{d===`blur`&&z(e=>e===M?e:M)};xn(()=>
2{if(!D.current&&O.current!==null){let e=O.current;if(ee.current&&(e.src=e.src),e.complete&&e.naturalWidth>0){V();let t=A.current,n=j.current;if((t||n)&&T.current!==M){T.current=M;let r=Sn(e);t?.(r),n?.(e)}}D.current=!0}},[d,m,b]);let H=v?e=>{T.current!==M&&(T.current=M,V(),_?.(e),v(e.currentTarget))}:_?e=>{T.current!==M&&(T.current=M,V(),_(e))}:d===`blur`?()=>{T.current!==M&&(T.current=M,V())}:void 0,U=y?e=>{E.current!==M&&(E.current=M,V(),y(e))}:d===`blur`?()=>{E.current!==M&&(E.current=M,V())}:void 0;if(b===!0){let e=x||M,n=F?Y(F):void 0,r=!B&&d===`blur`&&n?{backgroundImage:`url(${n})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0;return $({shouldPreload:I,src:e,fetchPriority:L}),(0,c.jsx)(`img`,{ref:k,src:e,alt:t,width:i?void 0:N,height:i?void 0:P,loading:R,fetchPriority:L,decoding:`async`,className:h,"data-nimg":i?`fill`:`1`,onLoad:H,onError:U,style:i?X(g,r):{...r,...g},...C})}if(p){let e=typeof l==`string`?Number(l):l??75,n=p({src:M,width:N??0,quality:e});return $({shouldPreload:I,src:n,sizes:m,fetchPriority:L}),(0,c.jsx)(`img`,{ref:k,src:n,alt:t,width:i?void 0:N,height:i?void 0:P,loading:R,decoding:`async`,sizes:m,className:h,onLoad:H,onError:U,style:i?X(g):g,...C})}if(Cn(M)){let e=bn(M);if(!e.allowed)return console.error(`[next/image] ${e.reason}`),null;let n=F?Y(F):void 0,r=!B&&d===`blur`&&n,a=r?{backgroundImage:`url(${n})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,o=r?`url(${n})`:void 0;if(i){let e=m??`100vw`;return $({shouldPreload:I,src:M,sizes:e,fetchPriority:L}),(0,c.jsx)(`img`,{ref:k,src:M,alt:t,loading:R,fetchPriority:L,decoding:`async`,sizes:e,className:h,"data-nimg":`fill`,onLoad:H,onError:U,style:X(g,a),...C})}if(N&&P){let e={style:g};return $({shouldPreload:I,src:M,sizes:m,fetchPriority:L}),(0,c.jsx)(mn,{src:M,alt:t,width:N,height:P,layout:`constrained`,loading:R,fetchPriority:L,sizes:m,className:h,...e,background:o,onLoad:H,onError:U,ref:k})}}let W=typeof l==`string`?Number(l):l??75,ne=wn(M)&&!0,G=N&&!i&&!ne?kn(M,N,W,m):void 0,re=G?G.srcSet:N&&!i?Z.filter(e=>e<=N*2).map(e=>`${M} ${e}w`).join(`, `)||`${M} ${N}w`:void 0,ie=ne?M:G?G.src:Q(M,Z[0],W),K=F?Y(F):void 0,ae=!B&&d===`blur`&&K?{backgroundImage:`url(${K})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,oe=m??(i?`100vw`:void 0);return $({shouldPreload:I,src:ie,srcSet:re,sizes:oe,fetchPriority:L}),(0,c.jsx)(`img`,{ref:k,src:ie,alt:t,width:i?void 0:N,height:i?void 0:P,loading:R,fetchPriority:L,decoding:`async`,srcSet:re,sizes:oe,className:h,"data-nimg":i?`fill`:`1`,onLoad:H,onError:U,style:i?X(g,ae):{...ae,...g},...C})});function jn(e){let{src:t,alt:n,width:r,height:i,fill:a,preload:o,priority:s,quality:c,placeholder:l,blurDataURL:u,loader:d,sizes:f,className:p,style:m,onLoad:h,onLoadingComplete:g,unoptimized:_,overrideSrc:v,loading:y,...b}=e,{src:x,width:S,height:C,blurDataURL:w}=Tn({src:t,width:r,height:i,blurDataURL:u}),T=o===!0||s===!0;if(_===!0){let e=v||x,t=w?Y(w):void 0,r=l===`blur`&&t?{backgroundImage:`url(${t})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,i={src:e,alt:n,width:a?void 0:S,height:a?void 0:C,loading:s?`eager`:T?y:y??`lazy`,fetchPriority:s?`high`:void 0,decoding:`async`,className:p,style:a?X(m,r):{...r,...m},...b,sizes:f??(a?`100vw`:void 0),srcSet:void 0};return{props:Object.assign(i,{"data-nimg":a?`fill`:`1`})}}let E=!1;if(Cn(x)){let e=bn(x);e.allowed||(console.error(`[next/image] ${e.reason}`),E=!0)}let D=typeof c==`string`?Number(c):c??75,O=E?``:d?d({src:x,width:S??0,quality:D}):x,k=wn(O)&&!0||E||!!d||Cn(O),A=S&&!a&&!k?kn(O,S,D,f):null,ee=k?O:A?A.src:Q(O,Z[0],D),j=A?.srcSet,M=w?Y(w):void 0,N=l===`blur`&&M?{backgroundImage:`url(${M})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,P={src:ee,alt:n,width:a?void 0:S,height:a?void 0:C,loading:s?`eager`:T?y:y??`lazy`,fetchPriority:s?`high`:void 0,decoding:`async`,srcSet:j,sizes:f??(a?`100vw`:void 0),className:p,style:a?X(m,N):{...N,...m},...b};return{props:Object.assign(P,{"data-nimg":a?`fill`:`1`})}}export{An as default,jn as getImageProps,Q as imageOptimizationUrl};

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.