1import{At as e,B as t,D as n,G as r,L as i,M as a,Mt as o,Ot as s,Rt as c,T as l,Tt as u,U as d,W as f,X as p,Z as m,_t as h,a as g,dt as _,et as v,ft as y,gt as b,j as x,jt as S,rt as C,st as w,vt as T,w as E,x as D,yt as O}from"./index-client.1176HqmK.chunk.js";import"./disclose-version.xihTtKlq.chunk.js";import{a as k,n as A,o as j,r as M}from"./location-search.DIV6u3LR.chunk.js";import{n as N}from"./dist.Dd7Rsx8H.chunk.js";import{t as P}from"./x.DuSIcW1g.chunk.js";function F(e){let t=()=>{e.naturalWidth&&(e.style.maxWidth=`min(100%, ${e.naturalWidth}px)`)};return e.complete&&t(),e.addEventListener(`load`,t),{destroy(){e.removeEventListener(`load`,t)}}}var I=Symbol(`zoomable-image-gallery`);function L(e){o(I,e)}function R(){return s(I)}var z=0,B=r(`<img loading="lazy" decoding="async"/> <img loading="lazy" decoding="async"/>`,1),V=r(`<!> <span aria-hidden="true" class="pointer-events-none absolute inset-x-3 bottom-3 inline-flex w-fit max-w-[calc(100%-1.5rem)] rounded-full bg-black/70 px-3 py-1 text-sm font-medium text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-within:opacity-100"> </span>`,1),H=r(`<figcaption><!></figcaption>`),U=r(`<figure><button type="button" class="group ring-offset-background focus-visible:ring-ring relative block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2"><!></button> <!></figure>`),W=r(`<div class="relative"><!> <img loading="eager" decoding="async"/> <img loading="eager" decoding="async"/></div>`),G=r(`<figure><!> <!></figure> <!>`,1);function K(r,o){S(o,!0);let s=e=>{var r=V(),s=h(r),c=e=>{var t=f(),n=h(t);a(n,()=>o.children),d(e,t)},u=e=>{var t=B(),r=h(t);n(r,e=>F?.(e));var i=O(r,2);n(i,e=>F?.(e)),_((e,t)=>{D(r,`src`,o.src),D(r,`alt`,o.alt),D(r,`width`,o.width),D(r,`height`,o.height),E(r,1,e),D(i,`src`,C(L)),D(i,`alt`,o.alt),D(i,`width`,o.width),D(i,`height`,o.height),E(i,1,t)},[()=>l(N(`block max-w-full rounded-lg dark:hidden`,o.class)),()=>l(N(`hidden max-w-full rounded-lg dark:block`,o.class))]),v(r),v(i),d(e,t)};i(s,e=>{o.children?e(c):e(u,-1)});var p=O(s,2),m=T(p,!0);_(()=>t(m,I())),d(e,r)},p=g(o,`description`,19,()=>o.alt),I=g(o,`hint`,3,`Click to enlarge`),L=u(()=>o.src.replace(/\.webp$/,`_dark.webp`)),K=R(),q=`zoomable-image-${++z}`;y(()=>{if(K)return w(()=>K.registerImage({id:q,src:o.src,darkSrc:C(L),alt:o.alt,description:p(),dialogImageClass:o.dialogImageClass}))});var J=f(),Y=h(J),X=e=>{var t=U(),n=b(t),r=b(n);s(r),c(n);var u=O(n,2),f=e=>{var t=H(),n=b(t);a(n,()=>o.caption),c(t),_(e=>E(t,1,e),[()=>l(N(`mt-2 text-sm`,o.captionClass??`text-muted-foreground`))]),d(e,t)};i(u,e=>{o.caption&&e(f)}),c(t),_(e=>{E(t,1,e),D(n,`aria-label`,`Open full size image: ${o.alt}`),D(n,`title`,I())},[()=>l(N(o.figureClass))]),m(`click`,n,()=>K.openImage(q)),d(e,t)},Z=e=>{var t=f(),n=h(t);x(n,()=>A,(e,t)=>{t(e,{children:(e,t)=>{var n=G(),r=h(n),f=b(r);{let e=u(()=>`Open full size image: ${o.alt}`);x(f,()=>M,(t,n)=>{n(t,{type:`button`,get"aria-label"(){return C(e)},get title(){return I()},class:`group ring-offset-background focus-visible:ring-ring relative block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2`,children:(e,t)=>{s(e)},$$slots:{default:!0}})})}var p=O(f,2),m=e=>{var t=H(),n=b(t);a(n,()=>o.caption),c(t),_(e=>E(t,1,e),[()=>l(N(`mt-2 text-sm`,o.captionClass??`text-muted-foreground`))]),d(e,t)};i(p,e=>{o.caption&&e(m)}),c(r);var g=O(r,2);x(g,()=>k,(e,t)=>{t(e,{get"aria-label"(){return o.alt},showCloseButton:!1,class:`w-auto max-w-[96vw] gap-0 border-none bg-transparent p-0 shadow-none sm:max-w-[96vw]`,children:(e,t)=>{var n=W(),r=b(n);x(r,()=>j,(e,t)=>{t(e,{class:`focus-visible:ring-ring absolute top-3 right-3 z-10 inline-flex cursor-pointer items-center justify-center rounded-full bg-black/70 p-2 text-white transition hover:bg-black/85 focus-visible:outline-hidden focus-visible:ring-2`,"aria-label":`Close image viewer`,children:(e,t)=>{P(e,{class:`size-5`})},$$slots:{default:!0}})});var i=O(r,2),a=O(i,2);c(n),_((e,t)=>{D(i,`src`,o.src),D(i,`alt`,o.alt),E(i,1,e),D(a,`src`,C(L)),D(a,`alt`,o.alt),E(a,1,t)},[()=>l(N(`block max-h-[88vh] w-auto max-w-[96vw] rounded-lg object-contain dark:hidden`,o.dialogImageClass)),()=>l(N(`hidden max-h-[88vh] w-auto max-w-[96vw] rounded-lg object-contain dark:block`,o.dialogImageClass))]),d(e,n)},$$slots:{default:!0}})}),_(e=>E(r,1,e),[()=>l(N(o.figureClass))]),d(e,n)},$$slots:{default:!0}})}),d(e,t)};i(Y,e=>{K?e(X):e(Z,-1)}),d(r,J),e()}p([`click`]);export{L as n,K 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.