neogrok 0.2.2 → 0.2.4

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 (71) hide show
  1. package/build/client/_app/immutable/chunks/{loading-ellipsis.k3p6ijV8.js → loading-ellipsis.WolSsOzu.js} +5 -5
  2. package/build/client/_app/immutable/chunks/loading-ellipsis.WolSsOzu.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/loading-ellipsis.WolSsOzu.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/singletons.WtxoQ8Rg.js +1 -0
  5. package/build/client/_app/immutable/chunks/singletons.WtxoQ8Rg.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/singletons.WtxoQ8Rg.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{stores.qqHx_u93.js → stores.vKrPsuOp.js} +1 -1
  8. package/build/client/_app/immutable/chunks/stores.vKrPsuOp.js.br +4 -0
  9. package/build/client/_app/immutable/chunks/stores.vKrPsuOp.js.gz +0 -0
  10. package/build/client/_app/immutable/entry/{app.INY6tJlm.js → app.dvceyQGI.js} +2 -2
  11. package/build/client/_app/immutable/entry/app.dvceyQGI.js.br +0 -0
  12. package/build/client/_app/immutable/entry/app.dvceyQGI.js.gz +0 -0
  13. package/build/client/_app/immutable/entry/{start.a14tFEO4.js → start.2bi_Cbhj.js} +1 -1
  14. package/build/client/_app/immutable/entry/start.2bi_Cbhj.js.br +0 -0
  15. package/build/client/_app/immutable/entry/start.2bi_Cbhj.js.gz +0 -0
  16. package/build/client/_app/immutable/nodes/{0.xWLavMW2.js → 0.NAxYnjpY.js} +1 -1
  17. package/build/client/_app/immutable/nodes/0.NAxYnjpY.js.br +0 -0
  18. package/build/client/_app/immutable/nodes/0.NAxYnjpY.js.gz +0 -0
  19. package/build/client/_app/immutable/nodes/{1.rAOpvYHL.js → 1.JoqMGv10.js} +1 -1
  20. package/build/client/_app/immutable/nodes/1.JoqMGv10.js.br +0 -0
  21. package/build/client/_app/immutable/nodes/1.JoqMGv10.js.gz +0 -0
  22. package/build/client/_app/immutable/nodes/{10.GvaEAgQH.js → 10.nCRpBXJr.js} +3 -3
  23. package/build/client/_app/immutable/nodes/10.nCRpBXJr.js.br +0 -0
  24. package/build/client/_app/immutable/nodes/10.nCRpBXJr.js.gz +0 -0
  25. package/build/client/_app/immutable/nodes/{13.sZkidTit.js → 13.-w_f1PIE.js} +1 -1
  26. package/build/client/_app/immutable/nodes/13.-w_f1PIE.js.br +0 -0
  27. package/build/client/_app/immutable/nodes/13.-w_f1PIE.js.gz +0 -0
  28. package/build/client/_app/version.json +1 -1
  29. package/build/client/_app/version.json.br +0 -0
  30. package/build/client/_app/version.json.gz +0 -0
  31. package/build/server/chunks/{0-ok1NknM9.js → 0-BThRhXsq.js} +2 -2
  32. package/build/server/chunks/{0-ok1NknM9.js.map → 0-BThRhXsq.js.map} +1 -1
  33. package/build/server/chunks/{1-0QJNZiSC.js → 1-jU-IEMdx.js} +2 -2
  34. package/build/server/chunks/{1-0QJNZiSC.js.map → 1-jU-IEMdx.js.map} +1 -1
  35. package/build/server/chunks/{10-BBcjQvcj.js → 10-HxIxOsTQ.js} +3 -3
  36. package/build/server/chunks/{10-BBcjQvcj.js.map → 10-HxIxOsTQ.js.map} +1 -1
  37. package/build/server/chunks/{13-kCEzUGMx.js → 13-0tpV3Unv.js} +3 -3
  38. package/build/server/chunks/{13-kCEzUGMx.js.map → 13-0tpV3Unv.js.map} +1 -1
  39. package/build/server/chunks/{_page.svelte-Vhv0rMkf.js → _page.svelte-1Z4tShWw.js} +5 -5
  40. package/build/server/chunks/_page.svelte-1Z4tShWw.js.map +1 -0
  41. package/build/server/chunks/{_page.svelte-sWX5P4Ll.js → _page.svelte-hyJjICal.js} +5 -5
  42. package/build/server/chunks/_page.svelte-hyJjICal.js.map +1 -0
  43. package/build/server/chunks/{loading-ellipsis-yq_aohpf.js → loading-ellipsis-4AR0F4AZ.js} +7 -7
  44. package/build/server/chunks/loading-ellipsis-4AR0F4AZ.js.map +1 -0
  45. package/build/server/index.js +1 -1
  46. package/build/server/index.js.map +1 -1
  47. package/build/server/manifest.js +5 -5
  48. package/build/server/manifest.js.map +1 -1
  49. package/package.json +2 -2
  50. package/build/client/_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/loading-ellipsis.k3p6ijV8.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/singletons.DwO-MTR-.js +0 -1
  53. package/build/client/_app/immutable/chunks/singletons.DwO-MTR-.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/singletons.DwO-MTR-.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/stores.qqHx_u93.js.br +0 -2
  56. package/build/client/_app/immutable/chunks/stores.qqHx_u93.js.gz +0 -0
  57. package/build/client/_app/immutable/entry/app.INY6tJlm.js.br +0 -0
  58. package/build/client/_app/immutable/entry/app.INY6tJlm.js.gz +0 -0
  59. package/build/client/_app/immutable/entry/start.a14tFEO4.js.br +0 -0
  60. package/build/client/_app/immutable/entry/start.a14tFEO4.js.gz +0 -0
  61. package/build/client/_app/immutable/nodes/0.xWLavMW2.js.br +0 -0
  62. package/build/client/_app/immutable/nodes/0.xWLavMW2.js.gz +0 -0
  63. package/build/client/_app/immutable/nodes/1.rAOpvYHL.js.br +0 -2
  64. package/build/client/_app/immutable/nodes/1.rAOpvYHL.js.gz +0 -0
  65. package/build/client/_app/immutable/nodes/10.GvaEAgQH.js.br +0 -0
  66. package/build/client/_app/immutable/nodes/10.GvaEAgQH.js.gz +0 -0
  67. package/build/client/_app/immutable/nodes/13.sZkidTit.js.br +0 -0
  68. package/build/client/_app/immutable/nodes/13.sZkidTit.js.gz +0 -0
  69. package/build/server/chunks/_page.svelte-Vhv0rMkf.js.map +0 -1
  70. package/build/server/chunks/_page.svelte-sWX5P4Ll.js.map +0 -1
  71. package/build/server/chunks/loading-ellipsis-yq_aohpf.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import{c as V}from"./singletons.DwO-MTR-.js";import{n as v,k as H,H as g,a1 as K,G as p,a2 as O,a as j,d as _,a3 as N,i as b,g as X,u as P,r as U,v as D,K as Y,a4 as E,a5 as W,e as y,c as $,f as k,q as x,j as F,a6 as ee,t as te,b as le,s as se,h as A}from"./scheduler.T8nCnPq2.js";import{S as z,i as S,t as T,b as w,c as J,a as M,m as Q,d as R}from"./index.CP0w37D5.js";import{d as ne}from"./preferences.WetYOKHg.js";import{g as q,a as oe}from"./spread.rEx3vLA9.js";import{e as B}from"./each.oUkpMz5d.js";import{n as ae}from"./stores.qqHx_u93.js";import{d as ie}from"./index.XEtU8W2G.js";const qe=V("goto");/**
2
- * @license lucide-svelte v0.311.0 - ISC
3
-
4
- This source code is licensed under the ISC license.
5
- See the LICENSE file in the root directory of this source tree.
1
+ import{c as V}from"./singletons.WtxoQ8Rg.js";import{n as v,k as H,H as g,a1 as K,G as p,a2 as O,a as j,d as _,a3 as N,i as b,g as X,u as P,r as U,v as D,K as Y,a4 as E,a5 as W,e as y,c as $,f as k,q as x,j as F,a6 as ee,t as te,b as le,s as se,h as A}from"./scheduler.T8nCnPq2.js";import{S as z,i as S,t as T,b as w,c as J,a as M,m as Q,d as R}from"./index.CP0w37D5.js";import{d as ne}from"./preferences.WetYOKHg.js";import{g as q,a as oe}from"./spread.rEx3vLA9.js";import{e as B}from"./each.oUkpMz5d.js";import{n as ae}from"./stores.vKrPsuOp.js";import{d as ie}from"./index.XEtU8W2G.js";const qe=V("goto");/**
2
+ * @license lucide-svelte v0.320.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
6
  */const re={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},L=re;function Z(o,e,s){const t=o.slice();return t[10]=e[s][0],t[11]=e[s][1],t}function I(o){let e,s=[o[11]],t={};for(let l=0;l<s.length;l+=1)t=g(t,s[l]);return{c(){e=K(o[10]),this.h()},l(l){e=O(l,o[10],{}),j(e).forEach(_),this.h()},h(){N(e,t)},m(l,n){b(l,e,n)},p(l,n){N(e,t=q(s,[n&32&&l[11]]))},d(l){l&&_(e)}}}function G(o){let e=o[10],s,t=o[10]&&I(o);return{c(){t&&t.c(),s=p()},l(l){t&&t.l(l),s=p()},m(l,n){t&&t.m(l,n),b(l,s,n)},p(l,n){l[10]?e?v(e,l[10])?(t.d(1),t=I(l),e=l[10],t.c(),t.m(s.parentNode,s)):t.p(l,n):(t=I(l),e=l[10],t.c(),t.m(s.parentNode,s)):e&&(t.d(1),t=null,e=l[10])},d(l){l&&_(s),t&&t.d(l)}}}function ce(o){let e,s,t,l,n,r=B(o[5]),c=[];for(let a=0;a<r.length;a+=1)c[a]=G(Z(o,r,a));const f=o[9].default,u=H(f,o,o[8],null);let m=[L,o[6],{width:o[2]},{height:o[2]},{stroke:o[1]},{"stroke-width":t=o[4]?Number(o[3])*24/Number(o[2]):o[3]},{class:l=`lucide-icon lucide lucide-${o[0]} ${o[7].class??""}`}],d={};for(let a=0;a<m.length;a+=1)d=g(d,m[a]);return{c(){e=K("svg");for(let a=0;a<c.length;a+=1)c[a].c();s=p(),u&&u.c(),this.h()},l(a){e=O(a,"svg",{width:!0,height:!0,stroke:!0,"stroke-width":!0,class:!0});var i=j(e);for(let h=0;h<c.length;h+=1)c[h].l(i);s=p(),u&&u.l(i),i.forEach(_),this.h()},h(){N(e,d)},m(a,i){b(a,e,i);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(e,null);X(e,s),u&&u.m(e,null),n=!0},p(a,[i]){if(i&32){r=B(a[5]);let h;for(h=0;h<r.length;h+=1){const C=Z(a,r,h);c[h]?c[h].p(C,i):(c[h]=G(C),c[h].c(),c[h].m(e,s))}for(;h<c.length;h+=1)c[h].d(1);c.length=r.length}u&&u.p&&(!n||i&256)&&P(u,f,a,a[8],n?D(f,a[8],i,null):U(a[8]),null),N(e,d=q(m,[L,i&64&&a[6],(!n||i&4)&&{width:a[2]},(!n||i&4)&&{height:a[2]},(!n||i&2)&&{stroke:a[1]},(!n||i&28&&t!==(t=a[4]?Number(a[3])*24/Number(a[2]):a[3]))&&{"stroke-width":t},(!n||i&129&&l!==(l=`lucide-icon lucide lucide-${a[0]} ${a[7].class??""}`))&&{class:l}]))},i(a){n||(T(u,a),n=!0)},o(a){w(u,a),n=!1},d(a){a&&_(e),Y(c,a),u&&u.d(a)}}}function ue(o,e,s){const t=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let l=E(e,t),{$$slots:n={},$$scope:r}=e,{name:c}=e,{color:f="currentColor"}=e,{size:u=24}=e,{strokeWidth:m=2}=e,{absoluteStrokeWidth:d=!1}=e,{iconNode:a}=e;return o.$$set=i=>{s(7,e=g(g({},e),W(i))),s(6,l=E(e,t)),"name"in i&&s(0,c=i.name),"color"in i&&s(1,f=i.color),"size"in i&&s(2,u=i.size),"strokeWidth"in i&&s(3,m=i.strokeWidth),"absoluteStrokeWidth"in i&&s(4,d=i.absoluteStrokeWidth),"iconNode"in i&&s(5,a=i.iconNode),"$$scope"in i&&s(8,r=i.$$scope)},e=W(e),[c,f,u,m,d,a,l,e,r,n]}class fe extends z{constructor(e){super(),S(this,e,ue,ce,v,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function he(o){let e;const s=o[2].default,t=H(s,o,o[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&P(t,s,l,l[3],e?D(s,l[3],n,null):U(l[3]),null)},i(l){e||(T(t,l),e=!0)},o(l){w(t,l),e=!1},d(l){t&&t.d(l)}}}function me(o){let e,s;const t=[{name:"zap"},o[1],{iconNode:o[0]}];let l={$$slots:{default:[he]},$$scope:{ctx:o}};for(let n=0;n<t.length;n+=1)l=g(l,t[n]);return e=new fe({props:l}),{c(){J(e.$$.fragment)},l(n){M(e.$$.fragment,n)},m(n,r){Q(e,n,r),s=!0},p(n,[r]){const c=r&3?q(t,[t[0],r&2&&oe(n[1]),r&1&&{iconNode:n[0]}]):{};r&8&&(c.$$scope={dirty:r,ctx:n}),e.$set(c)},i(n){s||(T(e.$$.fragment,n),s=!0)},o(n){w(e.$$.fragment,n),s=!1},d(n){R(e,n)}}}function _e(o,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"}]];return o.$$set=r=>{s(1,e=g(g({},e),W(r))),"$$scope"in r&&s(3,l=r.$$scope)},e=W(e),[n,e,t,l]}class de extends z{constructor(e){super(),S(this,e,_e,me,v,{})}}const ge=de;function ve(o){let e,s,t,l,n,r,c;return s=new ge({props:{class:"inline",size:18,color:o[0]==="live"?"white":"black",strokeWidth:1,fill:o[0]==="live"?"white":"black"}}),{c(){e=y("button"),J(s.$$.fragment),this.h()},l(f){e=$(f,"BUTTON",{class:!0,title:!0});var u=j(e);M(s.$$.fragment,u),u.forEach(_),this.h()},h(){k(e,"class",t=`rounded w-6 grid place-items-center ${o[0]==="live"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`),k(e,"title",l=o[0]==="live"?"disable live search":"enable live search")},m(f,u){b(f,e,u),Q(s,e,null),n=!0,r||(c=x(e,"click",o[2]),r=!0)},p(f,[u]){const m={};u&1&&(m.color=f[0]==="live"?"white":"black"),u&1&&(m.fill=f[0]==="live"?"white":"black"),s.$set(m),(!n||u&1&&t!==(t=`rounded w-6 grid place-items-center ${f[0]==="live"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&k(e,"class",t),(!n||u&1&&l!==(l=f[0]==="live"?"disable live search":"enable live search"))&&k(e,"title",l)},i(f){n||(T(s.$$.fragment,f),n=!0)},o(f){w(s.$$.fragment,f),n=!1},d(f){f&&_(e),R(s),r=!1,c()}}}function be(o,e,s){let t;const l=ne();return F(o,l,r=>s(0,t=r)),[t,l,()=>{ee(l,t=t==="live"?"manual":"live",t)}]}class Ce extends z{constructor(e){super(),S(this,e,be,ve,v,{})}}function ke(o){let e=".".repeat(o[0]%4)+"",s;return{c(){s=te(e)},l(t){s=le(t,e)},m(t,l){b(t,s,l)},p(t,[l]){l&1&&e!==(e=".".repeat(t[0]%4)+"")&&se(s,e)},i:A,o:A,d(t){t&&_(s)}}}function pe(o,e,s){let t;const l=ie(ae,(n,r,c)=>{if(n!==null){const f=setInterval(()=>c(u=>u+1),250);return()=>clearInterval(f)}else r(0)},0);return F(o,l,n=>s(0,t=n)),[t,l]}class Ee extends z{constructor(e){super(),S(this,e,pe,ke,v,{})}}export{fe as I,Ee as L,Ce as T,qe as g};
@@ -0,0 +1 @@
1
+ import{w as u}from"./index.XEtU8W2G.js";const v=globalThis.__sveltekit_1yfid1z?.base??"",k=globalThis.__sveltekit_1yfid1z?.assets??v,m="1708982527359",T="sveltekit:snapshot",w="sveltekit:scroll",y="sveltekit:states",I="sveltekit:pageurl",S="sveltekit:history",N="sveltekit:navigation",f={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},_=location.origin;function U(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function L(){return{x:pageXOffset,y:pageYOffset}}function c(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const d={...f,"":f.hover};function h(t){let e=t.assignedSlot??t.parentNode;return e?.nodeType===11&&(e=e.host),e}function O(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=h(t)}}function Y(t,e){let n;try{n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,r=!n||!!a||A(n,e)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),l=n?.origin===_&&t.hasAttribute("download");return{url:n,external:r,target:a,download:l}}function x(t){let e=null,n=null,a=null,r=null,l=null,o=null,s=t;for(;s&&s!==document.documentElement;)a===null&&(a=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),e===null&&(e=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),o===null&&(o=c(s,"replacestate")),s=h(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:d[a??"off"],preload_data:d[r??"off"],keepfocus:i(e),noscroll:i(n),reload:i(l),replace_state:i(o)}}function p(t){const e=u(t);let n=!0;function a(){n=!0,e.update(o=>o)}function r(o){n=!1,e.set(o)}function l(o){let s;return e.subscribe(i=>{(s===void 0||n&&i!==s)&&o(s=i)})}return{notify:a,set:r,subscribe:l}}function E(){const{set:t,subscribe:e}=u(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${k}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==m;return o&&(t(!0),clearTimeout(n)),o}catch{return!1}}return{subscribe:e,check:a}}function A(t,e){return t.origin!==_||!t.pathname.startsWith(e)}let g;function P(t){g=t.client}function V(t){return(...e)=>g[t](...e)}const G={url:p({}),page:p({}),navigating:u(null),updated:E()};export{S as H,N,I as P,w as S,y as a,T as b,V as c,x as d,L as e,O as f,Y as g,v as h,A as i,f as j,P as k,_ as o,U as r,G as s};
@@ -1 +1 @@
1
- import{s as r}from"./singletons.DwO-MTR-.js";const e=()=>{const s=r;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},a={subscribe(s){return e().page.subscribe(s)}},i={subscribe(s){return e().navigating.subscribe(s)}};export{i as n,a as p};
1
+ import{s as r}from"./singletons.WtxoQ8Rg.js";const e=()=>{const s=r;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},a={subscribe(s){return e().page.subscribe(s)}},i={subscribe(s){return e().navigating.subscribe(s)}};export{i as n,a as p};
@@ -0,0 +1,4 @@
1
+ ) ��m��vK���?��v>��nI���jD_@]@a
2
+ AͭPi���lΩ/H
3
+ ��l����_6OPv͞��jj��FJ���g�O_�b�
4
+ fBm&5�_~��0�Ka4�Y7���˩�fG�����s!x-ʮ�j��+�ޓ��_<�oq
@@ -1,7 +1,7 @@
1
- import{_ as u}from"../chunks/5.MErjPYv9.js";import{n as q,l as C,G as m,o as G,i as w,d as g,M as Q,N as U,e as z,c as B,a as F,f as A,O as P,t as H,b as J,s as K,P as W,w as R,Q as b}from"../chunks/scheduler.T8nCnPq2.js";import{S as X,i as Y,b as p,e as D,t as d,g as I,c as k,a as V,m as E,d as v}from"../chunks/index.CP0w37D5.js";const ae={};function Z(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],form:t[2]}}}return n&&(e=b(n,c(_)),_[15](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[15](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[15](null),e&&v(e,t)}}}function x(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],$$slots:{default:[ne]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[14](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[14](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&65591&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[14](null),e&&v(e,t)}}}function ee(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],form:t[2]}}}return n&&(e=b(n,c(_)),_[13](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[13](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[13](null),e&&v(e,t)}}}function te(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],$$slots:{default:[ie]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[12](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[12](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&65575&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[12](null),e&&v(e,t)}}}function ie(_){let e,i,o;var n=_[1][2];function c(t,s){return{props:{data:t[5],form:t[2]}}}return n&&(e=b(n,c(_)),_[11](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][2])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[11](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&32&&(r.data=t[5]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[11](null),e&&v(e,t)}}}function ne(_){let e,i,o,n;const c=[te,ee],t=[];function s(r,l){return r[1][2]?0:1}return e=s(_),i=t[e]=c[e](_),{c(){i.c(),o=m()},l(r){i.l(r),o=m()},m(r,l){t[e].m(r,l),w(r,o,l),n=!0},p(r,l){let a=e;e=s(r),e===a?t[e].p(r,l):(I(),p(t[a],1,1,()=>{t[a]=null}),D(),i=t[e],i?i.p(r,l):(i=t[e]=c[e](r),i.c()),d(i,1),i.m(o.parentNode,o))},i(r){n||(d(i),n=!0)},o(r){p(i),n=!1},d(r){r&&g(o),t[e].d(r)}}}function T(_){let e,i=_[7]&&N(_);return{c(){e=z("div"),i&&i.c(),this.h()},l(o){e=B(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var n=F(e);i&&i.l(n),n.forEach(g),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),P(e,"position","absolute"),P(e,"left","0"),P(e,"top","0"),P(e,"clip","rect(0 0 0 0)"),P(e,"clip-path","inset(50%)"),P(e,"overflow","hidden"),P(e,"white-space","nowrap"),P(e,"width","1px"),P(e,"height","1px")},m(o,n){w(o,e,n),i&&i.m(e,null)},p(o,n){o[7]?i?i.p(o,n):(i=N(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(o){o&&g(e),i&&i.d()}}}function N(_){let e;return{c(){e=H(_[8])},l(i){e=J(i,_[8])},m(i,o){w(i,e,o)},p(i,o){o&256&&K(e,i[8])},d(i){i&&g(e)}}}function re(_){let e,i,o,n,c;const t=[x,Z],s=[];function r(a,h){return a[1][1]?0:1}e=r(_),i=s[e]=t[e](_);let l=_[6]&&T(_);return{c(){i.c(),o=C(),l&&l.c(),n=m()},l(a){i.l(a),o=G(a),l&&l.l(a),n=m()},m(a,h){s[e].m(a,h),w(a,o,h),l&&l.m(a,h),w(a,n,h),c=!0},p(a,[h]){let O=e;e=r(a),e===O?s[e].p(a,h):(I(),p(s[O],1,1,()=>{s[O]=null}),D(),i=s[e],i?i.p(a,h):(i=s[e]=t[e](a),i.c()),d(i,1),i.m(o.parentNode,o)),a[6]?l?l.p(a,h):(l=T(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(a){c||(d(i),c=!0)},o(a){p(i),c=!1},d(a){a&&(g(o),g(n)),s[e].d(a),l&&l.d(a)}}}function oe(_,e,i){let{stores:o}=e,{page:n}=e,{constructors:c}=e,{components:t=[]}=e,{form:s}=e,{data_0:r=null}=e,{data_1:l=null}=e,{data_2:a=null}=e;Q(o.page.notify);let h=!1,O=!1,L=null;U(()=>{const f=o.page.subscribe(()=>{h&&(i(7,O=!0),W().then(()=>{i(8,L=document.title||"untitled page")}))});return i(6,h=!0),f});function j(f){R[f?"unshift":"push"](()=>{t[2]=f,i(0,t)})}function y(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function $(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function M(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}function S(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}return _.$$set=f=>{"stores"in f&&i(9,o=f.stores),"page"in f&&i(10,n=f.page),"constructors"in f&&i(1,c=f.constructors),"components"in f&&i(0,t=f.components),"form"in f&&i(2,s=f.form),"data_0"in f&&i(3,r=f.data_0),"data_1"in f&&i(4,l=f.data_1),"data_2"in f&&i(5,a=f.data_2)},_.$$.update=()=>{_.$$.dirty&1536&&o.page.set(n)},[t,c,s,r,l,a,h,O,L,o,n,j,y,$,M,S]}class le extends X{constructor(e){super(),Y(this,e,oe,re,q,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const ce=[()=>u(()=>import("../nodes/0.xWLavMW2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>u(()=>import("../nodes/1.rAOpvYHL.js"),__vite__mapDeps([9,1,2,4,5,6]),import.meta.url),()=>u(()=>import("../nodes/2.vkJXjTLs.js"),__vite__mapDeps([10,1,2,11,7,6]),import.meta.url),()=>u(()=>import("../nodes/3.4gRT3HSg.js"),__vite__mapDeps([12,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/4.byFKum4o.js"),__vite__mapDeps([15,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../chunks/5.MErjPYv9.js").then(_=>_.a),__vite__mapDeps([]),import.meta.url),()=>u(()=>import("../nodes/6.Jq6ShEd9.js"),__vite__mapDeps([16,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/7.71Z9fgfA.js"),__vite__mapDeps([17,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/8.6IDmM4ij.js"),__vite__mapDeps([18,1,2,3,13,11]),import.meta.url),()=>u(()=>import("../nodes/9.K5BmOR02.js"),__vite__mapDeps([19,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/10.GvaEAgQH.js"),__vite__mapDeps([20,6,1,4,5,21,2,7,22,3,23,11,13,24]),import.meta.url),()=>u(()=>import("../nodes/11.RxDnejtk.js"),__vite__mapDeps([25,1,2,11,26,22,13]),import.meta.url),()=>u(()=>import("../nodes/12.dd-A-uM0.js"),__vite__mapDeps([27,1,2,7,6,23]),import.meta.url),()=>u(()=>import("../nodes/13.sZkidTit.js"),__vite__mapDeps([28,21,5,6,1,2,7,22,3,4,23,11]),import.meta.url),()=>u(()=>import("../nodes/14.GEWk9aUl.js"),__vite__mapDeps([29,1,2,11,13,26,22]),import.meta.url)],ue=[0],me={"/(search-page)":[10],"/about":[11],"/(opengrok-compat)/diff/[project]/[...file]":[-4,[2]],"/(opengrok-compat)/download/[project]/[...file]":[-5,[2]],"/(opengrok-compat)/help.jsp":[-6,[2]],"/(opengrok-compat)/history/[project]/[...file]":[-7,[2]],"/preferences":[12],"/(opengrok-compat)/raw/[project]/[...file]":[-8,[2]],"/repositories":[13],"/(opengrok-compat)/search":[-9,[2]],"/syntax":[14],"/(opengrok-compat)/xref/[project]/[...file]":[-10,[2]]},pe={handleError:({error:_})=>{console.error(_)}};export{me as dictionary,pe as hooks,ae as matchers,ce as nodes,le as root,ue as server_loads};
1
+ import{_ as u}from"../chunks/5.MErjPYv9.js";import{n as q,l as C,G as m,o as G,i as w,d as g,M as Q,N as U,e as z,c as B,a as F,f as A,O as P,t as H,b as J,s as K,P as W,w as R,Q as b}from"../chunks/scheduler.T8nCnPq2.js";import{S as X,i as Y,b as p,e as D,t as d,g as I,c as k,a as V,m as E,d as v}from"../chunks/index.CP0w37D5.js";const ae={};function Z(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],form:t[2]}}}return n&&(e=b(n,c(_)),_[15](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[15](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[15](null),e&&v(e,t)}}}function x(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],$$slots:{default:[ne]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[14](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[14](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&65591&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[14](null),e&&v(e,t)}}}function ee(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],form:t[2]}}}return n&&(e=b(n,c(_)),_[13](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[13](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[13](null),e&&v(e,t)}}}function te(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],$$slots:{default:[ie]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[12](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[12](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&65575&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[12](null),e&&v(e,t)}}}function ie(_){let e,i,o;var n=_[1][2];function c(t,s){return{props:{data:t[5],form:t[2]}}}return n&&(e=b(n,c(_)),_[11](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][2])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[11](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&32&&(r.data=t[5]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[11](null),e&&v(e,t)}}}function ne(_){let e,i,o,n;const c=[te,ee],t=[];function s(r,l){return r[1][2]?0:1}return e=s(_),i=t[e]=c[e](_),{c(){i.c(),o=m()},l(r){i.l(r),o=m()},m(r,l){t[e].m(r,l),w(r,o,l),n=!0},p(r,l){let a=e;e=s(r),e===a?t[e].p(r,l):(I(),p(t[a],1,1,()=>{t[a]=null}),D(),i=t[e],i?i.p(r,l):(i=t[e]=c[e](r),i.c()),d(i,1),i.m(o.parentNode,o))},i(r){n||(d(i),n=!0)},o(r){p(i),n=!1},d(r){r&&g(o),t[e].d(r)}}}function T(_){let e,i=_[7]&&N(_);return{c(){e=z("div"),i&&i.c(),this.h()},l(o){e=B(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var n=F(e);i&&i.l(n),n.forEach(g),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),P(e,"position","absolute"),P(e,"left","0"),P(e,"top","0"),P(e,"clip","rect(0 0 0 0)"),P(e,"clip-path","inset(50%)"),P(e,"overflow","hidden"),P(e,"white-space","nowrap"),P(e,"width","1px"),P(e,"height","1px")},m(o,n){w(o,e,n),i&&i.m(e,null)},p(o,n){o[7]?i?i.p(o,n):(i=N(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(o){o&&g(e),i&&i.d()}}}function N(_){let e;return{c(){e=H(_[8])},l(i){e=J(i,_[8])},m(i,o){w(i,e,o)},p(i,o){o&256&&K(e,i[8])},d(i){i&&g(e)}}}function re(_){let e,i,o,n,c;const t=[x,Z],s=[];function r(a,h){return a[1][1]?0:1}e=r(_),i=s[e]=t[e](_);let l=_[6]&&T(_);return{c(){i.c(),o=C(),l&&l.c(),n=m()},l(a){i.l(a),o=G(a),l&&l.l(a),n=m()},m(a,h){s[e].m(a,h),w(a,o,h),l&&l.m(a,h),w(a,n,h),c=!0},p(a,[h]){let O=e;e=r(a),e===O?s[e].p(a,h):(I(),p(s[O],1,1,()=>{s[O]=null}),D(),i=s[e],i?i.p(a,h):(i=s[e]=t[e](a),i.c()),d(i,1),i.m(o.parentNode,o)),a[6]?l?l.p(a,h):(l=T(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(a){c||(d(i),c=!0)},o(a){p(i),c=!1},d(a){a&&(g(o),g(n)),s[e].d(a),l&&l.d(a)}}}function oe(_,e,i){let{stores:o}=e,{page:n}=e,{constructors:c}=e,{components:t=[]}=e,{form:s}=e,{data_0:r=null}=e,{data_1:l=null}=e,{data_2:a=null}=e;Q(o.page.notify);let h=!1,O=!1,L=null;U(()=>{const f=o.page.subscribe(()=>{h&&(i(7,O=!0),W().then(()=>{i(8,L=document.title||"untitled page")}))});return i(6,h=!0),f});function j(f){R[f?"unshift":"push"](()=>{t[2]=f,i(0,t)})}function y(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function $(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function M(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}function S(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}return _.$$set=f=>{"stores"in f&&i(9,o=f.stores),"page"in f&&i(10,n=f.page),"constructors"in f&&i(1,c=f.constructors),"components"in f&&i(0,t=f.components),"form"in f&&i(2,s=f.form),"data_0"in f&&i(3,r=f.data_0),"data_1"in f&&i(4,l=f.data_1),"data_2"in f&&i(5,a=f.data_2)},_.$$.update=()=>{_.$$.dirty&1536&&o.page.set(n)},[t,c,s,r,l,a,h,O,L,o,n,j,y,$,M,S]}class le extends X{constructor(e){super(),Y(this,e,oe,re,q,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const ce=[()=>u(()=>import("../nodes/0.NAxYnjpY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>u(()=>import("../nodes/1.JoqMGv10.js"),__vite__mapDeps([9,1,2,4,5,6]),import.meta.url),()=>u(()=>import("../nodes/2.vkJXjTLs.js"),__vite__mapDeps([10,1,2,11,7,6]),import.meta.url),()=>u(()=>import("../nodes/3.4gRT3HSg.js"),__vite__mapDeps([12,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/4.byFKum4o.js"),__vite__mapDeps([15,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../chunks/5.MErjPYv9.js").then(_=>_.a),__vite__mapDeps([]),import.meta.url),()=>u(()=>import("../nodes/6.Jq6ShEd9.js"),__vite__mapDeps([16,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/7.71Z9fgfA.js"),__vite__mapDeps([17,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/8.6IDmM4ij.js"),__vite__mapDeps([18,1,2,3,13,11]),import.meta.url),()=>u(()=>import("../nodes/9.K5BmOR02.js"),__vite__mapDeps([19,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/10.nCRpBXJr.js"),__vite__mapDeps([20,6,1,4,5,21,2,7,22,3,23,11,13,24]),import.meta.url),()=>u(()=>import("../nodes/11.RxDnejtk.js"),__vite__mapDeps([25,1,2,11,26,22,13]),import.meta.url),()=>u(()=>import("../nodes/12.dd-A-uM0.js"),__vite__mapDeps([27,1,2,7,6,23]),import.meta.url),()=>u(()=>import("../nodes/13.-w_f1PIE.js"),__vite__mapDeps([28,21,5,6,1,2,7,22,3,4,23,11]),import.meta.url),()=>u(()=>import("../nodes/14.GEWk9aUl.js"),__vite__mapDeps([29,1,2,11,13,26,22]),import.meta.url)],ue=[0],me={"/(search-page)":[10],"/about":[11],"/(opengrok-compat)/diff/[project]/[...file]":[-4,[2]],"/(opengrok-compat)/download/[project]/[...file]":[-5,[2]],"/(opengrok-compat)/help.jsp":[-6,[2]],"/(opengrok-compat)/history/[project]/[...file]":[-7,[2]],"/preferences":[12],"/(opengrok-compat)/raw/[project]/[...file]":[-8,[2]],"/repositories":[13],"/(opengrok-compat)/search":[-9,[2]],"/syntax":[14],"/(opengrok-compat)/xref/[project]/[...file]":[-10,[2]]},pe={handleError:({error:_})=>{console.error(_)}};export{me as dictionary,pe as hooks,ae as matchers,ce as nodes,le as root,ue as server_loads};
2
2
  function __vite__mapDeps(indexes) {
3
3
  if (!__vite__mapDeps.viteFileDeps) {
4
- __vite__mapDeps.viteFileDeps = ["../nodes/0.xWLavMW2.js","../chunks/scheduler.T8nCnPq2.js","../chunks/index.CP0w37D5.js","../chunks/each.oUkpMz5d.js","../chunks/stores.qqHx_u93.js","../chunks/singletons.DwO-MTR-.js","../chunks/index.XEtU8W2G.js","../chunks/preferences.WetYOKHg.js","../assets/0.o0zCXDLg.css","../nodes/1.rAOpvYHL.js","../nodes/2.vkJXjTLs.js","../chunks/link.czJPdQv3.js","../nodes/3.4gRT3HSg.js","../chunks/example-query.6BQBimAu.js","../chunks/regexp.8yO1-0W0.js","../nodes/4.byFKum4o.js","../nodes/6.Jq6ShEd9.js","../nodes/7.71Z9fgfA.js","../nodes/8.6IDmM4ij.js","../nodes/9.K5BmOR02.js","../nodes/10.GvaEAgQH.js","../chunks/loading-ellipsis.k3p6ijV8.js","../chunks/spread.rEx3vLA9.js","../chunks/integer-input.fvZuttUG.js","../chunks/5.MErjPYv9.js","../nodes/11.RxDnejtk.js","../chunks/doc-section-heading.sh2xxNsr.js","../nodes/12.dd-A-uM0.js","../nodes/13.sZkidTit.js","../nodes/14.GEWk9aUl.js"]
4
+ __vite__mapDeps.viteFileDeps = ["../nodes/0.NAxYnjpY.js","../chunks/scheduler.T8nCnPq2.js","../chunks/index.CP0w37D5.js","../chunks/each.oUkpMz5d.js","../chunks/stores.vKrPsuOp.js","../chunks/singletons.WtxoQ8Rg.js","../chunks/index.XEtU8W2G.js","../chunks/preferences.WetYOKHg.js","../assets/0.o0zCXDLg.css","../nodes/1.JoqMGv10.js","../nodes/2.vkJXjTLs.js","../chunks/link.czJPdQv3.js","../nodes/3.4gRT3HSg.js","../chunks/example-query.6BQBimAu.js","../chunks/regexp.8yO1-0W0.js","../nodes/4.byFKum4o.js","../nodes/6.Jq6ShEd9.js","../nodes/7.71Z9fgfA.js","../nodes/8.6IDmM4ij.js","../nodes/9.K5BmOR02.js","../nodes/10.nCRpBXJr.js","../chunks/loading-ellipsis.WolSsOzu.js","../chunks/spread.rEx3vLA9.js","../chunks/integer-input.fvZuttUG.js","../chunks/5.MErjPYv9.js","../nodes/11.RxDnejtk.js","../chunks/doc-section-heading.sh2xxNsr.js","../nodes/12.dd-A-uM0.js","../nodes/13.-w_f1PIE.js","../nodes/14.GEWk9aUl.js"]
5
5
  }
6
6
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
7
  }
@@ -1,4 +1,4 @@
1
- import{N as Se,P as ke}from"../chunks/scheduler.T8nCnPq2.js";import{S as ct,a as lt,b as ft,H,N as K,r as ne,o as Ae,P as Oe,f as Qe,g as Re,d as de,i as $e,e as Te,s as q,h as F,j as et,k as bt}from"../chunks/singletons.DwO-MTR-.js";new URL("sveltekit-internal://");function Et(e,a){return e==="/"||a==="ignore"?e:a==="never"?e.endsWith("/")?e.slice(0,-1):e:a==="always"&&!e.endsWith("/")?e+"/":e}function St(e){return e.split("%25").map(decodeURI).join("%25")}function kt(e){for(const a in e)e[a]=decodeURIComponent(e[a]);return e}function Pe({href:e}){return e.split("#")[0]}const At=["href","pathname","search","toString","toJSON"];function Ot(e,a,c){const o=new URL(e);Object.defineProperty(o,"searchParams",{value:new Proxy(o.searchParams,{get(u,f){if(f==="get"||f==="getAll"||f==="has")return l=>(c(l),u[f](l));a();const w=Reflect.get(u,f);return typeof w=="function"?w.bind(u):w}}),enumerable:!0,configurable:!0});for(const u of At)Object.defineProperty(o,u,{get(){return a(),e[u]},enumerable:!0,configurable:!0});return Rt(o),o}function Rt(e){Object.defineProperty(e,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const $t="/__data.json",Pt=".html__data.json";function It(e){return e.endsWith(".html")?e.replace(/\.html$/,Pt):e.replace(/\/$/,"")+$t}function jt(...e){let a=5381;for(const c of e)if(typeof c=="string"){let o=c.length;for(;o;)a=a*33^c.charCodeAt(--o)}else if(ArrayBuffer.isView(c)){const o=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);let u=o.length;for(;u;)a=a*33^o[--u]}else throw new TypeError("value must be a string or TypedArray");return(a>>>0).toString(36)}const ut=window.fetch;window.fetch=(e,a)=>((e instanceof Request?e.method:a?.method||"GET")!=="GET"&&ae.delete(Ce(e)),ut(e,a));const ae=new Map;function xt(e){const a=atob(e),c=new Uint8Array(a.length);for(let o=0;o<a.length;o++)c[o]=a.charCodeAt(o);return c.buffer}function Lt(e,a){const c=Ce(e,a),o=document.querySelector(c);if(o?.textContent){let{body:u,...f}=JSON.parse(o.textContent);const w=o.getAttribute("data-ttl");return w&&ae.set(c,{body:u,init:f,ttl:1e3*Number(w)}),o.getAttribute("data-b64")!==null&&(u=xt(u)),Promise.resolve(new Response(u,f))}return window.fetch(e,a)}function Nt(e,a,c){if(ae.size>0){const o=Ce(e,c),u=ae.get(o);if(u){if(performance.now()<u.ttl&&["default","force-cache","only-if-cached",void 0].includes(c?.cache))return new Response(u.body,u.init);ae.delete(o)}}return window.fetch(a,c)}function Ce(e,a){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(a?.headers||a?.body){const u=[];a.headers&&u.push([...new Headers(a.headers)].join(",")),a.body&&(typeof a.body=="string"||ArrayBuffer.isView(a.body))&&u.push(a.body),o+=`[data-hash="${jt(...u)}"]`}return o}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const a=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Dt(e).map(o=>{const u=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(u)return a.push({name:u[1],matcher:u[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(f)return a.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const w=o.split(/\[(.+?)\](?!\])/);return"/"+w.map((g,s)=>{if(s%2){if(g.startsWith("x+"))return Ie(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return Ie(String.fromCharCode(...g.slice(2).split("-").map(O=>parseInt(O,16))));const h=Ut.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,v,P,E,$]=h;return a.push({name:E,matcher:$,optional:!!v,rest:!!P,chained:P?s===1&&w[0]==="":!1}),P?"(.*?)":v?"([^/]*)?":"([^/]+?)"}return Ie(g)}).join("")}).join("")}/?$`),params:a}}function Ct(e){return!/^\([^)]+\)$/.test(e)}function Dt(e){return e.slice(1).split("/").filter(Ct)}function Mt(e,a,c){const o={},u=e.slice(1),f=u.filter(l=>l!==void 0);let w=0;for(let l=0;l<a.length;l+=1){const g=a[l];let s=u[l-w];if(g.chained&&g.rest&&w&&(s=u.slice(l-w,l+1).filter(h=>h).join("/"),w=0),s===void 0){g.rest&&(o[g.name]="");continue}if(!g.matcher||c[g.matcher](s)){o[g.name]=s;const h=a[l+1],v=u[l+1];h&&!h.rest&&h.optional&&v&&g.chained&&(w=0),!h&&!v&&Object.keys(o).length===f.length&&(w=0);continue}if(g.optional&&g.chained){w++;continue}return}if(!w)return o}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ft({nodes:e,server_loads:a,dictionary:c,matchers:o}){const u=new Set(a);return Object.entries(c).map(([l,[g,s,h]])=>{const{pattern:v,params:P}=Tt(l),E={id:l,exec:$=>{const O=v.exec($);if(O)return Mt(O,P,o)},errors:[1,...h||[]].map($=>e[$]),layouts:[0,...s||[]].map(w),leaf:f(g)};return E.errors.length=E.layouts.length=Math.max(E.errors.length,E.layouts.length),E});function f(l){const g=l<0;return g&&(l=~l),[g,e[l]]}function w(l){return l===void 0?l:[u.has(l),e[l]]}}function De(e,a=JSON.parse){try{return a(sessionStorage[e])}catch{}}function je(e,a,c=JSON.stringify){const o=c(a);try{sessionStorage[e]=o}catch{}}class xe extends Error{constructor(a,c){super(a),this.name="DevalueError",this.path=c.join("")}}function tt(e){return Object(e)!==e}const Vt=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bt(e){const a=Object.getPrototypeOf(e);return a===Object.prototype||a===null||Object.getOwnPropertyNames(a).sort().join("\0")===Vt}function Ht(e){return Object.prototype.toString.call(e).slice(8,-1)}function qt(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
1
+ import{N as Se,P as ke}from"../chunks/scheduler.T8nCnPq2.js";import{S as ct,a as lt,b as ft,H,N as K,r as ne,o as Ae,P as Oe,f as Qe,g as Re,d as de,i as $e,e as Te,s as q,h as F,j as et,k as bt}from"../chunks/singletons.WtxoQ8Rg.js";new URL("sveltekit-internal://");function Et(e,a){return e==="/"||a==="ignore"?e:a==="never"?e.endsWith("/")?e.slice(0,-1):e:a==="always"&&!e.endsWith("/")?e+"/":e}function St(e){return e.split("%25").map(decodeURI).join("%25")}function kt(e){for(const a in e)e[a]=decodeURIComponent(e[a]);return e}function Pe({href:e}){return e.split("#")[0]}const At=["href","pathname","search","toString","toJSON"];function Ot(e,a,c){const o=new URL(e);Object.defineProperty(o,"searchParams",{value:new Proxy(o.searchParams,{get(u,f){if(f==="get"||f==="getAll"||f==="has")return l=>(c(l),u[f](l));a();const w=Reflect.get(u,f);return typeof w=="function"?w.bind(u):w}}),enumerable:!0,configurable:!0});for(const u of At)Object.defineProperty(o,u,{get(){return a(),e[u]},enumerable:!0,configurable:!0});return Rt(o),o}function Rt(e){Object.defineProperty(e,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const $t="/__data.json",Pt=".html__data.json";function It(e){return e.endsWith(".html")?e.replace(/\.html$/,Pt):e.replace(/\/$/,"")+$t}function jt(...e){let a=5381;for(const c of e)if(typeof c=="string"){let o=c.length;for(;o;)a=a*33^c.charCodeAt(--o)}else if(ArrayBuffer.isView(c)){const o=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);let u=o.length;for(;u;)a=a*33^o[--u]}else throw new TypeError("value must be a string or TypedArray");return(a>>>0).toString(36)}const ut=window.fetch;window.fetch=(e,a)=>((e instanceof Request?e.method:a?.method||"GET")!=="GET"&&ae.delete(Ce(e)),ut(e,a));const ae=new Map;function xt(e){const a=atob(e),c=new Uint8Array(a.length);for(let o=0;o<a.length;o++)c[o]=a.charCodeAt(o);return c.buffer}function Lt(e,a){const c=Ce(e,a),o=document.querySelector(c);if(o?.textContent){let{body:u,...f}=JSON.parse(o.textContent);const w=o.getAttribute("data-ttl");return w&&ae.set(c,{body:u,init:f,ttl:1e3*Number(w)}),o.getAttribute("data-b64")!==null&&(u=xt(u)),Promise.resolve(new Response(u,f))}return window.fetch(e,a)}function Nt(e,a,c){if(ae.size>0){const o=Ce(e,c),u=ae.get(o);if(u){if(performance.now()<u.ttl&&["default","force-cache","only-if-cached",void 0].includes(c?.cache))return new Response(u.body,u.init);ae.delete(o)}}return window.fetch(a,c)}function Ce(e,a){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(a?.headers||a?.body){const u=[];a.headers&&u.push([...new Headers(a.headers)].join(",")),a.body&&(typeof a.body=="string"||ArrayBuffer.isView(a.body))&&u.push(a.body),o+=`[data-hash="${jt(...u)}"]`}return o}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const a=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Dt(e).map(o=>{const u=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(u)return a.push({name:u[1],matcher:u[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(f)return a.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const w=o.split(/\[(.+?)\](?!\])/);return"/"+w.map((g,s)=>{if(s%2){if(g.startsWith("x+"))return Ie(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return Ie(String.fromCharCode(...g.slice(2).split("-").map(O=>parseInt(O,16))));const h=Ut.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,v,P,E,$]=h;return a.push({name:E,matcher:$,optional:!!v,rest:!!P,chained:P?s===1&&w[0]==="":!1}),P?"(.*?)":v?"([^/]*)?":"([^/]+?)"}return Ie(g)}).join("")}).join("")}/?$`),params:a}}function Ct(e){return!/^\([^)]+\)$/.test(e)}function Dt(e){return e.slice(1).split("/").filter(Ct)}function Mt(e,a,c){const o={},u=e.slice(1),f=u.filter(l=>l!==void 0);let w=0;for(let l=0;l<a.length;l+=1){const g=a[l];let s=u[l-w];if(g.chained&&g.rest&&w&&(s=u.slice(l-w,l+1).filter(h=>h).join("/"),w=0),s===void 0){g.rest&&(o[g.name]="");continue}if(!g.matcher||c[g.matcher](s)){o[g.name]=s;const h=a[l+1],v=u[l+1];h&&!h.rest&&h.optional&&v&&g.chained&&(w=0),!h&&!v&&Object.keys(o).length===f.length&&(w=0);continue}if(g.optional&&g.chained){w++;continue}return}if(!w)return o}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ft({nodes:e,server_loads:a,dictionary:c,matchers:o}){const u=new Set(a);return Object.entries(c).map(([l,[g,s,h]])=>{const{pattern:v,params:P}=Tt(l),E={id:l,exec:$=>{const O=v.exec($);if(O)return Mt(O,P,o)},errors:[1,...h||[]].map($=>e[$]),layouts:[0,...s||[]].map(w),leaf:f(g)};return E.errors.length=E.layouts.length=Math.max(E.errors.length,E.layouts.length),E});function f(l){const g=l<0;return g&&(l=~l),[g,e[l]]}function w(l){return l===void 0?l:[u.has(l),e[l]]}}function De(e,a=JSON.parse){try{return a(sessionStorage[e])}catch{}}function je(e,a,c=JSON.stringify){const o=c(a);try{sessionStorage[e]=o}catch{}}class xe extends Error{constructor(a,c){super(a),this.name="DevalueError",this.path=c.join("")}}function tt(e){return Object(e)!==e}const Vt=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bt(e){const a=Object.getPrototypeOf(e);return a===Object.prototype||a===null||Object.getOwnPropertyNames(a).sort().join("\0")===Vt}function Ht(e){return Object.prototype.toString.call(e).slice(8,-1)}function qt(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
2
2
  `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function X(e){let a="",c=0;const o=e.length;for(let u=0;u<o;u+=1){const f=e[u],w=qt(f);w&&(a+=e.slice(c,u)+w,c=u+1)}return`"${c===0?e:a+e.slice(c)}"`}const Me=-1,dt=-2,pt=-3,ht=-4,_t=-5,Fe=-6;function Jt(e,a){return gt(JSON.parse(e),a)}function gt(e,a){if(typeof e=="number")return u(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const c=e,o=Array(c.length);function u(f,w=!1){if(f===Me)return;if(f===pt)return NaN;if(f===ht)return 1/0;if(f===_t)return-1/0;if(f===Fe)return-0;if(w)throw new Error("Invalid input");if(f in o)return o[f];const l=c[f];if(!l||typeof l!="object")o[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],s=a?.[g];if(s)return o[f]=s(u(l[1]));switch(g){case"Date":o[f]=new Date(l[1]);break;case"Set":const h=new Set;o[f]=h;for(let E=1;E<l.length;E+=1)h.add(u(l[E]));break;case"Map":const v=new Map;o[f]=v;for(let E=1;E<l.length;E+=2)v.set(u(l[E]),u(l[E+1]));break;case"RegExp":o[f]=new RegExp(l[1],l[2]);break;case"Object":o[f]=Object(l[1]);break;case"BigInt":o[f]=BigInt(l[1]);break;case"null":const P=Object.create(null);o[f]=P;for(let E=1;E<l.length;E+=2)P[l[E]]=u(l[E+1]);break;default:throw new Error(`Unknown type ${g}`)}}else{const g=new Array(l.length);o[f]=g;for(let s=0;s<l.length;s+=1){const h=l[s];h!==dt&&(g[s]=u(h))}}else{const g={};o[f]=g;for(const s in l){const h=l[s];g[s]=u(h)}}return o[f]}return u(0)}function Gt(e,a){const c=[],o=new Map,u=[];for(const s in a)u.push({key:s,fn:a[s]});const f=[];let w=0;function l(s){if(typeof s=="function")throw new xe("Cannot stringify a function",f);if(o.has(s))return o.get(s);if(s===void 0)return Me;if(Number.isNaN(s))return pt;if(s===1/0)return ht;if(s===-1/0)return _t;if(s===0&&1/s<0)return Fe;const h=w++;o.set(s,h);for(const{key:P,fn:E}of u){const $=E(s);if($)return c[h]=`["${P}",${l($)}]`,h}let v="";if(tt(s))v=Le(s);else switch(Ht(s)){case"Number":case"String":case"Boolean":v=`["Object",${Le(s)}]`;break;case"BigInt":v=`["BigInt",${s}]`;break;case"Date":v=`["Date","${s.toISOString()}"]`;break;case"RegExp":const{source:E,flags:$}=s;v=$?`["RegExp",${X(E)},"${$}"]`:`["RegExp",${X(E)}]`;break;case"Array":v="[";for(let O=0;O<s.length;O+=1)O>0&&(v+=","),O in s?(f.push(`[${O}]`),v+=l(s[O]),f.pop()):v+=dt;v+="]";break;case"Set":v='["Set"';for(const O of s)v+=`,${l(O)}`;v+="]";break;case"Map":v='["Map"';for(const[O,D]of s)f.push(`.get(${tt(O)?Le(O):"..."})`),v+=`,${l(O)},${l(D)}`;v+="]";break;default:if(!Bt(s))throw new xe("Cannot stringify arbitrary non-POJOs",f);if(Object.getOwnPropertySymbols(s).length>0)throw new xe("Cannot stringify POJOs with symbolic keys",f);if(Object.getPrototypeOf(s)===null){v='["null"';for(const O in s)f.push(`.${O}`),v+=`,${X(O)},${l(s[O])}`,f.pop();v+="]"}else{v="{";let O=!1;for(const D in s)O&&(v+=","),O=!0,f.push(`.${D}`),v+=`${X(D)}:${l(s[D])}`,f.pop();v+="}"}}return c[h]=v,h}const g=l(e);return g<0?`${g}`:`[${c.join(",")}]`}function Le(e){const a=typeof e;return a==="string"?X(e):e instanceof String?X(e.toString()):e===void 0?Me.toString():e===0&&1/e<0?Fe.toString():a==="bigint"?`["BigInt","${e}"]`:String(e)}const mt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...mt];const Kt=new Set([...mt]);[...Kt];function Yt(e){return e.filter(a=>a!=null)}class _e{constructor(a,c){this.status=a,typeof c=="string"?this.body={message:c}:c?this.body=c:this.body={message:`Error: ${a}`}}toString(){return JSON.stringify(this.body)}}class nt{constructor(a,c){this.status=a,this.location=c}}class Ve extends Error{constructor(a,c,o){super(o),this.status=a,this.text=c}}const zt="x-sveltekit-invalidated",Wt="x-sveltekit-trailing-slash";function pe(e){return e instanceof _e||e instanceof Ve?e.status:500}function Xt(e){return e instanceof Ve?e.text:"Internal Error"}const Y=De(ct)??{},re=De(lt,Jt)??{},oe=De(ft)??{},rt=history.pushState,he=history.replaceState;function Ne(e){Y[e]=Te()}function at(e,a){let c=e+1;for(;Y[c];)delete Y[c],c+=1;for(c=a+1;oe[c];)delete oe[c],c+=1}function W(e){return location.href=e.href,new Promise(()=>{})}function ot(){}function Zt(e,a){const c=Ft(e),o=e.nodes[0],u=e.nodes[1];o(),u();const f=document.documentElement,w=[],l=[];let g=null;const s={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},v=!1,P=!1,E=!0,$=!1,O=!1,D=!1,Z=!1,se=!1,V,L=history.state?.[H],M=history.state?.[K];L||(L=M=Date.now(),he.call(history,{...history.state,[H]:L,[K]:M},"",location.href));const ge=Y[L];ge&&(history.scrollRestoration="manual",scrollTo(ge.x,ge.y));let j,z,me;async function Be(){if(await(me||=Promise.resolve()),!me)return;me=null;const n=ee(h.url,!0);g=null;const t=z={},r=n&&await ve(n);t===z&&(r&&(r.type==="redirect"?await ie(new URL(r.location,h.url).href,{},1,t):(r.props.page!==void 0&&(j=r.props.page),V.$set(r.props))),w.length=0)}function He(n){l.some(t=>t?.snapshot)&&(oe[n]=l.map(t=>t?.snapshot?.capture()))}function qe(n){oe[n]?.forEach((t,r)=>{l[r]?.snapshot?.restore(t)})}function Je(){Ne(L),je(ct,Y),He(M),je(ft,oe),je(lt,re,Gt)}async function ie(n,t,r,i){return fe({type:"goto",url:ne(n),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,redirect_count:r,state:t.state,nav_token:i,accept:()=>{t.invalidateAll&&(se=!0)}})}async function Ge(n){return g={id:n.id,promise:ve(n).then(t=>(t.type==="loaded"&&t.state.error&&(g=null),t))},g.promise}async function ce(n){const t=c.find(r=>r.exec(We(n)));t&&await Promise.all([...t.layouts,t.leaf].map(r=>r?.[1]()))}function Ke(n){h=n.state;const t=document.querySelector("style[data-sveltekit]");t&&t.remove(),j=n.props.page,V=new e.root({target:a,props:{...n.props,stores:q,components:l},hydrate:!0}),qe(M);const r={from:null,to:{params:h.params,route:{id:h.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};s.after_navigate.forEach(i=>i(r)),P=!0}async function Q({url:n,params:t,branch:r,status:i,error:d,route:p,form:_}){let y="never";for(const A of r)A?.slash!==void 0&&(y=A.slash);n.pathname=Et(n.pathname,y),n.search=n.search;const S={type:"loaded",state:{url:n,params:t,branch:r,error:d,route:p},props:{constructors:Yt(r).map(A=>A.node.component),page:j}};_!==void 0&&(S.props.form=_);let b={},N=!j,U=0;for(let A=0;A<Math.max(r.length,h.branch.length);A+=1){const x=r[A],R=h.branch[A];x?.data!==R?.data&&(N=!0),x&&(b={...b,...x.data},N&&(S.props[`data_${U}`]=b),U+=1)}return(!h.url||n.href!==h.url.href||h.error!==d||_!==void 0&&_!==j.form||N)&&(S.props.page={error:d,params:t,route:{id:p?.id??null},state:{},status:i,url:new URL(n),form:_??null,data:N?b:j.data}),S}async function ye({loader:n,parent:t,url:r,params:i,route:d,server_data_node:p}){let _=null,y=!0;const S={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},b=await n();if(b.universal?.load){let N=function(...m){for(const A of m){const{href:x}=new URL(A,r);S.dependencies.add(x)}};const U={route:new Proxy(d,{get:(m,A)=>(y&&(S.route=!0),m[A])}),params:new Proxy(i,{get:(m,A)=>(y&&S.params.add(A),m[A])}),data:p?.data??null,url:Ot(r,()=>{y&&(S.url=!0)},m=>{y&&S.search_params.add(m)}),async fetch(m,A){let x;m instanceof Request?(x=m.url,A={body:m.method==="GET"||m.method==="HEAD"?void 0:await m.blob(),cache:m.cache,credentials:m.credentials,headers:m.headers,integrity:m.integrity,keepalive:m.keepalive,method:m.method,mode:m.mode,redirect:m.redirect,referrer:m.referrer,referrerPolicy:m.referrerPolicy,signal:m.signal,...A}):x=m;const R=new URL(x,r);return y&&N(R.href),R.origin===r.origin&&(x=R.href.slice(r.origin.length)),P?Nt(x,R.href,A):Lt(x,A)},setHeaders:()=>{},depends:N,parent(){return y&&(S.parent=!0),t()},untrack(m){y=!1;try{return m()}finally{y=!0}}};_=await b.universal.load.call(null,U)??null}return{node:b,loader:n,server:p,universal:b.universal?.load?{type:"data",data:_,uses:S}:null,data:_??p?.data??null,slash:F&&(r.pathname===F||r.pathname===F+"/")?"always":b.universal?.trailingSlash??p?.slash}}function Ye(n,t,r,i,d,p){if(se)return!0;if(!d)return!1;if(d.parent&&n||d.route&&t||d.url&&r)return!0;for(const _ of d.search_params)if(i.has(_))return!0;for(const _ of d.params)if(p[_]!==h.params[_])return!0;for(const _ of d.dependencies)if(w.some(y=>y(new URL(_))))return!0;return!1}function we(n,t){return n?.type==="data"?n:n?.type==="skip"?t??null:null}function wt(n,t){if(!n)return new Set(t.searchParams.keys());const r=new Set([...n.searchParams.keys(),...t.searchParams.keys()]);for(const i of r){const d=n.searchParams.getAll(i),p=t.searchParams.getAll(i);d.every(_=>p.includes(_))&&p.every(_=>d.includes(_))&&r.delete(i)}return r}async function ve({id:n,invalidating:t,url:r,params:i,route:d}){if(g?.id===n)return g.promise;const{errors:p,layouts:_,leaf:y}=d,S=[..._,y];p.forEach(k=>k?.().catch(()=>{})),S.forEach(k=>k?.[1]().catch(()=>{}));let b=null;const N=h.url?n!==h.url.pathname+h.url.search:!1,U=h.route?d.id!==h.route.id:!1,m=wt(h.url,r);let A=!1;const x=S.map((k,I)=>{const T=h.branch[I],C=!!k?.[0]&&(T?.loader!==k[1]||Ye(A,U,N,m,T.server?.uses,i));return C&&(A=!0),C});if(x.some(Boolean)){try{b=await st(r,x)}catch(k){return le({status:pe(k),error:await te(k,{url:r,params:i,route:{id:d.id}}),url:r,route:d})}if(b.type==="redirect")return b}const R=b?.nodes;let B=!1;const J=S.map(async(k,I)=>{if(!k)return;const T=h.branch[I],C=R?.[I];if((!C||C.type==="skip")&&k[1]===T?.loader&&!Ye(B,U,N,m,T.universal?.uses,i))return T;if(B=!0,C?.type==="error")throw C;return ye({loader:k[1],url:r,params:i,route:d,parent:async()=>{const be={};for(let Ee=0;Ee<I;Ee+=1)Object.assign(be,(await J[Ee])?.data);return be},server_data_node:we(C===void 0&&k[0]?{type:"skip"}:C??null,k[0]?T?.server:void 0)})});for(const k of J)k.catch(()=>{});const G=[];for(let k=0;k<S.length;k+=1)if(S[k])try{G.push(await J[k])}catch(I){if(I instanceof nt)return{type:"redirect",location:I.location};let T=pe(I),C;if(R?.includes(I))T=I.status??T,C=I.error;else if(I instanceof _e)C=I.body;else{if(await q.updated.check())return await W(r);C=await te(I,{params:i,url:r,route:{id:d.id}})}const ue=await ze(k,G,p);return ue?await Q({url:r,params:i,branch:G.slice(0,ue.idx).concat(ue.node),status:T,error:C,route:d}):await Ze(r,{id:d.id},C,T)}else G.push(void 0);return await Q({url:r,params:i,branch:G,status:200,error:null,route:d,form:t?void 0:null})}async function ze(n,t,r){for(;n--;)if(r[n]){let i=n;for(;!t[i];)i-=1;try{return{idx:i+1,node:{node:await r[n](),loader:r[n],data:{},server:null,universal:null}}}catch{continue}}}async function le({status:n,error:t,url:r,route:i}){const d={};let p=null;if(e.server_loads[0]===0)try{const b=await st(r,[!0]);if(b.type!=="data"||b.nodes[0]&&b.nodes[0].type!=="data")throw 0;p=b.nodes[0]??null}catch{(r.origin!==Ae||r.pathname!==location.pathname||v)&&await W(r)}const y=await ye({loader:o,url:r,params:d,route:i,parent:()=>Promise.resolve({}),server_data_node:we(p)}),S={node:await u(),loader:u,universal:null,server:null,data:null};return await Q({url:r,params:d,branch:[y,S],status:n,error:t,route:null})}function ee(n,t){if($e(n,F))return;const r=We(n.pathname);for(const i of c){const d=i.exec(r);if(d)return{id:n.pathname+n.search,invalidating:t,route:i,params:kt(d),url:n}}}function We(n){return St(n.slice(F.length)||"/")}function Xe({url:n,type:t,intent:r,delta:i}){let d=!1;const p=it(h,r,n,t);i!==void 0&&(p.navigation.delta=i);const _={...p.navigation,cancel:()=>{d=!0,p.reject(new Error("navigation was cancelled"))}};return O||s.before_navigate.forEach(y=>y(_)),d?null:p}async function fe({type:n,url:t,popped:r,keepfocus:i,noscroll:d,replace_state:p,state:_={},redirect_count:y=0,nav_token:S={},accept:b=ot,block:N=ot}){const U=ee(t,!1),m=Xe({url:t,type:n,delta:r?.delta,intent:U});if(!m){N();return}const A=L,x=M;b(),O=!0,P&&q.navigating.set(m.navigation),z=S;let R=U&&await ve(U);if(!R){if($e(t,F))return await W(t);R=await Ze(t,{id:null},await te(new Ve(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=U?.url||t,z!==S)return m.reject(new Error("navigation was aborted")),!1;if(R.type==="redirect")if(y>=20)R=await le({status:500,error:await te(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return ie(new URL(R.location,t).href,{},y+1,S),!1;else R.props.page.status>=400&&await q.updated.check()&&await W(t);if(w.length=0,se=!1,$=!0,Ne(A),He(x),R.props.page.url.pathname!==t.pathname&&(t.pathname=R.props.page.url.pathname),_=r?r.state:_,!r){const k=p?0:1,I={[H]:L+=k,[K]:M+=k};(p?he:rt).call(history,I,"",t),p||at(L,M)}if(re[L]=_,g=null,R.props.page.state=_,P){h=R.state,R.props.page&&(R.props.page.url=t);const k=(await Promise.all(s.on_navigate.map(I=>I(m.navigation)))).filter(I=>typeof I=="function");if(k.length>0){let I=function(){s.after_navigate=s.after_navigate.filter(T=>!k.includes(T))};k.push(I),s.after_navigate.push(...k)}V.$set(R.props),Z=!0}else Ke(R);const{activeElement:B}=document;await ke();const J=r?r.scroll:d?Te():null;if(E){const k=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));J?scrollTo(J.x,J.y):k?k.scrollIntoView():scrollTo(0,0)}const G=document.activeElement!==B&&document.activeElement!==document.body;!i&&!G&&Ue(),E=!0,R.props.page&&(j=R.props.page),O=!1,n==="popstate"&&qe(M),m.fulfil(void 0),s.after_navigate.forEach(k=>k(m.navigation)),q.navigating.set(null),$=!1}async function Ze(n,t,r,i){return n.origin===Ae&&n.pathname===location.pathname&&!v?await le({status:i,error:r,url:n,route:t}):await W(n)}function vt(){let n;f.addEventListener("mousemove",p=>{const _=p.target;clearTimeout(n),n=setTimeout(()=>{i(_,2)},20)});function t(p){i(p.composedPath()[0],1)}f.addEventListener("mousedown",t),f.addEventListener("touchstart",t,{passive:!0});const r=new IntersectionObserver(p=>{for(const _ of p)_.isIntersecting&&(ce(_.target.href),r.unobserve(_.target))},{threshold:0});function i(p,_){const y=Qe(p,f);if(!y)return;const{url:S,external:b,download:N}=Re(y,F);if(b||N)return;const U=de(y);if(!U.reload)if(_<=U.preload_data){const m=ee(S,!1);m&&Ge(m)}else _<=U.preload_code&&ce(S.pathname)}function d(){r.disconnect();for(const p of f.querySelectorAll("a")){const{url:_,external:y,download:S}=Re(p,F);if(y||S)continue;const b=de(p);b.reload||(b.preload_code===et.viewport&&r.observe(p),b.preload_code===et.eager&&ce(_.pathname))}}s.after_navigate.push(d),d()}function te(n,t){if(n instanceof _e)return n.body;const r=pe(n),i=Xt(n);return e.hooks.handleError({error:n,event:t,status:r,message:i})??{message:i}}return{after_navigate:n=>{Se(()=>(s.after_navigate.push(n),()=>{const t=s.after_navigate.indexOf(n);s.after_navigate.splice(t,1)}))},before_navigate:n=>{Se(()=>(s.before_navigate.push(n),()=>{const t=s.before_navigate.indexOf(n);s.before_navigate.splice(t,1)}))},on_navigate:n=>{Se(()=>(s.on_navigate.push(n),()=>{const t=s.on_navigate.indexOf(n);s.on_navigate.splice(t,1)}))},disable_scroll_handling:()=>{($||!P)&&(E=!1)},goto:(n,t={})=>(n=ne(n),n.origin!==Ae?Promise.reject(new Error("goto: invalid URL")):ie(n,t,0)),invalidate:n=>{if(typeof n=="function")w.push(n);else{const{href:t}=new URL(n,location.href);w.push(r=>r.href===t)}return Be()},invalidate_all:()=>(se=!0,Be()),preload_data:async n=>{const t=ne(n),r=ee(t,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${t}`);const i=await Ge(r);if(i.type==="redirect")return{type:i.type,location:i.location};const{status:d,data:p}=i.props.page??j;return{type:i.type,status:d,data:p}},preload_code:n=>ce(n),push_state:(n,t)=>{const r={[H]:L+=1,[K]:M,[Oe]:j.url.href};rt.call(history,r,"",ne(n)),j={...j,state:t},V.$set({page:j}),re[L]=t,at(L,M)},replace_state:(n,t)=>{const r={[H]:L,[K]:M,[Oe]:j.url.href};he.call(history,r,"",ne(n)),j={...j,state:t},V.$set({page:j}),re[L]=t},apply_action:async n=>{if(n.type==="error"){const t=new URL(location.href),{branch:r,route:i}=h;if(!i)return;const d=await ze(h.branch.length,r,i.errors);if(d){const p=await Q({url:t,params:h.params,branch:r.slice(0,d.idx).concat(d.node),status:n.status??500,error:n.error,route:i});h=p.state,V.$set(p.props),ke().then(Ue)}}else n.type==="redirect"?ie(n.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...j,form:n.data,status:n.status}}),await ke(),V.$set({form:n.data}),n.type==="success"&&Ue())},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Je(),!O){const i=it(h,void 0,null,"leave"),d={...i.navigation,cancel:()=>{r=!0,i.reject(new Error("navigation was cancelled"))}};s.before_navigate.forEach(p=>p(d))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Je()}),navigator.connection?.saveData||vt(),f.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Qe(t.composedPath()[0],f);if(!r)return;const{url:i,external:d,target:p,download:_}=Re(r,F);if(!i)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const y=de(r);if(!(r instanceof SVGAElement)&&i.protocol!==location.protocol&&!(i.protocol==="https:"||i.protocol==="http:")||_)return;if(d||y.reload){Xe({url:i,type:"link"})?O=!0:t.preventDefault();return}const[b,N]=i.href.split("#");if(N!==void 0&&b===Pe(location)){if(h.url.hash===i.hash){t.preventDefault(),r.ownerDocument.getElementById(N)?.scrollIntoView();return}if(D=!0,Ne(L),n(i),!y.replace_state)return;D=!1}t.preventDefault(),fe({type:"link",url:i,keepfocus:y.keepfocus,noscroll:y.noscroll,replace_state:y.replace_state??i.href===location.href})}),f.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),i=t.submitter;if((i?.formMethod||r.method)!=="get")return;const p=new URL(i?.hasAttribute("formaction")&&i?.formAction||r.action);if($e(p,F))return;const _=t.target,y=de(_);if(y.reload)return;t.preventDefault(),t.stopPropagation();const S=new FormData(_),b=i?.getAttribute("name");b&&S.append(b,i?.getAttribute("value")??""),p.search=new URLSearchParams(S).toString(),fe({type:"form",url:p,keepfocus:y.keepfocus,noscroll:y.noscroll,replace_state:y.replace_state??p.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[H]){const r=t.state[H];if(z={},r===L)return;const i=Y[r],d=re[r]??{},p=new URL(t.state[Oe]??location.href),_=t.state[K],y=Pe(location)===Pe(h.url);if(_===M&&(Z||y)){n(p),Y[L]=Te(),i&&scrollTo(i.x,i.y),d!==j.state&&(j={...j,state:d},V.$set({page:j})),L=r;return}const b=r-L;await fe({type:"popstate",url:p,popped:{state:d,scroll:i,delta:b},accept:()=>{L=r,M=_},block:()=>{history.go(-b)},nav_token:z})}else if(!D){const r=new URL(location.href);n(r)}}),addEventListener("hashchange",()=>{D&&(D=!1,he.call(history,{...history.state,[H]:++L,[K]:M},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&q.navigating.set(null)});function n(t){h.url=t,q.page.set({...j,url:t}),q.page.notify()}},_hydrate:async({status:n=200,error:t,node_ids:r,params:i,route:d,data:p,form:_})=>{v=!0;const y=new URL(location.href);({params:i={},route:d={id:null}}=ee(y,!1)||{});let S;try{const b=r.map(async(m,A)=>{const x=p[A];return x?.uses&&(x.uses=yt(x.uses)),ye({loader:e.nodes[m],url:y,params:i,route:d,parent:async()=>{const R={};for(let B=0;B<A;B+=1)Object.assign(R,(await b[B]).data);return R},server_data_node:we(x)})}),N=await Promise.all(b),U=c.find(({id:m})=>m===d.id);if(U){const m=U.layouts;for(let A=0;A<m.length;A++)m[A]||N.splice(A,0,void 0)}S=await Q({url:y,params:i,branch:N,status:n,error:t,form:_,route:U??null})}catch(b){if(b instanceof nt){await W(new URL(b.location,location.href));return}S=await le({status:pe(b),error:await te(b,{url:y,params:i,route:d}),url:y,route:d})}S.props.page&&(S.props.page.state={}),Ke(S)}}}async function st(e,a){const c=new URL(e);c.pathname=It(e.pathname),e.pathname.endsWith("/")&&c.searchParams.append(Wt,"1"),c.searchParams.append(zt,a.map(u=>u?"1":"0").join(""));const o=await ut(c.href);if(!o.ok){let u;throw o.headers.get("content-type")?.includes("application/json")?u=await o.json():o.status===404?u="Not Found":o.status===500&&(u="Internal Error"),new _e(o.status,u)}return new Promise(async u=>{const f=new Map,w=o.body.getReader(),l=new TextDecoder;function g(h){return gt(h,{Promise:v=>new Promise((P,E)=>{f.set(v,{fulfil:P,reject:E})})})}let s="";for(;;){const{done:h,value:v}=await w.read();if(h&&!s)break;for(s+=!v&&s?`
3
3
  `:l.decode(v);;){const P=s.indexOf(`
4
4
  `);if(P===-1)break;const E=JSON.parse(s.slice(0,P));if(s=s.slice(P+1),E.type==="redirect")return u(E);if(E.type==="data")E.nodes?.forEach($=>{$?.type==="data"&&($.uses=yt($.uses),$.data=g($.data))}),u(E);else if(E.type==="chunk"){const{id:$,data:O,error:D}=E,Z=f.get($);f.delete($),D?Z.reject(g(D)):Z.fulfil(g(O))}}}})}function yt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Ue(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const a=document.body,c=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),c!==null?a.setAttribute("tabindex",c):a.removeAttribute("tabindex");const o=getSelection();if(o&&o.type!=="None"){const u=[];for(let f=0;f<o.rangeCount;f+=1)u.push(o.getRangeAt(f));setTimeout(()=>{if(o.rangeCount===u.length){for(let f=0;f<o.rangeCount;f+=1){const w=u[f],l=o.getRangeAt(f);if(w.commonAncestorContainer!==l.commonAncestorContainer||w.startContainer!==l.startContainer||w.endContainer!==l.endContainer||w.startOffset!==l.startOffset||w.endOffset!==l.endOffset)return}o.removeAllRanges()}})}}}function it(e,a,c,o){let u,f;const w=new Promise((g,s)=>{u=g,f=s});return w.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:c&&{params:a?.params??null,route:{id:a?.route?.id??null},url:c},willUnload:!a,type:o,complete:w},fulfil:u,reject:f}}async function tn(e,a,c){const o=Zt(e,a);bt({client:o}),c?await o._hydrate(c):o.goto(location.href,{replaceState:!0}),o._start_router()}export{tn as start};
@@ -1 +1 @@
1
- import{n as W,k as q,e as m,l as j,c as d,a as g,d as h,o as N,f as p,i as y,g as v,u as w,r as C,v as D,K,j as M,t as P,b as V,h as Q}from"../chunks/scheduler.T8nCnPq2.js";import{S as R,i as U,t as $,b as z}from"../chunks/index.CP0w37D5.js";import{e as I}from"../chunks/each.oUkpMz5d.js";import{p as B}from"../chunks/stores.qqHx_u93.js";import{p as F}from"../chunks/preferences.WetYOKHg.js";function L(o,e,r){const l=o.slice();return l[5]=e[r][0],l[6]=e[r][1],l}function G(o){let e,r=o[6]+"",l,f;return{c(){e=m("a"),l=P(r),this.h()},l(t){e=d(t,"A",{class:!0,href:!0});var a=g(e);l=V(a,r),a.forEach(h),this.h()},h(){p(e,"class","text-cyan-700"),p(e,"href",f=`${o[5]}${o[0].route.id?.startsWith("/(opengrok-compat)/")?"":o[0].url.search}`)},m(t,a){y(t,e,a),v(e,l)},p(t,a){a&1&&f!==(f=`${t[5]}${t[0].route.id?.startsWith("/(opengrok-compat)/")?"":t[0].url.search}`)&&p(e,"href",f)},d(t){t&&h(e)}}}function H(o){let e=o[6]+"",r;return{c(){r=P(e)},l(l){r=V(l,e)},m(l,f){y(l,r,f)},p:Q,d(l){l&&h(r)}}}function S(o){let e,r;function l(a,c){return a[5]===a[0].url.pathname?H:G}let f=l(o),t=f(o);return{c(){e=m("li"),t.c(),r=j(),this.h()},l(a){e=d(a,"LI",{class:!0});var c=g(e);t.l(c),r=N(c),c.forEach(h),this.h()},h(){p(e,"class","after:content-['•'] after:pl-1 after:pr-2 last:after:content-none")},m(a,c){y(a,e,c),t.m(e,null),v(e,r)},p(a,c){f===(f=l(a))&&t?t.p(a,c):(t.d(1),t=f(a),t&&(t.c(),t.m(e,r)))},d(a){a&&h(e),t.d()}}}function J(o){let e,r,l,f,t,a,c=I(o[1]),n=[];for(let s=0;s<c.length;s+=1)n[s]=S(L(o,c,s));const k=o[4].default,u=q(k,o,o[3],null);return{c(){e=m("div"),r=m("nav"),l=m("ul");for(let s=0;s<n.length;s+=1)n[s].c();f=j(),t=m("main"),u&&u.c(),this.h()},l(s){e=d(s,"DIV",{class:!0});var _=g(e);r=d(_,"NAV",{class:!0});var i=g(r);l=d(i,"UL",{class:!0});var b=g(l);for(let E=0;E<n.length;E+=1)n[E].l(b);b.forEach(h),i.forEach(h),f=N(_),t=d(_,"MAIN",{});var A=g(t);u&&u.l(A),A.forEach(h),_.forEach(h),this.h()},h(){p(l,"class","flex justify-center text-xs gap-y-2 flex-wrap"),p(r,"class","pb-12"),p(e,"class","container mx-auto px-2 py-4")},m(s,_){y(s,e,_),v(e,r),v(r,l);for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(l,null);v(e,f),v(e,t),u&&u.m(t,null),a=!0},p(s,[_]){if(_&3){c=I(s[1]);let i;for(i=0;i<c.length;i+=1){const b=L(s,c,i);n[i]?n[i].p(b,_):(n[i]=S(b),n[i].c(),n[i].m(l,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=c.length}u&&u.p&&(!a||_&8)&&w(u,k,s,s[3],a?D(k,s[3],_,null):C(s[3]),null)},i(s){a||($(u,s),a=!0)},o(s){z(u,s),a=!1},d(s){s&&h(e),K(n,s),u&&u.d(s)}}}function O(o,e,r){let l;M(o,B,n=>r(0,l=n));let{$$slots:f={},$$scope:t}=e;const a=[["/","Search"],["/repositories","Repositories"],["/syntax","Query Syntax"],["/about","About"],["/preferences","Preferences"]];let{data:c}=e;return F(c.preferences),o.$$set=n=>{"data"in n&&r(2,c=n.data),"$$scope"in n&&r(3,t=n.$$scope)},[l,a,c,t,f]}class ee extends R{constructor(e){super(),U(this,e,O,J,W,{data:2})}}export{ee as component};
1
+ import{n as W,k as q,e as m,l as j,c as d,a as g,d as h,o as N,f as p,i as y,g as v,u as w,r as C,v as D,K,j as M,t as P,b as V,h as Q}from"../chunks/scheduler.T8nCnPq2.js";import{S as R,i as U,t as $,b as z}from"../chunks/index.CP0w37D5.js";import{e as I}from"../chunks/each.oUkpMz5d.js";import{p as B}from"../chunks/stores.vKrPsuOp.js";import{p as F}from"../chunks/preferences.WetYOKHg.js";function L(o,e,r){const l=o.slice();return l[5]=e[r][0],l[6]=e[r][1],l}function G(o){let e,r=o[6]+"",l,f;return{c(){e=m("a"),l=P(r),this.h()},l(t){e=d(t,"A",{class:!0,href:!0});var a=g(e);l=V(a,r),a.forEach(h),this.h()},h(){p(e,"class","text-cyan-700"),p(e,"href",f=`${o[5]}${o[0].route.id?.startsWith("/(opengrok-compat)/")?"":o[0].url.search}`)},m(t,a){y(t,e,a),v(e,l)},p(t,a){a&1&&f!==(f=`${t[5]}${t[0].route.id?.startsWith("/(opengrok-compat)/")?"":t[0].url.search}`)&&p(e,"href",f)},d(t){t&&h(e)}}}function H(o){let e=o[6]+"",r;return{c(){r=P(e)},l(l){r=V(l,e)},m(l,f){y(l,r,f)},p:Q,d(l){l&&h(r)}}}function S(o){let e,r;function l(a,c){return a[5]===a[0].url.pathname?H:G}let f=l(o),t=f(o);return{c(){e=m("li"),t.c(),r=j(),this.h()},l(a){e=d(a,"LI",{class:!0});var c=g(e);t.l(c),r=N(c),c.forEach(h),this.h()},h(){p(e,"class","after:content-['•'] after:pl-1 after:pr-2 last:after:content-none")},m(a,c){y(a,e,c),t.m(e,null),v(e,r)},p(a,c){f===(f=l(a))&&t?t.p(a,c):(t.d(1),t=f(a),t&&(t.c(),t.m(e,r)))},d(a){a&&h(e),t.d()}}}function J(o){let e,r,l,f,t,a,c=I(o[1]),n=[];for(let s=0;s<c.length;s+=1)n[s]=S(L(o,c,s));const k=o[4].default,u=q(k,o,o[3],null);return{c(){e=m("div"),r=m("nav"),l=m("ul");for(let s=0;s<n.length;s+=1)n[s].c();f=j(),t=m("main"),u&&u.c(),this.h()},l(s){e=d(s,"DIV",{class:!0});var _=g(e);r=d(_,"NAV",{class:!0});var i=g(r);l=d(i,"UL",{class:!0});var b=g(l);for(let E=0;E<n.length;E+=1)n[E].l(b);b.forEach(h),i.forEach(h),f=N(_),t=d(_,"MAIN",{});var A=g(t);u&&u.l(A),A.forEach(h),_.forEach(h),this.h()},h(){p(l,"class","flex justify-center text-xs gap-y-2 flex-wrap"),p(r,"class","pb-12"),p(e,"class","container mx-auto px-2 py-4")},m(s,_){y(s,e,_),v(e,r),v(r,l);for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(l,null);v(e,f),v(e,t),u&&u.m(t,null),a=!0},p(s,[_]){if(_&3){c=I(s[1]);let i;for(i=0;i<c.length;i+=1){const b=L(s,c,i);n[i]?n[i].p(b,_):(n[i]=S(b),n[i].c(),n[i].m(l,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=c.length}u&&u.p&&(!a||_&8)&&w(u,k,s,s[3],a?D(k,s[3],_,null):C(s[3]),null)},i(s){a||($(u,s),a=!0)},o(s){z(u,s),a=!1},d(s){s&&h(e),K(n,s),u&&u.d(s)}}}function O(o,e,r){let l;M(o,B,n=>r(0,l=n));let{$$slots:f={},$$scope:t}=e;const a=[["/","Search"],["/repositories","Repositories"],["/syntax","Query Syntax"],["/about","About"],["/preferences","Preferences"]];let{data:c}=e;return F(c.preferences),o.$$set=n=>{"data"in n&&r(2,c=n.data),"$$scope"in n&&r(3,t=n.$$scope)},[l,a,c,t,f]}class ee extends R{constructor(e){super(),U(this,e,O,J,W,{data:2})}}export{ee as component};
@@ -1 +1 @@
1
- import{n as _,e as d,t as c,c as g,a as x,b as m,d as h,f as v,i as b,g as p,s as u,h as f,j as $}from"../chunks/scheduler.T8nCnPq2.js";import{S as E,i as S}from"../chunks/index.CP0w37D5.js";import{p as j}from"../chunks/stores.qqHx_u93.js";function q(n){let t,a=n[0].status+"",r,o,i=n[0].error?.message+"",l;return{c(){t=d("h1"),r=c(a),o=c(" - "),l=c(i),this.h()},l(s){t=g(s,"H1",{class:!0});var e=x(t);r=m(e,a),o=m(e," - "),l=m(e,i),e.forEach(h),this.h()},h(){v(t,"class","text-center text-xl")},m(s,e){b(s,t,e),p(t,r),p(t,o),p(t,l)},p(s,[e]){e&1&&a!==(a=s[0].status+"")&&u(r,a),e&1&&i!==(i=s[0].error?.message+"")&&u(l,i)},i:f,o:f,d(s){s&&h(t)}}}function y(n,t,a){let r;return $(n,j,o=>a(0,r=o)),[r]}class w extends E{constructor(t){super(),S(this,t,y,q,_,{})}}export{w as component};
1
+ import{n as _,e as d,t as c,c as g,a as x,b as m,d as h,f as v,i as b,g as p,s as u,h as f,j as $}from"../chunks/scheduler.T8nCnPq2.js";import{S as E,i as S}from"../chunks/index.CP0w37D5.js";import{p as j}from"../chunks/stores.vKrPsuOp.js";function q(n){let t,a=n[0].status+"",r,o,i=n[0].error?.message+"",l;return{c(){t=d("h1"),r=c(a),o=c(" - "),l=c(i),this.h()},l(s){t=g(s,"H1",{class:!0});var e=x(t);r=m(e,a),o=m(e," - "),l=m(e,i),e.forEach(h),this.h()},h(){v(t,"class","text-center text-xl")},m(s,e){b(s,t,e),p(t,r),p(t,o),p(t,l)},p(s,[e]){e&1&&a!==(a=s[0].status+"")&&u(r,a),e&1&&i!==(i=s[0].error?.message+"")&&u(l,i)},i:f,o:f,d(s){s&&h(t)}}}function y(n,t,a){let r;return $(n,j,o=>a(0,r=o)),[r]}class w extends E{constructor(t){super(),S(this,t,y,q,_,{})}}export{w as component};
@@ -1,11 +1,11 @@
1
- import{d as bl}from"../chunks/index.XEtU8W2G.js";import{p as il,n as ul}from"../chunks/stores.qqHx_u93.js";import{g as yl,I as fl,L as kl,T as xl}from"../chunks/loading-ellipsis.k3p6ijV8.js";import{a7 as Ks,n as we,H as en,a5 as Tn,k as cl,u as hl,r as ml,v as pl,e as p,c as g,a as y,d as m,f as _,i as R,q as Xt,j as Xe,a6 as wl,w as un,l as v,t as j,o as b,b as U,p as D,g as o,y as Js,a8 as Cl,z as ys,s as ee,A as El,a9 as Ll,h as fn,G as Me,K as ws,N as ql,J as An,m as Sl}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ce,i as Ee,c as S,a as N,m as P,t as x,b as w,d as I,f as ks,g as Dt,e as Bt}from"../chunks/index.CP0w37D5.js";import{c as gl,d as Nl,b as Pl}from"../chunks/preferences.WetYOKHg.js";import{I as xs,c as Ws}from"../chunks/integer-input.fvZuttUG.js";import{g as _l,a as dl}from"../chunks/spread.rEx3vLA9.js";import{L as on}from"../chunks/link.czJPdQv3.js";import{E as Z}from"../chunks/example-query.6BQBimAu.js";import{e as Ye,u as Il,o as Al}from"../chunks/each.oUkpMz5d.js";import{_ as Tl}from"../chunks/5.MErjPYv9.js";const Yt=Object.freeze({contextLines:1,files:20,matches:500}),Cs=r=>{const e=Number.parseInt(r.get("contextLines")??"",10),n=Number.parseInt(r.get("files")??"",10),t=Number.parseInt(r.get("matches")??"",10),s=r.get("q")||void 0,l=e>=0?e:Yt.contextLines,a=n>0?n:Yt.files,f=t>=0?t:Yt.matches;return{query:s,contextLines:l,files:a,matches:f}},Mn=bl(il,r=>Cs(r.url.searchParams));let Zs=0;const an=({query:r,contextLines:e,files:n,matches:t,searchType:s})=>{const l=Ks(ul)?.to?.url??Ks(il).url,a=Cs(l.searchParams),f=r!==void 0&&(r||void 0)!==a.query,i=e!==void 0&&e>=0&&e!==a.contextLines,u=n!==void 0&&n>=0&&n!==a.files,c=t!==void 0&&t>=0&&t!==a.matches;if(f||i||u||c){const $=Date.now(),h=new URL(l);f&&r?h.searchParams.set("q",r):f&&h.searchParams.delete("q"),i&&e===Yt.contextLines?h.searchParams.delete("contextLines"):i&&h.searchParams.set("contextLines",e.toString()),u&&n===Yt.files?h.searchParams.delete("files"):u&&h.searchParams.set("files",n.toString()),c&&t===Yt.matches?h.searchParams.delete("matches"):c&&h.searchParams.set("matches",t.toString()),yl(h,{replaceState:s==="live"&&$-Zs<2e3,keepFocus:!0,noScroll:!0}),Zs=$}},Ml=async({url:r,fetch:e})=>({searchOutcome:await Ol(r,e)}),Ol=async(r,e)=>{const{query:n,...t}=Cs(new URL(r).searchParams);if(n===void 0)return{kind:"none"};try{const l=await(await e("/api/search",{method:"POST",body:JSON.stringify({query:n,...t}),headers:{"content-type":"application/json"}})).json();return l.kind==="success"?{kind:"success",results:l.results}:l}catch(s){return console.error("Search failed",s),{kind:"error",error:String(s)}}},Gr=Object.freeze(Object.defineProperty({__proto__:null,load:Ml},Symbol.toStringTag,{value:"Module"}));function Hl(r){let e;const n=r[2].default,t=cl(n,r,r[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&hl(t,n,s,s[3],e?pl(n,s[3],l,null):ml(s[3]),null)},i(s){e||(x(t,s),e=!0)},o(s){w(t,s),e=!1},d(s){t&&t.d(s)}}}function jl(r){let e,n;const t=[{name:"list-ordered"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[Hl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new fl({props:s}),{c(){S(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,a){P(e,l,a),n=!0},p(l,[a]){const f=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){I(e,l)}}}function Ul(r,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["line",{x1:"10",x2:"21",y1:"6",y2:"6"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18"}],["path",{d:"M4 6h1v4"}],["path",{d:"M4 10h2"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"}]];return r.$$set=a=>{n(1,e=en(en({},e),Tn(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=Tn(e),[l,e,t,s]}class Rl extends Ce{constructor(e){super(),Ee(this,e,Ul,jl,we,{})}}const zl=Rl;function Dl(r){let e,n,t,s,l,a,f;return n=new zl({props:{class:"inline",size:18,color:r[0]==="line-number"?"white":"black",strokeWidth:1,fill:r[0]==="line-number"?"white":"black"}}),{c(){e=p("button"),S(n.$$.fragment),this.h()},l(i){e=g(i,"BUTTON",{class:!0,title:!0});var u=y(e);N(n.$$.fragment,u),u.forEach(m),this.h()},h(){_(e,"class",t=`rounded w-6 grid place-items-center ${r[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`),_(e,"title",s=r[0]==="line-number"?"sort matches by score":"sort matches by line number")},m(i,u){R(i,e,u),P(n,e,null),l=!0,a||(f=Xt(e,"click",r[2]),a=!0)},p(i,[u]){const c={};u&1&&(c.color=i[0]==="line-number"?"white":"black"),u&1&&(c.fill=i[0]==="line-number"?"white":"black"),n.$set(c),(!l||u&1&&t!==(t=`rounded w-6 grid place-items-center ${i[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&_(e,"class",t),(!l||u&1&&s!==(s=i[0]==="line-number"?"sort matches by score":"sort matches by line number"))&&_(e,"title",s)},i(i){l||(x(n.$$.fragment,i),l=!0)},o(i){w(n.$$.fragment,i),l=!1},d(i){i&&m(e),I(n),a=!1,f()}}}function Bl(r,e,n){let t;const s=gl();return Xe(r,s,a=>n(0,t=a)),[t,s,()=>{wl(s,t=t==="line-number"?"score":"line-number",t)}]}class Vl extends Ce{constructor(e){super(),Ee(this,e,Bl,Dl,we,{})}}function Ql(r){let e,n,t,s,l,a,f,i,u,c,$,h,d,E,q,A,F,C,O,V="context",J,K,te,ae,ne,X,ye="files",re,M,ce,de,Y,se,he="matches",Q,ue,W,B,le,ke=(r[0]??"​")+"",T,L,z,fe;i=new kl({}),d=new xl({}),q=new Vl({});function Le(H){r[18](H)}let me={id:"context",pending:r[8]};r[2]!==void 0&&(me.value=r[2]),K=new xs({props:me}),un.push(()=>ks(K,"value",Le)),K.$on("change",r[19]);function et(H){r[20](H)}let qe={id:"files",kind:"positive",pending:r[7]};r[3]!==void 0&&(qe.value=r[3]),M=new xs({props:qe}),un.push(()=>ks(M,"value",et)),M.$on("change",r[21]);function Oe(H){r[22](H)}let Se={id:"matches",kind:"positive",pending:r[6]};return r[4]!==void 0&&(Se.value=r[4]),ue=new xs({props:Se}),un.push(()=>ks(ue,"value",Oe)),ue.$on("change",r[23]),{c(){e=p("form"),n=p("input"),t=v(),s=p("div"),l=p("label"),a=p("span"),f=j("query"),S(i.$$.fragment),u=v(),c=p("span"),$=p("input"),h=v(),S(d.$$.fragment),E=v(),S(q.$$.fragment),F=v(),C=p("label"),O=p("span"),O.textContent=V,J=v(),S(K.$$.fragment),ae=v(),ne=p("label"),X=p("span"),X.textContent=ye,re=v(),S(M.$$.fragment),de=v(),Y=p("label"),se=p("span"),se.textContent=he,Q=v(),S(ue.$$.fragment),B=v(),le=p("div"),T=j(ke),this.h()},l(H){e=g(H,"FORM",{});var G=y(e);n=g(G,"INPUT",{type:!0,class:!0}),t=b(G),s=g(G,"DIV",{class:!0});var pe=y(s);l=g(pe,"LABEL",{for:!0,class:!0});var $e=y(l);a=g($e,"SPAN",{class:!0});var ge=y(a);f=U(ge,"query"),N(i.$$.fragment,ge),ge.forEach(m),u=b($e),c=g($e,"SPAN",{class:!0});var _e=y(c);$=g(_e,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),h=b(_e),N(d.$$.fragment,_e),E=b(_e),N(q.$$.fragment,_e),_e.forEach(m),$e.forEach(m),F=b(pe),C=g(pe,"LABEL",{for:!0,class:!0});var Ue=y(C);O=g(Ue,"SPAN",{class:!0,"data-svelte-h":!0}),D(O)!=="svelte-1nbzu36"&&(O.textContent=V),J=b(Ue),N(K.$$.fragment,Ue),Ue.forEach(m),ae=b(pe),ne=g(pe,"LABEL",{for:!0,class:!0});var ve=y(ne);X=g(ve,"SPAN",{class:!0,"data-svelte-h":!0}),D(X)!=="svelte-1pt1x6a"&&(X.textContent=ye),re=b(ve),N(M.$$.fragment,ve),ve.forEach(m),de=b(pe),Y=g(pe,"LABEL",{for:!0,class:!0});var tt=y(Y);se=g(tt,"SPAN",{class:!0,"data-svelte-h":!0}),D(se)!=="svelte-1hdyrgs"&&(se.textContent=he),Q=b(tt),N(ue.$$.fragment,tt),tt.forEach(m),pe.forEach(m),B=b(G),le=g(G,"DIV",{class:!0});var Vt=y(le);T=U(Vt,ke),Vt.forEach(m),G.forEach(m),this.h()},h(){_(n,"type","submit"),_(n,"class","hidden"),_(a,"class","text-xs px-1 text-gray-500"),_($,"id","query"),_($,"type","search"),$.autofocus=!0,_($,"spellcheck",!1),_($,"autocorrect","off"),_($,"autocapitalize","off"),_($,"autocomplete","off"),_($,"class","font-mono focus:outline-none flex-auto appearance-none"),_(c,"class",A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:r[0]!==null,pending:r[9]})}`),_(l,"for","query"),_(l,"class","flex-auto flex flex-col space-y-0.5"),_(O,"class","text-xs px-1 text-gray-500"),_(C,"for","context"),_(C,"class","flex flex-col space-y-0.5"),_(X,"class","text-xs px-1 text-gray-500"),_(ne,"for","files"),_(ne,"class","flex flex-col space-y-0.5"),_(se,"class","text-xs px-1 text-gray-500"),_(Y,"for","matches"),_(Y,"class","flex flex-col space-y-0.5"),_(s,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),_(le,"class","text-xs text-red-500")},m(H,G){R(H,e,G),o(e,n),o(e,t),o(e,s),o(s,l),o(l,a),o(a,f),P(i,a,null),o(l,u),o(l,c),o(c,$),Js($,r[1]),o(c,h),P(d,c,null),o(c,E),P(q,c,null),o(s,F),o(s,C),o(C,O),o(C,J),P(K,C,null),o(s,ae),o(s,ne),o(ne,X),o(ne,re),P(M,ne,null),o(s,de),o(s,Y),o(Y,se),o(Y,Q),P(ue,Y,null),o(e,B),o(e,le),o(le,T),L=!0,$.focus(),z||(fe=[Xt($,"input",r[16]),Xt($,"input",r[17]),Xt(e,"submit",Cl(r[24]))],z=!0)},p(H,[G]){G&2&&$.value!==H[1]&&Js($,H[1]),(!L||G&513&&A!==(A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:H[0]!==null,pending:H[9]})}`))&&_(c,"class",A);const pe={};G&256&&(pe.pending=H[8]),!te&&G&4&&(te=!0,pe.value=H[2],ys(()=>te=!1)),K.$set(pe);const $e={};G&128&&($e.pending=H[7]),!ce&&G&8&&(ce=!0,$e.value=H[3],ys(()=>ce=!1)),M.$set($e);const ge={};G&64&&(ge.pending=H[6]),!W&&G&16&&(W=!0,ge.value=H[4],ys(()=>W=!1)),ue.$set(ge),(!L||G&1)&&ke!==(ke=(H[0]??"​")+"")&&ee(T,ke)},i(H){L||(x(i.$$.fragment,H),x(d.$$.fragment,H),x(q.$$.fragment,H),x(K.$$.fragment,H),x(M.$$.fragment,H),x(ue.$$.fragment,H),L=!0)},o(H){w(i.$$.fragment,H),w(d.$$.fragment,H),w(q.$$.fragment,H),w(K.$$.fragment,H),w(M.$$.fragment,H),w(ue.$$.fragment,H),L=!1},d(H){H&&m(e),I(i),I(d),I(q),I(K),I(M),I(ue),z=!1,El(fe)}}}function Fl(r,e,n){let t,s,l,a,f,i,u;Xe(r,Mn,M=>n(14,f=M)),Xe(r,ul,M=>n(15,i=M));let{queryError:c=null}=e;const $=Nl();Xe(r,$,M=>n(5,u=M));let h,d,E,q;const A=Mn.subscribe(M=>{i?.type!=="goto"&&n(1,{query:h,contextLines:d,files:E,matches:q}=M,h,n(2,d),n(3,E),n(4,q))});Ll(A);const F=()=>u==="live"&&(!h||h.length>=3),C=()=>{an({query:h,contextLines:d,files:E,matches:q,searchType:u})};let O;function V(){h=this.value,n(1,h)}const J=()=>{F()&&an({query:h,searchType:u})};function K(M){d=M,n(2,d)}const te=M=>{F()&&an({contextLines:M.detail,searchType:u})};function ae(M){E=M,n(3,E)}const ne=M=>{F()&&an({files:M.detail,searchType:u})};function X(M){q=M,n(4,q)}const ye=M=>{F()&&an({matches:M.detail,searchType:u})},re=()=>{C()};return r.$$set=M=>{"queryError"in M&&n(0,c=M.queryError)},r.$$.update=()=>{r.$$.dirty&8224&&(u==="live"&&O==="manual"&&C(),n(13,O=u)),r.$$.dirty&49154&&n(9,t=i===null&&(f.query??"")!==(h??"")),r.$$.dirty&49156&&n(8,s=i===null&&f.contextLines!==d),r.$$.dirty&49160&&n(7,l=i===null&&f.files!==E),r.$$.dirty&49168&&n(6,a=i===null&&f.matches!==q)},[c,h,d,E,q,u,a,l,s,t,$,F,C,O,f,i,V,J,K,te,ae,ne,X,ye,re]}class Gl extends Ce{constructor(e){super(),Ee(this,e,Fl,Ql,we,{queryError:0})}}function Kl(r){let e,n="or, learn the query syntax from the ground up";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=g(t,"SPAN",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-2dyn7y"&&(e.textContent=n),this.h()},h(){_(e,"class","text-xs")},m(t,s){R(t,e,s)},p:fn,d(t){t&&m(e)}}}function Jl(r){let e;return{c(){e=j("universal-ctags")},l(n){e=U(n,"universal-ctags")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Wl(r){let e;return{c(){e=j("expression")},l(n){e=U(n,"expression")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Zl(r){let e;return{c(){e=j("read the manual")},l(n){e=U(n,"read the manual")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Xl(r){let e,n="ɴᴇᴏɢʀᴏᴋ",t,s,l,a,f="query examples",i,u,c,$,h,d,E="Every query is regex",q,A,F,C,O,V,J="dot is a wildcard",K,te,ae,ne,X,ye="escaped dot is a dot",re,M,ce,de,Y,se,he,Q,ue="multiline search!",W,B,le,ke="Filter results by...",T,L,z,fe,Le,me,et="(or <code>f:</code>)",qe,Oe,Se,H,G,pe="(or <code>r:</code>)",$e,ge,_e,Ue,ve,tt="(or <code>b:</code>)",Vt,tn,nt,On,Re,st,Ls="Exclude certain kinds of repositories",Hn,Ne,lt,rt,jn,at,qs="(or <code>yes</code>)",Un,ot,it,Rn,ut,Ss="(or <code>yes</code>)",zn,ft,ct,Dn,ht,Ns="(or <code>yes</code>)",Bn,Pe,mt,Ps="Search for symbol definitions",Vn,ze,Qn,De,Fn,Gn,Be,nn,pt,Kn,sn,gt,Jn,Ie,_t,Is="Automatic case sensitivity",Wn,dt,As=`If a query is all-lowercase, it is case insensitive by default;
1
+ import{d as bl}from"../chunks/index.XEtU8W2G.js";import{p as il,n as ul}from"../chunks/stores.vKrPsuOp.js";import{g as yl,I as fl,L as kl,T as xl}from"../chunks/loading-ellipsis.WolSsOzu.js";import{a7 as Ks,n as we,H as en,a5 as Tn,k as cl,u as hl,r as ml,v as pl,e as p,c as g,a as y,d as m,f as _,i as R,q as Xt,j as Xe,a6 as wl,w as un,l as v,t as j,o as b,b as U,p as D,g as o,y as Js,a8 as Cl,z as ys,s as ee,A as El,a9 as Ll,h as fn,G as Me,K as ws,N as ql,J as An,m as Sl}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ce,i as Ee,c as S,a as N,m as P,t as x,b as w,d as I,f as ks,g as Dt,e as Bt}from"../chunks/index.CP0w37D5.js";import{c as gl,d as Nl,b as Pl}from"../chunks/preferences.WetYOKHg.js";import{I as xs,c as Ws}from"../chunks/integer-input.fvZuttUG.js";import{g as _l,a as dl}from"../chunks/spread.rEx3vLA9.js";import{L as on}from"../chunks/link.czJPdQv3.js";import{E as Z}from"../chunks/example-query.6BQBimAu.js";import{e as Ye,u as Il,o as Al}from"../chunks/each.oUkpMz5d.js";import{_ as Tl}from"../chunks/5.MErjPYv9.js";const Yt=Object.freeze({contextLines:1,files:20,matches:500}),Cs=r=>{const e=Number.parseInt(r.get("contextLines")??"",10),n=Number.parseInt(r.get("files")??"",10),t=Number.parseInt(r.get("matches")??"",10),s=r.get("q")||void 0,l=e>=0?e:Yt.contextLines,a=n>0?n:Yt.files,f=t>=0?t:Yt.matches;return{query:s,contextLines:l,files:a,matches:f}},Mn=bl(il,r=>Cs(r.url.searchParams));let Zs=0;const an=({query:r,contextLines:e,files:n,matches:t,searchType:s})=>{const l=Ks(ul)?.to?.url??Ks(il).url,a=Cs(l.searchParams),f=r!==void 0&&(r||void 0)!==a.query,i=e!==void 0&&e>=0&&e!==a.contextLines,u=n!==void 0&&n>=0&&n!==a.files,c=t!==void 0&&t>=0&&t!==a.matches;if(f||i||u||c){const $=Date.now(),h=new URL(l);f&&r?h.searchParams.set("q",r):f&&h.searchParams.delete("q"),i&&e===Yt.contextLines?h.searchParams.delete("contextLines"):i&&h.searchParams.set("contextLines",e.toString()),u&&n===Yt.files?h.searchParams.delete("files"):u&&h.searchParams.set("files",n.toString()),c&&t===Yt.matches?h.searchParams.delete("matches"):c&&h.searchParams.set("matches",t.toString()),yl(h,{replaceState:s==="live"&&$-Zs<2e3,keepFocus:!0,noScroll:!0}),Zs=$}},Ml=async({url:r,fetch:e})=>({searchOutcome:await Ol(r,e)}),Ol=async(r,e)=>{const{query:n,...t}=Cs(new URL(r).searchParams);if(n===void 0)return{kind:"none"};try{const l=await(await e("/api/search",{method:"POST",body:JSON.stringify({query:n,...t}),headers:{"content-type":"application/json"}})).json();return l.kind==="success"?{kind:"success",results:l.results}:l}catch(s){return console.error("Search failed",s),{kind:"error",error:String(s)}}},Gr=Object.freeze(Object.defineProperty({__proto__:null,load:Ml},Symbol.toStringTag,{value:"Module"}));function Hl(r){let e;const n=r[2].default,t=cl(n,r,r[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&hl(t,n,s,s[3],e?pl(n,s[3],l,null):ml(s[3]),null)},i(s){e||(x(t,s),e=!0)},o(s){w(t,s),e=!1},d(s){t&&t.d(s)}}}function jl(r){let e,n;const t=[{name:"list-ordered"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[Hl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new fl({props:s}),{c(){S(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,a){P(e,l,a),n=!0},p(l,[a]){const f=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){I(e,l)}}}function Ul(r,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["line",{x1:"10",x2:"21",y1:"6",y2:"6"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18"}],["path",{d:"M4 6h1v4"}],["path",{d:"M4 10h2"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"}]];return r.$$set=a=>{n(1,e=en(en({},e),Tn(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=Tn(e),[l,e,t,s]}class Rl extends Ce{constructor(e){super(),Ee(this,e,Ul,jl,we,{})}}const zl=Rl;function Dl(r){let e,n,t,s,l,a,f;return n=new zl({props:{class:"inline",size:18,color:r[0]==="line-number"?"white":"black",strokeWidth:1,fill:r[0]==="line-number"?"white":"black"}}),{c(){e=p("button"),S(n.$$.fragment),this.h()},l(i){e=g(i,"BUTTON",{class:!0,title:!0});var u=y(e);N(n.$$.fragment,u),u.forEach(m),this.h()},h(){_(e,"class",t=`rounded w-6 grid place-items-center ${r[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`),_(e,"title",s=r[0]==="line-number"?"sort matches by score":"sort matches by line number")},m(i,u){R(i,e,u),P(n,e,null),l=!0,a||(f=Xt(e,"click",r[2]),a=!0)},p(i,[u]){const c={};u&1&&(c.color=i[0]==="line-number"?"white":"black"),u&1&&(c.fill=i[0]==="line-number"?"white":"black"),n.$set(c),(!l||u&1&&t!==(t=`rounded w-6 grid place-items-center ${i[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&_(e,"class",t),(!l||u&1&&s!==(s=i[0]==="line-number"?"sort matches by score":"sort matches by line number"))&&_(e,"title",s)},i(i){l||(x(n.$$.fragment,i),l=!0)},o(i){w(n.$$.fragment,i),l=!1},d(i){i&&m(e),I(n),a=!1,f()}}}function Bl(r,e,n){let t;const s=gl();return Xe(r,s,a=>n(0,t=a)),[t,s,()=>{wl(s,t=t==="line-number"?"score":"line-number",t)}]}class Vl extends Ce{constructor(e){super(),Ee(this,e,Bl,Dl,we,{})}}function Ql(r){let e,n,t,s,l,a,f,i,u,c,$,h,d,E,q,A,F,C,O,V="context",J,K,te,ae,ne,X,ye="files",re,M,ce,de,Y,se,he="matches",Q,ue,W,B,le,ke=(r[0]??"​")+"",T,L,z,fe;i=new kl({}),d=new xl({}),q=new Vl({});function Le(H){r[18](H)}let me={id:"context",pending:r[8]};r[2]!==void 0&&(me.value=r[2]),K=new xs({props:me}),un.push(()=>ks(K,"value",Le)),K.$on("change",r[19]);function et(H){r[20](H)}let qe={id:"files",kind:"positive",pending:r[7]};r[3]!==void 0&&(qe.value=r[3]),M=new xs({props:qe}),un.push(()=>ks(M,"value",et)),M.$on("change",r[21]);function Oe(H){r[22](H)}let Se={id:"matches",kind:"positive",pending:r[6]};return r[4]!==void 0&&(Se.value=r[4]),ue=new xs({props:Se}),un.push(()=>ks(ue,"value",Oe)),ue.$on("change",r[23]),{c(){e=p("form"),n=p("input"),t=v(),s=p("div"),l=p("label"),a=p("span"),f=j("query"),S(i.$$.fragment),u=v(),c=p("span"),$=p("input"),h=v(),S(d.$$.fragment),E=v(),S(q.$$.fragment),F=v(),C=p("label"),O=p("span"),O.textContent=V,J=v(),S(K.$$.fragment),ae=v(),ne=p("label"),X=p("span"),X.textContent=ye,re=v(),S(M.$$.fragment),de=v(),Y=p("label"),se=p("span"),se.textContent=he,Q=v(),S(ue.$$.fragment),B=v(),le=p("div"),T=j(ke),this.h()},l(H){e=g(H,"FORM",{});var G=y(e);n=g(G,"INPUT",{type:!0,class:!0}),t=b(G),s=g(G,"DIV",{class:!0});var pe=y(s);l=g(pe,"LABEL",{for:!0,class:!0});var $e=y(l);a=g($e,"SPAN",{class:!0});var ge=y(a);f=U(ge,"query"),N(i.$$.fragment,ge),ge.forEach(m),u=b($e),c=g($e,"SPAN",{class:!0});var _e=y(c);$=g(_e,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),h=b(_e),N(d.$$.fragment,_e),E=b(_e),N(q.$$.fragment,_e),_e.forEach(m),$e.forEach(m),F=b(pe),C=g(pe,"LABEL",{for:!0,class:!0});var Ue=y(C);O=g(Ue,"SPAN",{class:!0,"data-svelte-h":!0}),D(O)!=="svelte-1nbzu36"&&(O.textContent=V),J=b(Ue),N(K.$$.fragment,Ue),Ue.forEach(m),ae=b(pe),ne=g(pe,"LABEL",{for:!0,class:!0});var ve=y(ne);X=g(ve,"SPAN",{class:!0,"data-svelte-h":!0}),D(X)!=="svelte-1pt1x6a"&&(X.textContent=ye),re=b(ve),N(M.$$.fragment,ve),ve.forEach(m),de=b(pe),Y=g(pe,"LABEL",{for:!0,class:!0});var tt=y(Y);se=g(tt,"SPAN",{class:!0,"data-svelte-h":!0}),D(se)!=="svelte-1hdyrgs"&&(se.textContent=he),Q=b(tt),N(ue.$$.fragment,tt),tt.forEach(m),pe.forEach(m),B=b(G),le=g(G,"DIV",{class:!0});var Vt=y(le);T=U(Vt,ke),Vt.forEach(m),G.forEach(m),this.h()},h(){_(n,"type","submit"),_(n,"class","hidden"),_(a,"class","text-xs px-1 text-gray-500"),_($,"id","query"),_($,"type","search"),$.autofocus=!0,_($,"spellcheck",!1),_($,"autocorrect","off"),_($,"autocapitalize","off"),_($,"autocomplete","off"),_($,"class","font-mono focus:outline-none flex-auto appearance-none"),_(c,"class",A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:r[0]!==null,pending:r[9]})}`),_(l,"for","query"),_(l,"class","flex-auto flex flex-col space-y-0.5"),_(O,"class","text-xs px-1 text-gray-500"),_(C,"for","context"),_(C,"class","flex flex-col space-y-0.5"),_(X,"class","text-xs px-1 text-gray-500"),_(ne,"for","files"),_(ne,"class","flex flex-col space-y-0.5"),_(se,"class","text-xs px-1 text-gray-500"),_(Y,"for","matches"),_(Y,"class","flex flex-col space-y-0.5"),_(s,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),_(le,"class","text-xs text-red-500")},m(H,G){R(H,e,G),o(e,n),o(e,t),o(e,s),o(s,l),o(l,a),o(a,f),P(i,a,null),o(l,u),o(l,c),o(c,$),Js($,r[1]),o(c,h),P(d,c,null),o(c,E),P(q,c,null),o(s,F),o(s,C),o(C,O),o(C,J),P(K,C,null),o(s,ae),o(s,ne),o(ne,X),o(ne,re),P(M,ne,null),o(s,de),o(s,Y),o(Y,se),o(Y,Q),P(ue,Y,null),o(e,B),o(e,le),o(le,T),L=!0,$.focus(),z||(fe=[Xt($,"input",r[16]),Xt($,"input",r[17]),Xt(e,"submit",Cl(r[24]))],z=!0)},p(H,[G]){G&2&&$.value!==H[1]&&Js($,H[1]),(!L||G&513&&A!==(A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:H[0]!==null,pending:H[9]})}`))&&_(c,"class",A);const pe={};G&256&&(pe.pending=H[8]),!te&&G&4&&(te=!0,pe.value=H[2],ys(()=>te=!1)),K.$set(pe);const $e={};G&128&&($e.pending=H[7]),!ce&&G&8&&(ce=!0,$e.value=H[3],ys(()=>ce=!1)),M.$set($e);const ge={};G&64&&(ge.pending=H[6]),!W&&G&16&&(W=!0,ge.value=H[4],ys(()=>W=!1)),ue.$set(ge),(!L||G&1)&&ke!==(ke=(H[0]??"​")+"")&&ee(T,ke)},i(H){L||(x(i.$$.fragment,H),x(d.$$.fragment,H),x(q.$$.fragment,H),x(K.$$.fragment,H),x(M.$$.fragment,H),x(ue.$$.fragment,H),L=!0)},o(H){w(i.$$.fragment,H),w(d.$$.fragment,H),w(q.$$.fragment,H),w(K.$$.fragment,H),w(M.$$.fragment,H),w(ue.$$.fragment,H),L=!1},d(H){H&&m(e),I(i),I(d),I(q),I(K),I(M),I(ue),z=!1,El(fe)}}}function Fl(r,e,n){let t,s,l,a,f,i,u;Xe(r,Mn,M=>n(14,f=M)),Xe(r,ul,M=>n(15,i=M));let{queryError:c=null}=e;const $=Nl();Xe(r,$,M=>n(5,u=M));let h,d,E,q;const A=Mn.subscribe(M=>{i?.type!=="goto"&&n(1,{query:h,contextLines:d,files:E,matches:q}=M,h,n(2,d),n(3,E),n(4,q))});Ll(A);const F=()=>u==="live"&&(!h||h.length>=3),C=()=>{an({query:h,contextLines:d,files:E,matches:q,searchType:u})};let O;function V(){h=this.value,n(1,h)}const J=()=>{F()&&an({query:h,searchType:u})};function K(M){d=M,n(2,d)}const te=M=>{F()&&an({contextLines:M.detail,searchType:u})};function ae(M){E=M,n(3,E)}const ne=M=>{F()&&an({files:M.detail,searchType:u})};function X(M){q=M,n(4,q)}const ye=M=>{F()&&an({matches:M.detail,searchType:u})},re=()=>{C()};return r.$$set=M=>{"queryError"in M&&n(0,c=M.queryError)},r.$$.update=()=>{r.$$.dirty&8224&&(u==="live"&&O==="manual"&&C(),n(13,O=u)),r.$$.dirty&49154&&n(9,t=i===null&&(f.query??"")!==(h??"")),r.$$.dirty&49156&&n(8,s=i===null&&f.contextLines!==d),r.$$.dirty&49160&&n(7,l=i===null&&f.files!==E),r.$$.dirty&49168&&n(6,a=i===null&&f.matches!==q)},[c,h,d,E,q,u,a,l,s,t,$,F,C,O,f,i,V,J,K,te,ae,ne,X,ye,re]}class Gl extends Ce{constructor(e){super(),Ee(this,e,Fl,Ql,we,{queryError:0})}}function Kl(r){let e,n="or, learn the query syntax from the ground up";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=g(t,"SPAN",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-2dyn7y"&&(e.textContent=n),this.h()},h(){_(e,"class","text-xs")},m(t,s){R(t,e,s)},p:fn,d(t){t&&m(e)}}}function Jl(r){let e;return{c(){e=j("universal-ctags")},l(n){e=U(n,"universal-ctags")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Wl(r){let e;return{c(){e=j("expression")},l(n){e=U(n,"expression")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Zl(r){let e;return{c(){e=j("read the manual")},l(n){e=U(n,"read the manual")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Xl(r){let e,n="ɴᴇᴏɢʀᴏᴋ",t,s,l,a,f="query examples",i,u,c,$,h,d,E="Every query is regex",q,A,F,C,O,V,J="dot is a wildcard",K,te,ae,ne,X,ye="escaped dot is a dot",re,M,ce,de,Y,se,he,Q,ue="multiline search!",W,B,le,ke="Filter results by...",T,L,z,fe,Le,me,et="(or <code>f:</code>)",qe,Oe,Se,H,G,pe="(or <code>r:</code>)",$e,ge,_e,Ue,ve,tt="(or <code>b:</code>)",Vt,tn,nt,On,Re,st,Ls="Exclude certain kinds of repositories",Hn,Ne,lt,rt,jn,at,qs="(or <code>yes</code>)",Un,ot,it,Rn,ut,Ss="(or <code>yes</code>)",zn,ft,ct,Dn,ht,Ns="(or <code>yes</code>)",Bn,Pe,mt,Ps="Search for symbol definitions",Vn,ze,Qn,De,Fn,Gn,Be,nn,pt,Kn,sn,gt,Jn,Ie,_t,Is="Automatic case sensitivity",Wn,dt,As=`If a query is all-lowercase, it is case insensitive by default;
2
2
  otherwise it is case-sensitive by default. Change that with
3
3
  <code>case:</code>.`,Zn,Ve,He,$t,Xn,vt,Ts="vs",Yn,bt,es,je,yt,ts,kt,Ms="vs",ns,xt,ss,Ae,wt,Os="Use double quotes for queries with spaces",ls,Qe,rs,Fe,as,os,Ge,ln,Ct,is,rn,Et,us,Te,Lt,Hs="Logically compose expressions",fs,Ke,cs,Je,hs,ms,be,qt,St,ps,Nt,js="negate with a leading dash",gs,Pt,It,_s,At,Us="expressions are implicitly 'and'ed…",ds,Tt,Mt,$s,Ot,Rs="…but explicitly 'or'ed",vs,Ht,jt,bs,Ut,zs="group expressions with parentheses",cn;return u=new on({props:{to:"/syntax",$$slots:{default:[Kl]},$$scope:{ctx:r}}}),C=new Z({props:{query:".printf"}}),ae=new Z({props:{query:"\\.printf"}}),ce=new Z({props:{query:"whom?"}}),se=new Z({props:{query:"OR[[:space:]]IMPLIED"}}),fe=new Z({props:{query:"file:README test"}}),Se=new Z({props:{query:"repo:linux test"}}),_e=new Z({props:{query:"branch:pages test"}}),nt=new Z({props:{query:"lang:java test"}}),rt=new Z({props:{query:"fork:no test"}}),it=new Z({props:{query:"public:no test"}}),ct=new Z({props:{query:"archived:no test"}}),De=new on({props:{to:"https://ctags.io",$$slots:{default:[Jl]},$$scope:{ctx:r}}}),pt=new Z({props:{query:"sym:main"}}),gt=new Z({props:{query:"sym:Test[A-Z]"}}),$t=new Z({props:{query:"readme"}}),bt=new Z({props:{query:"readme case:yes"}}),yt=new Z({props:{query:"README"}}),xt=new Z({props:{query:"README case:no"}}),Fe=new on({props:{to:"/syntax#expressions",$$slots:{default:[Wl]},$$scope:{ctx:r}}}),Ct=new Z({props:{query:'"run the test"'}}),Et=new Z({props:{query:'"goto considered harmful"'}}),Je=new on({props:{to:"/syntax#boolean-logic",$$slots:{default:[Zl]},$$scope:{ctx:r}}}),St=new Z({props:{query:"this -without_this"}}),It=new Z({props:{query:"all of these"}}),Mt=new Z({props:{query:"any or of or these"}}),jt=new Z({props:{query:"(all of these) (any or of or these)"}}),{c(){e=p("h1"),e.textContent=n,t=v(),s=p("div"),l=p("span"),a=p("h2"),a.textContent=f,i=v(),S(u.$$.fragment),c=v(),$=p("ul"),h=p("li"),d=p("h3"),d.textContent=E,q=v(),A=p("ul"),F=p("li"),S(C.$$.fragment),O=v(),V=p("span"),V.textContent=J,K=v(),te=p("li"),S(ae.$$.fragment),ne=v(),X=p("span"),X.textContent=ye,re=v(),M=p("li"),S(ce.$$.fragment),de=v(),Y=p("li"),S(se.$$.fragment),he=v(),Q=p("span"),Q.textContent=ue,W=v(),B=p("li"),le=p("h3"),le.textContent=ke,T=v(),L=p("ul"),z=p("li"),S(fe.$$.fragment),Le=v(),me=p("span"),me.innerHTML=et,qe=v(),Oe=p("li"),S(Se.$$.fragment),H=v(),G=p("span"),G.innerHTML=pe,$e=v(),ge=p("li"),S(_e.$$.fragment),Ue=v(),ve=p("span"),ve.innerHTML=tt,Vt=v(),tn=p("li"),S(nt.$$.fragment),On=v(),Re=p("li"),st=p("h3"),st.textContent=Ls,Hn=v(),Ne=p("ul"),lt=p("li"),S(rt.$$.fragment),jn=v(),at=p("span"),at.innerHTML=qs,Un=v(),ot=p("li"),S(it.$$.fragment),Rn=v(),ut=p("span"),ut.innerHTML=Ss,zn=v(),ft=p("li"),S(ct.$$.fragment),Dn=v(),ht=p("span"),ht.innerHTML=Ns,Bn=v(),Pe=p("li"),mt=p("h3"),mt.textContent=Ps,Vn=v(),ze=p("p"),Qn=j("As identified by "),S(De.$$.fragment),Fn=j("."),Gn=v(),Be=p("ul"),nn=p("li"),S(pt.$$.fragment),Kn=v(),sn=p("li"),S(gt.$$.fragment),Jn=v(),Ie=p("li"),_t=p("h3"),_t.textContent=Is,Wn=v(),dt=p("p"),dt.innerHTML=As,Zn=v(),Ve=p("ul"),He=p("li"),S($t.$$.fragment),Xn=v(),vt=p("span"),vt.textContent=Ts,Yn=v(),S(bt.$$.fragment),es=v(),je=p("li"),S(yt.$$.fragment),ts=v(),kt=p("span"),kt.textContent=Ms,ns=v(),S(xt.$$.fragment),ss=v(),Ae=p("li"),wt=p("h3"),wt.textContent=Os,ls=v(),Qe=p("p"),rs=j(`Otherwise each word is parsed as a separate
4
4
  `),S(Fe.$$.fragment),as=j("."),os=v(),Ge=p("ul"),ln=p("li"),S(Ct.$$.fragment),is=v(),rn=p("li"),S(Et.$$.fragment),us=v(),Te=p("li"),Lt=p("h3"),Lt.textContent=Hs,fs=v(),Ke=p("span"),cs=j("Seriously, "),S(Je.$$.fragment),hs=j(` for this
5
5
  one.`),ms=v(),be=p("ul"),qt=p("li"),S(St.$$.fragment),ps=v(),Nt=p("span"),Nt.textContent=js,gs=v(),Pt=p("li"),S(It.$$.fragment),_s=v(),At=p("span"),At.textContent=Us,ds=v(),Tt=p("li"),S(Mt.$$.fragment),$s=v(),Ot=p("span"),Ot.textContent=Rs,vs=v(),Ht=p("li"),S(jt.$$.fragment),bs=v(),Ut=p("span"),Ut.textContent=zs,this.h()},l(k){e=g(k,"H1",{class:!0,"data-svelte-h":!0}),D(e)!=="svelte-wconra"&&(e.textContent=n),t=b(k),s=g(k,"DIV",{class:!0});var oe=y(s);l=g(oe,"SPAN",{class:!0});var Rt=y(l);a=g(Rt,"H2",{class:!0,"data-svelte-h":!0}),D(a)!=="svelte-1nqizqb"&&(a.textContent=f),i=b(Rt),N(u.$$.fragment,Rt),Rt.forEach(m),c=b(oe),$=g(oe,"UL",{class:!0});var ie=y($);h=g(ie,"LI",{class:!0});var zt=y(h);d=g(zt,"H3",{class:!0,"data-svelte-h":!0}),D(d)!=="svelte-1eyozjq"&&(d.textContent=E),q=b(zt),A=g(zt,"UL",{class:!0});var xe=y(A);F=g(xe,"LI",{});var hn=y(F);N(C.$$.fragment,hn),O=b(hn),V=g(hn,"SPAN",{class:!0,"data-svelte-h":!0}),D(V)!=="svelte-1kofq96"&&(V.textContent=J),hn.forEach(m),K=b(xe),te=g(xe,"LI",{});var mn=y(te);N(ae.$$.fragment,mn),ne=b(mn),X=g(mn,"SPAN",{class:!0,"data-svelte-h":!0}),D(X)!=="svelte-18jaiso"&&(X.textContent=ye),mn.forEach(m),re=b(xe),M=g(xe,"LI",{});var Ds=y(M);N(ce.$$.fragment,Ds),Ds.forEach(m),de=b(xe),Y=g(xe,"LI",{});var pn=y(Y);N(se.$$.fragment,pn),he=b(pn),Q=g(pn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Q)!=="svelte-1visk1u"&&(Q.textContent=ue),pn.forEach(m),xe.forEach(m),zt.forEach(m),W=b(ie),B=g(ie,"LI",{class:!0});var gn=y(B);le=g(gn,"H3",{class:!0,"data-svelte-h":!0}),D(le)!=="svelte-1hsesxl"&&(le.textContent=ke),T=b(gn),L=g(gn,"UL",{class:!0});var We=y(L);z=g(We,"LI",{});var _n=y(z);N(fe.$$.fragment,_n),Le=b(_n),me=g(_n,"SPAN",{class:!0,"data-svelte-h":!0}),D(me)!=="svelte-1o4wzqf"&&(me.innerHTML=et),_n.forEach(m),qe=b(We),Oe=g(We,"LI",{});var dn=y(Oe);N(Se.$$.fragment,dn),H=b(dn),G=g(dn,"SPAN",{class:!0,"data-svelte-h":!0}),D(G)!=="svelte-13puatn"&&(G.innerHTML=pe),dn.forEach(m),$e=b(We),ge=g(We,"LI",{});var $n=y(ge);N(_e.$$.fragment,$n),Ue=b($n),ve=g($n,"SPAN",{class:!0,"data-svelte-h":!0}),D(ve)!=="svelte-17xlaaj"&&(ve.innerHTML=tt),$n.forEach(m),Vt=b(We),tn=g(We,"LI",{});var Bs=y(tn);N(nt.$$.fragment,Bs),Bs.forEach(m),We.forEach(m),gn.forEach(m),On=b(ie),Re=g(ie,"LI",{class:!0});var vn=y(Re);st=g(vn,"H3",{class:!0,"data-svelte-h":!0}),D(st)!=="svelte-l49uq"&&(st.textContent=Ls),Hn=b(vn),Ne=g(vn,"UL",{class:!0});var Qt=y(Ne);lt=g(Qt,"LI",{});var bn=y(lt);N(rt.$$.fragment,bn),jn=b(bn),at=g(bn,"SPAN",{class:!0,"data-svelte-h":!0}),D(at)!=="svelte-71g2qu"&&(at.innerHTML=qs),bn.forEach(m),Un=b(Qt),ot=g(Qt,"LI",{});var yn=y(ot);N(it.$$.fragment,yn),Rn=b(yn),ut=g(yn,"SPAN",{class:!0,"data-svelte-h":!0}),D(ut)!=="svelte-71g2qu"&&(ut.innerHTML=Ss),yn.forEach(m),zn=b(Qt),ft=g(Qt,"LI",{});var kn=y(ft);N(ct.$$.fragment,kn),Dn=b(kn),ht=g(kn,"SPAN",{class:!0,"data-svelte-h":!0}),D(ht)!=="svelte-71g2qu"&&(ht.innerHTML=Ns),kn.forEach(m),Qt.forEach(m),vn.forEach(m),Bn=b(ie),Pe=g(ie,"LI",{class:!0});var Ft=y(Pe);mt=g(Ft,"H3",{class:!0,"data-svelte-h":!0}),D(mt)!=="svelte-1w9svfj"&&(mt.textContent=Ps),Vn=b(Ft),ze=g(Ft,"P",{class:!0});var xn=y(ze);Qn=U(xn,"As identified by "),N(De.$$.fragment,xn),Fn=U(xn,"."),xn.forEach(m),Gn=b(Ft),Be=g(Ft,"UL",{class:!0});var wn=y(Be);nn=g(wn,"LI",{});var Vs=y(nn);N(pt.$$.fragment,Vs),Vs.forEach(m),Kn=b(wn),sn=g(wn,"LI",{});var Qs=y(sn);N(gt.$$.fragment,Qs),Qs.forEach(m),wn.forEach(m),Ft.forEach(m),Jn=b(ie),Ie=g(ie,"LI",{class:!0});var Gt=y(Ie);_t=g(Gt,"H3",{class:!0,"data-svelte-h":!0}),D(_t)!=="svelte-rw6b4q"&&(_t.textContent=Is),Wn=b(Gt),dt=g(Gt,"P",{class:!0,"data-svelte-h":!0}),D(dt)!=="svelte-po3jik"&&(dt.innerHTML=As),Zn=b(Gt),Ve=g(Gt,"UL",{class:!0});var Cn=y(Ve);He=g(Cn,"LI",{});var Kt=y(He);N($t.$$.fragment,Kt),Xn=b(Kt),vt=g(Kt,"SPAN",{class:!0,"data-svelte-h":!0}),D(vt)!=="svelte-bo3bnm"&&(vt.textContent=Ts),Yn=b(Kt),N(bt.$$.fragment,Kt),Kt.forEach(m),es=b(Cn),je=g(Cn,"LI",{});var Jt=y(je);N(yt.$$.fragment,Jt),ts=b(Jt),kt=g(Jt,"SPAN",{class:!0,"data-svelte-h":!0}),D(kt)!=="svelte-bo3bnm"&&(kt.textContent=Ms),ns=b(Jt),N(xt.$$.fragment,Jt),Jt.forEach(m),Cn.forEach(m),Gt.forEach(m),ss=b(ie),Ae=g(ie,"LI",{class:!0});var Wt=y(Ae);wt=g(Wt,"H3",{class:!0,"data-svelte-h":!0}),D(wt)!=="svelte-1ax2qg5"&&(wt.textContent=Os),ls=b(Wt),Qe=g(Wt,"P",{class:!0});var En=y(Qe);rs=U(En,`Otherwise each word is parsed as a separate
6
6
  `),N(Fe.$$.fragment,En),as=U(En,"."),En.forEach(m),os=b(Wt),Ge=g(Wt,"UL",{class:!0});var Ln=y(Ge);ln=g(Ln,"LI",{});var Fs=y(ln);N(Ct.$$.fragment,Fs),Fs.forEach(m),is=b(Ln),rn=g(Ln,"LI",{});var Gs=y(rn);N(Et.$$.fragment,Gs),Gs.forEach(m),Ln.forEach(m),Wt.forEach(m),us=b(ie),Te=g(ie,"LI",{class:!0});var Zt=y(Te);Lt=g(Zt,"H3",{class:!0,"data-svelte-h":!0}),D(Lt)!=="svelte-9jbq7b"&&(Lt.textContent=Hs),fs=b(Zt),Ke=g(Zt,"SPAN",{class:!0});var qn=y(Ke);cs=U(qn,"Seriously, "),N(Je.$$.fragment,qn),hs=U(qn,` for this
7
- one.`),qn.forEach(m),ms=b(Zt),be=g(Zt,"UL",{class:!0});var Ze=y(be);qt=g(Ze,"LI",{});var Sn=y(qt);N(St.$$.fragment,Sn),ps=b(Sn),Nt=g(Sn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Nt)!=="svelte-hf1rvj"&&(Nt.textContent=js),Sn.forEach(m),gs=b(Ze),Pt=g(Ze,"LI",{});var Nn=y(Pt);N(It.$$.fragment,Nn),_s=b(Nn),At=g(Nn,"SPAN",{class:!0,"data-svelte-h":!0}),D(At)!=="svelte-1w1fygt"&&(At.textContent=Us),Nn.forEach(m),ds=b(Ze),Tt=g(Ze,"LI",{});var Pn=y(Tt);N(Mt.$$.fragment,Pn),$s=b(Pn),Ot=g(Pn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Ot)!=="svelte-cahjdy"&&(Ot.textContent=Rs),Pn.forEach(m),vs=b(Ze),Ht=g(Ze,"LI",{});var In=y(Ht);N(jt.$$.fragment,In),bs=b(In),Ut=g(In,"SPAN",{class:!0,"data-svelte-h":!0}),D(Ut)!=="svelte-8b4fxa"&&(Ut.textContent=zs),In.forEach(m),Ze.forEach(m),Zt.forEach(m),ie.forEach(m),oe.forEach(m),this.h()},h(){_(e,"class","text-4xl text-center pt-8 tracking-wide"),_(a,"class","text-2xl font-semibold"),_(l,"class","text-center"),_(d,"class","text-lg"),_(V,"class","text-xs"),_(X,"class","text-xs"),_(Q,"class","text-xs"),_(A,"class","space-y-1"),_(h,"class","grow basis-64 max-w-xs"),_(le,"class","text-lg"),_(me,"class","text-xs"),_(G,"class","text-xs"),_(ve,"class","text-xs"),_(L,"class","space-y-1"),_(B,"class","grow basis-64 max-w-xs"),_(st,"class","text-lg"),_(at,"class","text-xs"),_(ut,"class","text-xs"),_(ht,"class","text-xs"),_(Ne,"class","space-y-1"),_(Re,"class","grow basis-64 max-w-xs"),_(mt,"class","text-lg"),_(ze,"class","text-xs"),_(Be,"class","space-y-1"),_(Pe,"class","grow basis-64 max-w-xs"),_(_t,"class","text-lg"),_(dt,"class","text-xs"),_(vt,"class","text-sm"),_(kt,"class","text-sm"),_(Ve,"class","space-y-1"),_(Ie,"class","grow basis-64 max-w-xs"),_(wt,"class","text-lg"),_(Qe,"class","text-xs"),_(Ge,"class","space-y-1"),_(Ae,"class","grow basis-64 max-w-xs"),_(Lt,"class","text-lg"),_(Ke,"class","text-xs"),_(Nt,"class","text-xs"),_(At,"class","text-xs"),_(Ot,"class","text-xs"),_(Ut,"class","text-xs"),_(be,"class","space-y-1"),_(Te,"class","grow basis-64 max-w-xs"),_($,"class","flex flex-wrap gap-4 justify-evenly"),_(s,"class","flex flex-col items-center pt-6 gap-4")},m(k,oe){R(k,e,oe),R(k,t,oe),R(k,s,oe),o(s,l),o(l,a),o(l,i),P(u,l,null),o(s,c),o(s,$),o($,h),o(h,d),o(h,q),o(h,A),o(A,F),P(C,F,null),o(F,O),o(F,V),o(A,K),o(A,te),P(ae,te,null),o(te,ne),o(te,X),o(A,re),o(A,M),P(ce,M,null),o(A,de),o(A,Y),P(se,Y,null),o(Y,he),o(Y,Q),o($,W),o($,B),o(B,le),o(B,T),o(B,L),o(L,z),P(fe,z,null),o(z,Le),o(z,me),o(L,qe),o(L,Oe),P(Se,Oe,null),o(Oe,H),o(Oe,G),o(L,$e),o(L,ge),P(_e,ge,null),o(ge,Ue),o(ge,ve),o(L,Vt),o(L,tn),P(nt,tn,null),o($,On),o($,Re),o(Re,st),o(Re,Hn),o(Re,Ne),o(Ne,lt),P(rt,lt,null),o(lt,jn),o(lt,at),o(Ne,Un),o(Ne,ot),P(it,ot,null),o(ot,Rn),o(ot,ut),o(Ne,zn),o(Ne,ft),P(ct,ft,null),o(ft,Dn),o(ft,ht),o($,Bn),o($,Pe),o(Pe,mt),o(Pe,Vn),o(Pe,ze),o(ze,Qn),P(De,ze,null),o(ze,Fn),o(Pe,Gn),o(Pe,Be),o(Be,nn),P(pt,nn,null),o(Be,Kn),o(Be,sn),P(gt,sn,null),o($,Jn),o($,Ie),o(Ie,_t),o(Ie,Wn),o(Ie,dt),o(Ie,Zn),o(Ie,Ve),o(Ve,He),P($t,He,null),o(He,Xn),o(He,vt),o(He,Yn),P(bt,He,null),o(Ve,es),o(Ve,je),P(yt,je,null),o(je,ts),o(je,kt),o(je,ns),P(xt,je,null),o($,ss),o($,Ae),o(Ae,wt),o(Ae,ls),o(Ae,Qe),o(Qe,rs),P(Fe,Qe,null),o(Qe,as),o(Ae,os),o(Ae,Ge),o(Ge,ln),P(Ct,ln,null),o(Ge,is),o(Ge,rn),P(Et,rn,null),o($,us),o($,Te),o(Te,Lt),o(Te,fs),o(Te,Ke),o(Ke,cs),P(Je,Ke,null),o(Ke,hs),o(Te,ms),o(Te,be),o(be,qt),P(St,qt,null),o(qt,ps),o(qt,Nt),o(be,gs),o(be,Pt),P(It,Pt,null),o(Pt,_s),o(Pt,At),o(be,ds),o(be,Tt),P(Mt,Tt,null),o(Tt,$s),o(Tt,Ot),o(be,vs),o(be,Ht),P(jt,Ht,null),o(Ht,bs),o(Ht,Ut),cn=!0},p(k,[oe]){const Rt={};oe&1&&(Rt.$$scope={dirty:oe,ctx:k}),u.$set(Rt);const ie={};oe&1&&(ie.$$scope={dirty:oe,ctx:k}),De.$set(ie);const zt={};oe&1&&(zt.$$scope={dirty:oe,ctx:k}),Fe.$set(zt);const xe={};oe&1&&(xe.$$scope={dirty:oe,ctx:k}),Je.$set(xe)},i(k){cn||(x(u.$$.fragment,k),x(C.$$.fragment,k),x(ae.$$.fragment,k),x(ce.$$.fragment,k),x(se.$$.fragment,k),x(fe.$$.fragment,k),x(Se.$$.fragment,k),x(_e.$$.fragment,k),x(nt.$$.fragment,k),x(rt.$$.fragment,k),x(it.$$.fragment,k),x(ct.$$.fragment,k),x(De.$$.fragment,k),x(pt.$$.fragment,k),x(gt.$$.fragment,k),x($t.$$.fragment,k),x(bt.$$.fragment,k),x(yt.$$.fragment,k),x(xt.$$.fragment,k),x(Fe.$$.fragment,k),x(Ct.$$.fragment,k),x(Et.$$.fragment,k),x(Je.$$.fragment,k),x(St.$$.fragment,k),x(It.$$.fragment,k),x(Mt.$$.fragment,k),x(jt.$$.fragment,k),cn=!0)},o(k){w(u.$$.fragment,k),w(C.$$.fragment,k),w(ae.$$.fragment,k),w(ce.$$.fragment,k),w(se.$$.fragment,k),w(fe.$$.fragment,k),w(Se.$$.fragment,k),w(_e.$$.fragment,k),w(nt.$$.fragment,k),w(rt.$$.fragment,k),w(it.$$.fragment,k),w(ct.$$.fragment,k),w(De.$$.fragment,k),w(pt.$$.fragment,k),w(gt.$$.fragment,k),w($t.$$.fragment,k),w(bt.$$.fragment,k),w(yt.$$.fragment,k),w(xt.$$.fragment,k),w(Fe.$$.fragment,k),w(Ct.$$.fragment,k),w(Et.$$.fragment,k),w(Je.$$.fragment,k),w(St.$$.fragment,k),w(It.$$.fragment,k),w(Mt.$$.fragment,k),w(jt.$$.fragment,k),cn=!1},d(k){k&&(m(e),m(t),m(s)),I(u),I(C),I(ae),I(ce),I(se),I(fe),I(Se),I(_e),I(nt),I(rt),I(it),I(ct),I(De),I(pt),I(gt),I($t),I(bt),I(yt),I(xt),I(Fe),I(Ct),I(Et),I(Je),I(St),I(It),I(Mt),I(jt)}}}class $l extends Ce{constructor(e){super(),Ee(this,e,null,Xl,we,{})}}function Yl(r){let e;const n=r[2].default,t=cl(n,r,r[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&hl(t,n,s,s[3],e?pl(n,s[3],l,null):ml(s[3]),null)},i(s){e||(x(t,s),e=!0)},o(s){w(t,s),e=!1},d(s){t&&t.d(s)}}}function er(r){let e,n;const t=[{name:"chevron-right"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[Yl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new fl({props:s}),{c(){S(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,a){P(e,l,a),n=!0},p(l,[a]){const f=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){I(e,l)}}}function tr(r,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["path",{d:"m9 18 6-6-6-6"}]];return r.$$set=a=>{n(1,e=en(en({},e),Tn(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=Tn(e),[l,e,t,s]}class nr extends Ce{constructor(e){super(),Ee(this,e,tr,er,we,{})}}function Xs(r,e,n){const t=r.slice();return t[4]=e[n].text,t[5]=e[n].match,t[6]=e[n].color,t[7]=e[n].fontClass,t}function sr(r){let e=r[4]+"",n;return{c(){n=j(e)},l(t){n=U(t,e)},m(t,s){R(t,n,s)},p(t,s){s&1&&e!==(e=t[4]+"")&&ee(n,e)},d(t){t&&m(n)}}}function lr(r){let e,n=r[4]+"",t,s,l;return{c(){e=p("span"),t=j(n),this.h()},l(a){e=g(a,"SPAN",{style:!0,class:!0});var f=y(e);t=U(f,n),f.forEach(m),this.h()},h(){_(e,"style",s=`color: ${r[6]}`),_(e,"class",l=r[7])},m(a,f){R(a,e,f),o(e,t)},p(a,f){f&1&&n!==(n=a[4]+"")&&ee(t,n),f&1&&s!==(s=`color: ${a[6]}`)&&_(e,"style",s),f&1&&l!==(l=a[7])&&_(e,"class",l)},d(a){a&&m(e)}}}function rr(r){let e,n=r[4]+"",t;return{c(){e=p("mark"),t=j(n),this.h()},l(s){e=g(s,"MARK",{class:!0});var l=y(e);t=U(l,n),l.forEach(m),this.h()},h(){_(e,"class","bg-yellow-200")},m(s,l){R(s,e,l),o(e,t)},p(s,l){l&1&&n!==(n=s[4]+"")&&ee(t,n)},d(s){s&&m(e)}}}function ar(r){let e,n,t=r[4]+"",s,l,a;return{c(){e=p("mark"),n=p("span"),s=j(t),this.h()},l(f){e=g(f,"MARK",{class:!0});var i=y(e);n=g(i,"SPAN",{style:!0,class:!0});var u=y(n);s=U(u,t),u.forEach(m),i.forEach(m),this.h()},h(){_(n,"style",l=`color: ${r[6]}`),_(n,"class",a=r[7]),_(e,"class","bg-yellow-200")},m(f,i){R(f,e,i),o(e,n),o(n,s)},p(f,i){i&1&&t!==(t=f[4]+"")&&ee(s,t),i&1&&l!==(l=`color: ${f[6]}`)&&_(n,"style",l),i&1&&a!==(a=f[7])&&_(n,"class",a)},d(f){f&&m(e)}}}function Ys(r){let e;function n(l,a){return l[5]&&l[6]?ar:l[5]?rr:l[6]?lr:sr}let t=n(r),s=t(r);return{c(){s.c(),e=Me()},l(l){s.l(l),e=Me()},m(l,a){s.m(l,a),R(l,e,a)},p(l,a){t===(t=n(l))&&s?s.p(l,a):(s.d(1),s=t(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){l&&m(e),s.d(l)}}}function or(r){let e,n=Ye(r[0]),t=[];for(let s=0;s<n.length;s+=1)t[s]=Ys(Xs(r,n,s));return{c(){for(let s=0;s<t.length;s+=1)t[s].c();e=Me()},l(s){for(let l=0;l<t.length;l+=1)t[l].l(s);e=Me()},m(s,l){for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(s,l);R(s,e,l)},p(s,[l]){if(l&1){n=Ye(s[0]);let a;for(a=0;a<n.length;a+=1){const f=Xs(s,n,a);t[a]?t[a].p(f,l):(t[a]=Ys(f),t[a].c(),t[a].m(e.parentNode,e))}for(;a<t.length;a+=1)t[a].d(1);t.length=n.length}},i:fn,o:fn,d(s){s&&m(e),ws(t,s)}}}function ir(r,e,n){let{content:t}=e,{highlights:s=void 0}=e;const l=f=>{if(f!==void 0)switch(f){case 0:return;case 1:return"italic";case 2:return"font-bold";case 4:return"underline";default:throw new Error(`unreachable ${f}`)}};let a;return r.$$set=f=>{"content"in f&&n(1,t=f.content),"highlights"in f&&n(2,s=f.highlights)},r.$$.update=()=>{if(r.$$.dirty&6){const f=[];if(s){const i=t.matchRanges[Symbol.iterator]();let u=i.next().value,c=0;for(const{content:$,fontStyle:h,color:d}of s){const E=c+$.length,q=l(h);let A=c;for(;u&&(u.start>A&&u.start<E||u.end>A&&u.end<=E);)u.start>A&&u.start<E&&(f.push({text:t.text.slice(A,u.start),match:!1,fontClass:q,color:d}),A=u.start),u.end>A&&u.end<=E&&(f.push({text:t.text.slice(A,u.end),match:!0,fontClass:q,color:d}),A=u.end,u=i.next().value);A<E&&f.push({text:t.text.slice(A,E),match:!!u&&A>=u.start&&A<u.end,fontClass:q,color:d}),c=E}}else{let i=0;for(const{start:u,end:c}of t.matchRanges)i<u&&f.push({text:t.text.slice(i,u),match:!1}),f.push({text:t.text.slice(u,c),match:!0}),i=c;i<t.text.length&&f.push({text:t.text.slice(i),match:!1})}n(0,a=f)}},[a,t,s]}class Es extends Ce{constructor(e){super(),Ee(this,e,ir,or,we,{content:1,highlights:2})}}function ur(r){let e,n;return e=new Es({props:{content:r[0].fileName}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.content=t[0].fileName),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function fr(r){let e,n;return e=new on({props:{to:r[0].fileUrl,$$slots:{default:[cr]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.to=t[0].fileUrl),s&9&&(l.$$scope={dirty:s,ctx:t}),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function cr(r){let e,n;return e=new Es({props:{content:r[0].fileName}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.content=t[0].fileName),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function hr(r){let e,n,t,s=r[0].repository+"",l,a,f,i,u,c,$,h=r[1].join(" | ")+"",d,E;f=new nr({props:{class:"inline",size:16}});const q=[fr,ur],A=[];function F(C,O){return C[0].fileUrl?0:1}return i=F(r),u=A[i]=q[i](r),{c(){e=p("h2"),n=p("span"),t=p("span"),l=j(s),a=p("span"),S(f.$$.fragment),u.c(),c=v(),$=p("span"),d=j(h),this.h()},l(C){e=g(C,"H2",{class:!0});var O=y(e);n=g(O,"SPAN",{});var V=y(n);t=g(V,"SPAN",{});var J=y(t);l=U(J,s),J.forEach(m),a=g(V,"SPAN",{});var K=y(a);N(f.$$.fragment,K),K.forEach(m),u.l(V),V.forEach(m),c=b(O),$=g(O,"SPAN",{class:!0});var te=y($);d=U(te,h),te.forEach(m),O.forEach(m),this.h()},h(){_($,"class","ml-auto"),_(e,"class","px-2 py-1 text-sm sticky top-0 flex flex-wrap bg-slate-100 whitespace-pre-wrap [overflow-wrap:anywhere]")},m(C,O){R(C,e,O),o(e,n),o(n,t),o(t,l),o(n,a),P(f,a,null),A[i].m(n,null),o(e,c),o(e,$),o($,d),E=!0},p(C,[O]){(!E||O&1)&&s!==(s=C[0].repository+"")&&ee(l,s);let V=i;i=F(C),i===V?A[i].p(C,O):(Dt(),w(A[V],1,1,()=>{A[V]=null}),Bt(),u=A[i],u?u.p(C,O):(u=A[i]=q[i](C),u.c()),x(u,1),u.m(n,null)),(!E||O&2)&&h!==(h=C[1].join(" | ")+"")&&ee(d,h)},i(C){E||(x(f.$$.fragment,C),x(u),E=!0)},o(C){w(f.$$.fragment,C),w(u),E=!1},d(C){C&&m(e),I(f),A[i].d()}}}function mr(r,e,n){let t,{file:s}=e,{rank:l}=e;return r.$$set=a=>{"file"in a&&n(0,s=a.file),"rank"in a&&n(2,l=a.rank)},r.$$.update=()=>{r.$$.dirty&5&&n(1,t=[`${s.matchCount} ${s.matchCount===1?"match":"matches"}`,...s.branches.length>1||s.branches[0]!=="HEAD"?[s.branches.join(", ")]:[],s.language||"Text",`№${l}`])},[s,t,l]}class pr extends Ce{constructor(e){super(),Ee(this,e,mr,hr,we,{file:0,rank:2})}}function el(r,e,n){const t=r.slice();return t[7]=e[n].lineNumber,t[8]=e[n].line,t[10]=n,t}function gr(r){let e=r[7]+"",n;return{c(){n=j(e)},l(t){n=U(t,e)},m(t,s){R(t,n,s)},p(t,s){s&1&&e!==(e=t[7]+"")&&ee(n,e)},d(t){t&&m(n)}}}function _r(r){let e,n=r[7]+"",t,s;return{c(){e=p("a"),t=j(n),this.h()},l(l){e=g(l,"A",{class:!0,href:!0});var a=y(e);t=U(a,n),a.forEach(m),this.h()},h(){_(e,"class","hover:underline decoration-1"),_(e,"href",s=`${r[1].fileUrl}${r[1].lineNumberTemplate.join(r[7].toString())}`)},m(l,a){R(l,e,a),o(e,t)},p(l,a){a&1&&n!==(n=l[7]+"")&&ee(t,n),a&3&&s!==(s=`${l[1].fileUrl}${l[1].lineNumberTemplate.join(l[7].toString())}`)&&_(e,"href",s)},d(l){l&&m(e)}}}function tl(r){let e,n,t,s,l;function a(u,c){return u[1].fileUrl&&u[1].lineNumberTemplate?_r:gr}let f=a(r),i=f(r);return s=new Es({props:{content:r[8],highlights:r[2]?.[r[10]]}}),{c(){e=p("span"),i.c(),n=v(),t=p("code"),S(s.$$.fragment),this.h()},l(u){e=g(u,"SPAN",{class:!0});var c=y(e);i.l(c),c.forEach(m),n=b(u),t=g(u,"CODE",{});var $=y(t);N(s.$$.fragment,$),$.forEach(m),this.h()},h(){_(e,"class","select-none text-gray-600 text-right pr-1")},m(u,c){R(u,e,c),i.m(e,null),R(u,n,c),R(u,t,c),P(s,t,null),l=!0},p(u,c){f===(f=a(u))&&i?i.p(u,c):(i.d(1),i=f(u),i&&(i.c(),i.m(e,null)));const $={};c&1&&($.content=u[8]),c&4&&($.highlights=u[2]?.[u[10]]),s.$set($)},i(u){l||(x(s.$$.fragment,u),l=!0)},o(u){w(s.$$.fragment,u),l=!1},d(u){u&&(m(e),m(n),m(t)),i.d(),I(s)}}}function dr(r){let e,n,t=Ye(r[0]),s=[];for(let a=0;a<t.length;a+=1)s[a]=tl(el(r,t,a));const l=a=>w(s[a],1,1,()=>{s[a]=null});return{c(){e=p("div");for(let a=0;a<s.length;a+=1)s[a].c();this.h()},l(a){e=g(a,"DIV",{class:!0});var f=y(e);for(let i=0;i<s.length;i+=1)s[i].l(f);f.forEach(m),this.h()},h(){_(e,"class","py-1 grid grid-cols-[minmax(2rem,_min-content)_1fr] gap-x-2 whitespace-pre overflow-x-auto")},m(a,f){R(a,e,f);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);r[5](e),n=!0},p(a,[f]){if(f&7){t=Ye(a[0]);let i;for(i=0;i<t.length;i+=1){const u=el(a,t,i);s[i]?(s[i].p(u,f),x(s[i],1)):(s[i]=tl(u),s[i].c(),x(s[i],1),s[i].m(e,null))}for(Dt(),i=t.length;i<s.length;i+=1)l(i);Bt()}},i(a){if(!n){for(let f=0;f<t.length;f+=1)x(s[f]);n=!0}},o(a){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)w(s[f]);n=!1},d(a){a&&m(e),ws(s,a),r[5](null)}}}function $r(r,e,n){let{lines:t}=e,{file:s}=e,l=!1,a;const f=async c=>{const{codeToThemedTokens:$,bundledLanguages:h}=await Tl(()=>import("../chunks/index.8xz2tJHQ.js"),__vite__mapDeps([0,1]),import.meta.url);let d=s.language.toLowerCase();d==="restructuredtext"&&(d="rst"),d in h?n(2,a=await $(c,{theme:"github-light",lang:d})):d!=="text"&&console.warn("Could not find shikiji language for '%s', skipping highlighting",d,h)};let i;ql(()=>{const c=new IntersectionObserver(async $=>{$.some(({isIntersecting:h})=>h)&&(c.disconnect(),n(4,l=!0))});return c.observe(i),()=>{c.disconnect()}});function u(c){un[c?"unshift":"push"](()=>{i=c,n(3,i)})}return r.$$set=c=>{"lines"in c&&n(0,t=c.lines),"file"in c&&n(1,s=c.file)},r.$$.update=()=>{r.$$.dirty&17&&l&&f(t.map(({line:{text:c}})=>c).join(`
8
- `))},[t,s,a,i,l,u]}class vr extends Ce{constructor(e){super(),Ee(this,e,$r,dr,we,{lines:0,file:1})}}const br=(r,e,n)=>{const t=[],s=Math.min(e*2,e+10);let l=0;const a=f=>{if(l>=e)return null;if(l+f.matchCount>=s){let i=0;const u=[];for(const c of f.lines)if(u.push(c),i+=c.matchRanges.length,l+i>=s)break;return{lines:u,matchCount:i,startLineNumber:f.startLineNumber}}else return f};if(e>0)for(const f of r){const i=a(f);if(!n&&i===null)break;l+=i?.matchCount??0;const u=n?f:i,{lines:c,startLineNumber:$}=u,h=c.map((E,q)=>({lineNumber:q+$,line:E}));if(t.at(-1)?.at(-1)?.lineNumber===$-1?t.at(-1).push(...h):t.push(h),!n&&l>=e)break}return{lineGroups:t,preCutoffMatchCount:l}};function nl(r,e,n){const t=r.slice();return t[15]=e[n],t}function sl(r){let e,n,t=Ye(r[5]),s=[];for(let a=0;a<t.length;a+=1)s[a]=ll(nl(r,t,a));const l=a=>w(s[a],1,1,()=>{s[a]=null});return{c(){e=p("div");for(let a=0;a<s.length;a+=1)s[a].c();this.h()},l(a){e=g(a,"DIV",{class:!0});var f=y(e);for(let i=0;i<s.length;i+=1)s[i].l(f);f.forEach(m),this.h()},h(){_(e,"class","font-mono text-sm divide-y")},m(a,f){R(a,e,f);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);n=!0},p(a,f){if(f&33){t=Ye(a[5]);let i;for(i=0;i<t.length;i+=1){const u=nl(a,t,i);s[i]?(s[i].p(u,f),x(s[i],1)):(s[i]=ll(u),s[i].c(),x(s[i],1),s[i].m(e,null))}for(Dt(),i=t.length;i<s.length;i+=1)l(i);Bt()}},i(a){if(!n){for(let f=0;f<t.length;f+=1)x(s[f]);n=!0}},o(a){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)w(s[f]);n=!1},d(a){a&&m(e),ws(s,a)}}}function ll(r){let e,n;return e=new vr({props:{lines:r[15],file:r[0]}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&32&&(l.lines=t[15]),s&1&&(l.file=t[0]),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function yr(r){let e,n,t,s,l=r[4]===1?"match":"matches",a,f,i;return{c(){e=p("button"),n=j("Hide "),t=j(r[4]),s=v(),a=j(l),this.h()},l(u){e=g(u,"BUTTON",{type:!0,class:!0});var c=y(e);n=U(c,"Hide "),t=U(c,r[4]),s=b(c),a=U(c,l),c.forEach(m),this.h()},h(){_(e,"type","button"),_(e,"class","bg-slate-100 text-sm py-1 sticky bottom-0")},m(u,c){R(u,e,c),o(e,n),o(e,t),o(e,s),o(e,a),f||(i=Xt(e,"click",r[9]),f=!0)},p(u,c){c&16&&ee(t,u[4]),c&16&&l!==(l=u[4]===1?"match":"matches")&&ee(a,l)},d(u){u&&m(e),f=!1,i()}}}function kr(r){let e,n,t,s,l=r[4]===1?"match":"matches",a,f,i;return{c(){e=p("button"),n=j("Show "),t=j(r[4]),s=j(" more "),a=j(l),this.h()},l(u){e=g(u,"BUTTON",{type:!0,class:!0});var c=y(e);n=U(c,"Show "),t=U(c,r[4]),s=U(c," more "),a=U(c,l),c.forEach(m),this.h()},h(){_(e,"type","button"),_(e,"class","bg-slate-100 text-sm py-1")},m(u,c){R(u,e,c),o(e,n),o(e,t),o(e,s),o(e,a),f||(i=Xt(e,"click",r[8]),f=!0)},p(u,c){c&16&&ee(t,u[4]),c&16&&l!==(l=u[4]===1?"match":"matches")&&ee(a,l)},d(u){u&&m(e),f=!1,i()}}}function xr(r){let e,n,t,s,l,a,f,i;l=new pr({props:{file:r[0],rank:r[1]}});let u=r[5].length>0&&sl(r);function c(d,E){if(d[4]>0&&!d[2])return kr;if(d[4]>0&&d[2])return yr}let $=c(r),h=$&&$(r);return{c(){e=p("div"),n=p("span"),t=v(),s=p("section"),S(l.$$.fragment),a=v(),u&&u.c(),f=v(),h&&h.c(),this.h()},l(d){e=g(d,"DIV",{});var E=y(e);n=g(E,"SPAN",{}),y(n).forEach(m),t=b(E),s=g(E,"SECTION",{class:!0});var q=y(s);N(l.$$.fragment,q),a=b(q),u&&u.l(q),f=b(q),h&&h.l(q),q.forEach(m),E.forEach(m),this.h()},h(){_(s,"class","p-1 border-2 flex flex-col gap-1")},m(d,E){R(d,e,E),o(e,n),r[14](n),o(e,t),o(e,s),P(l,s,null),o(s,a),u&&u.m(s,null),o(s,f),h&&h.m(s,null),i=!0},p(d,[E]){const q={};E&1&&(q.file=d[0]),E&2&&(q.rank=d[1]),l.$set(q),d[5].length>0?u?(u.p(d,E),E&32&&x(u,1)):(u=sl(d),u.c(),x(u,1),u.m(s,f)):u&&(Dt(),w(u,1,1,()=>{u=null}),Bt()),$===($=c(d))&&h?h.p(d,E):(h&&h.d(1),h=$&&$(d),h&&(h.c(),h.m(s,null)))},i(d){i||(x(l.$$.fragment,d),x(u),i=!0)},o(d){w(l.$$.fragment,d),w(u),i=!1},d(d){d&&m(e),r[14](null),I(l),u&&u.d(),h&&h.d()}}}function wr(r,e,n){let t,s,l,a,f,i,{file:u}=e,{rank:c}=e;const $=gl();Xe(r,$,C=>n(13,i=C));const h=Pl();Xe(r,h,C=>n(12,f=C));let d=!1;const E=()=>{n(2,d=!0)};let q;const A=async()=>{await new Promise(C=>{const O=new IntersectionObserver(V=>{V.some(({isIntersecting:J})=>J)&&(O.disconnect(),C())});O.observe(q),q.scrollIntoView({block:"nearest",behavior:"smooth"})}),n(2,d=!1)};function F(C){un[C?"unshift":"push"](()=>{q=C,n(3,q)})}return r.$$set=C=>{"file"in C&&n(0,u=C.file),"rank"in C&&n(1,c=C.rank)},r.$$.update=()=>{r.$$.dirty&8193&&n(11,t=i==="line-number"?[...u.chunks].sort(({startLineNumber:C},{startLineNumber:O})=>C-O):u.chunks),r.$$.dirty&6148&&n(5,{lineGroups:s,preCutoffMatchCount:l}=br(t,f,d),s,(n(10,l),n(11,t),n(12,f),n(2,d),n(13,i),n(0,u))),r.$$.dirty&1025&&n(4,a=u.matchCount-l-u.fileName.matchRanges.length)},[u,c,d,q,a,s,$,h,E,A,l,t,f,i,F]}class Cr extends Ce{constructor(e){super(),Ee(this,e,wr,xr,we,{file:0,rank:1})}}function rl(r,e,n){const t=r.slice();return t[10]=e[n],t[12]=n,t}function al(r){let e,n="(truncated)";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=g(t,"SPAN",{title:!0,class:!0,"data-svelte-h":!0}),D(e)!=="svelte-k2z799"&&(e.textContent=n),this.h()},h(){_(e,"title","The number of matches found in zoekt reached the maximum limits, so the search was aborted and these counts are incomplete"),_(e,"class","text-yellow-700 cursor-help underline decoration-dashed")},m(t,s){R(t,e,s)},d(t){t&&m(e)}}}function ol(r,e){let n,t,s;return t=new Cr({props:{file:e[10],rank:e[12]+1}}),{key:r,first:null,c(){n=Me(),S(t.$$.fragment),this.h()},l(l){n=Me(),N(t.$$.fragment,l),this.h()},h(){this.first=n},m(l,a){R(l,n,a),P(t,l,a),s=!0},p(l,a){e=l;const f={};a&4&&(f.file=e[10]),a&4&&(f.rank=e[12]+1),t.$set(f)},i(l){s||(x(t.$$.fragment,l),s=!0)},o(l){w(t.$$.fragment,l),s=!1},d(l){l&&m(n),I(t,l)}}}function Er(r){let e,n,t,s,l,a=r[3]===1?"file":"files",f,i,u,c,$=r[1]===1?"match":"matches",h,d,E,q=Math.floor(r[6]/1e4)/100+"",A,F,C,O,V,J,K=r[2].length+"",te,ae,ne=r[2].length===1?"file":"files",X,ye,re,M,ce,de=r[0]===1?"match":"matches",Y,se,he,Q=[],ue=new Map,W,B=r[7]>0&&al(),le=Ye(r[2]);const ke=T=>`${T[10].repository}/${T[10].fileName.text}@${T[10].branches.join(";")}`;for(let T=0;T<le.length;T+=1){let L=rl(r,le,T),z=ke(L);ue.set(z,Q[T]=ol(z,L))}return{c(){e=p("h1"),n=p("span"),t=j("zoekt: "),s=j(r[3]),l=v(),f=j(a),i=j(" / "),u=j(r[1]),c=v(),h=j($),d=v(),B&&B.c(),E=j(" / "),A=j(q),F=j("ms"),C=v(),O=p("span"),V=j("neogrok: "),J=p("span"),te=j(K),ae=v(),X=j(ne),ye=j(`
7
+ one.`),qn.forEach(m),ms=b(Zt),be=g(Zt,"UL",{class:!0});var Ze=y(be);qt=g(Ze,"LI",{});var Sn=y(qt);N(St.$$.fragment,Sn),ps=b(Sn),Nt=g(Sn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Nt)!=="svelte-hf1rvj"&&(Nt.textContent=js),Sn.forEach(m),gs=b(Ze),Pt=g(Ze,"LI",{});var Nn=y(Pt);N(It.$$.fragment,Nn),_s=b(Nn),At=g(Nn,"SPAN",{class:!0,"data-svelte-h":!0}),D(At)!=="svelte-1w1fygt"&&(At.textContent=Us),Nn.forEach(m),ds=b(Ze),Tt=g(Ze,"LI",{});var Pn=y(Tt);N(Mt.$$.fragment,Pn),$s=b(Pn),Ot=g(Pn,"SPAN",{class:!0,"data-svelte-h":!0}),D(Ot)!=="svelte-cahjdy"&&(Ot.textContent=Rs),Pn.forEach(m),vs=b(Ze),Ht=g(Ze,"LI",{});var In=y(Ht);N(jt.$$.fragment,In),bs=b(In),Ut=g(In,"SPAN",{class:!0,"data-svelte-h":!0}),D(Ut)!=="svelte-8b4fxa"&&(Ut.textContent=zs),In.forEach(m),Ze.forEach(m),Zt.forEach(m),ie.forEach(m),oe.forEach(m),this.h()},h(){_(e,"class","text-4xl text-center pt-8 tracking-wide"),_(a,"class","text-2xl font-semibold"),_(l,"class","text-center"),_(d,"class","text-lg"),_(V,"class","text-xs"),_(X,"class","text-xs"),_(Q,"class","text-xs"),_(A,"class","space-y-1"),_(h,"class","grow basis-64 max-w-xs"),_(le,"class","text-lg"),_(me,"class","text-xs"),_(G,"class","text-xs"),_(ve,"class","text-xs"),_(L,"class","space-y-1"),_(B,"class","grow basis-64 max-w-xs"),_(st,"class","text-lg"),_(at,"class","text-xs"),_(ut,"class","text-xs"),_(ht,"class","text-xs"),_(Ne,"class","space-y-1"),_(Re,"class","grow basis-64 max-w-xs"),_(mt,"class","text-lg"),_(ze,"class","text-xs"),_(Be,"class","space-y-1"),_(Pe,"class","grow basis-64 max-w-xs"),_(_t,"class","text-lg"),_(dt,"class","text-xs"),_(vt,"class","text-sm"),_(kt,"class","text-sm"),_(Ve,"class","space-y-1"),_(Ie,"class","grow basis-64 max-w-xs"),_(wt,"class","text-lg"),_(Qe,"class","text-xs"),_(Ge,"class","space-y-1"),_(Ae,"class","grow basis-64 max-w-xs"),_(Lt,"class","text-lg"),_(Ke,"class","text-xs"),_(Nt,"class","text-xs"),_(At,"class","text-xs"),_(Ot,"class","text-xs"),_(Ut,"class","text-xs"),_(be,"class","space-y-1"),_(Te,"class","grow basis-64 max-w-xs"),_($,"class","flex flex-wrap gap-4 justify-evenly"),_(s,"class","flex flex-col items-center pt-6 gap-4")},m(k,oe){R(k,e,oe),R(k,t,oe),R(k,s,oe),o(s,l),o(l,a),o(l,i),P(u,l,null),o(s,c),o(s,$),o($,h),o(h,d),o(h,q),o(h,A),o(A,F),P(C,F,null),o(F,O),o(F,V),o(A,K),o(A,te),P(ae,te,null),o(te,ne),o(te,X),o(A,re),o(A,M),P(ce,M,null),o(A,de),o(A,Y),P(se,Y,null),o(Y,he),o(Y,Q),o($,W),o($,B),o(B,le),o(B,T),o(B,L),o(L,z),P(fe,z,null),o(z,Le),o(z,me),o(L,qe),o(L,Oe),P(Se,Oe,null),o(Oe,H),o(Oe,G),o(L,$e),o(L,ge),P(_e,ge,null),o(ge,Ue),o(ge,ve),o(L,Vt),o(L,tn),P(nt,tn,null),o($,On),o($,Re),o(Re,st),o(Re,Hn),o(Re,Ne),o(Ne,lt),P(rt,lt,null),o(lt,jn),o(lt,at),o(Ne,Un),o(Ne,ot),P(it,ot,null),o(ot,Rn),o(ot,ut),o(Ne,zn),o(Ne,ft),P(ct,ft,null),o(ft,Dn),o(ft,ht),o($,Bn),o($,Pe),o(Pe,mt),o(Pe,Vn),o(Pe,ze),o(ze,Qn),P(De,ze,null),o(ze,Fn),o(Pe,Gn),o(Pe,Be),o(Be,nn),P(pt,nn,null),o(Be,Kn),o(Be,sn),P(gt,sn,null),o($,Jn),o($,Ie),o(Ie,_t),o(Ie,Wn),o(Ie,dt),o(Ie,Zn),o(Ie,Ve),o(Ve,He),P($t,He,null),o(He,Xn),o(He,vt),o(He,Yn),P(bt,He,null),o(Ve,es),o(Ve,je),P(yt,je,null),o(je,ts),o(je,kt),o(je,ns),P(xt,je,null),o($,ss),o($,Ae),o(Ae,wt),o(Ae,ls),o(Ae,Qe),o(Qe,rs),P(Fe,Qe,null),o(Qe,as),o(Ae,os),o(Ae,Ge),o(Ge,ln),P(Ct,ln,null),o(Ge,is),o(Ge,rn),P(Et,rn,null),o($,us),o($,Te),o(Te,Lt),o(Te,fs),o(Te,Ke),o(Ke,cs),P(Je,Ke,null),o(Ke,hs),o(Te,ms),o(Te,be),o(be,qt),P(St,qt,null),o(qt,ps),o(qt,Nt),o(be,gs),o(be,Pt),P(It,Pt,null),o(Pt,_s),o(Pt,At),o(be,ds),o(be,Tt),P(Mt,Tt,null),o(Tt,$s),o(Tt,Ot),o(be,vs),o(be,Ht),P(jt,Ht,null),o(Ht,bs),o(Ht,Ut),cn=!0},p(k,[oe]){const Rt={};oe&1&&(Rt.$$scope={dirty:oe,ctx:k}),u.$set(Rt);const ie={};oe&1&&(ie.$$scope={dirty:oe,ctx:k}),De.$set(ie);const zt={};oe&1&&(zt.$$scope={dirty:oe,ctx:k}),Fe.$set(zt);const xe={};oe&1&&(xe.$$scope={dirty:oe,ctx:k}),Je.$set(xe)},i(k){cn||(x(u.$$.fragment,k),x(C.$$.fragment,k),x(ae.$$.fragment,k),x(ce.$$.fragment,k),x(se.$$.fragment,k),x(fe.$$.fragment,k),x(Se.$$.fragment,k),x(_e.$$.fragment,k),x(nt.$$.fragment,k),x(rt.$$.fragment,k),x(it.$$.fragment,k),x(ct.$$.fragment,k),x(De.$$.fragment,k),x(pt.$$.fragment,k),x(gt.$$.fragment,k),x($t.$$.fragment,k),x(bt.$$.fragment,k),x(yt.$$.fragment,k),x(xt.$$.fragment,k),x(Fe.$$.fragment,k),x(Ct.$$.fragment,k),x(Et.$$.fragment,k),x(Je.$$.fragment,k),x(St.$$.fragment,k),x(It.$$.fragment,k),x(Mt.$$.fragment,k),x(jt.$$.fragment,k),cn=!0)},o(k){w(u.$$.fragment,k),w(C.$$.fragment,k),w(ae.$$.fragment,k),w(ce.$$.fragment,k),w(se.$$.fragment,k),w(fe.$$.fragment,k),w(Se.$$.fragment,k),w(_e.$$.fragment,k),w(nt.$$.fragment,k),w(rt.$$.fragment,k),w(it.$$.fragment,k),w(ct.$$.fragment,k),w(De.$$.fragment,k),w(pt.$$.fragment,k),w(gt.$$.fragment,k),w($t.$$.fragment,k),w(bt.$$.fragment,k),w(yt.$$.fragment,k),w(xt.$$.fragment,k),w(Fe.$$.fragment,k),w(Ct.$$.fragment,k),w(Et.$$.fragment,k),w(Je.$$.fragment,k),w(St.$$.fragment,k),w(It.$$.fragment,k),w(Mt.$$.fragment,k),w(jt.$$.fragment,k),cn=!1},d(k){k&&(m(e),m(t),m(s)),I(u),I(C),I(ae),I(ce),I(se),I(fe),I(Se),I(_e),I(nt),I(rt),I(it),I(ct),I(De),I(pt),I(gt),I($t),I(bt),I(yt),I(xt),I(Fe),I(Ct),I(Et),I(Je),I(St),I(It),I(Mt),I(jt)}}}class $l extends Ce{constructor(e){super(),Ee(this,e,null,Xl,we,{})}}function Yl(r){let e;const n=r[2].default,t=cl(n,r,r[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&hl(t,n,s,s[3],e?pl(n,s[3],l,null):ml(s[3]),null)},i(s){e||(x(t,s),e=!0)},o(s){w(t,s),e=!1},d(s){t&&t.d(s)}}}function er(r){let e,n;const t=[{name:"chevron-right"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[Yl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new fl({props:s}),{c(){S(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,a){P(e,l,a),n=!0},p(l,[a]){const f=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){I(e,l)}}}function tr(r,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["path",{d:"m9 18 6-6-6-6"}]];return r.$$set=a=>{n(1,e=en(en({},e),Tn(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=Tn(e),[l,e,t,s]}class nr extends Ce{constructor(e){super(),Ee(this,e,tr,er,we,{})}}function Xs(r,e,n){const t=r.slice();return t[4]=e[n].text,t[5]=e[n].match,t[6]=e[n].color,t[7]=e[n].fontClass,t}function sr(r){let e=r[4]+"",n;return{c(){n=j(e)},l(t){n=U(t,e)},m(t,s){R(t,n,s)},p(t,s){s&1&&e!==(e=t[4]+"")&&ee(n,e)},d(t){t&&m(n)}}}function lr(r){let e,n=r[4]+"",t,s,l;return{c(){e=p("span"),t=j(n),this.h()},l(a){e=g(a,"SPAN",{style:!0,class:!0});var f=y(e);t=U(f,n),f.forEach(m),this.h()},h(){_(e,"style",s=`color: ${r[6]}`),_(e,"class",l=r[7])},m(a,f){R(a,e,f),o(e,t)},p(a,f){f&1&&n!==(n=a[4]+"")&&ee(t,n),f&1&&s!==(s=`color: ${a[6]}`)&&_(e,"style",s),f&1&&l!==(l=a[7])&&_(e,"class",l)},d(a){a&&m(e)}}}function rr(r){let e,n=r[4]+"",t;return{c(){e=p("mark"),t=j(n),this.h()},l(s){e=g(s,"MARK",{class:!0});var l=y(e);t=U(l,n),l.forEach(m),this.h()},h(){_(e,"class","bg-yellow-200")},m(s,l){R(s,e,l),o(e,t)},p(s,l){l&1&&n!==(n=s[4]+"")&&ee(t,n)},d(s){s&&m(e)}}}function ar(r){let e,n,t=r[4]+"",s,l,a;return{c(){e=p("mark"),n=p("span"),s=j(t),this.h()},l(f){e=g(f,"MARK",{class:!0});var i=y(e);n=g(i,"SPAN",{style:!0,class:!0});var u=y(n);s=U(u,t),u.forEach(m),i.forEach(m),this.h()},h(){_(n,"style",l=`color: ${r[6]}`),_(n,"class",a=r[7]),_(e,"class","bg-yellow-200")},m(f,i){R(f,e,i),o(e,n),o(n,s)},p(f,i){i&1&&t!==(t=f[4]+"")&&ee(s,t),i&1&&l!==(l=`color: ${f[6]}`)&&_(n,"style",l),i&1&&a!==(a=f[7])&&_(n,"class",a)},d(f){f&&m(e)}}}function Ys(r){let e;function n(l,a){return l[5]&&l[6]?ar:l[5]?rr:l[6]?lr:sr}let t=n(r),s=t(r);return{c(){s.c(),e=Me()},l(l){s.l(l),e=Me()},m(l,a){s.m(l,a),R(l,e,a)},p(l,a){t===(t=n(l))&&s?s.p(l,a):(s.d(1),s=t(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){l&&m(e),s.d(l)}}}function or(r){let e,n=Ye(r[0]),t=[];for(let s=0;s<n.length;s+=1)t[s]=Ys(Xs(r,n,s));return{c(){for(let s=0;s<t.length;s+=1)t[s].c();e=Me()},l(s){for(let l=0;l<t.length;l+=1)t[l].l(s);e=Me()},m(s,l){for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(s,l);R(s,e,l)},p(s,[l]){if(l&1){n=Ye(s[0]);let a;for(a=0;a<n.length;a+=1){const f=Xs(s,n,a);t[a]?t[a].p(f,l):(t[a]=Ys(f),t[a].c(),t[a].m(e.parentNode,e))}for(;a<t.length;a+=1)t[a].d(1);t.length=n.length}},i:fn,o:fn,d(s){s&&m(e),ws(t,s)}}}function ir(r,e,n){let{content:t}=e,{highlights:s=void 0}=e;const l=f=>{if(f!==void 0)switch(f){case 0:return;case 1:return"italic";case 2:return"font-bold";case 4:return"underline";default:throw new Error(`unreachable ${f}`)}};let a;return r.$$set=f=>{"content"in f&&n(1,t=f.content),"highlights"in f&&n(2,s=f.highlights)},r.$$.update=()=>{if(r.$$.dirty&6){const f=[];if(s){const i=t.matchRanges[Symbol.iterator]();let u=i.next().value,c=0;for(const{content:$,fontStyle:h,color:d}of s){const E=c+$.length,q=l(h);let A=c;for(;u&&(u.start>A&&u.start<E||u.end>A&&u.end<=E);)u.start>A&&u.start<E&&(f.push({text:t.text.slice(A,u.start),match:!1,fontClass:q,color:d}),A=u.start),u.end>A&&u.end<=E&&(f.push({text:t.text.slice(A,u.end),match:!0,fontClass:q,color:d}),A=u.end,u=i.next().value);A<E&&f.push({text:t.text.slice(A,E),match:!!u&&A>=u.start&&A<u.end,fontClass:q,color:d}),c=E}}else{let i=0;for(const{start:u,end:c}of t.matchRanges)i<u&&f.push({text:t.text.slice(i,u),match:!1}),f.push({text:t.text.slice(u,c),match:!0}),i=c;i<t.text.length&&f.push({text:t.text.slice(i),match:!1})}n(0,a=f)}},[a,t,s]}class Es extends Ce{constructor(e){super(),Ee(this,e,ir,or,we,{content:1,highlights:2})}}function ur(r){let e,n;return e=new Es({props:{content:r[0].fileName}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.content=t[0].fileName),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function fr(r){let e,n;return e=new on({props:{to:r[0].fileUrl,$$slots:{default:[cr]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.to=t[0].fileUrl),s&9&&(l.$$scope={dirty:s,ctx:t}),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function cr(r){let e,n;return e=new Es({props:{content:r[0].fileName}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.content=t[0].fileName),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function hr(r){let e,n,t,s=r[0].repository+"",l,a,f,i,u,c,$,h=r[1].join(" | ")+"",d,E;f=new nr({props:{class:"inline",size:16}});const q=[fr,ur],A=[];function F(C,O){return C[0].fileUrl?0:1}return i=F(r),u=A[i]=q[i](r),{c(){e=p("h2"),n=p("span"),t=p("span"),l=j(s),a=p("span"),S(f.$$.fragment),u.c(),c=v(),$=p("span"),d=j(h),this.h()},l(C){e=g(C,"H2",{class:!0});var O=y(e);n=g(O,"SPAN",{});var V=y(n);t=g(V,"SPAN",{});var J=y(t);l=U(J,s),J.forEach(m),a=g(V,"SPAN",{});var K=y(a);N(f.$$.fragment,K),K.forEach(m),u.l(V),V.forEach(m),c=b(O),$=g(O,"SPAN",{class:!0});var te=y($);d=U(te,h),te.forEach(m),O.forEach(m),this.h()},h(){_($,"class","ml-auto"),_(e,"class","px-2 py-1 text-sm sticky top-0 flex flex-wrap bg-slate-100 whitespace-pre-wrap [overflow-wrap:anywhere]")},m(C,O){R(C,e,O),o(e,n),o(n,t),o(t,l),o(n,a),P(f,a,null),A[i].m(n,null),o(e,c),o(e,$),o($,d),E=!0},p(C,[O]){(!E||O&1)&&s!==(s=C[0].repository+"")&&ee(l,s);let V=i;i=F(C),i===V?A[i].p(C,O):(Dt(),w(A[V],1,1,()=>{A[V]=null}),Bt(),u=A[i],u?u.p(C,O):(u=A[i]=q[i](C),u.c()),x(u,1),u.m(n,null)),(!E||O&2)&&h!==(h=C[1].join(" | ")+"")&&ee(d,h)},i(C){E||(x(f.$$.fragment,C),x(u),E=!0)},o(C){w(f.$$.fragment,C),w(u),E=!1},d(C){C&&m(e),I(f),A[i].d()}}}function mr(r,e,n){let t,{file:s}=e,{rank:l}=e;return r.$$set=a=>{"file"in a&&n(0,s=a.file),"rank"in a&&n(2,l=a.rank)},r.$$.update=()=>{r.$$.dirty&5&&n(1,t=[`${s.matchCount} ${s.matchCount===1?"match":"matches"}`,...s.branches.length>1||s.branches[0]!=="HEAD"?[s.branches.join(", ")]:[],s.language||"Text",`№${l}`])},[s,t,l]}class pr extends Ce{constructor(e){super(),Ee(this,e,mr,hr,we,{file:0,rank:2})}}function el(r,e,n){const t=r.slice();return t[7]=e[n].lineNumber,t[8]=e[n].line,t[10]=n,t}function gr(r){let e=r[7]+"",n;return{c(){n=j(e)},l(t){n=U(t,e)},m(t,s){R(t,n,s)},p(t,s){s&1&&e!==(e=t[7]+"")&&ee(n,e)},d(t){t&&m(n)}}}function _r(r){let e,n=r[7]+"",t,s;return{c(){e=p("a"),t=j(n),this.h()},l(l){e=g(l,"A",{class:!0,href:!0});var a=y(e);t=U(a,n),a.forEach(m),this.h()},h(){_(e,"class","hover:underline decoration-1"),_(e,"href",s=`${r[1].fileUrl}${r[1].lineNumberTemplate.join(r[7].toString())}`)},m(l,a){R(l,e,a),o(e,t)},p(l,a){a&1&&n!==(n=l[7]+"")&&ee(t,n),a&3&&s!==(s=`${l[1].fileUrl}${l[1].lineNumberTemplate.join(l[7].toString())}`)&&_(e,"href",s)},d(l){l&&m(e)}}}function tl(r){let e,n,t,s,l;function a(u,c){return u[1].fileUrl&&u[1].lineNumberTemplate?_r:gr}let f=a(r),i=f(r);return s=new Es({props:{content:r[8],highlights:r[2]?.[r[10]]}}),{c(){e=p("span"),i.c(),n=v(),t=p("code"),S(s.$$.fragment),this.h()},l(u){e=g(u,"SPAN",{class:!0});var c=y(e);i.l(c),c.forEach(m),n=b(u),t=g(u,"CODE",{});var $=y(t);N(s.$$.fragment,$),$.forEach(m),this.h()},h(){_(e,"class","select-none text-gray-600 text-right pr-1")},m(u,c){R(u,e,c),i.m(e,null),R(u,n,c),R(u,t,c),P(s,t,null),l=!0},p(u,c){f===(f=a(u))&&i?i.p(u,c):(i.d(1),i=f(u),i&&(i.c(),i.m(e,null)));const $={};c&1&&($.content=u[8]),c&4&&($.highlights=u[2]?.[u[10]]),s.$set($)},i(u){l||(x(s.$$.fragment,u),l=!0)},o(u){w(s.$$.fragment,u),l=!1},d(u){u&&(m(e),m(n),m(t)),i.d(),I(s)}}}function dr(r){let e,n,t=Ye(r[0]),s=[];for(let a=0;a<t.length;a+=1)s[a]=tl(el(r,t,a));const l=a=>w(s[a],1,1,()=>{s[a]=null});return{c(){e=p("div");for(let a=0;a<s.length;a+=1)s[a].c();this.h()},l(a){e=g(a,"DIV",{class:!0});var f=y(e);for(let i=0;i<s.length;i+=1)s[i].l(f);f.forEach(m),this.h()},h(){_(e,"class","py-1 grid grid-cols-[minmax(2rem,_min-content)_1fr] gap-x-2 whitespace-pre overflow-x-auto")},m(a,f){R(a,e,f);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);r[5](e),n=!0},p(a,[f]){if(f&7){t=Ye(a[0]);let i;for(i=0;i<t.length;i+=1){const u=el(a,t,i);s[i]?(s[i].p(u,f),x(s[i],1)):(s[i]=tl(u),s[i].c(),x(s[i],1),s[i].m(e,null))}for(Dt(),i=t.length;i<s.length;i+=1)l(i);Bt()}},i(a){if(!n){for(let f=0;f<t.length;f+=1)x(s[f]);n=!0}},o(a){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)w(s[f]);n=!1},d(a){a&&m(e),ws(s,a),r[5](null)}}}function $r(r,e,n){let{lines:t}=e,{file:s}=e,l=!1,a;const f=async c=>{const{codeToThemedTokens:$,bundledLanguages:h}=await Tl(()=>import("../chunks/index.8xz2tJHQ.js"),__vite__mapDeps([0,1]),import.meta.url);let d=s.language.toLowerCase();d==="restructuredtext"&&(d="rst"),d in h?n(2,a=await $(c,{theme:"github-light",lang:d})):d!=="text"&&console.warn("Could not find shikiji language for '%s', skipping highlighting",d,h)};let i;ql(()=>{const c=new IntersectionObserver(async $=>{$.some(({isIntersecting:h})=>h)&&(c.disconnect(),n(4,l=!0))});return c.observe(i),()=>{c.disconnect()}});function u(c){un[c?"unshift":"push"](()=>{i=c,n(3,i)})}return r.$$set=c=>{"lines"in c&&n(0,t=c.lines),"file"in c&&n(1,s=c.file)},r.$$.update=()=>{r.$$.dirty&17&&l&&(t.some(({line:c})=>c.text.length>=1e3)?n(2,a=void 0):f(t.map(({line:{text:c}})=>c).join(`
8
+ `)))},[t,s,a,i,l,u]}class vr extends Ce{constructor(e){super(),Ee(this,e,$r,dr,we,{lines:0,file:1})}}const br=(r,e,n)=>{const t=[],s=Math.min(e*2,e+10);let l=0;const a=f=>{if(l>=e)return null;if(l+f.matchCount>=s){let i=0;const u=[];for(const c of f.lines)if(u.push(c),i+=c.matchRanges.length,l+i>=s)break;return{lines:u,matchCount:i,startLineNumber:f.startLineNumber}}else return f};if(e>0)for(const f of r){const i=a(f);if(!n&&i===null)break;l+=i?.matchCount??0;const u=n?f:i,{lines:c,startLineNumber:$}=u,h=c.map((E,q)=>({lineNumber:q+$,line:E}));if(t.at(-1)?.at(-1)?.lineNumber===$-1?t.at(-1).push(...h):t.push(h),!n&&l>=e)break}return{lineGroups:t,preCutoffMatchCount:l}};function nl(r,e,n){const t=r.slice();return t[15]=e[n],t}function sl(r){let e,n,t=Ye(r[5]),s=[];for(let a=0;a<t.length;a+=1)s[a]=ll(nl(r,t,a));const l=a=>w(s[a],1,1,()=>{s[a]=null});return{c(){e=p("div");for(let a=0;a<s.length;a+=1)s[a].c();this.h()},l(a){e=g(a,"DIV",{class:!0});var f=y(e);for(let i=0;i<s.length;i+=1)s[i].l(f);f.forEach(m),this.h()},h(){_(e,"class","font-mono text-sm divide-y")},m(a,f){R(a,e,f);for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(e,null);n=!0},p(a,f){if(f&33){t=Ye(a[5]);let i;for(i=0;i<t.length;i+=1){const u=nl(a,t,i);s[i]?(s[i].p(u,f),x(s[i],1)):(s[i]=ll(u),s[i].c(),x(s[i],1),s[i].m(e,null))}for(Dt(),i=t.length;i<s.length;i+=1)l(i);Bt()}},i(a){if(!n){for(let f=0;f<t.length;f+=1)x(s[f]);n=!0}},o(a){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)w(s[f]);n=!1},d(a){a&&m(e),ws(s,a)}}}function ll(r){let e,n;return e=new vr({props:{lines:r[15],file:r[0]}}),{c(){S(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,s){P(e,t,s),n=!0},p(t,s){const l={};s&32&&(l.lines=t[15]),s&1&&(l.file=t[0]),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){I(e,t)}}}function yr(r){let e,n,t,s,l=r[4]===1?"match":"matches",a,f,i;return{c(){e=p("button"),n=j("Hide "),t=j(r[4]),s=v(),a=j(l),this.h()},l(u){e=g(u,"BUTTON",{type:!0,class:!0});var c=y(e);n=U(c,"Hide "),t=U(c,r[4]),s=b(c),a=U(c,l),c.forEach(m),this.h()},h(){_(e,"type","button"),_(e,"class","bg-slate-100 text-sm py-1 sticky bottom-0")},m(u,c){R(u,e,c),o(e,n),o(e,t),o(e,s),o(e,a),f||(i=Xt(e,"click",r[9]),f=!0)},p(u,c){c&16&&ee(t,u[4]),c&16&&l!==(l=u[4]===1?"match":"matches")&&ee(a,l)},d(u){u&&m(e),f=!1,i()}}}function kr(r){let e,n,t,s,l=r[4]===1?"match":"matches",a,f,i;return{c(){e=p("button"),n=j("Show "),t=j(r[4]),s=j(" more "),a=j(l),this.h()},l(u){e=g(u,"BUTTON",{type:!0,class:!0});var c=y(e);n=U(c,"Show "),t=U(c,r[4]),s=U(c," more "),a=U(c,l),c.forEach(m),this.h()},h(){_(e,"type","button"),_(e,"class","bg-slate-100 text-sm py-1")},m(u,c){R(u,e,c),o(e,n),o(e,t),o(e,s),o(e,a),f||(i=Xt(e,"click",r[8]),f=!0)},p(u,c){c&16&&ee(t,u[4]),c&16&&l!==(l=u[4]===1?"match":"matches")&&ee(a,l)},d(u){u&&m(e),f=!1,i()}}}function xr(r){let e,n,t,s,l,a,f,i;l=new pr({props:{file:r[0],rank:r[1]}});let u=r[5].length>0&&sl(r);function c(d,E){if(d[4]>0&&!d[2])return kr;if(d[4]>0&&d[2])return yr}let $=c(r),h=$&&$(r);return{c(){e=p("div"),n=p("span"),t=v(),s=p("section"),S(l.$$.fragment),a=v(),u&&u.c(),f=v(),h&&h.c(),this.h()},l(d){e=g(d,"DIV",{});var E=y(e);n=g(E,"SPAN",{}),y(n).forEach(m),t=b(E),s=g(E,"SECTION",{class:!0});var q=y(s);N(l.$$.fragment,q),a=b(q),u&&u.l(q),f=b(q),h&&h.l(q),q.forEach(m),E.forEach(m),this.h()},h(){_(s,"class","p-1 border-2 flex flex-col gap-1")},m(d,E){R(d,e,E),o(e,n),r[14](n),o(e,t),o(e,s),P(l,s,null),o(s,a),u&&u.m(s,null),o(s,f),h&&h.m(s,null),i=!0},p(d,[E]){const q={};E&1&&(q.file=d[0]),E&2&&(q.rank=d[1]),l.$set(q),d[5].length>0?u?(u.p(d,E),E&32&&x(u,1)):(u=sl(d),u.c(),x(u,1),u.m(s,f)):u&&(Dt(),w(u,1,1,()=>{u=null}),Bt()),$===($=c(d))&&h?h.p(d,E):(h&&h.d(1),h=$&&$(d),h&&(h.c(),h.m(s,null)))},i(d){i||(x(l.$$.fragment,d),x(u),i=!0)},o(d){w(l.$$.fragment,d),w(u),i=!1},d(d){d&&m(e),r[14](null),I(l),u&&u.d(),h&&h.d()}}}function wr(r,e,n){let t,s,l,a,f,i,{file:u}=e,{rank:c}=e;const $=gl();Xe(r,$,C=>n(13,i=C));const h=Pl();Xe(r,h,C=>n(12,f=C));let d=!1;const E=()=>{n(2,d=!0)};let q;const A=async()=>{await new Promise(C=>{const O=new IntersectionObserver(V=>{V.some(({isIntersecting:J})=>J)&&(O.disconnect(),C())});O.observe(q),q.scrollIntoView({block:"nearest",behavior:"smooth"})}),n(2,d=!1)};function F(C){un[C?"unshift":"push"](()=>{q=C,n(3,q)})}return r.$$set=C=>{"file"in C&&n(0,u=C.file),"rank"in C&&n(1,c=C.rank)},r.$$.update=()=>{r.$$.dirty&8193&&n(11,t=i==="line-number"?[...u.chunks].sort(({startLineNumber:C},{startLineNumber:O})=>C-O):u.chunks),r.$$.dirty&6148&&n(5,{lineGroups:s,preCutoffMatchCount:l}=br(t,f,d),s,(n(10,l),n(11,t),n(12,f),n(2,d),n(13,i),n(0,u))),r.$$.dirty&1025&&n(4,a=u.matchCount-l-u.fileName.matchRanges.length)},[u,c,d,q,a,s,$,h,E,A,l,t,f,i,F]}class Cr extends Ce{constructor(e){super(),Ee(this,e,wr,xr,we,{file:0,rank:1})}}function rl(r,e,n){const t=r.slice();return t[10]=e[n],t[12]=n,t}function al(r){let e,n="(truncated)";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=g(t,"SPAN",{title:!0,class:!0,"data-svelte-h":!0}),D(e)!=="svelte-k2z799"&&(e.textContent=n),this.h()},h(){_(e,"title","The number of matches found in zoekt reached the maximum limits, so the search was aborted and these counts are incomplete"),_(e,"class","text-yellow-700 cursor-help underline decoration-dashed")},m(t,s){R(t,e,s)},d(t){t&&m(e)}}}function ol(r,e){let n,t,s;return t=new Cr({props:{file:e[10],rank:e[12]+1}}),{key:r,first:null,c(){n=Me(),S(t.$$.fragment),this.h()},l(l){n=Me(),N(t.$$.fragment,l),this.h()},h(){this.first=n},m(l,a){R(l,n,a),P(t,l,a),s=!0},p(l,a){e=l;const f={};a&4&&(f.file=e[10]),a&4&&(f.rank=e[12]+1),t.$set(f)},i(l){s||(x(t.$$.fragment,l),s=!0)},o(l){w(t.$$.fragment,l),s=!1},d(l){l&&m(n),I(t,l)}}}function Er(r){let e,n,t,s,l,a=r[3]===1?"file":"files",f,i,u,c,$=r[1]===1?"match":"matches",h,d,E,q=Math.floor(r[6]/1e4)/100+"",A,F,C,O,V,J,K=r[2].length+"",te,ae,ne=r[2].length===1?"file":"files",X,ye,re,M,ce,de=r[0]===1?"match":"matches",Y,se,he,Q=[],ue=new Map,W,B=r[7]>0&&al(),le=Ye(r[2]);const ke=T=>`${T[10].repository}/${T[10].fileName.text}@${T[10].branches.join(";")}`;for(let T=0;T<le.length;T+=1){let L=rl(r,le,T),z=ke(L);ue.set(z,Q[T]=ol(z,L))}return{c(){e=p("h1"),n=p("span"),t=j("zoekt: "),s=j(r[3]),l=v(),f=j(a),i=j(" / "),u=j(r[1]),c=v(),h=j($),d=v(),B&&B.c(),E=j(" / "),A=j(q),F=j("ms"),C=v(),O=p("span"),V=j("neogrok: "),J=p("span"),te=j(K),ae=v(),X=j(ne),ye=j(`
9
9
  /
10
10
  `),re=p("span"),M=j(r[0]),ce=v(),Y=j(de),se=v(),he=p("div");for(let T=0;T<Q.length;T+=1)Q[T].c();this.h()},l(T){e=g(T,"H1",{class:!0});var L=y(e);n=g(L,"SPAN",{});var z=y(n);t=U(z,"zoekt: "),s=U(z,r[3]),l=b(z),f=U(z,a),i=U(z," / "),u=U(z,r[1]),c=b(z),h=U(z,$),d=b(z),B&&B.l(z),E=U(z," / "),A=U(z,q),F=U(z,"ms"),z.forEach(m),C=b(L),O=g(L,"SPAN",{class:!0});var fe=y(O);V=U(fe,"neogrok: "),J=g(fe,"SPAN",{});var Le=y(J);te=U(Le,K),ae=b(Le),X=U(Le,ne),Le.forEach(m),ye=U(fe,`
11
11
  /