neogrok 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/build/client/_app/immutable/chunks/{index.AFHLc7k7.js → index.8xz2tJHQ.js} +1 -1
  2. package/build/client/_app/immutable/chunks/index.8xz2tJHQ.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/{index.AFHLc7k7.js.gz → index.8xz2tJHQ.js.gz} +0 -0
  4. package/build/client/_app/immutable/chunks/{loading-ellipsis.EfcHtv03.js → loading-ellipsis.k3p6ijV8.js} +2 -2
  5. package/build/client/_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{singletons.vwJVlVCQ.js → singletons.DwO-MTR-.js} +1 -1
  8. package/build/client/_app/immutable/chunks/singletons.DwO-MTR-.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/singletons.DwO-MTR-.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{stores.8mzBvaEV.js → stores.qqHx_u93.js} +1 -1
  11. package/build/client/_app/immutable/chunks/stores.qqHx_u93.js.br +2 -0
  12. package/build/client/_app/immutable/chunks/stores.qqHx_u93.js.gz +0 -0
  13. package/build/client/_app/immutable/entry/{app.RbPPUffu.js → app.INY6tJlm.js} +2 -2
  14. package/build/client/_app/immutable/entry/app.INY6tJlm.js.br +0 -0
  15. package/build/client/_app/immutable/entry/app.INY6tJlm.js.gz +0 -0
  16. package/build/client/_app/immutable/entry/{start.rCbSr4mr.js → start.a14tFEO4.js} +1 -1
  17. package/build/client/_app/immutable/entry/start.a14tFEO4.js.br +0 -0
  18. package/build/client/_app/immutable/entry/start.a14tFEO4.js.gz +0 -0
  19. package/build/client/_app/immutable/nodes/{0.e_QjT0sm.js → 0.xWLavMW2.js} +1 -1
  20. package/build/client/_app/immutable/nodes/0.xWLavMW2.js.br +0 -0
  21. package/build/client/_app/immutable/nodes/0.xWLavMW2.js.gz +0 -0
  22. package/build/client/_app/immutable/nodes/{1.EkqJBnVl.js → 1.rAOpvYHL.js} +1 -1
  23. package/build/client/_app/immutable/nodes/1.rAOpvYHL.js.br +2 -0
  24. package/build/client/_app/immutable/nodes/1.rAOpvYHL.js.gz +0 -0
  25. package/build/client/_app/immutable/nodes/10.GvaEAgQH.js +18 -0
  26. package/build/client/_app/immutable/nodes/10.GvaEAgQH.js.br +0 -0
  27. package/build/client/_app/immutable/nodes/10.GvaEAgQH.js.gz +0 -0
  28. package/build/client/_app/immutable/nodes/{13.mfcM2A3w.js → 13.sZkidTit.js} +2 -2
  29. package/build/client/_app/immutable/nodes/13.sZkidTit.js.br +0 -0
  30. package/build/client/_app/immutable/nodes/13.sZkidTit.js.gz +0 -0
  31. package/build/client/_app/version.json +1 -1
  32. package/build/client/_app/version.json.br +0 -0
  33. package/build/client/_app/version.json.gz +0 -0
  34. package/build/server/chunks/{0-A-IZzLqw.js → 0-ok1NknM9.js} +2 -2
  35. package/build/server/chunks/{0-A-IZzLqw.js.map → 0-ok1NknM9.js.map} +1 -1
  36. package/build/server/chunks/{1-g3_EhU2e.js → 1-0QJNZiSC.js} +2 -2
  37. package/build/server/chunks/{1-g3_EhU2e.js.map → 1-0QJNZiSC.js.map} +1 -1
  38. package/build/server/chunks/{10-O5Ly1RSy.js → 10-BBcjQvcj.js} +3 -3
  39. package/build/server/chunks/{10-O5Ly1RSy.js.map → 10-BBcjQvcj.js.map} +1 -1
  40. package/build/server/chunks/{13-ItAIOz6y.js → 13-kCEzUGMx.js} +3 -3
  41. package/build/server/chunks/{13-ItAIOz6y.js.map → 13-kCEzUGMx.js.map} +1 -1
  42. package/build/server/chunks/{_page.svelte-7KJATY9d.js → _page.svelte-Vhv0rMkf.js} +22 -21
  43. package/build/server/chunks/_page.svelte-Vhv0rMkf.js.map +1 -0
  44. package/build/server/chunks/{_page.svelte-MAStgoHK.js → _page.svelte-sWX5P4Ll.js} +21 -21
  45. package/build/server/chunks/{_page.svelte-MAStgoHK.js.map → _page.svelte-sWX5P4Ll.js.map} +1 -1
  46. package/build/server/chunks/{loading-ellipsis-QoPZxJiG.js → loading-ellipsis-yq_aohpf.js} +2 -2
  47. package/build/server/chunks/{loading-ellipsis-QoPZxJiG.js.map → loading-ellipsis-yq_aohpf.js.map} +1 -1
  48. package/build/server/index.js +1 -1
  49. package/build/server/index.js.map +1 -1
  50. package/build/server/manifest.js +5 -5
  51. package/build/server/manifest.js.map +1 -1
  52. package/package.json +4 -5
  53. package/build/client/_app/immutable/chunks/index.AFHLc7k7.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/loading-ellipsis.EfcHtv03.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/loading-ellipsis.EfcHtv03.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/singletons.vwJVlVCQ.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/singletons.vwJVlVCQ.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/stores.8mzBvaEV.js.br +0 -0
  59. package/build/client/_app/immutable/chunks/stores.8mzBvaEV.js.gz +0 -0
  60. package/build/client/_app/immutable/entry/app.RbPPUffu.js.br +0 -0
  61. package/build/client/_app/immutable/entry/app.RbPPUffu.js.gz +0 -0
  62. package/build/client/_app/immutable/entry/start.rCbSr4mr.js.br +0 -0
  63. package/build/client/_app/immutable/entry/start.rCbSr4mr.js.gz +0 -0
  64. package/build/client/_app/immutable/nodes/0.e_QjT0sm.js.br +0 -0
  65. package/build/client/_app/immutable/nodes/0.e_QjT0sm.js.gz +0 -0
  66. package/build/client/_app/immutable/nodes/1.EkqJBnVl.js.br +0 -3
  67. package/build/client/_app/immutable/nodes/1.EkqJBnVl.js.gz +0 -0
  68. package/build/client/_app/immutable/nodes/10.-5InryQo.js +0 -17
  69. package/build/client/_app/immutable/nodes/10.-5InryQo.js.br +0 -0
  70. package/build/client/_app/immutable/nodes/10.-5InryQo.js.gz +0 -0
  71. package/build/client/_app/immutable/nodes/13.mfcM2A3w.js.br +0 -0
  72. package/build/client/_app/immutable/nodes/13.mfcM2A3w.js.gz +0 -0
  73. package/build/server/chunks/_page.svelte-7KJATY9d.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{I as Bs,g as Ms,L as Rs,T as Us}from"../chunks/loading-ellipsis.EfcHtv03.js";import{p as ks,n as Ts}from"../chunks/stores.8mzBvaEV.js";import{d as Hs}from"../chunks/index.XEtU8W2G.js";import{n as qe,H as xe,a5 as ht,k as Ft,u as Vt,r as Qt,v as Yt,a7 as cs,w as Se,e as g,l as w,t as y,c as $,a as k,o as S,b as v,d as c,p as Gt,f as m,i as H,g as a,y as _s,q as pt,a8 as zs,z as Ie,s as U,A as js,j as rt,a9 as Fs,h as je,G as ps,K as Cs,J as hs,m as Vs}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ae,i as Le,c as V,a as Q,m as Y,t as N,b as P,d as G,f as Ne,g as nt,e as lt}from"../chunks/index.CP0w37D5.js";import{d as Qs}from"../chunks/preferences.WetYOKHg.js";import{I as Ys,c as ds}from"../chunks/integer-input.fvZuttUG.js";import{e as dt}from"../chunks/each.oUkpMz5d.js";import{L as Zt}from"../chunks/link.czJPdQv3.js";import{g as Es,a as ws}from"../chunks/spread.rEx3vLA9.js";function Gs(r){let e;const t=r[2].default,s=Ft(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Vt(s,t,n,n[3],e?Yt(t,n[3],o,null):Qt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function Zs(r){let e,t;const s=[{name:"chevron-down"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[Gs]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function Js(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m6 9 6 6 6-6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class Ks extends Ae{constructor(e){super(),Le(this,e,Js,Zs,qe,{})}}function Ws(r){let e;const t=r[2].default,s=Ft(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Vt(s,t,n,n[3],e?Yt(t,n[3],o,null):Qt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function Xs(r){let e,t;const s=[{name:"chevron-up"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[Ws]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function xs(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m18 15-6-6-6 6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class er extends Ae{constructor(e){super(),Le(this,e,xs,Xs,qe,{})}}const Ss=Object.freeze({repos:100}),Jt=r=>{const e=Number.parseInt(r.get("repos")??"",10),t=r.get("q")||void 0,s=e>=0?e:Ss.repos;return{query:t,repos:s}},mt=Hs(ks,r=>Jt(r.url.searchParams));let ms=0;const jt=({query:r,repos:e,searchType:t})=>{const s=cs(Ts)?.to?.url??cs(ks).url,n=Jt(s.searchParams),o=r!==void 0&&(r||void 0)!==n.query,l=e!==void 0&&e>=0&&e!==n.repos;if(o||l){const i=Date.now(),u=new URL(s);o&&r?u.searchParams.set("q",r):o&&u.searchParams.delete("q"),l&&e===Ss.repos?u.searchParams.delete("repos"):l&&u.searchParams.set("repos",e.toString()),Ms(u,{replaceState:t==="live"&&i-ms<2e3,keepFocus:!0,noScroll:!0}),ms=i}},tr=async({url:r,fetch:e})=>({listOutcome:await sr(r,e)}),sr=async(r,e)=>{const t=Jt(r.searchParams);try{return await(await e("/api/list",{method:"POST",body:JSON.stringify(t)})).json()}catch(s){return console.error("List repositories failed",s),{kind:"error",error:String(s)}}},Xr=Object.freeze(Object.defineProperty({__proto__:null,load:tr},Symbol.toStringTag,{value:"Module"}));function rr(r){let e,t,s,n,o,l,i,u,p,_,T,C,d,b,M,q,B,W="repos",se,z,R,ne,re,x=(r[0]??"​")+"",le,O,fe,J;u=new Rs({}),d=new Us({});function ae(L){r[14](L)}let ue={id:"context",pending:r[4]};return r[2]!==void 0&&(ue.value=r[2]),z=new Ys({props:ue}),Se.push(()=>Ne(z,"value",ae)),z.$on("change",r[15]),{c(){e=g("form"),t=g("input"),s=w(),n=g("div"),o=g("label"),l=g("span"),i=y("query"),V(u.$$.fragment),p=w(),_=g("span"),T=g("input"),C=w(),V(d.$$.fragment),M=w(),q=g("label"),B=g("span"),B.textContent=W,se=w(),V(z.$$.fragment),ne=w(),re=g("div"),le=y(x),this.h()},l(L){e=$(L,"FORM",{});var D=k(e);t=$(D,"INPUT",{type:!0,class:!0}),s=S(D),n=$(D,"DIV",{class:!0});var I=k(n);o=$(I,"LABEL",{for:!0,class:!0});var E=k(o);l=$(E,"SPAN",{title:!0,class:!0});var ee=k(l);i=v(ee,"query"),Q(u.$$.fragment,ee),ee.forEach(c),p=S(E),_=$(E,"SPAN",{class:!0});var te=k(_);T=$(te,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),C=S(te),Q(d.$$.fragment,te),te.forEach(c),E.forEach(c),M=S(I),q=$(I,"LABEL",{for:!0,class:!0});var ce=k(q);B=$(ce,"SPAN",{class:!0,"data-svelte-h":!0}),Gt(B)!=="svelte-leid1k"&&(B.textContent=W),se=S(ce),Q(z.$$.fragment,ce),ce.forEach(c),I.forEach(c),ne=S(D),re=$(D,"DIV",{class:!0});var _e=k(re);le=v(_e,x),_e.forEach(c),D.forEach(c),this.h()},h(){m(t,"type","submit"),m(t,"class","hidden"),m(l,"title","Same query syntax as the main search - use `r:name` to filter repositories by name, otherwise you are filtering them by their content!"),m(l,"class","text-xs px-1 text-gray-500"),m(T,"id","query"),m(T,"type","search"),T.autofocus=!0,m(T,"spellcheck",!1),m(T,"autocorrect","off"),m(T,"autocapitalize","off"),m(T,"autocomplete","off"),m(T,"class","font-mono focus:outline-none flex-auto appearance-none"),m(_,"class",b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:r[0]!==null,pending:r[5]})}`),m(o,"for","query"),m(o,"class","flex-auto flex flex-col space-y-0.5"),m(B,"class","text-xs px-1 text-gray-500"),m(q,"for","repos"),m(q,"class","flex flex-col space-y-0.5"),m(n,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),m(re,"class","text-xs text-red-500")},m(L,D){H(L,e,D),a(e,t),a(e,s),a(e,n),a(n,o),a(o,l),a(l,i),Y(u,l,null),a(o,p),a(o,_),a(_,T),_s(T,r[1]),a(_,C),Y(d,_,null),a(n,M),a(n,q),a(q,B),a(q,se),Y(z,q,null),a(e,ne),a(e,re),a(re,le),O=!0,T.focus(),fe||(J=[pt(T,"input",r[12]),pt(T,"input",r[13]),pt(e,"submit",zs(r[16]))],fe=!0)},p(L,[D]){D&2&&T.value!==L[1]&&_s(T,L[1]),(!O||D&33&&b!==(b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:L[0]!==null,pending:L[5]})}`))&&m(_,"class",b);const I={};D&16&&(I.pending=L[4]),!R&&D&4&&(R=!0,I.value=L[2],Ie(()=>R=!1)),z.$set(I),(!O||D&1)&&x!==(x=(L[0]??"​")+"")&&U(le,x)},i(L){O||(N(u.$$.fragment,L),N(d.$$.fragment,L),N(z.$$.fragment,L),O=!0)},o(L){P(u.$$.fragment,L),P(d.$$.fragment,L),P(z.$$.fragment,L),O=!1},d(L){L&&c(e),G(u),G(d),G(z),fe=!1,js(J)}}}function nr(r,e,t){let s,n,o,l,i;rt(r,mt,R=>t(10,o=R)),rt(r,Ts,R=>t(11,l=R));let{queryError:u}=e;const p=Qs();rt(r,p,R=>t(3,i=R));let _,T;const C=mt.subscribe(R=>{l?.type!=="goto"&&t(1,{query:_,repos:T}=R,_,t(2,T))});Fs(C);const d=()=>i==="live"&&(!_||_.length>=3),b=()=>{jt({query:_,repos:T,searchType:i})};let M;function q(){_=this.value,t(1,_)}const B=()=>{d()&&jt({query:_,searchType:i})};function W(R){T=R,t(2,T)}const se=R=>{d()&&jt({repos:R.detail,searchType:i})},z=()=>{b()};return r.$$set=R=>{"queryError"in R&&t(0,u=R.queryError)},r.$$.update=()=>{r.$$.dirty&520&&(i==="live"&&M==="manual"&&b(),t(9,M=i)),r.$$.dirty&3074&&t(5,s=l===null&&(o.query??"")!==(_??"")),r.$$.dirty&3076&&t(4,n=l===null&&o.repos!==T)},[u,_,T,i,n,s,p,d,b,M,o,l,q,B,W,se,z]}class lr extends Ae{constructor(e){super(),Le(this,e,nr,rr,qe,{queryError:0})}}const or=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ar=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ir=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ur=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],gs=(r,e,t)=>{let s=r;return typeof e=="string"||Array.isArray(e)?s=r.toLocaleString(e,t):(e===!0||t!==void 0)&&(s=r.toLocaleString(void 0,t)),s};function Pe(r,e){if(!Number.isFinite(r))throw new TypeError(`Expected a finite number, got ${typeof r}: ${r}`);e={bits:!1,binary:!1,space:!0,...e};const t=e.bits?e.binary?ur:ir:e.binary?ar:or,s=e.space?" ":"";if(e.signed&&r===0)return` 0${s}${t[0]}`;const n=r<0,o=n?"-":e.signed?"+":"";n&&(r=-r);let l;if(e.minimumFractionDigits!==void 0&&(l={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(l={maximumFractionDigits:e.maximumFractionDigits,...l}),r<1){const _=gs(r,e.locale,l);return o+_+s+t[0]}const i=Math.min(Math.floor(e.binary?Math.log(r)/Math.log(1024):Math.log10(r)/3),t.length-1);r/=(e.binary?1024:1e3)**i,l||(r=r.toPrecision(3));const u=gs(Number(r),e.locale,l),p=t[i];return o+u+s+p}function fr(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},i:je,o:je,d(t){t&&c(e)}}}function cr(r){let e,t;return e=new Zt({props:{to:r[1],$$slots:{default:[_r]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&2&&(o.to=s[1]),n&5&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function _r(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},d(t){t&&c(e)}}}function pr(r){let e,t,s,n;const o=[cr,fr],l=[];function i(u,p){return u[1]?0:1}return t=i(r),s=l[t]=o[t](r),{c(){e=g("div"),s.c(),this.h()},l(u){e=$(u,"DIV",{class:!0});var p=k(e);s.l(p),p.forEach(c),this.h()},h(){m(e,"class","text-left")},m(u,p){H(u,e,p),l[t].m(e,null),n=!0},p(u,[p]){let _=t;t=i(u),t===_?l[t].p(u,p):(nt(),P(l[_],1,1,()=>{l[_]=null}),lt(),s=l[t],s?s.p(u,p):(s=l[t]=o[t](u),s.c()),N(s,1),s.m(e,null))},i(u){n||(N(s),n=!0)},o(u){P(s),n=!1},d(u){u&&c(e),l[t].d()}}}function hr(r,e,t){let{name:s}=e,{url:n}=e;return r.$$set=o=>{"name"in o&&t(0,s=o.name),"url"in o&&t(1,n=o.url)},[s,n]}class dr extends Ae{constructor(e){super(),Le(this,e,hr,pr,qe,{name:0,url:1})}}function $s(r,e,t){const s=r.slice();return s[3]=e[t].name,s[4]=e[t].version,s}function mr(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},i:je,o:je,d(s){s&&c(t)}}}function gr(r){let e,t;return e=new Zt({props:{to:r[1].replaceAll("{{.Version}}",r[4]),$$slots:{default:[$r]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&3&&(o.to=s[1].replaceAll("{{.Version}}",s[4])),n&129&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function $r(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},d(s){s&&c(t)}}}function bs(r){let e=r[3]+"",t,s,n,o,l,i,u;const p=[gr,mr],_=[];function T(C,d){return C[1]?0:1}return o=T(r),l=_[o]=p[o](r),{c(){t=y(e),s=y("@"),n=g("span"),l.c(),i=w(),this.h()},l(C){t=v(C,e),s=v(C,"@"),n=$(C,"SPAN",{class:!0});var d=k(n);l.l(d),i=S(d),d.forEach(c),this.h()},h(){m(n,"class","font-mono")},m(C,d){H(C,t,d),H(C,s,d),H(C,n,d),_[o].m(n,null),a(n,i),u=!0},p(C,d){(!u||d&1)&&e!==(e=C[3]+"")&&U(t,e);let b=o;o=T(C),o===b?_[o].p(C,d):(nt(),P(_[b],1,1,()=>{_[b]=null}),lt(),l=_[o],l?l.p(C,d):(l=_[o]=p[o](C),l.c()),N(l,1),l.m(n,i))},i(C){u||(N(l),u=!0)},o(C){P(l),u=!1},d(C){C&&(c(t),c(s),c(n)),_[o].d()}}}function br(r){let e,t,s=dt(r[0]),n=[];for(let l=0;l<s.length;l+=1)n[l]=bs($s(r,s,l));const o=l=>P(n[l],1,1,()=>{n[l]=null});return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ps()},l(l){for(let i=0;i<n.length;i+=1)n[i].l(l);e=ps()},m(l,i){for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(l,i);H(l,e,i),t=!0},p(l,[i]){if(i&7){s=dt(l[0]);let u;for(u=0;u<s.length;u+=1){const p=$s(l,s,u);n[u]?(n[u].p(p,i),N(n[u],1)):(n[u]=bs(p),n[u].c(),N(n[u],1),n[u].m(e.parentNode,e))}for(nt(),u=s.length;u<n.length;u+=1)o(u);lt()}},i(l){if(!t){for(let i=0;i<s.length;i+=1)N(n[i]);t=!0}},o(l){n=n.filter(Boolean);for(let i=0;i<n.length;i+=1)P(n[i]);t=!1},d(l){l&&c(e),Cs(n,l)}}}function yr(r,e,t){let{branches:s}=e,{commitUrlTemplate:n}=e;const o=l=>/^[a-z0-9]{40}$/.test(l)?l.slice(0,8):l;return r.$$set=l=>{"branches"in l&&t(0,s=l.branches),"commitUrlTemplate"in l&&t(1,n=l.commitUrlTemplate)},[s,n,o]}class vr extends Ae{constructor(e){super(),Le(this,e,yr,br,qe,{branches:0,commitUrlTemplate:1})}}const Br=(r,e)=>r?.prop===e.prop?r.direction==="ascending"?{...e,direction:"descending"}:null:{...e,direction:"ascending"},kr=({prop:r,kind:e,direction:t})=>{if(e==="number"&&t==="ascending")return({[r]:s},{[r]:n})=>s-n;if(e==="number"&&t==="descending")return({[r]:s},{[r]:n})=>n-s;if(e==="string"&&t==="ascending")return({[r]:s},{[r]:n})=>s<n?-1:s>n?1:0;if(e==="string"&&t==="descending")return({[r]:s},{[r]:n})=>n<s?-1:n>s?1:0};function Tr(r){let e,t;return e=new Ks({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Cr(r){let e,t;return e=new er({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Er(r){let e;return{c(){e=g("div"),this.h()},l(t){e=$(t,"DIV",{class:!0}),k(e).forEach(c),this.h()},h(){m(e,"class","flex-none w-4 h-4")},m(t,s){H(t,e,s)},i:je,o:je,d(t){t&&c(e)}}}function wr(r){let e,t,s,n,o,l,i,u;const p=[Er,Cr,Tr],_=[];function T(b,M){return b[0]===null||b[0].prop!==b[1].prop?0:b[0].direction==="ascending"?1:2}t=T(r),s=_[t]=p[t](r);const C=r[3].default,d=Ft(C,r,r[2],null);return{c(){e=g("button"),s.c(),n=w(),o=g("span"),d&&d.c(),this.h()},l(b){e=$(b,"BUTTON",{class:!0});var M=k(e);s.l(M),n=S(M),o=$(M,"SPAN",{});var q=k(o);d&&d.l(q),q.forEach(c),M.forEach(c),this.h()},h(){m(e,"class","w-full h-full flex justify-center items-center hover:bg-slate-200")},m(b,M){H(b,e,M),_[t].m(e,null),a(e,n),a(e,o),d&&d.m(o,null),l=!0,i||(u=pt(e,"click",r[4]),i=!0)},p(b,[M]){let q=t;t=T(b),t!==q&&(nt(),P(_[q],1,1,()=>{_[q]=null}),lt(),s=_[t],s||(s=_[t]=p[t](b),s.c()),N(s,1),s.m(e,n)),d&&d.p&&(!l||M&4)&&Vt(d,C,b,b[2],l?Yt(C,b[2],M,null):Qt(b[2]),null)},i(b){l||(N(s),N(d,b),l=!0)},o(b){P(s),P(d,b),l=!1},d(b){b&&c(e),_[t].d(),d&&d.d(b),i=!1,u()}}}function Sr(r,e,t){let{$$slots:s={},$$scope:n}=e,{sortColumn:o}=e,{sortBy:l}=e;const i=()=>{t(0,l=Br(l,o))};return r.$$set=u=>{"sortColumn"in u&&t(1,o=u.sortColumn),"sortBy"in u&&t(0,l=u.sortBy),"$$scope"in u&&t(2,n=u.$$scope)},[l,o,n,s,i]}class ze extends Ae{constructor(e){super(),Le(this,e,Sr,wr,qe,{sortColumn:1,sortBy:0})}}function ys(r,e,t){const s=r.slice();return s[14]=e[t].name,s[15]=e[t].url,s[16]=e[t].branches,s[17]=e[t].commitUrlTemplate,s[18]=e[t].shardCount,s[19]=e[t].fileCount,s[20]=e[t].indexBytes,s[21]=e[t].contentBytes,s[22]=e[t].lastIndexed,s[23]=e[t].lastCommit,s}function Ir(r){let e;return{c(){e=y("shard files")},l(t){e=v(t,"shard files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Nr(r){let e,t="Repository";return{c(){e=g("div"),e.textContent=t},l(s){e=$(s,"DIV",{"data-svelte-h":!0}),Gt(e)!=="svelte-1kv5i5g"&&(e.textContent=t)},m(s,n){H(s,e,n)},p:je,d(s){s&&c(e)}}}function Pr(r){let e;return{c(){e=y("Shard count")},l(t){e=v(t,"Shard count")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function qr(r){let e;return{c(){e=y("Contained files")},l(t){e=v(t,"Contained files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Ar(r){let e;return{c(){e=y("Index size in RAM")},l(t){e=v(t,"Index size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Lr(r){let e;return{c(){e=y("Content size in RAM")},l(t){e=v(t,"Content size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Dr(r){let e;return{c(){e=y("Last indexed")},l(t){e=v(t,"Last indexed")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Or(r){let e;return{c(){e=y("Last commit")},l(t){e=v(t,"Last commit")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function vs(r){let e,t,s,n,o,l,i,u,p=r[18]+"",_,T,C,d=r[19]+"",b,M,q,B=Pe(r[20],{space:!1,binary:!0})+"",W,se,z,R=Pe(r[21],{space:!1,binary:!0})+"",ne,re,x,le=r[22]+"",O,fe,J,ae=r[23]+"",ue,L,D;return s=new dr({props:{name:r[14],url:r[15]}}),l=new vr({props:{branches:r[16],commitUrlTemplate:r[17]}}),{c(){e=g("tr"),t=g("td"),V(s.$$.fragment),n=w(),o=g("td"),V(l.$$.fragment),i=w(),u=g("td"),_=y(p),T=w(),C=g("td"),b=y(d),M=w(),q=g("td"),W=y(B),se=w(),z=g("td"),ne=y(R),re=w(),x=g("td"),O=y(le),fe=w(),J=g("td"),ue=y(ae),L=w(),this.h()},l(I){e=$(I,"TR",{class:!0});var E=k(e);t=$(E,"TD",{class:!0});var ee=k(t);Q(s.$$.fragment,ee),ee.forEach(c),n=S(E),o=$(E,"TD",{class:!0});var te=k(o);Q(l.$$.fragment,te),te.forEach(c),i=S(E),u=$(E,"TD",{class:!0});var ce=k(u);_=v(ce,p),ce.forEach(c),T=S(E),C=$(E,"TD",{class:!0});var _e=k(C);b=v(_e,d),_e.forEach(c),M=S(E),q=$(E,"TD",{class:!0});var De=k(q);W=v(De,B),De.forEach(c),se=S(E),z=$(E,"TD",{class:!0});var Fe=k(z);ne=v(Fe,R),Fe.forEach(c),re=S(E),x=$(E,"TD",{class:!0});var ye=k(x);O=v(ye,le),ye.forEach(c),fe=S(E),J=$(E,"TD",{class:!0});var Oe=k(J);ue=v(Oe,ae),Oe.forEach(c),L=S(E),E.forEach(c),this.h()},h(){m(t,"class","p-1 border-x"),m(o,"class","p-1 border-x"),m(u,"class","p-1 border-x text-right"),m(C,"class","p-1 border-x text-right"),m(q,"class","p-1 border-x text-right"),m(z,"class","p-1 border-x text-right"),m(x,"class","p-1 border-x"),m(J,"class","p-1 border-x"),m(e,"class","border")},m(I,E){H(I,e,E),a(e,t),Y(s,t,null),a(e,n),a(e,o),Y(l,o,null),a(e,i),a(e,u),a(u,_),a(e,T),a(e,C),a(C,b),a(e,M),a(e,q),a(q,W),a(e,se),a(e,z),a(z,ne),a(e,re),a(e,x),a(x,O),a(e,fe),a(e,J),a(J,ue),a(e,L),D=!0},p(I,E){const ee={};E&4&&(ee.name=I[14]),E&4&&(ee.url=I[15]),s.$set(ee);const te={};E&4&&(te.branches=I[16]),E&4&&(te.commitUrlTemplate=I[17]),l.$set(te),(!D||E&4)&&p!==(p=I[18]+"")&&U(_,p),(!D||E&4)&&d!==(d=I[19]+"")&&U(b,d),(!D||E&4)&&B!==(B=Pe(I[20],{space:!1,binary:!0})+"")&&U(W,B),(!D||E&4)&&R!==(R=Pe(I[21],{space:!1,binary:!0})+"")&&U(ne,R),(!D||E&4)&&le!==(le=I[22]+"")&&U(O,le),(!D||E&4)&&ae!==(ae=I[23]+"")&&U(ue,ae)},i(I){D||(N(s.$$.fragment,I),N(l.$$.fragment,I),D=!0)},o(I){P(s.$$.fragment,I),P(l.$$.fragment,I),D=!1},d(I){I&&c(e),G(s),G(l)}}}function Mr(r){let e,t,s,n=r[0].repositories.length+"",o,l,i=r[0].repositories.length===1?"repository":"repositories",u,p,_=r[0].stats.shardCount+"",T,C,d=r[0].stats.shardCount===1?"shard":"shards",b,M,q=r[0].stats.fileCount+"",B,W,se=r[0].stats.fileCount===1?"file":"files",z,R,ne=Pe(r[0].stats.indexBytes+r[0].stats.contentBytes,{space:!1,binary:!0})+"",re,x,le,O,fe,J,ae=r[2].length+"",ue,L,D=r[2].length===1?"repository":"repositories",I,E,ee=r[4].shardCount+"",te,ce,_e=r[4].shardCount===1?"shard":"shards",De,Fe,ye=r[4].fileCount+"",Oe,gt,et=r[4].fileCount===1?"file":"files",ot,$t,tt=Pe(r[4].indexBytes+r[4].contentBytes,{space:!1,binary:!0})+"",at,bt,it,Me,ve,Be,ie,ut,yt,ft,vt,ke,Bt,Te,kt,ct,Tt,_t,Ct,Z,Ve,pe,Et,wt,Re,Kt="Branches",St,Qe,he,It,Nt,Ye,de,Pt,qt,Ge,me,At,Lt,Ze,ge,Dt,Ot,Je,$e,Mt,Rt,Ke,be,Ut,Ht,We,K;Te=new Zt({props:{to:"/about#repository-stats",$$slots:{default:[Ir]},$$scope:{ctx:r}}});function Is(f){r[7](f)}let Wt={sortColumn:{prop:"name",kind:"string"},$$slots:{default:[Nr]},$$scope:{ctx:r}};r[1]!==void 0&&(Wt.sortBy=r[1]),pe=new ze({props:Wt}),Se.push(()=>Ne(pe,"sortBy",Is));function Ns(f){r[8](f)}let Xt={sortColumn:{prop:"shardCount",kind:"number"},$$slots:{default:[Pr]},$$scope:{ctx:r}};r[1]!==void 0&&(Xt.sortBy=r[1]),he=new ze({props:Xt}),Se.push(()=>Ne(he,"sortBy",Ns));function Ps(f){r[9](f)}let xt={sortColumn:{prop:"fileCount",kind:"number"},$$slots:{default:[qr]},$$scope:{ctx:r}};r[1]!==void 0&&(xt.sortBy=r[1]),de=new ze({props:xt}),Se.push(()=>Ne(de,"sortBy",Ps));function qs(f){r[10](f)}let es={sortColumn:{prop:"indexBytes",kind:"number"},$$slots:{default:[Ar]},$$scope:{ctx:r}};r[1]!==void 0&&(es.sortBy=r[1]),me=new ze({props:es}),Se.push(()=>Ne(me,"sortBy",qs));function As(f){r[11](f)}let ts={sortColumn:{prop:"contentBytes",kind:"number"},$$slots:{default:[Lr]},$$scope:{ctx:r}};r[1]!==void 0&&(ts.sortBy=r[1]),ge=new ze({props:ts}),Se.push(()=>Ne(ge,"sortBy",As));function Ls(f){r[12](f)}let ss={sortColumn:{prop:"lastIndexed",kind:"string"},$$slots:{default:[Dr]},$$scope:{ctx:r}};r[1]!==void 0&&(ss.sortBy=r[1]),$e=new ze({props:ss}),Se.push(()=>Ne($e,"sortBy",Ls));function Ds(f){r[13](f)}let rs={sortColumn:{prop:"lastCommit",kind:"string"},$$slots:{default:[Or]},$$scope:{ctx:r}};r[1]!==void 0&&(rs.sortBy=r[1]),be=new ze({props:rs}),Se.push(()=>Ne(be,"sortBy",Ds));let Ue=dt(r[2]),j=[];for(let f=0;f<Ue.length;f+=1)j[f]=vs(ys(r,Ue,f));const Os=f=>P(j[f],1,1,()=>{j[f]=null});return{c(){e=g("h1"),t=g("span"),s=y("zoekt: "),o=y(n),l=w(),u=y(i),p=y(` /
1
+ import{g as Ms,L as Rs,T as Us,I as Bs}from"../chunks/loading-ellipsis.k3p6ijV8.js";import{p as ks,n as Ts}from"../chunks/stores.qqHx_u93.js";import{d as Hs}from"../chunks/index.XEtU8W2G.js";import{a7 as cs,n as qe,w as Se,e as g,l as w,t as y,c as $,a as k,o as S,b as v,d as c,p as Ft,f as m,i as H,g as a,y as _s,q as pt,a8 as zs,z as Ie,s as U,A as js,j as rt,a9 as Fs,h as je,G as ps,K as Cs,H as xe,a5 as ht,k as Vt,u as Qt,r as Yt,v as Gt,J as hs,m as Vs}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ae,i as Le,f as Ne,c as V,a as Q,m as Y,t as N,b as P,d as G,g as nt,e as lt}from"../chunks/index.CP0w37D5.js";import{d as Qs}from"../chunks/preferences.WetYOKHg.js";import{I as Ys,c as ds}from"../chunks/integer-input.fvZuttUG.js";import{e as dt}from"../chunks/each.oUkpMz5d.js";import{L as Zt}from"../chunks/link.czJPdQv3.js";import{g as Es,a as ws}from"../chunks/spread.rEx3vLA9.js";const Ss=Object.freeze({repos:100}),Jt=r=>{const e=Number.parseInt(r.get("repos")??"",10),t=r.get("q")||void 0,s=e>=0?e:Ss.repos;return{query:t,repos:s}},mt=Hs(ks,r=>Jt(r.url.searchParams));let ms=0;const jt=({query:r,repos:e,searchType:t})=>{const s=cs(Ts)?.to?.url??cs(ks).url,n=Jt(s.searchParams),o=r!==void 0&&(r||void 0)!==n.query,l=e!==void 0&&e>=0&&e!==n.repos;if(o||l){const i=Date.now(),u=new URL(s);o&&r?u.searchParams.set("q",r):o&&u.searchParams.delete("q"),l&&e===Ss.repos?u.searchParams.delete("repos"):l&&u.searchParams.set("repos",e.toString()),Ms(u,{replaceState:t==="live"&&i-ms<2e3,keepFocus:!0,noScroll:!0}),ms=i}},Gs=async({url:r,fetch:e})=>({listOutcome:await Zs(r,e)}),Zs=async(r,e)=>{const t=Jt(r.searchParams);try{return await(await e("/api/list",{method:"POST",body:JSON.stringify(t)})).json()}catch(s){return console.error("List repositories failed",s),{kind:"error",error:String(s)}}},Xr=Object.freeze(Object.defineProperty({__proto__:null,load:Gs},Symbol.toStringTag,{value:"Module"}));function Js(r){let e,t,s,n,o,l,i,u,p,_,T,C,d,b,M,q,B,W="repos",se,z,R,ne,re,x=(r[0]??"​")+"",le,O,fe,J;u=new Rs({}),d=new Us({});function ae(L){r[14](L)}let ue={id:"context",pending:r[4]};return r[2]!==void 0&&(ue.value=r[2]),z=new Ys({props:ue}),Se.push(()=>Ne(z,"value",ae)),z.$on("change",r[15]),{c(){e=g("form"),t=g("input"),s=w(),n=g("div"),o=g("label"),l=g("span"),i=y("query"),V(u.$$.fragment),p=w(),_=g("span"),T=g("input"),C=w(),V(d.$$.fragment),M=w(),q=g("label"),B=g("span"),B.textContent=W,se=w(),V(z.$$.fragment),ne=w(),re=g("div"),le=y(x),this.h()},l(L){e=$(L,"FORM",{});var D=k(e);t=$(D,"INPUT",{type:!0,class:!0}),s=S(D),n=$(D,"DIV",{class:!0});var I=k(n);o=$(I,"LABEL",{for:!0,class:!0});var E=k(o);l=$(E,"SPAN",{title:!0,class:!0});var ee=k(l);i=v(ee,"query"),Q(u.$$.fragment,ee),ee.forEach(c),p=S(E),_=$(E,"SPAN",{class:!0});var te=k(_);T=$(te,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),C=S(te),Q(d.$$.fragment,te),te.forEach(c),E.forEach(c),M=S(I),q=$(I,"LABEL",{for:!0,class:!0});var ce=k(q);B=$(ce,"SPAN",{class:!0,"data-svelte-h":!0}),Ft(B)!=="svelte-leid1k"&&(B.textContent=W),se=S(ce),Q(z.$$.fragment,ce),ce.forEach(c),I.forEach(c),ne=S(D),re=$(D,"DIV",{class:!0});var _e=k(re);le=v(_e,x),_e.forEach(c),D.forEach(c),this.h()},h(){m(t,"type","submit"),m(t,"class","hidden"),m(l,"title","Same query syntax as the main search - use `r:name` to filter repositories by name, otherwise you are filtering them by their content!"),m(l,"class","text-xs px-1 text-gray-500"),m(T,"id","query"),m(T,"type","search"),T.autofocus=!0,m(T,"spellcheck",!1),m(T,"autocorrect","off"),m(T,"autocapitalize","off"),m(T,"autocomplete","off"),m(T,"class","font-mono focus:outline-none flex-auto appearance-none"),m(_,"class",b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:r[0]!==null,pending:r[5]})}`),m(o,"for","query"),m(o,"class","flex-auto flex flex-col space-y-0.5"),m(B,"class","text-xs px-1 text-gray-500"),m(q,"for","repos"),m(q,"class","flex flex-col space-y-0.5"),m(n,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),m(re,"class","text-xs text-red-500")},m(L,D){H(L,e,D),a(e,t),a(e,s),a(e,n),a(n,o),a(o,l),a(l,i),Y(u,l,null),a(o,p),a(o,_),a(_,T),_s(T,r[1]),a(_,C),Y(d,_,null),a(n,M),a(n,q),a(q,B),a(q,se),Y(z,q,null),a(e,ne),a(e,re),a(re,le),O=!0,T.focus(),fe||(J=[pt(T,"input",r[12]),pt(T,"input",r[13]),pt(e,"submit",zs(r[16]))],fe=!0)},p(L,[D]){D&2&&T.value!==L[1]&&_s(T,L[1]),(!O||D&33&&b!==(b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:L[0]!==null,pending:L[5]})}`))&&m(_,"class",b);const I={};D&16&&(I.pending=L[4]),!R&&D&4&&(R=!0,I.value=L[2],Ie(()=>R=!1)),z.$set(I),(!O||D&1)&&x!==(x=(L[0]??"​")+"")&&U(le,x)},i(L){O||(N(u.$$.fragment,L),N(d.$$.fragment,L),N(z.$$.fragment,L),O=!0)},o(L){P(u.$$.fragment,L),P(d.$$.fragment,L),P(z.$$.fragment,L),O=!1},d(L){L&&c(e),G(u),G(d),G(z),fe=!1,js(J)}}}function Ks(r,e,t){let s,n,o,l,i;rt(r,mt,R=>t(10,o=R)),rt(r,Ts,R=>t(11,l=R));let{queryError:u}=e;const p=Qs();rt(r,p,R=>t(3,i=R));let _,T;const C=mt.subscribe(R=>{l?.type!=="goto"&&t(1,{query:_,repos:T}=R,_,t(2,T))});Fs(C);const d=()=>i==="live"&&(!_||_.length>=3),b=()=>{jt({query:_,repos:T,searchType:i})};let M;function q(){_=this.value,t(1,_)}const B=()=>{d()&&jt({query:_,searchType:i})};function W(R){T=R,t(2,T)}const se=R=>{d()&&jt({repos:R.detail,searchType:i})},z=()=>{b()};return r.$$set=R=>{"queryError"in R&&t(0,u=R.queryError)},r.$$.update=()=>{r.$$.dirty&520&&(i==="live"&&M==="manual"&&b(),t(9,M=i)),r.$$.dirty&3074&&t(5,s=l===null&&(o.query??"")!==(_??"")),r.$$.dirty&3076&&t(4,n=l===null&&o.repos!==T)},[u,_,T,i,n,s,p,d,b,M,o,l,q,B,W,se,z]}class Ws extends Ae{constructor(e){super(),Le(this,e,Ks,Js,qe,{queryError:0})}}const Xs=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],xs=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],er=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],tr=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],gs=(r,e,t)=>{let s=r;return typeof e=="string"||Array.isArray(e)?s=r.toLocaleString(e,t):(e===!0||t!==void 0)&&(s=r.toLocaleString(void 0,t)),s};function Pe(r,e){if(!Number.isFinite(r))throw new TypeError(`Expected a finite number, got ${typeof r}: ${r}`);e={bits:!1,binary:!1,space:!0,...e};const t=e.bits?e.binary?tr:er:e.binary?xs:Xs,s=e.space?" ":"";if(e.signed&&r===0)return` 0${s}${t[0]}`;const n=r<0,o=n?"-":e.signed?"+":"";n&&(r=-r);let l;if(e.minimumFractionDigits!==void 0&&(l={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(l={maximumFractionDigits:e.maximumFractionDigits,...l}),r<1){const _=gs(r,e.locale,l);return o+_+s+t[0]}const i=Math.min(Math.floor(e.binary?Math.log(r)/Math.log(1024):Math.log10(r)/3),t.length-1);r/=(e.binary?1024:1e3)**i,l||(r=r.toPrecision(3));const u=gs(Number(r),e.locale,l),p=t[i];return o+u+s+p}function sr(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},i:je,o:je,d(t){t&&c(e)}}}function rr(r){let e,t;return e=new Zt({props:{to:r[1],$$slots:{default:[nr]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&2&&(o.to=s[1]),n&5&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function nr(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},d(t){t&&c(e)}}}function lr(r){let e,t,s,n;const o=[rr,sr],l=[];function i(u,p){return u[1]?0:1}return t=i(r),s=l[t]=o[t](r),{c(){e=g("div"),s.c(),this.h()},l(u){e=$(u,"DIV",{class:!0});var p=k(e);s.l(p),p.forEach(c),this.h()},h(){m(e,"class","text-left")},m(u,p){H(u,e,p),l[t].m(e,null),n=!0},p(u,[p]){let _=t;t=i(u),t===_?l[t].p(u,p):(nt(),P(l[_],1,1,()=>{l[_]=null}),lt(),s=l[t],s?s.p(u,p):(s=l[t]=o[t](u),s.c()),N(s,1),s.m(e,null))},i(u){n||(N(s),n=!0)},o(u){P(s),n=!1},d(u){u&&c(e),l[t].d()}}}function or(r,e,t){let{name:s}=e,{url:n}=e;return r.$$set=o=>{"name"in o&&t(0,s=o.name),"url"in o&&t(1,n=o.url)},[s,n]}class ar extends Ae{constructor(e){super(),Le(this,e,or,lr,qe,{name:0,url:1})}}function $s(r,e,t){const s=r.slice();return s[3]=e[t].name,s[4]=e[t].version,s}function ir(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},i:je,o:je,d(s){s&&c(t)}}}function ur(r){let e,t;return e=new Zt({props:{to:r[1].replaceAll("{{.Version}}",r[4]),$$slots:{default:[fr]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&3&&(o.to=s[1].replaceAll("{{.Version}}",s[4])),n&129&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function fr(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},d(s){s&&c(t)}}}function bs(r){let e=r[3]+"",t,s,n,o,l,i,u;const p=[ur,ir],_=[];function T(C,d){return C[1]?0:1}return o=T(r),l=_[o]=p[o](r),{c(){t=y(e),s=y("@"),n=g("span"),l.c(),i=w(),this.h()},l(C){t=v(C,e),s=v(C,"@"),n=$(C,"SPAN",{class:!0});var d=k(n);l.l(d),i=S(d),d.forEach(c),this.h()},h(){m(n,"class","font-mono")},m(C,d){H(C,t,d),H(C,s,d),H(C,n,d),_[o].m(n,null),a(n,i),u=!0},p(C,d){(!u||d&1)&&e!==(e=C[3]+"")&&U(t,e);let b=o;o=T(C),o===b?_[o].p(C,d):(nt(),P(_[b],1,1,()=>{_[b]=null}),lt(),l=_[o],l?l.p(C,d):(l=_[o]=p[o](C),l.c()),N(l,1),l.m(n,i))},i(C){u||(N(l),u=!0)},o(C){P(l),u=!1},d(C){C&&(c(t),c(s),c(n)),_[o].d()}}}function cr(r){let e,t,s=dt(r[0]),n=[];for(let l=0;l<s.length;l+=1)n[l]=bs($s(r,s,l));const o=l=>P(n[l],1,1,()=>{n[l]=null});return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ps()},l(l){for(let i=0;i<n.length;i+=1)n[i].l(l);e=ps()},m(l,i){for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(l,i);H(l,e,i),t=!0},p(l,[i]){if(i&7){s=dt(l[0]);let u;for(u=0;u<s.length;u+=1){const p=$s(l,s,u);n[u]?(n[u].p(p,i),N(n[u],1)):(n[u]=bs(p),n[u].c(),N(n[u],1),n[u].m(e.parentNode,e))}for(nt(),u=s.length;u<n.length;u+=1)o(u);lt()}},i(l){if(!t){for(let i=0;i<s.length;i+=1)N(n[i]);t=!0}},o(l){n=n.filter(Boolean);for(let i=0;i<n.length;i+=1)P(n[i]);t=!1},d(l){l&&c(e),Cs(n,l)}}}function _r(r,e,t){let{branches:s}=e,{commitUrlTemplate:n}=e;const o=l=>/^[a-z0-9]{40}$/.test(l)?l.slice(0,8):l;return r.$$set=l=>{"branches"in l&&t(0,s=l.branches),"commitUrlTemplate"in l&&t(1,n=l.commitUrlTemplate)},[s,n,o]}class pr extends Ae{constructor(e){super(),Le(this,e,_r,cr,qe,{branches:0,commitUrlTemplate:1})}}function hr(r){let e;const t=r[2].default,s=Vt(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Qt(s,t,n,n[3],e?Gt(t,n[3],o,null):Yt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function dr(r){let e,t;const s=[{name:"chevron-up"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[hr]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function mr(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m18 15-6-6-6 6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class gr extends Ae{constructor(e){super(),Le(this,e,mr,dr,qe,{})}}function $r(r){let e;const t=r[2].default,s=Vt(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Qt(s,t,n,n[3],e?Gt(t,n[3],o,null):Yt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function br(r){let e,t;const s=[{name:"chevron-down"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[$r]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function yr(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m6 9 6 6 6-6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class vr extends Ae{constructor(e){super(),Le(this,e,yr,br,qe,{})}}const Br=(r,e)=>r?.prop===e.prop?r.direction==="ascending"?{...e,direction:"descending"}:null:{...e,direction:"ascending"},kr=({prop:r,kind:e,direction:t})=>{if(e==="number"&&t==="ascending")return({[r]:s},{[r]:n})=>s-n;if(e==="number"&&t==="descending")return({[r]:s},{[r]:n})=>n-s;if(e==="string"&&t==="ascending")return({[r]:s},{[r]:n})=>s<n?-1:s>n?1:0;if(e==="string"&&t==="descending")return({[r]:s},{[r]:n})=>n<s?-1:n>s?1:0};function Tr(r){let e,t;return e=new vr({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Cr(r){let e,t;return e=new gr({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Er(r){let e;return{c(){e=g("div"),this.h()},l(t){e=$(t,"DIV",{class:!0}),k(e).forEach(c),this.h()},h(){m(e,"class","flex-none w-4 h-4")},m(t,s){H(t,e,s)},i:je,o:je,d(t){t&&c(e)}}}function wr(r){let e,t,s,n,o,l,i,u;const p=[Er,Cr,Tr],_=[];function T(b,M){return b[0]===null||b[0].prop!==b[1].prop?0:b[0].direction==="ascending"?1:2}t=T(r),s=_[t]=p[t](r);const C=r[3].default,d=Vt(C,r,r[2],null);return{c(){e=g("button"),s.c(),n=w(),o=g("span"),d&&d.c(),this.h()},l(b){e=$(b,"BUTTON",{class:!0});var M=k(e);s.l(M),n=S(M),o=$(M,"SPAN",{});var q=k(o);d&&d.l(q),q.forEach(c),M.forEach(c),this.h()},h(){m(e,"class","w-full h-full flex justify-center items-center hover:bg-slate-200")},m(b,M){H(b,e,M),_[t].m(e,null),a(e,n),a(e,o),d&&d.m(o,null),l=!0,i||(u=pt(e,"click",r[4]),i=!0)},p(b,[M]){let q=t;t=T(b),t!==q&&(nt(),P(_[q],1,1,()=>{_[q]=null}),lt(),s=_[t],s||(s=_[t]=p[t](b),s.c()),N(s,1),s.m(e,n)),d&&d.p&&(!l||M&4)&&Qt(d,C,b,b[2],l?Gt(C,b[2],M,null):Yt(b[2]),null)},i(b){l||(N(s),N(d,b),l=!0)},o(b){P(s),P(d,b),l=!1},d(b){b&&c(e),_[t].d(),d&&d.d(b),i=!1,u()}}}function Sr(r,e,t){let{$$slots:s={},$$scope:n}=e,{sortColumn:o}=e,{sortBy:l}=e;const i=()=>{t(0,l=Br(l,o))};return r.$$set=u=>{"sortColumn"in u&&t(1,o=u.sortColumn),"sortBy"in u&&t(0,l=u.sortBy),"$$scope"in u&&t(2,n=u.$$scope)},[l,o,n,s,i]}class ze extends Ae{constructor(e){super(),Le(this,e,Sr,wr,qe,{sortColumn:1,sortBy:0})}}function ys(r,e,t){const s=r.slice();return s[14]=e[t].name,s[15]=e[t].url,s[16]=e[t].branches,s[17]=e[t].commitUrlTemplate,s[18]=e[t].shardCount,s[19]=e[t].fileCount,s[20]=e[t].indexBytes,s[21]=e[t].contentBytes,s[22]=e[t].lastIndexed,s[23]=e[t].lastCommit,s}function Ir(r){let e;return{c(){e=y("shard files")},l(t){e=v(t,"shard files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Nr(r){let e,t="Repository";return{c(){e=g("div"),e.textContent=t},l(s){e=$(s,"DIV",{"data-svelte-h":!0}),Ft(e)!=="svelte-1kv5i5g"&&(e.textContent=t)},m(s,n){H(s,e,n)},p:je,d(s){s&&c(e)}}}function Pr(r){let e;return{c(){e=y("Shard count")},l(t){e=v(t,"Shard count")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function qr(r){let e;return{c(){e=y("Contained files")},l(t){e=v(t,"Contained files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Ar(r){let e;return{c(){e=y("Index size in RAM")},l(t){e=v(t,"Index size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Lr(r){let e;return{c(){e=y("Content size in RAM")},l(t){e=v(t,"Content size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Dr(r){let e;return{c(){e=y("Last indexed")},l(t){e=v(t,"Last indexed")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Or(r){let e;return{c(){e=y("Last commit")},l(t){e=v(t,"Last commit")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function vs(r){let e,t,s,n,o,l,i,u,p=r[18]+"",_,T,C,d=r[19]+"",b,M,q,B=Pe(r[20],{space:!1,binary:!0})+"",W,se,z,R=Pe(r[21],{space:!1,binary:!0})+"",ne,re,x,le=r[22]+"",O,fe,J,ae=r[23]+"",ue,L,D;return s=new ar({props:{name:r[14],url:r[15]}}),l=new pr({props:{branches:r[16],commitUrlTemplate:r[17]}}),{c(){e=g("tr"),t=g("td"),V(s.$$.fragment),n=w(),o=g("td"),V(l.$$.fragment),i=w(),u=g("td"),_=y(p),T=w(),C=g("td"),b=y(d),M=w(),q=g("td"),W=y(B),se=w(),z=g("td"),ne=y(R),re=w(),x=g("td"),O=y(le),fe=w(),J=g("td"),ue=y(ae),L=w(),this.h()},l(I){e=$(I,"TR",{class:!0});var E=k(e);t=$(E,"TD",{class:!0});var ee=k(t);Q(s.$$.fragment,ee),ee.forEach(c),n=S(E),o=$(E,"TD",{class:!0});var te=k(o);Q(l.$$.fragment,te),te.forEach(c),i=S(E),u=$(E,"TD",{class:!0});var ce=k(u);_=v(ce,p),ce.forEach(c),T=S(E),C=$(E,"TD",{class:!0});var _e=k(C);b=v(_e,d),_e.forEach(c),M=S(E),q=$(E,"TD",{class:!0});var De=k(q);W=v(De,B),De.forEach(c),se=S(E),z=$(E,"TD",{class:!0});var Fe=k(z);ne=v(Fe,R),Fe.forEach(c),re=S(E),x=$(E,"TD",{class:!0});var ye=k(x);O=v(ye,le),ye.forEach(c),fe=S(E),J=$(E,"TD",{class:!0});var Oe=k(J);ue=v(Oe,ae),Oe.forEach(c),L=S(E),E.forEach(c),this.h()},h(){m(t,"class","p-1 border-x"),m(o,"class","p-1 border-x"),m(u,"class","p-1 border-x text-right"),m(C,"class","p-1 border-x text-right"),m(q,"class","p-1 border-x text-right"),m(z,"class","p-1 border-x text-right"),m(x,"class","p-1 border-x"),m(J,"class","p-1 border-x"),m(e,"class","border")},m(I,E){H(I,e,E),a(e,t),Y(s,t,null),a(e,n),a(e,o),Y(l,o,null),a(e,i),a(e,u),a(u,_),a(e,T),a(e,C),a(C,b),a(e,M),a(e,q),a(q,W),a(e,se),a(e,z),a(z,ne),a(e,re),a(e,x),a(x,O),a(e,fe),a(e,J),a(J,ue),a(e,L),D=!0},p(I,E){const ee={};E&4&&(ee.name=I[14]),E&4&&(ee.url=I[15]),s.$set(ee);const te={};E&4&&(te.branches=I[16]),E&4&&(te.commitUrlTemplate=I[17]),l.$set(te),(!D||E&4)&&p!==(p=I[18]+"")&&U(_,p),(!D||E&4)&&d!==(d=I[19]+"")&&U(b,d),(!D||E&4)&&B!==(B=Pe(I[20],{space:!1,binary:!0})+"")&&U(W,B),(!D||E&4)&&R!==(R=Pe(I[21],{space:!1,binary:!0})+"")&&U(ne,R),(!D||E&4)&&le!==(le=I[22]+"")&&U(O,le),(!D||E&4)&&ae!==(ae=I[23]+"")&&U(ue,ae)},i(I){D||(N(s.$$.fragment,I),N(l.$$.fragment,I),D=!0)},o(I){P(s.$$.fragment,I),P(l.$$.fragment,I),D=!1},d(I){I&&c(e),G(s),G(l)}}}function Mr(r){let e,t,s,n=r[0].repositories.length+"",o,l,i=r[0].repositories.length===1?"repository":"repositories",u,p,_=r[0].stats.shardCount+"",T,C,d=r[0].stats.shardCount===1?"shard":"shards",b,M,q=r[0].stats.fileCount+"",B,W,se=r[0].stats.fileCount===1?"file":"files",z,R,ne=Pe(r[0].stats.indexBytes+r[0].stats.contentBytes,{space:!1,binary:!0})+"",re,x,le,O,fe,J,ae=r[2].length+"",ue,L,D=r[2].length===1?"repository":"repositories",I,E,ee=r[4].shardCount+"",te,ce,_e=r[4].shardCount===1?"shard":"shards",De,Fe,ye=r[4].fileCount+"",Oe,gt,et=r[4].fileCount===1?"file":"files",ot,$t,tt=Pe(r[4].indexBytes+r[4].contentBytes,{space:!1,binary:!0})+"",at,bt,it,Me,ve,Be,ie,ut,yt,ft,vt,ke,Bt,Te,kt,ct,Tt,_t,Ct,Z,Ve,pe,Et,wt,Re,Kt="Branches",St,Qe,he,It,Nt,Ye,de,Pt,qt,Ge,me,At,Lt,Ze,ge,Dt,Ot,Je,$e,Mt,Rt,Ke,be,Ut,Ht,We,K;Te=new Zt({props:{to:"/about#repository-stats",$$slots:{default:[Ir]},$$scope:{ctx:r}}});function Is(f){r[7](f)}let Wt={sortColumn:{prop:"name",kind:"string"},$$slots:{default:[Nr]},$$scope:{ctx:r}};r[1]!==void 0&&(Wt.sortBy=r[1]),pe=new ze({props:Wt}),Se.push(()=>Ne(pe,"sortBy",Is));function Ns(f){r[8](f)}let Xt={sortColumn:{prop:"shardCount",kind:"number"},$$slots:{default:[Pr]},$$scope:{ctx:r}};r[1]!==void 0&&(Xt.sortBy=r[1]),he=new ze({props:Xt}),Se.push(()=>Ne(he,"sortBy",Ns));function Ps(f){r[9](f)}let xt={sortColumn:{prop:"fileCount",kind:"number"},$$slots:{default:[qr]},$$scope:{ctx:r}};r[1]!==void 0&&(xt.sortBy=r[1]),de=new ze({props:xt}),Se.push(()=>Ne(de,"sortBy",Ps));function qs(f){r[10](f)}let es={sortColumn:{prop:"indexBytes",kind:"number"},$$slots:{default:[Ar]},$$scope:{ctx:r}};r[1]!==void 0&&(es.sortBy=r[1]),me=new ze({props:es}),Se.push(()=>Ne(me,"sortBy",qs));function As(f){r[11](f)}let ts={sortColumn:{prop:"contentBytes",kind:"number"},$$slots:{default:[Lr]},$$scope:{ctx:r}};r[1]!==void 0&&(ts.sortBy=r[1]),ge=new ze({props:ts}),Se.push(()=>Ne(ge,"sortBy",As));function Ls(f){r[12](f)}let ss={sortColumn:{prop:"lastIndexed",kind:"string"},$$slots:{default:[Dr]},$$scope:{ctx:r}};r[1]!==void 0&&(ss.sortBy=r[1]),$e=new ze({props:ss}),Se.push(()=>Ne($e,"sortBy",Ls));function Ds(f){r[13](f)}let rs={sortColumn:{prop:"lastCommit",kind:"string"},$$slots:{default:[Or]},$$scope:{ctx:r}};r[1]!==void 0&&(rs.sortBy=r[1]),be=new ze({props:rs}),Se.push(()=>Ne(be,"sortBy",Ds));let Ue=dt(r[2]),j=[];for(let f=0;f<Ue.length;f+=1)j[f]=vs(ys(r,Ue,f));const Os=f=>P(j[f],1,1,()=>{j[f]=null});return{c(){e=g("h1"),t=g("span"),s=y("zoekt: "),o=y(n),l=w(),u=y(i),p=y(` /
2
2
  `),T=y(_),C=w(),b=y(d),M=y(` /
3
3
  `),B=y(q),W=w(),z=y(se),R=y(` /
4
4
  `),re=y(ne),x=y(" RAM"),le=w(),O=g("span"),fe=y("neogrok: "),J=g("span"),ue=y(ae),L=w(),I=y(D),E=y(`
@@ -12,4 +12,4 @@ import{I as Bs,g as Ms,L as Rs,T as Us}from"../chunks/loading-ellipsis.EfcHtv03.
12
12
  /
13
13
  `),te=v(X,ee),ce=S(X),De=v(X,_e),Fe=v(X,` /
14
14
  `),Oe=v(X,ye),gt=S(X),ot=v(X,et),$t=v(X,` /
15
- `),at=v(X,tt),bt=v(X," RAM"),X.forEach(c),h.forEach(c),it=S(f),Me=$(f,"DIV",{class:!0});var Xe=k(Me);ve=$(Xe,"TABLE",{class:!0});var Ee=k(ve);Be=$(Ee,"THEAD",{class:!0});var we=k(Be);ie=$(we,"TR",{});var oe=k(ie);ut=$(oe,"TH",{}),k(ut).forEach(c),yt=S(oe),ft=$(oe,"TH",{}),k(ft).forEach(c),vt=S(oe),ke=$(oe,"TH",{class:!0,colspan:!0});var He=k(ke);Bt=v(He,"Index "),Q(Te.$$.fragment,He),He.forEach(c),kt=S(oe),ct=$(oe,"TH",{}),k(ct).forEach(c),Tt=S(oe),_t=$(oe,"TH",{}),k(_t).forEach(c),oe.forEach(c),Ct=S(we),Z=$(we,"TR",{class:!0});var A=k(Z);Ve=$(A,"TH",{class:!0});var st=k(Ve);Q(pe.$$.fragment,st),st.forEach(c),wt=S(A),Re=$(A,"TH",{class:!0,"data-svelte-h":!0}),Gt(Re)!=="svelte-jnqu93"&&(Re.textContent=Kt),St=S(A),Qe=$(A,"TH",{class:!0});var ns=k(Qe);Q(he.$$.fragment,ns),ns.forEach(c),Nt=S(A),Ye=$(A,"TH",{class:!0});var ls=k(Ye);Q(de.$$.fragment,ls),ls.forEach(c),qt=S(A),Ge=$(A,"TH",{class:!0});var os=k(Ge);Q(me.$$.fragment,os),os.forEach(c),Lt=S(A),Ze=$(A,"TH",{class:!0});var as=k(Ze);Q(ge.$$.fragment,as),as.forEach(c),Ot=S(A),Je=$(A,"TH",{class:!0});var is=k(Je);Q($e.$$.fragment,is),is.forEach(c),Rt=S(A),Ke=$(A,"TH",{class:!0});var us=k(Ke);Q(be.$$.fragment,us),us.forEach(c),A.forEach(c),we.forEach(c),Ht=S(Ee),We=$(Ee,"TBODY",{});var fs=k(We);for(let zt=0;zt<j.length;zt+=1)j[zt].l(fs);fs.forEach(c),Ee.forEach(c),Xe.forEach(c),this.h()},h(){hs(J,"text-yellow-700",r[3]),m(O,"class","ml-auto"),m(e,"class","text-xs flex flex-wrap py-1"),m(ke,"class","p-1 border-x"),m(ke,"colspan","4"),m(Ve,"class","p-1"),m(Re,"class","p-1"),m(Qe,"class","p-1 border-l"),m(Ye,"class","p-1"),m(Ge,"class","p-1"),m(Ze,"class","p-1 border-r"),m(Je,"class","p-1"),m(Ke,"class","p-1"),m(Z,"class","h-full"),m(Be,"class","border bg-slate-100"),m(ve,"class","border-collapse text-sm w-full text-center h-fit"),m(Me,"class","overflow-x-auto")},m(f,h){H(f,e,h),a(e,t),a(t,s),a(t,o),a(t,l),a(t,u),a(t,p),a(t,T),a(t,C),a(t,b),a(t,M),a(t,B),a(t,W),a(t,z),a(t,R),a(t,re),a(t,x),a(e,le),a(e,O),a(O,fe),a(O,J),a(J,ue),a(J,L),a(J,I),a(O,E),a(O,te),a(O,ce),a(O,De),a(O,Fe),a(O,Oe),a(O,gt),a(O,ot),a(O,$t),a(O,at),a(O,bt),H(f,it,h),H(f,Me,h),a(Me,ve),a(ve,Be),a(Be,ie),a(ie,ut),a(ie,yt),a(ie,ft),a(ie,vt),a(ie,ke),a(ke,Bt),Y(Te,ke,null),a(ie,kt),a(ie,ct),a(ie,Tt),a(ie,_t),a(Be,Ct),a(Be,Z),a(Z,Ve),Y(pe,Ve,null),a(Z,wt),a(Z,Re),a(Z,St),a(Z,Qe),Y(he,Qe,null),a(Z,Nt),a(Z,Ye),Y(de,Ye,null),a(Z,qt),a(Z,Ge),Y(me,Ge,null),a(Z,Lt),a(Z,Ze),Y(ge,Ze,null),a(Z,Ot),a(Z,Je),Y($e,Je,null),a(Z,Rt),a(Z,Ke),Y(be,Ke,null),a(ve,Ht),a(ve,We);for(let F=0;F<j.length;F+=1)j[F]&&j[F].m(We,null);K=!0},p(f,[h]){(!K||h&1)&&n!==(n=f[0].repositories.length+"")&&U(o,n),(!K||h&1)&&i!==(i=f[0].repositories.length===1?"repository":"repositories")&&U(u,i),(!K||h&1)&&_!==(_=f[0].stats.shardCount+"")&&U(T,_),(!K||h&1)&&d!==(d=f[0].stats.shardCount===1?"shard":"shards")&&U(b,d),(!K||h&1)&&q!==(q=f[0].stats.fileCount+"")&&U(B,q),(!K||h&1)&&se!==(se=f[0].stats.fileCount===1?"file":"files")&&U(z,se),(!K||h&1)&&ne!==(ne=Pe(f[0].stats.indexBytes+f[0].stats.contentBytes,{space:!1,binary:!0})+"")&&U(re,ne),(!K||h&4)&&ae!==(ae=f[2].length+"")&&U(ue,ae),(!K||h&4)&&D!==(D=f[2].length===1?"repository":"repositories")&&U(I,D),(!K||h&8)&&hs(J,"text-yellow-700",f[3]),(!K||h&16)&&ee!==(ee=f[4].shardCount+"")&&U(te,ee),(!K||h&16)&&_e!==(_e=f[4].shardCount===1?"shard":"shards")&&U(De,_e),(!K||h&16)&&ye!==(ye=f[4].fileCount+"")&&U(Oe,ye),(!K||h&16)&&et!==(et=f[4].fileCount===1?"file":"files")&&U(ot,et),(!K||h&16)&&tt!==(tt=Pe(f[4].indexBytes+f[4].contentBytes,{space:!1,binary:!0})+"")&&U(at,tt);const F={};h&67108864&&(F.$$scope={dirty:h,ctx:f}),Te.$set(F);const X={};h&67108864&&(X.$$scope={dirty:h,ctx:f}),!Et&&h&2&&(Et=!0,X.sortBy=f[1],Ie(()=>Et=!1)),pe.$set(X);const Ce={};h&67108864&&(Ce.$$scope={dirty:h,ctx:f}),!It&&h&2&&(It=!0,Ce.sortBy=f[1],Ie(()=>It=!1)),he.$set(Ce);const Xe={};h&67108864&&(Xe.$$scope={dirty:h,ctx:f}),!Pt&&h&2&&(Pt=!0,Xe.sortBy=f[1],Ie(()=>Pt=!1)),de.$set(Xe);const Ee={};h&67108864&&(Ee.$$scope={dirty:h,ctx:f}),!At&&h&2&&(At=!0,Ee.sortBy=f[1],Ie(()=>At=!1)),me.$set(Ee);const we={};h&67108864&&(we.$$scope={dirty:h,ctx:f}),!Dt&&h&2&&(Dt=!0,we.sortBy=f[1],Ie(()=>Dt=!1)),ge.$set(we);const oe={};h&67108864&&(oe.$$scope={dirty:h,ctx:f}),!Mt&&h&2&&(Mt=!0,oe.sortBy=f[1],Ie(()=>Mt=!1)),$e.$set(oe);const He={};if(h&67108864&&(He.$$scope={dirty:h,ctx:f}),!Ut&&h&2&&(Ut=!0,He.sortBy=f[1],Ie(()=>Ut=!1)),be.$set(He),h&4){Ue=dt(f[2]);let A;for(A=0;A<Ue.length;A+=1){const st=ys(f,Ue,A);j[A]?(j[A].p(st,h),N(j[A],1)):(j[A]=vs(st),j[A].c(),N(j[A],1),j[A].m(We,null))}for(nt(),A=Ue.length;A<j.length;A+=1)Os(A);lt()}},i(f){if(!K){N(Te.$$.fragment,f),N(pe.$$.fragment,f),N(he.$$.fragment,f),N(de.$$.fragment,f),N(me.$$.fragment,f),N(ge.$$.fragment,f),N($e.$$.fragment,f),N(be.$$.fragment,f);for(let h=0;h<Ue.length;h+=1)N(j[h]);K=!0}},o(f){P(Te.$$.fragment,f),P(pe.$$.fragment,f),P(he.$$.fragment,f),P(de.$$.fragment,f),P(me.$$.fragment,f),P(ge.$$.fragment,f),P($e.$$.fragment,f),P(be.$$.fragment,f),j=j.filter(Boolean);for(let h=0;h<j.length;h+=1)P(j[h]);K=!1},d(f){f&&(c(e),c(it),c(Me)),G(Te),G(pe),G(he),G(de),G(me),G(ge),G($e),G(be),Cs(j,f)}}}function Rr(r,e,t){let s,n,o,l,i;rt(r,mt,B=>t(6,i=B));let{results:u}=e,p=null;function _(B){p=B,t(1,p)}function T(B){p=B,t(1,p)}function C(B){p=B,t(1,p)}function d(B){p=B,t(1,p)}function b(B){p=B,t(1,p)}function M(B){p=B,t(1,p)}function q(B){p=B,t(1,p)}return r.$$set=B=>{"results"in B&&t(0,u=B.results)},r.$$.update=()=>{r.$$.dirty&3&&t(5,s=p===null?u.repositories:Array.from(u.repositories).sort(kr(p))),r.$$.dirty&96&&t(2,n=s.slice(0,i.repos)),r.$$.dirty&65&&t(3,o=u.repositories.length>i.repos),r.$$.dirty&13&&t(4,l=o?n.reduce((B,W)=>(B.shardCount+=W.shardCount,B.fileCount+=W.fileCount,B.indexBytes+=W.indexBytes,B.contentBytes+=W.contentBytes,B),{shardCount:0,fileCount:0,indexBytes:0,contentBytes:0}):u.stats)},[u,p,n,o,l,s,i,_,T,C,d,b,M,q]}class Ur extends Ae{constructor(e){super(),Le(this,e,Rr,Mr,qe,{results:0})}}function Hr(r){let e,t,s,n,o,l;return document.title=e=(r[2].query?`${r[2].query} - `:"")+"neogrok/repositories",s=new lr({props:{queryError:r[0].listOutcome.kind==="error"?r[0].listOutcome.error:null}}),o=new Ur({props:{results:r[0].listOutcome.kind==="success"?r[0].listOutcome.results:r[1]??{repositories:[],stats:{shardCount:0,fileCount:0,contentBytes:0,indexBytes:0}}}}),{c(){t=w(),V(s.$$.fragment),n=w(),V(o.$$.fragment)},l(i){Vs("svelte-1isq039",document.head).forEach(c),t=S(i),Q(s.$$.fragment,i),n=S(i),Q(o.$$.fragment,i)},m(i,u){H(i,t,u),Y(s,i,u),H(i,n,u),Y(o,i,u),l=!0},p(i,[u]){(!l||u&4)&&e!==(e=(i[2].query?`${i[2].query} - `:"")+"neogrok/repositories")&&(document.title=e);const p={};u&1&&(p.queryError=i[0].listOutcome.kind==="error"?i[0].listOutcome.error:null),s.$set(p);const _={};u&3&&(_.results=i[0].listOutcome.kind==="success"?i[0].listOutcome.results:i[1]??{repositories:[],stats:{shardCount:0,fileCount:0,contentBytes:0,indexBytes:0}}),o.$set(_)},i(i){l||(N(s.$$.fragment,i),N(o.$$.fragment,i),l=!0)},o(i){P(s.$$.fragment,i),P(o.$$.fragment,i),l=!1},d(i){i&&(c(t),c(n)),G(s,i),G(o,i)}}}function zr(r,e,t){let s;rt(r,mt,l=>t(2,s=l));let{data:n}=e,o=null;return r.$$set=l=>{"data"in l&&t(0,n=l.data)},r.$$.update=()=>{r.$$.dirty&1&&n.listOutcome.kind==="success"&&t(1,o=n.listOutcome.results)},[n,o,s]}class xr extends Ae{constructor(e){super(),Le(this,e,zr,Hr,qe,{data:0})}}export{xr as component,Xr as universal};
15
+ `),at=v(X,tt),bt=v(X," RAM"),X.forEach(c),h.forEach(c),it=S(f),Me=$(f,"DIV",{class:!0});var Xe=k(Me);ve=$(Xe,"TABLE",{class:!0});var Ee=k(ve);Be=$(Ee,"THEAD",{class:!0});var we=k(Be);ie=$(we,"TR",{});var oe=k(ie);ut=$(oe,"TH",{}),k(ut).forEach(c),yt=S(oe),ft=$(oe,"TH",{}),k(ft).forEach(c),vt=S(oe),ke=$(oe,"TH",{class:!0,colspan:!0});var He=k(ke);Bt=v(He,"Index "),Q(Te.$$.fragment,He),He.forEach(c),kt=S(oe),ct=$(oe,"TH",{}),k(ct).forEach(c),Tt=S(oe),_t=$(oe,"TH",{}),k(_t).forEach(c),oe.forEach(c),Ct=S(we),Z=$(we,"TR",{class:!0});var A=k(Z);Ve=$(A,"TH",{class:!0});var st=k(Ve);Q(pe.$$.fragment,st),st.forEach(c),wt=S(A),Re=$(A,"TH",{class:!0,"data-svelte-h":!0}),Ft(Re)!=="svelte-jnqu93"&&(Re.textContent=Kt),St=S(A),Qe=$(A,"TH",{class:!0});var ns=k(Qe);Q(he.$$.fragment,ns),ns.forEach(c),Nt=S(A),Ye=$(A,"TH",{class:!0});var ls=k(Ye);Q(de.$$.fragment,ls),ls.forEach(c),qt=S(A),Ge=$(A,"TH",{class:!0});var os=k(Ge);Q(me.$$.fragment,os),os.forEach(c),Lt=S(A),Ze=$(A,"TH",{class:!0});var as=k(Ze);Q(ge.$$.fragment,as),as.forEach(c),Ot=S(A),Je=$(A,"TH",{class:!0});var is=k(Je);Q($e.$$.fragment,is),is.forEach(c),Rt=S(A),Ke=$(A,"TH",{class:!0});var us=k(Ke);Q(be.$$.fragment,us),us.forEach(c),A.forEach(c),we.forEach(c),Ht=S(Ee),We=$(Ee,"TBODY",{});var fs=k(We);for(let zt=0;zt<j.length;zt+=1)j[zt].l(fs);fs.forEach(c),Ee.forEach(c),Xe.forEach(c),this.h()},h(){hs(J,"text-yellow-700",r[3]),m(O,"class","ml-auto"),m(e,"class","text-xs flex flex-wrap py-1"),m(ke,"class","p-1 border-x"),m(ke,"colspan","4"),m(Ve,"class","p-1"),m(Re,"class","p-1"),m(Qe,"class","p-1 border-l"),m(Ye,"class","p-1"),m(Ge,"class","p-1"),m(Ze,"class","p-1 border-r"),m(Je,"class","p-1"),m(Ke,"class","p-1"),m(Z,"class","h-full"),m(Be,"class","border bg-slate-100"),m(ve,"class","border-collapse text-sm w-full text-center h-fit"),m(Me,"class","overflow-x-auto")},m(f,h){H(f,e,h),a(e,t),a(t,s),a(t,o),a(t,l),a(t,u),a(t,p),a(t,T),a(t,C),a(t,b),a(t,M),a(t,B),a(t,W),a(t,z),a(t,R),a(t,re),a(t,x),a(e,le),a(e,O),a(O,fe),a(O,J),a(J,ue),a(J,L),a(J,I),a(O,E),a(O,te),a(O,ce),a(O,De),a(O,Fe),a(O,Oe),a(O,gt),a(O,ot),a(O,$t),a(O,at),a(O,bt),H(f,it,h),H(f,Me,h),a(Me,ve),a(ve,Be),a(Be,ie),a(ie,ut),a(ie,yt),a(ie,ft),a(ie,vt),a(ie,ke),a(ke,Bt),Y(Te,ke,null),a(ie,kt),a(ie,ct),a(ie,Tt),a(ie,_t),a(Be,Ct),a(Be,Z),a(Z,Ve),Y(pe,Ve,null),a(Z,wt),a(Z,Re),a(Z,St),a(Z,Qe),Y(he,Qe,null),a(Z,Nt),a(Z,Ye),Y(de,Ye,null),a(Z,qt),a(Z,Ge),Y(me,Ge,null),a(Z,Lt),a(Z,Ze),Y(ge,Ze,null),a(Z,Ot),a(Z,Je),Y($e,Je,null),a(Z,Rt),a(Z,Ke),Y(be,Ke,null),a(ve,Ht),a(ve,We);for(let F=0;F<j.length;F+=1)j[F]&&j[F].m(We,null);K=!0},p(f,[h]){(!K||h&1)&&n!==(n=f[0].repositories.length+"")&&U(o,n),(!K||h&1)&&i!==(i=f[0].repositories.length===1?"repository":"repositories")&&U(u,i),(!K||h&1)&&_!==(_=f[0].stats.shardCount+"")&&U(T,_),(!K||h&1)&&d!==(d=f[0].stats.shardCount===1?"shard":"shards")&&U(b,d),(!K||h&1)&&q!==(q=f[0].stats.fileCount+"")&&U(B,q),(!K||h&1)&&se!==(se=f[0].stats.fileCount===1?"file":"files")&&U(z,se),(!K||h&1)&&ne!==(ne=Pe(f[0].stats.indexBytes+f[0].stats.contentBytes,{space:!1,binary:!0})+"")&&U(re,ne),(!K||h&4)&&ae!==(ae=f[2].length+"")&&U(ue,ae),(!K||h&4)&&D!==(D=f[2].length===1?"repository":"repositories")&&U(I,D),(!K||h&8)&&hs(J,"text-yellow-700",f[3]),(!K||h&16)&&ee!==(ee=f[4].shardCount+"")&&U(te,ee),(!K||h&16)&&_e!==(_e=f[4].shardCount===1?"shard":"shards")&&U(De,_e),(!K||h&16)&&ye!==(ye=f[4].fileCount+"")&&U(Oe,ye),(!K||h&16)&&et!==(et=f[4].fileCount===1?"file":"files")&&U(ot,et),(!K||h&16)&&tt!==(tt=Pe(f[4].indexBytes+f[4].contentBytes,{space:!1,binary:!0})+"")&&U(at,tt);const F={};h&67108864&&(F.$$scope={dirty:h,ctx:f}),Te.$set(F);const X={};h&67108864&&(X.$$scope={dirty:h,ctx:f}),!Et&&h&2&&(Et=!0,X.sortBy=f[1],Ie(()=>Et=!1)),pe.$set(X);const Ce={};h&67108864&&(Ce.$$scope={dirty:h,ctx:f}),!It&&h&2&&(It=!0,Ce.sortBy=f[1],Ie(()=>It=!1)),he.$set(Ce);const Xe={};h&67108864&&(Xe.$$scope={dirty:h,ctx:f}),!Pt&&h&2&&(Pt=!0,Xe.sortBy=f[1],Ie(()=>Pt=!1)),de.$set(Xe);const Ee={};h&67108864&&(Ee.$$scope={dirty:h,ctx:f}),!At&&h&2&&(At=!0,Ee.sortBy=f[1],Ie(()=>At=!1)),me.$set(Ee);const we={};h&67108864&&(we.$$scope={dirty:h,ctx:f}),!Dt&&h&2&&(Dt=!0,we.sortBy=f[1],Ie(()=>Dt=!1)),ge.$set(we);const oe={};h&67108864&&(oe.$$scope={dirty:h,ctx:f}),!Mt&&h&2&&(Mt=!0,oe.sortBy=f[1],Ie(()=>Mt=!1)),$e.$set(oe);const He={};if(h&67108864&&(He.$$scope={dirty:h,ctx:f}),!Ut&&h&2&&(Ut=!0,He.sortBy=f[1],Ie(()=>Ut=!1)),be.$set(He),h&4){Ue=dt(f[2]);let A;for(A=0;A<Ue.length;A+=1){const st=ys(f,Ue,A);j[A]?(j[A].p(st,h),N(j[A],1)):(j[A]=vs(st),j[A].c(),N(j[A],1),j[A].m(We,null))}for(nt(),A=Ue.length;A<j.length;A+=1)Os(A);lt()}},i(f){if(!K){N(Te.$$.fragment,f),N(pe.$$.fragment,f),N(he.$$.fragment,f),N(de.$$.fragment,f),N(me.$$.fragment,f),N(ge.$$.fragment,f),N($e.$$.fragment,f),N(be.$$.fragment,f);for(let h=0;h<Ue.length;h+=1)N(j[h]);K=!0}},o(f){P(Te.$$.fragment,f),P(pe.$$.fragment,f),P(he.$$.fragment,f),P(de.$$.fragment,f),P(me.$$.fragment,f),P(ge.$$.fragment,f),P($e.$$.fragment,f),P(be.$$.fragment,f),j=j.filter(Boolean);for(let h=0;h<j.length;h+=1)P(j[h]);K=!1},d(f){f&&(c(e),c(it),c(Me)),G(Te),G(pe),G(he),G(de),G(me),G(ge),G($e),G(be),Cs(j,f)}}}function Rr(r,e,t){let s,n,o,l,i;rt(r,mt,B=>t(6,i=B));let{results:u}=e,p=null;function _(B){p=B,t(1,p)}function T(B){p=B,t(1,p)}function C(B){p=B,t(1,p)}function d(B){p=B,t(1,p)}function b(B){p=B,t(1,p)}function M(B){p=B,t(1,p)}function q(B){p=B,t(1,p)}return r.$$set=B=>{"results"in B&&t(0,u=B.results)},r.$$.update=()=>{r.$$.dirty&3&&t(5,s=p===null?u.repositories:Array.from(u.repositories).sort(kr(p))),r.$$.dirty&96&&t(2,n=s.slice(0,i.repos)),r.$$.dirty&65&&t(3,o=u.repositories.length>i.repos),r.$$.dirty&13&&t(4,l=o?n.reduce((B,W)=>(B.shardCount+=W.shardCount,B.fileCount+=W.fileCount,B.indexBytes+=W.indexBytes,B.contentBytes+=W.contentBytes,B),{shardCount:0,fileCount:0,indexBytes:0,contentBytes:0}):u.stats)},[u,p,n,o,l,s,i,_,T,C,d,b,M,q]}class Ur extends Ae{constructor(e){super(),Le(this,e,Rr,Mr,qe,{results:0})}}function Hr(r){let e,t,s,n,o,l;return document.title=e=(r[2].query?`${r[2].query} - `:"")+"neogrok/repositories",s=new Ws({props:{queryError:r[0].listOutcome.kind==="error"?r[0].listOutcome.error:null}}),o=new Ur({props:{results:r[0].listOutcome.kind==="success"?r[0].listOutcome.results:r[1]??{repositories:[],stats:{shardCount:0,fileCount:0,contentBytes:0,indexBytes:0}}}}),{c(){t=w(),V(s.$$.fragment),n=w(),V(o.$$.fragment)},l(i){Vs("svelte-1isq039",document.head).forEach(c),t=S(i),Q(s.$$.fragment,i),n=S(i),Q(o.$$.fragment,i)},m(i,u){H(i,t,u),Y(s,i,u),H(i,n,u),Y(o,i,u),l=!0},p(i,[u]){(!l||u&4)&&e!==(e=(i[2].query?`${i[2].query} - `:"")+"neogrok/repositories")&&(document.title=e);const p={};u&1&&(p.queryError=i[0].listOutcome.kind==="error"?i[0].listOutcome.error:null),s.$set(p);const _={};u&3&&(_.results=i[0].listOutcome.kind==="success"?i[0].listOutcome.results:i[1]??{repositories:[],stats:{shardCount:0,fileCount:0,contentBytes:0,indexBytes:0}}),o.$set(_)},i(i){l||(N(s.$$.fragment,i),N(o.$$.fragment,i),l=!0)},o(i){P(s.$$.fragment,i),P(o.$$.fragment,i),l=!1},d(i){i&&(c(t),c(n)),G(s,i),G(o,i)}}}function zr(r,e,t){let s;rt(r,mt,l=>t(2,s=l));let{data:n}=e,o=null;return r.$$set=l=>{"data"in l&&t(0,n=l.data)},r.$$.update=()=>{r.$$.dirty&1&&n.listOutcome.kind==="success"&&t(1,o=n.listOutcome.results)},[n,o,s]}class xr extends Ae{constructor(e){super(),Le(this,e,zr,Hr,qe,{data:0})}}export{xr as component,Xr as universal};
@@ -1 +1 @@
1
- {"version":"1705271261805"}
1
+ {"version":"1705474700337"}
Binary file
Binary file
@@ -19,9 +19,9 @@ const index = 0;
19
19
  let component_cache;
20
20
  const component = async () => component_cache ??= (await import('./_layout.svelte-dWIMzOyI.js')).default;
21
21
  const server_id = "src/routes/+layout.server.ts";
22
- const imports = ["_app/immutable/nodes/0.e_QjT0sm.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/stores.8mzBvaEV.js","_app/immutable/chunks/singletons.vwJVlVCQ.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/preferences.WetYOKHg.js"];
22
+ const imports = ["_app/immutable/nodes/0.xWLavMW2.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/stores.qqHx_u93.js","_app/immutable/chunks/singletons.DwO-MTR-.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/preferences.WetYOKHg.js"];
23
23
  const stylesheets = ["_app/immutable/assets/0.o0zCXDLg.css"];
24
24
  const fonts = [];
25
25
 
26
26
  export { component, fonts, imports, index, _layout_server_ts as server, server_id, stylesheets };
27
- //# sourceMappingURL=0-A-IZzLqw.js.map
27
+ //# sourceMappingURL=0-ok1NknM9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"0-A-IZzLqw.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import { l as loadPreferences } from \"../../chunks/preferences.js\";\nconst load = ({ cookies }) => {\n return {\n // While not all pages need preferences, most do. It's easiest to just make\n // them ubiquitously available.\n preferences: loadPreferences(cookies)\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.ts\";\nexport const imports = [\"_app/immutable/nodes/0.e_QjT0sm.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/each.oUkpMz5d.js\",\"_app/immutable/chunks/stores.8mzBvaEV.js\",\"_app/immutable/chunks/singletons.vwJVlVCQ.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\",\"_app/immutable/chunks/preferences.WetYOKHg.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.o0zCXDLg.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AACA,MAAM,IAAI,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK;AAC9B,EAAE,OAAO;AACT;AACA;AACA,IAAI,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC;AACzC,GAAG,CAAC;AACJ,CAAC;;;;;;;ACLW,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAE1G,MAAC,SAAS,GAAG,+BAA+B;AAC5C,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,wCAAwC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,CAAC,+CAA+C,EAAE;AACvW,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"0-ok1NknM9.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import { l as loadPreferences } from \"../../chunks/preferences.js\";\nconst load = ({ cookies }) => {\n return {\n // While not all pages need preferences, most do. It's easiest to just make\n // them ubiquitously available.\n preferences: loadPreferences(cookies)\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.ts\";\nexport const imports = [\"_app/immutable/nodes/0.xWLavMW2.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/each.oUkpMz5d.js\",\"_app/immutable/chunks/stores.qqHx_u93.js\",\"_app/immutable/chunks/singletons.DwO-MTR-.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\",\"_app/immutable/chunks/preferences.WetYOKHg.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.o0zCXDLg.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AACA,MAAM,IAAI,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK;AAC9B,EAAE,OAAO;AACT;AACA;AACA,IAAI,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC;AACzC,GAAG,CAAC;AACJ,CAAC;;;;;;;ACLW,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAE1G,MAAC,SAAS,GAAG,+BAA+B;AAC5C,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,wCAAwC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,CAAC,+CAA+C,EAAE;AACvW,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG;;;;"}
@@ -1,9 +1,9 @@
1
1
  const index = 1;
2
2
  let component_cache;
3
3
  const component = async () => component_cache ??= (await import('./_error.svelte-c7BghUO7.js')).default;
4
- const imports = ["_app/immutable/nodes/1.EkqJBnVl.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/stores.8mzBvaEV.js","_app/immutable/chunks/singletons.vwJVlVCQ.js","_app/immutable/chunks/index.XEtU8W2G.js"];
4
+ const imports = ["_app/immutable/nodes/1.rAOpvYHL.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/stores.qqHx_u93.js","_app/immutable/chunks/singletons.DwO-MTR-.js","_app/immutable/chunks/index.XEtU8W2G.js"];
5
5
  const stylesheets = [];
6
6
  const fonts = [];
7
7
 
8
8
  export { component, fonts, imports, index, stylesheets };
9
- //# sourceMappingURL=1-g3_EhU2e.js.map
9
+ //# sourceMappingURL=1-0QJNZiSC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-g3_EhU2e.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.EkqJBnVl.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/stores.8mzBvaEV.js\",\"_app/immutable/chunks/singletons.vwJVlVCQ.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,6BAAmC,CAAC,EAAE,QAAQ;AACzG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AAC9Q,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"1-0QJNZiSC.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.rAOpvYHL.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/stores.qqHx_u93.js\",\"_app/immutable/chunks/singletons.DwO-MTR-.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,6BAAmC,CAAC,EAAE,QAAQ;AACzG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AAC9Q,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
@@ -112,9 +112,9 @@ var _page_ts = /*#__PURE__*/Object.freeze({
112
112
 
113
113
  const index = 10;
114
114
  let component_cache;
115
- const component = async () => component_cache ??= (await import('./_page.svelte-7KJATY9d.js')).default;
115
+ const component = async () => component_cache ??= (await import('./_page.svelte-Vhv0rMkf.js')).default;
116
116
  const universal_id = "src/routes/(search-page)/+page.ts";
117
- const imports = ["_app/immutable/nodes/10.-5InryQo.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/stores.8mzBvaEV.js","_app/immutable/chunks/singletons.vwJVlVCQ.js","_app/immutable/chunks/loading-ellipsis.EfcHtv03.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/preferences.WetYOKHg.js","_app/immutable/chunks/spread.rEx3vLA9.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/integer-input.fvZuttUG.js","_app/immutable/chunks/link.czJPdQv3.js","_app/immutable/chunks/example-query.6BQBimAu.js","_app/immutable/chunks/5.MErjPYv9.js"];
117
+ const imports = ["_app/immutable/nodes/10.GvaEAgQH.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/stores.qqHx_u93.js","_app/immutable/chunks/singletons.DwO-MTR-.js","_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/preferences.WetYOKHg.js","_app/immutable/chunks/spread.rEx3vLA9.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/integer-input.fvZuttUG.js","_app/immutable/chunks/link.czJPdQv3.js","_app/immutable/chunks/example-query.6BQBimAu.js","_app/immutable/chunks/5.MErjPYv9.js"];
118
118
  const stylesheets = [];
119
119
  const fonts = [];
120
120
 
@@ -130,4 +130,4 @@ var _10 = /*#__PURE__*/Object.freeze({
130
130
  });
131
131
 
132
132
  export { _10 as _, routeSearchQuery as r, updateRouteSearchQuery as u };
133
- //# sourceMappingURL=10-O5Ly1RSy.js.map
133
+ //# sourceMappingURL=10-BBcjQvcj.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"10-O5Ly1RSy.js","sources":["../../../.svelte-kit/adapter-node/chunks/route-search-query.js","../../../.svelte-kit/adapter-node/entries/pages/(search-page)/_page.ts.js","../../../.svelte-kit/adapter-node/nodes/10.js"],"sourcesContent":["import { d as derived } from \"./index2.js\";\nimport { p as page, n as navigating } from \"./stores.js\";\nimport { g as goto } from \"./navigation.js\";\nimport { g as get_store_value } from \"./lifecycle.js\";\nconst defaultQueryOptions = Object.freeze({\n contextLines: 1,\n files: 20,\n matches: 500\n});\nconst parseSearchParams = (searchParams) => {\n const parsedContextLines = Number.parseInt(\n searchParams.get(\"contextLines\") ?? \"\",\n 10\n );\n const parsedFiles = Number.parseInt(searchParams.get(\"files\") ?? \"\", 10);\n const parsedMatches = Number.parseInt(searchParams.get(\"matches\") ?? \"\", 10);\n const query = searchParams.get(\"q\") || void 0;\n const contextLines = parsedContextLines >= 0 ? parsedContextLines : defaultQueryOptions.contextLines;\n const files = parsedFiles > 0 ? parsedFiles : defaultQueryOptions.files;\n const matches = parsedMatches >= 0 ? parsedMatches : defaultQueryOptions.matches;\n return {\n query,\n contextLines,\n files,\n matches\n };\n};\nconst routeSearchQuery = derived(\n page,\n (p) => parseSearchParams(p.url.searchParams)\n);\nlet lastNavigateTime = 0;\nconst updateRouteSearchQuery = ({\n query,\n contextLines,\n files,\n matches,\n searchType\n}) => {\n const baselineUrl = get_store_value(navigating)?.to?.url ?? get_store_value(page).url;\n const searchQuery = parseSearchParams(baselineUrl.searchParams);\n const queryChanged = query !== void 0 && (query || void 0) !== searchQuery.query;\n const contextLinesChanged = contextLines !== void 0 && contextLines >= 0 && contextLines !== searchQuery.contextLines;\n const filesChanged = files !== void 0 && files >= 0 && files !== searchQuery.files;\n const matchesChanged = matches !== void 0 && matches >= 0 && matches !== searchQuery.matches;\n if (queryChanged || contextLinesChanged || filesChanged || matchesChanged) {\n const now = Date.now();\n const next = new URL(baselineUrl);\n if (queryChanged && query) {\n next.searchParams.set(\"q\", query);\n } else if (queryChanged) {\n next.searchParams.delete(\"q\");\n }\n if (contextLinesChanged && contextLines === defaultQueryOptions.contextLines) {\n next.searchParams.delete(\"contextLines\");\n } else if (contextLinesChanged) {\n next.searchParams.set(\"contextLines\", contextLines.toString());\n }\n if (filesChanged && files === defaultQueryOptions.files) {\n next.searchParams.delete(\"files\");\n } else if (filesChanged) {\n next.searchParams.set(\"files\", files.toString());\n }\n if (matchesChanged && matches === defaultQueryOptions.matches) {\n next.searchParams.delete(\"matches\");\n } else if (matchesChanged) {\n next.searchParams.set(\"matches\", matches.toString());\n }\n goto(next, {\n replaceState: searchType === \"live\" && now - lastNavigateTime < 2e3,\n keepFocus: true,\n noScroll: true\n });\n lastNavigateTime = now;\n }\n};\nexport {\n parseSearchParams as p,\n routeSearchQuery as r,\n updateRouteSearchQuery as u\n};\n","import { p as parseSearchParams } from \"../../../chunks/route-search-query.js\";\nconst load = async ({ url, fetch }) => ({\n searchOutcome: await executeSearch(url, fetch)\n});\nconst executeSearch = async (url, f) => {\n const { query, ...rest } = parseSearchParams(new URL(url).searchParams);\n if (query === void 0) {\n return { kind: \"none\" };\n }\n try {\n const response = await f(\"/api/search\", {\n method: \"POST\",\n body: JSON.stringify({ query, ...rest }),\n headers: { \"content-type\": \"application/json\" }\n });\n const searchResponse = await response.json();\n if (searchResponse.kind === \"success\") {\n return {\n kind: \"success\",\n results: searchResponse.results\n };\n } else {\n return searchResponse;\n }\n } catch (error) {\n console.error(\"Search failed\", error);\n return { kind: \"error\", error: String(error) };\n }\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/(search-page)/_page.ts.js';\n\nexport const index = 10;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/(search-page)/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/(search-page)/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/10.-5InryQo.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/stores.8mzBvaEV.js\",\"_app/immutable/chunks/singletons.vwJVlVCQ.js\",\"_app/immutable/chunks/loading-ellipsis.EfcHtv03.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/preferences.WetYOKHg.js\",\"_app/immutable/chunks/spread.rEx3vLA9.js\",\"_app/immutable/chunks/each.oUkpMz5d.js\",\"_app/immutable/chunks/integer-input.fvZuttUG.js\",\"_app/immutable/chunks/link.czJPdQv3.js\",\"_app/immutable/chunks/example-query.6BQBimAu.js\",\"_app/immutable/chunks/5.MErjPYv9.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;AAC1C,EAAE,YAAY,EAAE,CAAC;AACjB,EAAE,KAAK,EAAE,EAAE;AACX,EAAE,OAAO,EAAE,GAAG;AACd,CAAC,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG,CAAC,YAAY,KAAK;AAC5C,EAAE,MAAM,kBAAkB,GAAG,MAAM,CAAC,QAAQ;AAC5C,IAAI,YAAY,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE;AAC1C,IAAI,EAAE;AACN,GAAG,CAAC;AACJ,EAAE,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;AAC3E,EAAE,MAAM,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;AAC/E,EAAE,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC;AAChD,EAAE,MAAM,YAAY,GAAG,kBAAkB,IAAI,CAAC,GAAG,kBAAkB,GAAG,mBAAmB,CAAC,YAAY,CAAC;AACvG,EAAE,MAAM,KAAK,GAAG,WAAW,GAAG,CAAC,GAAG,WAAW,GAAG,mBAAmB,CAAC,KAAK,CAAC;AAC1E,EAAE,MAAM,OAAO,GAAG,aAAa,IAAI,CAAC,GAAG,aAAa,GAAG,mBAAmB,CAAC,OAAO,CAAC;AACnF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AC,OAAO,KAAK,EAAE;AAClB,IAAI,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACnD,GAAG;AACH,CAAC;;;;;;;AC1BM,MAAM,KAAK,GAAG,EAAE,CAAC;AACxB,IAAI,eAAe,CAAC;AACb,MAAM,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAgD,CAAC,EAAE,OAAO,CAAC;AAE3H,MAAM,YAAY,GAAG,mCAAmC,CAAC;AACzD,MAAM,OAAO,GAAG,CAAC,qCAAqC,CAAC,yCAAyC,CAAC,6CAA6C,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,oDAAoD,CAAC,yCAAyC,CAAC,+CAA+C,CAAC,0CAA0C,CAAC,wCAAwC,CAAC,iDAAiD,CAAC,wCAAwC,CAAC,iDAAiD,CAAC,qCAAqC,CAAC,CAAC;AAChoB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,KAAK,GAAG,EAAE;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"10-BBcjQvcj.js","sources":["../../../.svelte-kit/adapter-node/chunks/route-search-query.js","../../../.svelte-kit/adapter-node/entries/pages/(search-page)/_page.ts.js","../../../.svelte-kit/adapter-node/nodes/10.js"],"sourcesContent":["import { d as derived } from \"./index2.js\";\nimport { p as page, n as navigating } from \"./stores.js\";\nimport { g as goto } from \"./navigation.js\";\nimport { g as get_store_value } from \"./lifecycle.js\";\nconst defaultQueryOptions = Object.freeze({\n contextLines: 1,\n files: 20,\n matches: 500\n});\nconst parseSearchParams = (searchParams) => {\n const parsedContextLines = Number.parseInt(\n searchParams.get(\"contextLines\") ?? \"\",\n 10\n );\n const parsedFiles = Number.parseInt(searchParams.get(\"files\") ?? \"\", 10);\n const parsedMatches = Number.parseInt(searchParams.get(\"matches\") ?? \"\", 10);\n const query = searchParams.get(\"q\") || void 0;\n const contextLines = parsedContextLines >= 0 ? parsedContextLines : defaultQueryOptions.contextLines;\n const files = parsedFiles > 0 ? parsedFiles : defaultQueryOptions.files;\n const matches = parsedMatches >= 0 ? parsedMatches : defaultQueryOptions.matches;\n return {\n query,\n contextLines,\n files,\n matches\n };\n};\nconst routeSearchQuery = derived(\n page,\n (p) => parseSearchParams(p.url.searchParams)\n);\nlet lastNavigateTime = 0;\nconst updateRouteSearchQuery = ({\n query,\n contextLines,\n files,\n matches,\n searchType\n}) => {\n const baselineUrl = get_store_value(navigating)?.to?.url ?? get_store_value(page).url;\n const searchQuery = parseSearchParams(baselineUrl.searchParams);\n const queryChanged = query !== void 0 && (query || void 0) !== searchQuery.query;\n const contextLinesChanged = contextLines !== void 0 && contextLines >= 0 && contextLines !== searchQuery.contextLines;\n const filesChanged = files !== void 0 && files >= 0 && files !== searchQuery.files;\n const matchesChanged = matches !== void 0 && matches >= 0 && matches !== searchQuery.matches;\n if (queryChanged || contextLinesChanged || filesChanged || matchesChanged) {\n const now = Date.now();\n const next = new URL(baselineUrl);\n if (queryChanged && query) {\n next.searchParams.set(\"q\", query);\n } else if (queryChanged) {\n next.searchParams.delete(\"q\");\n }\n if (contextLinesChanged && contextLines === defaultQueryOptions.contextLines) {\n next.searchParams.delete(\"contextLines\");\n } else if (contextLinesChanged) {\n next.searchParams.set(\"contextLines\", contextLines.toString());\n }\n if (filesChanged && files === defaultQueryOptions.files) {\n next.searchParams.delete(\"files\");\n } else if (filesChanged) {\n next.searchParams.set(\"files\", files.toString());\n }\n if (matchesChanged && matches === defaultQueryOptions.matches) {\n next.searchParams.delete(\"matches\");\n } else if (matchesChanged) {\n next.searchParams.set(\"matches\", matches.toString());\n }\n goto(next, {\n replaceState: searchType === \"live\" && now - lastNavigateTime < 2e3,\n keepFocus: true,\n noScroll: true\n });\n lastNavigateTime = now;\n }\n};\nexport {\n parseSearchParams as p,\n routeSearchQuery as r,\n updateRouteSearchQuery as u\n};\n","import { p as parseSearchParams } from \"../../../chunks/route-search-query.js\";\nconst load = async ({ url, fetch }) => ({\n searchOutcome: await executeSearch(url, fetch)\n});\nconst executeSearch = async (url, f) => {\n const { query, ...rest } = parseSearchParams(new URL(url).searchParams);\n if (query === void 0) {\n return { kind: \"none\" };\n }\n try {\n const response = await f(\"/api/search\", {\n method: \"POST\",\n body: JSON.stringify({ query, ...rest }),\n headers: { \"content-type\": \"application/json\" }\n });\n const searchResponse = await response.json();\n if (searchResponse.kind === \"success\") {\n return {\n kind: \"success\",\n results: searchResponse.results\n };\n } else {\n return searchResponse;\n }\n } catch (error) {\n console.error(\"Search failed\", error);\n return { kind: \"error\", error: String(error) };\n }\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/(search-page)/_page.ts.js';\n\nexport const index = 10;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/(search-page)/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/(search-page)/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/10.GvaEAgQH.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/stores.qqHx_u93.js\",\"_app/immutable/chunks/singletons.DwO-MTR-.js\",\"_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/preferences.WetYOKHg.js\",\"_app/immutable/chunks/spread.rEx3vLA9.js\",\"_app/immutable/chunks/each.oUkpMz5d.js\",\"_app/immutable/chunks/integer-input.fvZuttUG.js\",\"_app/immutable/chunks/link.czJPdQv3.js\",\"_app/immutable/chunks/example-query.6BQBimAu.js\",\"_app/immutable/chunks/5.MErjPYv9.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;AAC1C,EAAE,YAAY,EAAE,CA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,CAAC,MAAM,OAAO,4BAAgD,CAAC,EAAE,OAAO,CAAC;AAE3H,MAAM,YAAY,GAAG,mCAAmC,CAAC;AACzD,MAAM,OAAO,GAAG,CAAC,qCAAqC,CAAC,yCAAyC,CAAC,6CAA6C,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,oDAAoD,CAAC,yCAAyC,CAAC,+CAA+C,CAAC,0CAA0C,CAAC,wCAAwC,CAAC,iDAAiD,CAAC,wCAAwC,CAAC,iDAAiD,CAAC,qCAAqC,CAAC,CAAC;AAChoB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,KAAK,GAAG,EAAE;;;;;;;;;;;;;;;"}
@@ -75,9 +75,9 @@ var _page_ts = /*#__PURE__*/Object.freeze({
75
75
 
76
76
  const index = 13;
77
77
  let component_cache;
78
- const component = async () => component_cache ??= (await import('./_page.svelte-MAStgoHK.js')).default;
78
+ const component = async () => component_cache ??= (await import('./_page.svelte-sWX5P4Ll.js')).default;
79
79
  const universal_id = "src/routes/repositories/+page.ts";
80
- const imports = ["_app/immutable/nodes/13.mfcM2A3w.js","_app/immutable/chunks/loading-ellipsis.EfcHtv03.js","_app/immutable/chunks/singletons.vwJVlVCQ.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/preferences.WetYOKHg.js","_app/immutable/chunks/spread.rEx3vLA9.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/stores.8mzBvaEV.js","_app/immutable/chunks/integer-input.fvZuttUG.js","_app/immutable/chunks/link.czJPdQv3.js"];
80
+ const imports = ["_app/immutable/nodes/13.sZkidTit.js","_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js","_app/immutable/chunks/singletons.DwO-MTR-.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/preferences.WetYOKHg.js","_app/immutable/chunks/spread.rEx3vLA9.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/stores.qqHx_u93.js","_app/immutable/chunks/integer-input.fvZuttUG.js","_app/immutable/chunks/link.czJPdQv3.js"];
81
81
  const stylesheets = [];
82
82
  const fonts = [];
83
83
 
@@ -93,4 +93,4 @@ var _13 = /*#__PURE__*/Object.freeze({
93
93
  });
94
94
 
95
95
  export { _13 as _, routeListQuery as r, updateRouteListQuery as u };
96
- //# sourceMappingURL=13-ItAIOz6y.js.map
96
+ //# sourceMappingURL=13-kCEzUGMx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"13-ItAIOz6y.js","sources":["../../../.svelte-kit/adapter-node/chunks/route-list-query.js","../../../.svelte-kit/adapter-node/entries/pages/repositories/_page.ts.js","../../../.svelte-kit/adapter-node/nodes/13.js"],"sourcesContent":["import { g as goto } from \"./navigation.js\";\nimport { p as page, n as navigating } from \"./stores.js\";\nimport { d as derived } from \"./index2.js\";\nimport { g as get_store_value } from \"./lifecycle.js\";\nconst defaultQueryOptions = Object.freeze({ repos: 100 });\nconst parseSearchParams = (searchParams) => {\n const parsedRepos = Number.parseInt(searchParams.get(\"repos\") ?? \"\", 10);\n const query = searchParams.get(\"q\") || void 0;\n const repos = parsedRepos >= 0 ? parsedRepos : defaultQueryOptions.repos;\n return {\n query,\n repos\n };\n};\nconst routeListQuery = derived(\n page,\n (p) => parseSearchParams(p.url.searchParams)\n);\nlet lastNavigateTime = 0;\nconst updateRouteListQuery = ({\n query,\n repos,\n searchType\n}) => {\n const baselineUrl = get_store_value(navigating)?.to?.url ?? get_store_value(page).url;\n const listQuery = parseSearchParams(baselineUrl.searchParams);\n const queryChanged = query !== void 0 && (query || void 0) !== listQuery.query;\n const reposChanged = repos !== void 0 && repos >= 0 && repos !== listQuery.repos;\n if (queryChanged || reposChanged) {\n const now = Date.now();\n const next = new URL(baselineUrl);\n if (queryChanged && query) {\n next.searchParams.set(\"q\", query);\n } else if (queryChanged) {\n next.searchParams.delete(\"q\");\n }\n if (reposChanged && repos === defaultQueryOptions.repos) {\n next.searchParams.delete(\"repos\");\n } else if (reposChanged) {\n next.searchParams.set(\"repos\", repos.toString());\n }\n goto(next, {\n replaceState: searchType === \"live\" && now - lastNavigateTime < 2e3,\n keepFocus: true,\n noScroll: true\n });\n lastNavigateTime = now;\n }\n};\nexport {\n parseSearchParams as p,\n routeListQuery as r,\n updateRouteListQuery as u\n};\n","import { p as parseSearchParams } from \"../../../chunks/route-list-query.js\";\nconst load = async ({ url, fetch }) => {\n return {\n listOutcome: await executeList(url, fetch)\n };\n};\nconst executeList = async (url, f) => {\n const listQuery = parseSearchParams(url.searchParams);\n try {\n const response = await f(\"/api/list\", {\n method: \"POST\",\n body: JSON.stringify(listQuery)\n });\n return await response.json();\n } catch (error) {\n console.error(\"List repositories failed\", error);\n return { kind: \"error\", error: String(error) };\n }\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/repositories/_page.ts.js';\n\nexport const index = 13;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/repositories/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/repositories/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/13.mfcM2A3w.js\",\"_app/immutable/chunks/loading-ellipsis.EfcHtv03.js\",\"_app/immutable/chunks/singletons.vwJVlVCQ.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/preferences.WetYOKHg.js\",\"_app/immutable/chunks/spread.rEx3vLA9.js\",\"_app/immutable/chunks/each.oUkpMz5d.js\",\"_app/immutable/chunks/stores.8mzBvaEV.js\",\"_app/immutable/chunks/integer-input.fvZuttUG.js\",\"_app/immutable/chunks/link.czJPdQv3.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GA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AC,GAAG,CAAC,YAAY,CAAC,CAAC;AACxD,EAAE,IAAI;AACN,IAAI,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,WAAW,EAAE;AAC1C,MAAM,MAAM,EAAE,MAAM;AACpB,MAAM,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;AACrC,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AACjC,GAAG,CAAC,OAAO,KAAK,EAAE;AAClB,IAAI,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC;AACrD,IAAI,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACnD,GAAG;AACH,CAAC;;;;;;;AChBM,MAAM,KAAK,GAAG,EAAE,CAAC;AACxB,IAAI,eAAe,CAAC;AACb,MAAM,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA+C,CAAC,EAAE,OAAO,CAAC;AAE1H,MAAM,YAAY,GAAG,kCAAkC,CAAC;AACxD,MAAM,OAAO,GAAG,CAAC,qCAAqC,CAAC,oDAAoD,CAAC,8CAA8C,CAAC,yCAAyC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,+CAA+C,CAAC,0CAA0C,CAAC,wCAAwC,CAAC,0CAA0C,CAAC,iDAAiD,CAAC,wCAAwC,CAAC,CAAC;AACxiB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,KAAK,GAAG,EAAE;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"13-kCEzUGMx.js","sources":["../../../.svelte-kit/adapter-node/chunks/route-list-query.js","../../../.svelte-kit/adapter-node/entries/pages/repositories/_page.ts.js","../../../.svelte-kit/adapter-node/nodes/13.js"],"sourcesContent":["import { g as goto } from \"./navigation.js\";\nimport { p as page, n as navigating } from \"./stores.js\";\nimport { d as derived } from \"./index2.js\";\nimport { g as get_store_value } from \"./lifecycle.js\";\nconst defaultQueryOptions = Object.freeze({ repos: 100 });\nconst parseSearchParams = (searchParams) => {\n const parsedRepos = Number.parseInt(searchParams.get(\"repos\") ?? \"\", 10);\n const query = searchParams.get(\"q\") || void 0;\n const repos = parsedRepos >= 0 ? parsedRepos : defaultQueryOptions.repos;\n return {\n query,\n repos\n };\n};\nconst routeListQuery = derived(\n page,\n (p) => parseSearchParams(p.url.searchParams)\n);\nlet lastNavigateTime = 0;\nconst updateRouteListQuery = ({\n query,\n repos,\n searchType\n}) => {\n const baselineUrl = get_store_value(navigating)?.to?.url ?? get_store_value(page).url;\n const listQuery = parseSearchParams(baselineUrl.searchParams);\n const queryChanged = query !== void 0 && (query || void 0) !== listQuery.query;\n const reposChanged = repos !== void 0 && repos >= 0 && repos !== listQuery.repos;\n if (queryChanged || reposChanged) {\n const now = Date.now();\n const next = new URL(baselineUrl);\n if (queryChanged && query) {\n next.searchParams.set(\"q\", query);\n } else if (queryChanged) {\n next.searchParams.delete(\"q\");\n }\n if (reposChanged && repos === defaultQueryOptions.repos) {\n next.searchParams.delete(\"repos\");\n } else if (reposChanged) {\n next.searchParams.set(\"repos\", repos.toString());\n }\n goto(next, {\n replaceState: searchType === \"live\" && now - lastNavigateTime < 2e3,\n keepFocus: true,\n noScroll: true\n });\n lastNavigateTime = now;\n }\n};\nexport {\n parseSearchParams as p,\n routeListQuery as r,\n updateRouteListQuery as u\n};\n","import { p as parseSearchParams } from \"../../../chunks/route-list-query.js\";\nconst load = async ({ url, fetch }) => {\n return {\n listOutcome: await executeList(url, fetch)\n };\n};\nconst executeList = async (url, f) => {\n const listQuery = parseSearchParams(url.searchParams);\n try {\n const response = await f(\"/api/list\", {\n method: \"POST\",\n body: JSON.stringify(listQuery)\n });\n return await response.json();\n } catch (error) {\n console.error(\"List repositories failed\", error);\n return { kind: \"error\", error: String(error) };\n }\n};\nexport {\n load\n};\n","import * as universal from '../entries/pages/repositories/_page.ts.js';\n\nexport const index = 13;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/repositories/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/repositories/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/13.sZkidTit.js\",\"_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js\",\"_app/immutable/chunks/singletons.DwO-MTR-.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/preferences.WetYOKHg.js\",\"_app/immutable/chunks/spread.rEx3vLA9.js\",\"_app/immutable/chunks/each.oUkpMz5d.js\",\"_app/immutable/chunks/stores.qqHx_u93.js\",\"_app/immutable/chunks/integer-input.fvZuttUG.js\",\"_app/immutable/chunks/link.czJPdQv3.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AAC1D,MAAM,iBAAiB,GAAG,CAAC,YAAY,KAAK;AAC5C,EAAE,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;AAC3E,EAAE,MAAM,KAAK,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC;AAChD,EAAE,MAAM,KAAK,GAAG,WAAW,IAAI,CAAC,GAAG,WAAW,GAAG,mBAAmB,CAAC,KAAK,CAAC;AAC3E,EAAE,OAAO;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,GAAG,CAAC;AACJ,CAAC,CAAC;AACG,MAAC,cAAc,GAAG,OAAO;AAC9B,EAAE,IAAI;AACN,EAAE,CAAC,CAAC,KAAK,iBAAiB,CAAC,CAAC,CAAC,GAAG,C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AAO,4BAA+C,CAAC,EAAE,OAAO,CAAC;AAE1H,MAAM,YAAY,GAAG,kCAAkC,CAAC;AACxD,MAAM,OAAO,GAAG,CAAC,qCAAqC,CAAC,oDAAoD,CAAC,8CAA8C,CAAC,yCAAyC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,+CAA+C,CAAC,0CAA0C,CAAC,wCAAwC,CAAC,0CAA0C,CAAC,iDAAiD,CAAC,wCAAwC,CAAC,CAAC;AACxiB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,KAAK,GAAG,EAAE;;;;;;;;;;;;;;;"}
@@ -3,23 +3,14 @@ import { c as create_ssr_component, a as escape, v as validate_component, b as a
3
3
  import { n as navigating } from './stores-Ld1asD2d.js';
4
4
  import { b as acquireSearchTypeStore, c as acquireMatchSortOrderStore, d as acquireFileMatchesCutoffStore } from './preferences-wGr0VXkQ.js';
5
5
  import { c as computeInputColor, I as Integer_input } from './integer-input-OgufDz_A.js';
6
- import { L as Loading_ellipsis, T as Toggle_search_type, I as Icon$1 } from './loading-ellipsis-QoPZxJiG.js';
7
- import { r as routeSearchQuery, u as updateRouteSearchQuery } from './10-O5Ly1RSy.js';
6
+ import { L as Loading_ellipsis, T as Toggle_search_type, I as Icon$1 } from './loading-ellipsis-yq_aohpf.js';
7
+ import { r as routeSearchQuery, u as updateRouteSearchQuery } from './10-BBcjQvcj.js';
8
8
  import { L as Link } from './link-BlFMSTDU.js';
9
9
  import { E as Example_query } from './example-query-cEUlCBov.js';
10
- import { w as writable } from './index2-lAp6hL1w.js';
10
+ import './index2-lAp6hL1w.js';
11
11
  import './names-vZutHuxZ.js';
12
12
  import './navigation-0W7LIQSW.js';
13
13
 
14
- const Chevron_right = create_ssr_component(($$result, $$props, $$bindings, slots) => {
15
- const iconNode = [["path", { "d": "m9 18 6-6-6-6" }]];
16
- return ` ${validate_component(Icon$1, "Icon").$$render($$result, Object.assign({}, { name: "chevron-right" }, $$props, { iconNode }), {}, {
17
- default: () => {
18
- return `${slots.default ? slots.default({}) : ``}`;
19
- }
20
- })}`;
21
- });
22
- const ChevronRight = Chevron_right;
23
14
  const List_ordered = create_ssr_component(($$result, $$props, $$bindings, slots) => {
24
15
  const iconNode = [
25
16
  [
@@ -227,6 +218,15 @@ const Lander = create_ssr_component(($$result, $$props, $$bindings, slots) => {
227
218
  {}
228
219
  )} <span class="text-xs" data-svelte-h="svelte-8b4fxa">group expressions with parentheses</span></li></ul></li></ul></div>`;
229
220
  });
221
+ const Chevron_right = create_ssr_component(($$result, $$props, $$bindings, slots) => {
222
+ const iconNode = [["path", { "d": "m9 18 6-6-6-6" }]];
223
+ return ` ${validate_component(Icon$1, "Icon").$$render($$result, Object.assign({}, { name: "chevron-right" }, $$props, { iconNode }), {}, {
224
+ default: () => {
225
+ return `${slots.default ? slots.default({}) : ``}`;
226
+ }
227
+ })}`;
228
+ });
229
+ const ChevronRight = Chevron_right;
230
230
  const Rendered_content = create_ssr_component(($$result, $$props, $$bindings, slots) => {
231
231
  let { content } = $$props;
232
232
  let { highlights = void 0 } = $$props;
@@ -258,7 +258,9 @@ const Rendered_content = create_ssr_component(($$result, $$props, $$bindings, sl
258
258
  if (highlights) {
259
259
  const matchRangeIterator = content.matchRanges[Symbol.iterator]();
260
260
  let currentMatchRange = matchRangeIterator.next().value;
261
- for (const { start, end, fontStyle, color } of highlights) {
261
+ let start = 0;
262
+ for (const { content: highlightText, fontStyle, color } of highlights) {
263
+ const end = start + highlightText.length;
262
264
  const fontClass = toFontClass(fontStyle);
263
265
  let base = start;
264
266
  while (
@@ -296,6 +298,7 @@ const Rendered_content = create_ssr_component(($$result, $$props, $$bindings, sl
296
298
  color
297
299
  });
298
300
  }
301
+ start = end;
299
302
  }
300
303
  } else {
301
304
  let base = 0;
@@ -342,29 +345,27 @@ const Search_results_file_header = create_ssr_component(($$result, $$props, $$bi
342
345
  file.language || "Text",
343
346
  `№${rank}`
344
347
  ];
345
- return `<h2 class="px-2 py-1 text-sm sticky top-0 flex flex-wrap bg-slate-100 whitespace-pre-wrap [overflow-wrap:anywhere]"> <span>${escape(file.repository)}${validate_component(ChevronRight, "ChevronRight").$$render($$result, { class: "inline", size: 16 }, {}, {})}${file.fileUrl ? `${validate_component(Link, "Link").$$render($$result, { to: file.fileUrl }, {}, {
348
+ return `<h2 class="px-2 py-1 text-sm sticky top-0 flex flex-wrap bg-slate-100 whitespace-pre-wrap [overflow-wrap:anywhere]"> <span><span>${escape(file.repository)}</span><span>${validate_component(ChevronRight, "ChevronRight").$$render($$result, { class: "inline", size: 16 }, {}, {})}</span>${file.fileUrl ? `${validate_component(Link, "Link").$$render($$result, { to: file.fileUrl }, {}, {
346
349
  default: () => {
347
350
  return `${validate_component(Rendered_content, "RenderedContent").$$render($$result, { content: file.fileName }, {}, {})}`;
348
351
  }
349
352
  })}` : `${validate_component(Rendered_content, "RenderedContent").$$render($$result, { content: file.fileName }, {}, {})}`}</span> <span class="ml-auto">${escape(metadata.join(" | "))}</span></h2>`;
350
353
  });
351
354
  const Line_group = create_ssr_component(($$result, $$props, $$bindings, slots) => {
352
- let $highlights, $$unsubscribe_highlights;
353
355
  let { lines } = $$props;
354
356
  let { file } = $$props;
355
- const highlights = writable();
356
- $$unsubscribe_highlights = subscribe(highlights, (value) => $highlights = value);
357
+ let highlights;
358
+ let visibilityCanary;
357
359
  if ($$props.lines === void 0 && $$bindings.lines && lines !== void 0)
358
360
  $$bindings.lines(lines);
359
361
  if ($$props.file === void 0 && $$bindings.file && file !== void 0)
360
362
  $$bindings.file(file);
361
- $$unsubscribe_highlights();
362
- return ` <div class="py-1 grid grid-cols-[minmax(2rem,_min-content)_1fr] gap-x-2 whitespace-pre overflow-x-auto">${each(lines, ({ lineNumber, line }, i) => {
363
+ return ` <div class="py-1 grid grid-cols-[minmax(2rem,_min-content)_1fr] gap-x-2 whitespace-pre overflow-x-auto"${add_attribute("this", visibilityCanary, 0)}>${each(lines, ({ lineNumber, line }, i) => {
363
364
  return `<span class="select-none text-gray-600 text-right pr-1">${file.fileUrl && file.lineNumberTemplate ? `<a class="hover:underline decoration-1"${add_attribute("href", `${file.fileUrl}${file.lineNumberTemplate.join(lineNumber.toString())}`, 0)}>${escape(lineNumber)}</a>` : `${escape(lineNumber)}`}</span> <code>${validate_component(Rendered_content, "RenderedContent").$$render(
364
365
  $$result,
365
366
  {
366
367
  content: line,
367
- highlights: $highlights?.[i]
368
+ highlights: highlights?.[i]
368
369
  },
369
370
  {},
370
371
  {}
@@ -506,4 +507,4 @@ const Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {
506
507
  });
507
508
 
508
509
  export { Page as default };
509
- //# sourceMappingURL=_page.svelte-7KJATY9d.js.map
510
+ //# sourceMappingURL=_page.svelte-Vhv0rMkf.js.map