System.register(["./index-legacy-BGUFxny_.js","./ImageWithError-legacy-y8dqCaBH.js","./icon-legacy-fy54up3n.js","./index-legacy-CwkvHJvM.js","./Layout-legacy-BpAjKXAb.js","./useTitle-legacy-Ck1as0cr.js","./FolderTree-legacy-DAN7i0-E.js","./index-legacy-CH9QEyQP.js","./index-legacy-DgbbakiJ.js","./share-legacy-CrDD6m--.js","./index-legacy-DVBgQjo3.js"],function(e,n){"use strict";var l,r,t,a,s,c,g,u,i,o;return{setters:[e=>{l=e.j,r=e.a4,t=e.au,a=e.N,s=e.D,c=e.aa,g=e.o,u=e.ac},e=>{i=e.I},e=>{o=e.O},null,null,null,null,null,null,null,null],execute:function(){e("default",()=>{const e=g(),{replace:n}=l();let d=r.objs.filter(e=>e.type===o.IMAGE);0===d.length&&(d=[r.obj]);const y=e=>{const l=d.findIndex(e=>e.name===r.obj.name);"ArrowLeft"===e.key&&l>0?n(d[l-1].name):"ArrowRight"===e.key&&l<d.length-1&&n(d[l+1].name)};return t(()=>{window.addEventListener("keydown",y)}),a(()=>{window.removeEventListener("keydown",y)}),s(i,{maxH:"75vh",rounded:"$lg",get src(){return r.raw_url},get fallback(){return s(u,{})},get fallbackErr(){return s(c,{get msg(){return e("home.preview.failed_load_img")}})}})})}}});
