1import{At as e,B as t,O as n,Pt as r,Tt as i,V as a,Vt as o,Wt as s,Z as c,a as l,ct as u,ht as d,kt as f,pt as p,z as m}from"../chunks/Bin7EWRT.js";import{n as h,t as g}from"../chunks/CD1Yn03M.js";import"../chunks/xihTtKlq.js";import{Dr as _,En as v,Mr as y,Pr as b,Qt as x,kr as S,sr as C}from"../chunks/DR0XvTZg.js";import{t as w}from"../chunks/Bk2kveWA.js";import{i as T,n as E,r as D,t as O}from"../chunks/BbvYBsx1.js";import{p as k}from"../chunks/DAVgDXGc.js";import{t as A}from"../chunks/lSDZkcHh.js";import{t as j}from"../chunks/CnXsXnXo.js";var M=s({load:()=>N,prerender:()=>!0}),N=(async({fetch:e})=>{try{return{docs:await(await e(`/data/search.json`)).json()}}catch(e){return console.log(e),{docs:[]}}});function P(t,n){e(n,!0),u(()=>{let e=Array.from(n.providers,e=>D.addProvider(e));return()=>{for(let t of e)t()}}),f()}var F=e=>e.map(e=>I(e)),I=e=>({icon:_(y(e.href))?v:void 0,iconClass:`text-indigo-700 dark:text-indigo-200`,title:e.title,description:e.description,onAction:()=>S(e.href),text:e.href}),L=F([{title:`Documentation`,description:`View the documentation for Immich`,href:j.Sites.Docs},{title:`Blog`,description:`Latest updates, announcements, and stories from the Immich team`,href:j.Pages.Blog},{title:`Cursed Knowledge`,description:`View our collection of cursed knowledge`,href:j.Pages.CursedKnowledge},{title:`Roadmap`,description:`View our project roadmap`,href:j.Pages.Roadmap},{title:`Privacy Policy`,description:`View how we collect, use, and share information when you use Immich`,href:j.Pages.PrivacyPolicy}]),R=F([{title:`Buy Immich`,description:`Support Immich by buying a product key.`,href:j.Sites.Buy},{title:`Immich Store`,description:`Support the project by purchasing Immich merchandise`,href:j.Sites.Store},{title:`Immich Datasets`,description:`Help improve Immich by contributing your own files`,href:j.Sites.Datasets}]),z=F([{title:`Immich on the PlayStore`,description:`View Immich on the Google Play Store`,href:j.Get.Android},{title:`Immich on the iOS App Store`,description:`View Immich on the iOS App Store`,href:j.Get.iOS}]),B=F([{title:`Awesome Immich`,description:`A list of awesome Immich apps, integrations, tools, distributions, and guides`,href:j.Sites.Awesome},{title:`Buy Immich`,description:`Support Immich by buying a product key.`,href:j.Sites.Buy},{title:`Get Immich`,description:`View downloads links for Immich apps and server`,href:j.Sites.Get},{title:`My Immich`,description:`Immich link proxy to redirect to your personal instance`,href:j.Sites.My},{title:`Immich API`,description:`Documentation for the REST API that powers Immich`,href:j.Sites.Api},{title:`Immich Data`,description:`View interesting data about the growth of Immich over time`,href:j.Sites.Data},{title:`Immich Documentation`,description:`View the documentation for Immich`,href:j.Sites.Docs},{title:`Immich Demo`,description:`Test out Immich with our public demo server`,href:j.Sites.Demo},{title:`Immich UI`,description:`View our Svelte component library, @immich/ui`,href:j.Sites.Ui}]),V=F([{title:`reddit`,description:`Join the Immich community on reddit`,href:j.Socials.Reddit},{title:`GitHub`,description:`View our project on GitHub`,href:j.Socials.Github},{title:`Discord`,description:`Join the conversation on Discord`,href:j.Socials.Discord},{title:`Weblate`,description:`Support the project by translating Immich on Weblate`,href:j.Socials.Weblate},{title:`FUTO`,description:`Learn more about FUTO, the company behind Immich`,href:j.Sites.Docs}]),H=()=>[{icon:C,iconClass:`text-gray-700 dark:text-gray-200`,title:`Toggle theme`,description:`Switch between light and dark theme`,shortcuts:[{alt:!0,key:`t`}],onAction:()=>A.toggle()},{icon:C,iconClass:`text-gray-700 dark:text-gray-200`,title:`System theme`,description:`Use the system theme (${A.prefersDark?`dark`:` light`})`,tags:A.preference===b.System?[`Active`]:void 0,onAction:()=>A.setPreference(b.System)},{title:`Toggle screencast mode`,description:`Show/hide keyboard and mouse events on the screen`,icon:x,tags:E.enabled?[`Active`]:void 0,onAction:()=>E.toggle()}],U=()=>[T({name:`Pages`,types:[`page`,`pages`],actions:L}),T({name:`Support`,actions:R}),T({name:`Socials`,types:[`social`,`socials`],actions:V}),T({name:`Mobile App`,actions:z}),T({name:`Sites`,types:[`site`,`sites`],actions:B}),T({name:`Settings`,types:[`setting`,`settings`],actions:H()})],W=e=>T({name:`Blog`,types:[`blog`],actions:e.map(e=>
1({title:e.title,description:e.description,tags:e.tags,text:e.text,onAction:()=>S(e.url)}))}),G=a(`<!> <!> <!>`,1);function K(a,s){e(s,!0);let u=``;l(()=>{u=w.url.pathname}),h(()=>{u=r(w.url.pathname)}),g(()=>{let e=r(w.url.pathname);u!==e&&window.scrollTo({top:0,behavior:`auto`})}),D.enable();var _=G(),v=p(_);{let e=i(()=>[W(s.data?.docs??[]),...U()]);P(v,{get providers(){return c(e)}})}var y=d(v,2);O(y,{});var b=d(y,2);k(b,{children:(e,r)=>{var i=t(),a=p(i);n(a,()=>s.children??o),m(e,i)},$$slots:{default:!0}}),m(a,_),f()}export{K as component,M as universal};
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.