const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./benchmarking-the-torrust-bittorrent-tracker.BXSdGjTF.js","./scheduler.CXAabxR7.js","./index.DeQT892p.js","./Callout.ChsJ7_6v.js","../assets/Callout.HCSIlwtj.css","./CodeBlock.ONgMrs5r.js","./Icon.CgXRon9v.js","./spread.CN4WR7uZ.js","../assets/CodeBlock.TOAfS3fe.css","./PostTable.DOSfwS8u.js","../assets/PostTable.BpLWBXNM.css","./TableOfContents.C6a3Cr9C.js","./each.D6YF6ztN.js","../assets/TableOfContents.Dl-_Y0Mo.css","./containerizing-rust-applications-best-practices.CfleZTYE.js","./contributor-path.hcqLpBBN.js","./deploying-torrust-to-production.D-FoRu0g.js","./hash2torrent-retrieve-torrent-files-effortlessly.Cj6iaybK.js","./how-to-contribute-to-this-site.C-GF5Bff.js","./how-to-run-a-local-demo.agjxXyvO.js","./how-to-setup-the-development-environment.BGykg7r_.js","./introducing-the-new-sample-torrent-migration-tool.ByM3_2xq.js","./live-demo-beta-v3.ChCSPxLM.js","./profiling-the-torrust-bittorrent-udp-tracker.clKuqLt8.js","./released-v3-0-0-beta.DFFTD1pZ.js","./released-v3-0-0.DSoNv3j4.js","./review-and-setup-guide-for-unit3d.B-XBvULc.js","./the-enigmatic-torrent-source-field.CQP1JgNm.js","./torrust-enhancing-the-bittorrent-ecosystem.D5HlXhkT.js","./what-is-a-bittorrent-tracker.BHR8evJJ.js"])))=>i.map(i=>d[i]);
import{_ as I}from"./preload-helper.C1FmrZbK.js";import{s as x,f as $,b as B,h as V,l as A,e as _,d as y,k as d,i as S,p as w,j as ie,n as U,r as H,v as F,w as W,q as Le,U as Se,I as Be,C as ne,L as me,M as de,N as he,t as se,D as ve,P as ue,a9 as ye,G as ge,S as pe}from"./scheduler.CXAabxR7.js";import{S as te,i as re,g as q,a as T,e as N,t as P,c as G,b as K,m as Y,d as X}from"./index.DeQT892p.js";import{e as Z}from"./each.D6YF6ztN.js";import{I as ze}from"./Icon.CgXRon9v.js";import{g as je}from"./spread.CN4WR7uZ.js";import{s as oe}from"./meta.f2u_0EvB.js";import{p as Ue}from"./stores.NGIpVfSo.js";import{T as Me}from"./Tag.BGc2IXnf.js";import{f as be}from"./date.C5LhFnat.js";import{B as qe}from"./BlogPreview.B3oZx5Ra.js";const Ne=(a,e,l)=>{const t=a[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==l?". Note that variables only represent file names one level deep.":""))))})},He=async()=>{const e=Object.entries(Object.assign({"/src/routes/blog/benchmarking-the-torrust-bittorrent-tracker.md":()=>I(()=>import("./benchmarking-the-torrust-bittorrent-tracker.BXSdGjTF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/containerizing-rust-applications-best-practices.md":()=>I(()=>import("./containerizing-rust-applications-best-practices.CfleZTYE.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/contributor-path.md":()=>I(()=>import("./contributor-path.hcqLpBBN.js"),__vite__mapDeps([15,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"/src/routes/blog/deploying-torrust-to-production.md":()=>I(()=>import("./deploying-torrust-to-production.D-FoRu0g.js"),__vite__mapDeps([16,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/hash2torrent-retrieve-torrent-files-effortlessly.md":()=>I(()=>import("./hash2torrent-retrieve-torrent-files-effortlessly.Cj6iaybK.js"),__vite__mapDeps([17,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"/src/routes/blog/how-to-contribute-to-this-site.md":()=>I(()=>import("./how-to-contribute-to-this-site.C-GF5Bff.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/how-to-run-a-local-demo.md":()=>I(()=>import("./how-to-run-a-local-demo.agjxXyvO.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/how-to-setup-the-development-environment.md":()=>I(()=>import("./how-to-setup-the-development-environment.BGykg7r_.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/introducing-the-new-sample-torrent-migration-tool.md":()=>I(()=>import("./introducing-the-new-sample-torrent-migration-tool.ByM3_2xq.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/live-demo-beta-v3.md":()=>I(()=>import("./live-demo-beta-v3.ChCSPxLM.js"),__vite__mapDeps([22,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"/src/routes/blog/profiling-the-torrust-bittorrent-udp-tracker.md":()=>I(()=>import("./profiling-the-torrust-bittorrent-udp-tracker.clKuqLt8.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/released-v3-0-0-beta.md":()=>I(()=>import("./released-v3-0-0-beta.DFFTD1pZ.js"),__vite__mapDeps([24,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"/src/routes/blog/released-v3-0-0.md":()=>I(()=>import("./released-v3-0-0.DSoNv3j4.js"),__vite__mapDeps([25,1,2,6,7,9,10,11,12,13,4,8]),import.meta.url),"/src/routes/blog/review-and-setup-guide-for-unit3d.md":()=>I(()=>import("./review-and-setup-guide-for-unit3d.B-XBvULc.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/the-enigmatic-torrent-source-field.md":()=>I(()=>import("./the-enigmatic-torrent-source-field.CQP1JgNm.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"/src/routes/blog/torrust-enhancing-the-bittorrent-ecosystem.md":()=>I(()=>import("./torrust-enhancing-the-bittorrent-ecosystem.D5HlXhkT.js"),__vite__mapDeps([28,1,2,6,7,9,10,11,12,13,4,8]),import.meta.url),"/src/routes/blog/what-is-a-bittorrent-tracker.md":()=>I(()=>import("./what-is-a-bittorrent-tracker.BHR8evJJ.js"),__vite__mapDeps([29,1,2,6,7,9,10,11,12,13,4,8]),import.meta.url)}));return await Promise.all(e.map(async([t,r])=>{const{metadata:i}=await r(),o=t.slice(11,-3);return{meta:i,path:o}}))};async function Fe({params:a}){const e=await Ne(Object.assign({"../benchmarking-the-torrust-bittorrent-tracker.md":()=>I(()=>import("./benchmarking-the-torrust-bittorrent-tracker.BXSdGjTF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../containerizing-rust-applications-best-practices.md":()=>I(()=>import("./containerizing-rust-applications-best-practices.CfleZTYE.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../contributor-path.md":()=>I(()=>import("./contributor-path.hcqLpBBN.js"),__vite__mapDeps([15,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"../deploying-torrust-to-production.md":()=>I(()=>import("./deploying-torrust-to-production.D-FoRu0g.js"),__vite__mapDeps([16,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../hash2torrent-retrieve-torrent-files-effortlessly.md":()=>I(()=>import("./hash2torrent-retrieve-torrent-files-effortlessly.Cj6iaybK.js"),__vite__mapDeps([17,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"../how-to-contribute-to-this-site.md":()=>I(()=>import("./how-to-contribute-to-this-site.C-GF5Bff.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../how-to-run-a-local-demo.md":()=>I(()=>import("./how-to-run-a-local-demo.agjxXyvO.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../how-to-setup-the-development-environment.md":()=>I(()=>import("./how-to-setup-the-development-environment.BGykg7r_.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../introducing-the-new-sample-torrent-migration-tool.md":()=>I(()=>import("./introducing-the-new-sample-torrent-migration-tool.ByM3_2xq.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../live-demo-beta-v3.md":()=>I(()=>import("./live-demo-beta-v3.ChCSPxLM.js"),__vite__mapDeps([22,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"../profiling-the-torrust-bittorrent-udp-tracker.md":()=>I(()=>import("./profiling-the-torrust-bittorrent-udp-tracker.clKuqLt8.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../released-v3-0-0-beta.md":()=>I(()=>import("./released-v3-0-0-beta.DFFTD1pZ.js"),__vite__mapDeps([24,1,2,3,4,6,7,9,10,11,12,13,8]),import.meta.url),"../released-v3-0-0.md":()=>I(()=>import("./released-v3-0-0.DSoNv3j4.js"),__vite__mapDeps([25,1,2,6,7,9,10,11,12,13,4,8]),import.meta.url),"../review-and-setup-guide-for-unit3d.md":()=>I(()=>import("./review-and-setup-guide-for-unit3d.B-XBvULc.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../the-enigmatic-torrent-source-field.md":()=>I(()=>import("./the-enigmatic-torrent-source-field.CQP1JgNm.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),"../torrust-enhancing-the-bittorrent-ecosystem.md":()=>I(()=>import("./torrust-enhancing-the-bittorrent-ecosystem.D5HlXhkT.js"),__vite__mapDeps([28,1,2,6,7,9,10,11,12,13,4,8]),import.meta.url),"../what-is-a-bittorrent-tracker.md":()=>I(()=>import("./what-is-a-bittorrent-tracker.BHR8evJJ.js"),__vite__mapDeps([29,1,2,6,7,9,10,11,12,13,4,8]),import.meta.url)}),`../${a.slug}.md`,2),l=await He(),{title:t,date:r,updated:i,contributor:o,contributorSlug:s,slug:n,coverImage:u,excerpt:m,tags:c}=e.metadata;return{content:e.default,title:t,date:r,updated:i,contributor:o,contributorSlug:s,slug:n,coverImage:u,excerpt:m,tags:c,all_posts:l}}const wt=Object.freeze(Object.defineProperty({__proto__:null,load:Fe},Symbol.toStringTag,{value:"Module"}));function Ge(a){let e,l="You are reading our first post.";return{c(){e=$("h3"),e.textContent=l,this.h()},l(t){e=V(t,"H3",{class:!0,"data-svelte-h":!0}),ie(e)!=="svelte-a4fy9t"&&(e.textContent=l),this.h()},h(){d(e,"class","inactive svelte-1c34zot")},m(t,r){S(t,e,r)},p:U,i:U,o:U,d(t){t&&_(e)}}}function Ye(a){var u,m;let e,l,t,r,i=((m=(u=a[0])==null?void 0:u.meta)==null?void 0:m.title)+"",o,s,n;return l=new ze({props:{icon:"ic:baseline-arrow-back",width:"24",height:"24",style:"color: rgba(245, 245, 245, 0.92)"}}),{c(){e=$("div"),G(l.$$.fragment),t=B(),r=$("a"),o=H(i),this.h()},l(c){e=V(c,"DIV",{class:!0});var f=A(e);K(l.$$.fragment,f),t=y(f),r=V(f,"A",{href:!0,class:!0});var k=A(r);o=F(k,i),k.forEach(_),f.forEach(_),this.h()},h(){d(r,"href",s="/blog/"+a[0].meta.slug),d(r,"class","svelte-1c34zot"),d(e,"class","arrow arrowPrevious svelte-1c34zot")},m(c,f){S(c,e,f),Y(l,e,null),w(e,t),w(e,r),w(r,o),n=!0},p(c,f){var k,h;(!n||f&1)&&i!==(i=((h=(k=c[0])==null?void 0:k.meta)==null?void 0:h.title)+"")&&W(o,i),(!n||f&1&&s!==(s="/blog/"+c[0].meta.slug))&&d(r,"href",s)},i(c){n||(P(l.$$.fragment,c),n=!0)},o(c){T(l.$$.fragment,c),n=!1},d(c){c&&_(e),X(l)}}}function Xe(a){let e,l="You're up to date. More to come soon!";return{c(){e=$("h3"),e.textContent=l,this.h()},l(t){e=V(t,"H3",{class:!0,"data-svelte-h":!0}),ie(e)!=="svelte-l6j0h7"&&(e.textContent=l),this.h()},h(){d(e,"class","inactive svelte-1c34zot")},m(t,r){S(t,e,r)},p:U,i:U,o:U,d(t){t&&_(e)}}}function Je(a){var u,m;let e,l,t=((m=(u=a[1])==null?void 0:u.meta)==null?void 0:m.title)+"",r,i,o,s,n;return s=new ze({props:{icon:"ic:outline-arrow-forward",width:"24",height:"24",style:"color: rgba(245, 245, 245, 0.92)"}}),{c(){e=$("div"),l=$("a"),r=H(t),o=B(),G(s.$$.fragment),this.h()},l(c){e=V(c,"DIV",{class:!0});var f=A(e);l=V(f,"A",{href:!0,class:!0});var k=A(l);r=F(k,t),k.forEach(_),o=y(f),K(s.$$.fragment,f),f.forEach(_),this.h()},h(){d(l,"href",i="/blog/"+a[1].meta.slug),d(l,"class","svelte-1c34zot"),d(e,"class","arrow arrowNext svelte-1c34zot")},m(c,f){S(c,e,f),w(e,l),w(l,r),w(e,o),Y(s,e,null),n=!0},p(c,f){var k,h;(!n||f&2)&&t!==(t=((h=(k=c[1])==null?void 0:k.meta)==null?void 0:h.title)+"")&&W(r,t),(!n||f&2&&i!==(i="/blog/"+c[1].meta.slug))&&d(l,"href",i)},i(c){n||(P(s.$$.fragment,c),n=!0)},o(c){T(s.$$.fragment,c),n=!1},d(c){c&&_(e),X(s)}}}function Ke(a){let e,l,t,r,i,o,s,n,u;const m=[Ye,Ge],c=[];function f(v,p){return v[0]?0:1}t=f(a),r=c[t]=m[t](a);const k=[Je,Xe],h=[];function D(v,p){return v[1]?0:1}return s=D(a),n=h[s]=k[s](a),{c(){e=$("div"),l=$("div"),r.c(),i=B(),o=$("div"),n.c(),this.h()},l(v){e=V(v,"DIV",{class:!0});var p=A(e);l=V(p,"DIV",{class:!0});var b=A(l);r.l(b),b.forEach(_),i=y(p),o=V(p,"DIV",{class:!0});var g=A(o);n.l(g),g.forEach(_),p.forEach(_),this.h()},h(){d(l,"class","previousPost svelte-1c34zot"),d(o,"class","nextPost svelte-1c34zot"),d(e,"class","container svelte-1c34zot")},m(v,p){S(v,e,p),w(e,l),c[t].m(l,null),w(e,i),w(e,o),h[s].m(o,null),u=!0},p(v,[p]){let b=t;t=f(v),t===b?c[t].p(v,p):(q(),T(c[b],1,1,()=>{c[b]=null}),N(),r=c[t],r?r.p(v,p):(r=c[t]=m[t](v),r.c()),P(r,1),r.m(l,null));let g=s;s=D(v),s===g?h[s].p(v,p):(q(),T(h[g],1,1,()=>{h[g]=null}),N(),n=h[s],n?n.p(v,p):(n=h[s]=k[s](v),n.c()),P(n,1),n.m(o,null))},i(v){u||(P(r),P(n),u=!0)},o(v){T(r),T(n),u=!1},d(v){v&&_(e),c[t].d(),h[s].d()}}}function Qe(a,e,l){let{data:t}=e,{currentPage:r}=e,i=null,o=null;return a.$$set=s=>{"data"in s&&l(2,t=s.data),"currentPage"in s&&l(3,r=s.currentPage)},a.$$.update=()=>{if(a.$$.dirty&12&&r&&t.all_posts.length){t.all_posts.sort((n,u)=>new Date(u.date).getTime()-new Date(n.date).getTime());const s=t.all_posts.findIndex(n=>r===n.meta.slug);s!==-1&&(l(0,i=s>0?t.all_posts[s-1]:null),l(1,o=s<t.all_posts.length-1?t.all_posts[s+1]:null))}},[i,o,t,r]}class We extends te{constructor(e){super(),re(this,e,Qe,Ke,x,{data:2,currentPage:3})}}function Ze(a){let e,l,t="Copy article link",r,i;return{c(){e=$("div"),l=$("button"),l.textContent=t,this.h()},l(o){e=V(o,"DIV",{});var s=A(e);l=V(s,"BUTTON",{class:!0,"data-svelte-h":!0}),ie(l)!=="svelte-1c5as48"&&(l.textContent=t),s.forEach(_),this.h()},h(){d(l,"class","svelte-j61dfc")},m(o,s){S(o,e,s),w(e,l),r||(i=Le(l,"click",a[0]),r=!0)},p:U,i:U,o:U,d(o){o&&_(e),r=!1,i()}}}function xe(a,e,l){let t;Se(a,Ue,o=>l(2,t=o));let r="";Be(()=>{r=t.url.origin+t.url.pathname});function i(){navigator.clipboard.writeText(r).catch(o=>{console.error("Error copying to clipboard:",o)})}return[i]}class et extends te{constructor(e){super(),re(this,e,xe,Ze,x,{})}}function Ee(a,e,l){const t=a.slice();return t[10]=e[l].text,t[11]=e[l].href,t}function we(a){let e,l,t,r;l=new et({});let i=Z(a[2]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Ie(Ee(a,i,s));return{c(){e=$("div"),G(l.$$.fragment),t=B();for(let s=0;s<o.length;s+=1)o[s].c();this.h()},l(s){e=V(s,"DIV",{class:!0});var n=A(e);K(l.$$.fragment,n),t=y(n);for(let u=0;u<o.length;u+=1)o[u].l(n);n.forEach(_),this.h()},h(){d(e,"class","dropdown-menu svelte-1n3rza0")},m(s,n){S(s,e,n),Y(l,e,null),w(e,t);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(e,null);r=!0},p(s,n){if(n&6){i=Z(s[2]);let u;for(u=0;u<i.length;u+=1){const m=Ee(s,i,u);o[u]?o[u].p(m,n):(o[u]=Ie(m),o[u].c(),o[u].m(e,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=i.length}},i(s){r||(P(l.$$.fragment,s),r=!0)},o(s){T(l.$$.fragment,s),r=!1},d(s){s&&_(e),X(l),ue(o,s)}}}function Ie(a){let e,l=a[10]+"",t,r;return{c(){e=$("a"),t=H(l),r=B(),this.h()},l(i){e=V(i,"A",{href:!0,target:!0,rel:!0,class:!0});var o=A(e);t=F(o,l),r=y(o),o.forEach(_),this.h()},h(){d(e,"href",a[1](a[11])),d(e,"target","_blank"),d(e,"rel","noopener noreferrer"),d(e,"class","svelte-1n3rza0")},m(i,o){S(i,e,o),w(e,t),w(e,r)},p:U,d(i){i&&_(e)}}}function tt(a){let e,l,t,r,i,o,s,n,u,m,c,f=[{xmlns:"http://www.w3.org/2000/svg"},{class:i="hover-icon "+(a[0]?"active":"")},{width:"16"},{height:"16"},{viewBox:"0 0 24 24"},a[4]],k={};for(let D=0;D<f.length;D+=1)k=ne(k,f[D]);let h=a[0]&&we(a);return{c(){e=$("div"),l=$("button"),t=me("svg"),r=me("path"),o=H(`
		Share`),n=B(),h&&h.c(),this.h()},l(D){e=V(D,"DIV",{class:!0});var v=A(e);l=V(v,"BUTTON",{class:!0});var p=A(l);t=de(p,"svg",{xmlns:!0,class:!0,width:!0,height:!0,viewBox:!0});var b=A(t);r=de(b,"path",{d:!0,class:!0}),A(r).forEach(_),b.forEach(_),o=F(p,`
		Share`),p.forEach(_),n=y(v),h&&h.l(v),v.forEach(_),this.h()},h(){d(r,"d","M11 16V7.85l-2.6 2.6L7 9l5-5l5 5l-1.4 1.45l-2.6-2.6V16zm-5 4q-.825 0-1.412-.587T4 18v-3h2v3h12v-3h2v3q0 .825-.587 1.413T18 20z"),d(r,"class","svelte-1n3rza0"),he(t,k),se(t,"svelte-1n3rza0",!0),d(l,"class",s="dropdown-button "+(a[0]?"active":"")+" svelte-1n3rza0"),d(e,"class","dropdown-container svelte-1n3rza0")},m(D,v){S(D,e,v),w(e,l),w(l,t),w(t,r),w(l,o),w(e,n),h&&h.m(e,null),u=!0,m||(c=Le(l,"click",a[3]),m=!0)},p(D,[v]){he(t,k=je(f,[{xmlns:"http://www.w3.org/2000/svg"},(!u||v&1&&i!==(i="hover-icon "+(D[0]?"active":"")))&&{class:i},{width:"16"},{height:"16"},{viewBox:"0 0 24 24"},v&16&&D[4]])),se(t,"svelte-1n3rza0",!0),(!u||v&1&&s!==(s="dropdown-button "+(D[0]?"active":"")+" svelte-1n3rza0"))&&d(l,"class",s),D[0]?h?(h.p(D,v),v&1&&P(h,1)):(h=we(D),h.c(),P(h,1),h.m(e,null)):h&&(q(),T(h,1,1,()=>{h=null}),N())},i(D){u||(P(h),u=!0)},o(D){T(h),u=!1},d(D){D&&_(e),h&&h.d(),m=!1,c()}}}function rt(a,e,l){let{slug:t}=e,{title:r}=e,i=!1;const o=encodeURIComponent("I wanted you to see this blog post"),s=encodeURIComponent(`${r} is a really interesting blog post from Torrust. Check it out here: ${oe}/${t}`),n=encodeURIComponent(t),u=f=>f,m=[{text:"Share via email",href:`mailto:?subject=${o}&body=${s}`},{text:"Share on Facebook",href:`https://www.facebook.com/sharer.php?u=${oe}/${n}`},{text:"Share on LinkedIn",href:`http://www.linkedin.com/shareArticle?mini=true&url=${oe}/${n}`},{text:"Share on X",href:`https://twitter.com/share?url=${oe}/${n}&text=${r}`}];function c(){l(0,i=!i)}return a.$$set=f=>{l(4,e=ne(ne({},e),ve(f))),"slug"in f&&l(5,t=f.slug),"title"in f&&l(6,r=f.title)},e=ve(e),[i,u,m,c,e,t,r]}class lt extends te{constructor(e){super(),re(this,e,rt,tt,x,{slug:5,title:6})}}function ot(a){let e,l,t;return{c(){e=$("img"),this.h()},l(r){e=V(r,"IMG",{srcset:!0,src:!0,alt:!0,loading:!0,decoding:!0,class:!0}),this.h()},h(){ye(e,l=a[3]())||d(e,"srcset",l),ge(e.src,t=a[0])||d(e,"src",t),d(e,"alt",a[1]),d(e,"loading","lazy"),d(e,"decoding","async"),d(e,"class","svelte-1ykl0dj"),se(e,"full-bleed",a[2])},m(r,i){S(r,e,i)},p(r,[i]){i&1&&!ge(e.src,t=r[0])&&d(e,"src",t),i&2&&d(e,"alt",r[1]),i&4&&se(e,"full-bleed",r[2])},i:U,o:U,d(r){r&&_(e)}}}function st(a,e,l){let t,{src:r}=e,{alt:i}=e,{fullBleed:o=void 0}=e,{formats:s=["avif","webp","png"]}=e,{widths:n=void 0}=e;function u(){let m="";const c=r.split(".").pop()||"";if(n)for(let f=0;f<n.length;f++)m+=`${t}-${n[f]}.${c} ${n[f]}w`,f<n.length-1&&(m+=", ");else for(let f=0;f<s.length;f++)m+=`${t}.${c}`,f<s.length-1&&(m+=", ");return m}return a.$$set=m=>{"src"in m&&l(0,r=m.src),"alt"in m&&l(1,i=m.alt),"fullBleed"in m&&l(2,o=m.fullBleed),"formats"in m&&l(4,s=m.formats),"widths"in m&&l(5,n=m.widths)},a.$$.update=()=>{a.$$.dirty&1&&(t=r.split(".")[0])},[r,i,o,u,s,n]}class it extends te{constructor(e){super(),re(this,e,st,ot,x,{src:0,alt:1,fullBleed:2,formats:4,widths:5})}}function Pe(a,e,l){const t=a.slice();return t[1]=e[l],t}function ke(a,e,l){const t=a.slice();return t[4]=e[l],t}function De(a){let e,l,t=Z(a[0].tags),r=[];for(let o=0;o<t.length;o+=1)r[o]=$e(ke(a,t,o));const i=o=>T(r[o],1,1,()=>{r[o]=null});return{c(){e=$("div");for(let o=0;o<r.length;o+=1)r[o].c();this.h()},l(o){e=V(o,"DIV",{class:!0});var s=A(e);for(let n=0;n<r.length;n+=1)r[n].l(s);s.forEach(_),this.h()},h(){d(e,"class","tags svelte-fo1b48")},m(o,s){S(o,e,s);for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(e,null);l=!0},p(o,s){if(s&1){t=Z(o[0].tags);let n;for(n=0;n<t.length;n+=1){const u=ke(o,t,n);r[n]?(r[n].p(u,s),P(r[n],1)):(r[n]=$e(u),r[n].c(),P(r[n],1),r[n].m(e,null))}for(q(),n=t.length;n<r.length;n+=1)i(n);N()}},i(o){if(!l){for(let s=0;s<t.length;s+=1)P(r[s]);l=!0}},o(o){r=r.filter(Boolean);for(let s=0;s<r.length;s+=1)T(r[s]);l=!1},d(o){o&&_(e),ue(r,o)}}}function at(a){let e=a[4]+"",l,t;return{c(){l=H(e),t=B()},l(r){l=F(r,e),t=y(r)},m(r,i){S(r,l,i),S(r,t,i)},p(r,i){i&1&&e!==(e=r[4]+"")&&W(l,e)},d(r){r&&(_(l),_(t))}}}function $e(a){let e,l;return e=new Me({props:{tag:a[4],$$slots:{default:[at]},$$scope:{ctx:a}}}),{c(){G(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,r){Y(e,t,r),l=!0},p(t,r){const i={};r&1&&(i.tag=t[4]),r&129&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){l||(P(e.$$.fragment,t),l=!0)},o(t){T(e.$$.fragment,t),l=!1},d(t){X(e,t)}}}function Ve(a){let e,l=a[0].title+"",t,r,i,o=a[0].excerpt+"",s,n,u,m,c,f=be(a[0].date)+"",k,h,D,v,p=a[0].contributor&&Te(a);return D=new lt({props:{slug:a[0].slug,title:a[0].title}}),{c(){e=$("h1"),t=H(l),r=B(),i=$("p"),s=H(o),n=B(),u=$("div"),m=$("div"),p&&p.c(),c=B(),k=H(f),h=B(),G(D.$$.fragment),this.h()},l(b){e=V(b,"H1",{class:!0});var g=A(e);t=F(g,l),g.forEach(_),r=y(b),i=V(b,"P",{class:!0});var O=A(i);s=F(O,o),O.forEach(_),n=y(b),u=V(b,"DIV",{class:!0});var R=A(u);m=V(R,"DIV",{});var M=A(m);p&&p.l(M),c=y(M),k=F(M,f),M.forEach(_),h=y(R),K(D.$$.fragment,R),R.forEach(_),this.h()},h(){d(e,"class","svelte-fo1b48"),d(i,"class","svelte-fo1b48"),d(u,"class","note svelte-fo1b48")},m(b,g){S(b,e,g),w(e,t),S(b,r,g),S(b,i,g),w(i,s),S(b,n,g),S(b,u,g),w(u,m),p&&p.m(m,null),w(m,c),w(m,k),w(u,h),Y(D,u,null),v=!0},p(b,g){(!v||g&1)&&l!==(l=b[0].title+"")&&W(t,l),(!v||g&1)&&o!==(o=b[0].excerpt+"")&&W(s,o),b[0].contributor?p?p.p(b,g):(p=Te(b),p.c(),p.m(m,c)):p&&(p.d(1),p=null),(!v||g&1)&&f!==(f=be(b[0].date)+"")&&W(k,f);const O={};g&1&&(O.slug=b[0].slug),g&1&&(O.title=b[0].title),D.$set(O)},i(b){v||(P(D.$$.fragment,b),v=!0)},o(b){T(D.$$.fragment,b),v=!1},d(b){b&&(_(e),_(r),_(i),_(n),_(u)),p&&p.d(),X(D)}}}function Te(a){let e,l=a[0].contributor+"",t,r,i;return{c(){e=$("a"),t=H(l),i=H(`
								-`),this.h()},l(o){e=V(o,"A",{class:!0,href:!0});var s=A(e);t=F(s,l),s.forEach(_),i=F(o,`
								-`),this.h()},h(){d(e,"class","author svelte-fo1b48"),d(e,"href",r="/contributor/"+a[0].contributorSlug)},m(o,s){S(o,e,s),w(e,t),S(o,i,s)},p(o,s){s&1&&l!==(l=o[0].contributor+"")&&W(t,l),s&1&&r!==(r="/contributor/"+o[0].contributorSlug)&&d(e,"href",r)},d(o){o&&(_(e),_(i))}}}function Ae(a){let e,l=a[0].coverImage,t,r=Oe(a);return{c(){e=$("div"),r.c(),this.h()},l(i){e=V(i,"DIV",{class:!0});var o=A(e);r.l(o),o.forEach(_),this.h()},h(){d(e,"class","cover-image svelte-fo1b48")},m(i,o){S(i,e,o),r.m(e,null),t=!0},p(i,o){o&1&&x(l,l=i[0].coverImage)?(q(),T(r,1,1,U),N(),r=Oe(i),r.c(),P(r,1),r.m(e,null)):r.p(i,o)},i(i){t||(P(r),t=!0)},o(i){T(r),t=!1},d(i){i&&_(e),r.d(i)}}}function Oe(a){let e,l;return e=new it({props:{src:a[0].coverImage+"?v="+a[0].slug,alt:a[0].title}}),{c(){G(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,r){Y(e,t,r),l=!0},p(t,r){const i={};r&1&&(i.src=t[0].coverImage+"?v="+t[0].slug),r&1&&(i.alt=t[0].title),e.$set(i)},i(t){l||(P(e.$$.fragment,t),l=!0)},o(t){T(e.$$.fragment,t),l=!1},d(t){X(e,t)}}}function Re(a){let e,l;return e=new qe({props:{post_data:a[1].meta}}),{c(){G(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,r){Y(e,t,r),l=!0},p(t,r){const i={};r&1&&(i.post_data=t[1].meta),e.$set(i)},i(t){l||(P(e.$$.fragment,t),l=!0)},o(t){T(e.$$.fragment,t),l=!1},d(t){X(e,t)}}}function nt(a){var fe;let e,l,t,r,i,o,s,n,u,m,c,f,k,h,D="Related Posts:",v,p,b,g=((fe=a[0].tags)==null?void 0:fe.length)&&De(a),O=a[0]&&Ve(a),R=a[0]&&a[0].coverImage&&Ae(a);var M=a[0].content;function ce(E,L){return{}}M&&(u=pe(M,ce())),c=new We({props:{currentPage:a[0].slug,data:a[0]}});let Q=Z(a[0].posts.slice(0,3)),z=[];for(let E=0;E<Q.length;E+=1)z[E]=Re(Pe(a,Q,E));const Ce=E=>T(z[E],1,1,()=>{z[E]=null});return{c(){e=$("div"),l=$("main"),t=$("article"),r=$("div"),g&&g.c(),i=B(),O&&O.c(),o=B(),R&&R.c(),s=B(),n=$("div"),u&&G(u.$$.fragment),m=B(),G(c.$$.fragment),f=B(),k=$("div"),h=$("h2"),h.textContent=D,v=B(),p=$("div");for(let E=0;E<z.length;E+=1)z[E].c();this.h()},l(E){e=V(E,"DIV",{class:!0});var L=A(e);l=V(L,"MAIN",{});var j=A(l);t=V(j,"ARTICLE",{id:!0,class:!0});var J=A(t);r=V(J,"DIV",{class:!0});var C=A(r);g&&g.l(C),i=y(C),O&&O.l(C),C.forEach(_),o=y(J),R&&R.l(J),s=y(J),n=V(J,"DIV",{class:!0});var ee=A(n);u&&K(u.$$.fragment,ee),ee.forEach(_),J.forEach(_),m=y(j),K(c.$$.fragment,j),f=y(j),k=V(j,"DIV",{class:!0});var le=A(k);h=V(le,"H2",{class:!0,"data-svelte-h":!0}),ie(h)!=="svelte-1a3eu2k"&&(h.textContent=D),v=y(le),p=V(le,"DIV",{class:!0});var _e=A(p);for(let ae=0;ae<z.length;ae+=1)z[ae].l(_e);_e.forEach(_),le.forEach(_),j.forEach(_),L.forEach(_),this.h()},h(){d(r,"class","header svelte-fo1b48"),d(n,"class","content svelte-fo1b48"),d(t,"id","article-content"),d(t,"class","svelte-fo1b48"),d(h,"class","svelte-fo1b48"),d(p,"class","grid svelte-fo1b48"),d(k,"class","related-posts-container svelte-fo1b48"),d(e,"class","container svelte-fo1b48")},m(E,L){S(E,e,L),w(e,l),w(l,t),w(t,r),g&&g.m(r,null),w(r,i),O&&O.m(r,null),w(t,o),R&&R.m(t,null),w(t,s),w(t,n),u&&Y(u,n,null),w(l,m),Y(c,l,null),w(l,f),w(l,k),w(k,h),w(k,v),w(k,p);for(let j=0;j<z.length;j+=1)z[j]&&z[j].m(p,null);b=!0},p(E,[L]){var J;if((J=E[0].tags)!=null&&J.length?g?(g.p(E,L),L&1&&P(g,1)):(g=De(E),g.c(),P(g,1),g.m(r,i)):g&&(q(),T(g,1,1,()=>{g=null}),N()),E[0]?O?(O.p(E,L),L&1&&P(O,1)):(O=Ve(E),O.c(),P(O,1),O.m(r,null)):O&&(q(),T(O,1,1,()=>{O=null}),N()),E[0]&&E[0].coverImage?R?(R.p(E,L),L&1&&P(R,1)):(R=Ae(E),R.c(),P(R,1),R.m(t,s)):R&&(q(),T(R,1,1,()=>{R=null}),N()),L&1&&M!==(M=E[0].content)){if(u){q();const C=u;T(C.$$.fragment,1,0,()=>{X(C,1)}),N()}M?(u=pe(M,ce()),G(u.$$.fragment),P(u.$$.fragment,1),Y(u,n,null)):u=null}const j={};if(L&1&&(j.currentPage=E[0].slug),L&1&&(j.data=E[0]),c.$set(j),L&1){Q=Z(E[0].posts.slice(0,3));let C;for(C=0;C<Q.length;C+=1){const ee=Pe(E,Q,C);z[C]?(z[C].p(ee,L),P(z[C],1)):(z[C]=Re(ee),z[C].c(),P(z[C],1),z[C].m(p,null))}for(q(),C=Q.length;C<z.length;C+=1)Ce(C);N()}},i(E){if(!b){P(g),P(O),P(R),u&&P(u.$$.fragment,E),P(c.$$.fragment,E);for(let L=0;L<Q.length;L+=1)P(z[L]);b=!0}},o(E){T(g),T(O),T(R),u&&T(u.$$.fragment,E),T(c.$$.fragment,E),z=z.filter(Boolean);for(let L=0;L<z.length;L+=1)T(z[L]);b=!1},d(E){E&&_(e),g&&g.d(),O&&O.d(),R&&R.d(),u&&X(u),X(c),ue(z,E)}}}function ut(a,e,l){let{data:t}=e;return a.$$set=r=>{"data"in r&&l(0,t=r.data)},[t]}class It extends te{constructor(e){super(),re(this,e,ut,nt,x,{data:0})}}export{it as I,It as P,wt as _};
