import{s as X,n as z,a as me,D as bt,o as ge,f as gt,g as vt,u as kt,h as yt,i as wt}from"./scheduler.BIdwluew.js";import{S as te,i as le,n as R,g as _,d as c,e as g,c as v,l as s,s as I,a as T,f as $,h as k,t as G,C as ne,b as K,j as x,o as F,w as S,A as Q,u as O,v as Y,p as re,q as se,r as oe,y as ae,z as Ee,m as ue,H as ve,k as ke,E as Ae,G as Et,F as pt}from"./index.CEm2-frR.js";import{s as P,j as pe,e as ee,p as At,t as It,d as fe,m as _t,c as _e,h as be,k as ce}from"./icon.KJUUNON3.js";const $t=!1,Ie=$t,Nt=[{src:""+new URL("../assets/favicon.DIn0sT1g.avif",import.meta.url).href,w:736}];function Mt(o){let e,n,t;return{c(){e=g("img"),this.h()},l(l){e=v(l,"IMG",{src:!0,alt:!0,class:!0,loading:!0,decoding:!0}),this.h()},h(){me(e.src,n=o[1])||s(e,"src",n),s(e,"alt",o[2]),s(e,"class",t=o[0]??"rounded-lg my-2"),s(e,"loading",o[3]),s(e,"decoding",o[4])},m(l,i){_(l,e,i)},p(l,i){i&2&&!me(e.src,n=l[1])&&s(e,"src",n),i&4&&s(e,"alt",l[2]),i&1&&t!==(t=l[0]??"rounded-lg my-2")&&s(e,"class",t),i&8&&s(e,"loading",l[3]),i&16&&s(e,"decoding",l[4])},d(l){l&&c(e)}}}function Tt(o){let e,n,t,l,i,r,a;return{c(){e=g("picture"),n=g("source"),l=I(),i=g("img"),this.h()},l(f){e=v(f,"PICTURE",{});var u=T(e);n=v(u,"SOURCE",{srcset:!0,type:!0}),l=$(u),i=v(u,"IMG",{src:!0,alt:!0,class:!0,loading:!0,decoding:!0}),u.forEach(c),this.h()},h(){bt(n,t=o[5].map(Ct).join(", "))||s(n,"srcset",t),s(n,"type","image/avif"),me(i.src,r=o[1])||s(i,"src",r),s(i,"alt",o[2]),s(i,"class",a=o[0]??"rounded-lg my-2"),s(i,"loading",o[3]),s(i,"decoding",o[4])},m(f,u){_(f,e,u),k(e,n),k(e,l),k(e,i)},p(f,u){u&2&&!me(i.src,r=f[1])&&s(i,"src",r),u&4&&s(i,"alt",f[2]),u&1&&a!==(a=f[0]??"rounded-lg my-2")&&s(i,"class",a),u&8&&s(i,"loading",f[3]),u&16&&s(i,"decoding",f[4])},d(f){f&&c(e)}}}function Dt(o){let e;function n(i,r){return i[5]?Tt:Mt}let l=n(o)(o);return{c(){l.c(),e=R()},l(i){l.l(i),e=R()},m(i,r){l.m(i,r),_(i,e,r)},p(i,[r]){l.p(i,r)},i:z,o:z,d(i){i&&c(e),l.d(i)}}}const Ct=({src:o,w:e})=>`${o} ${e}w`;function Pt(o,e,n){const t=Object.assign({"/src/static/favicon.png":Nt});let{class:l=void 0}=e,{src:i}=e,{alt:r=i}=e,{loading:a="lazy"}=e,{decoding:f="async"}=e,u=t[`/src/static${i}`];return o.$$set=h=>{"class"in h&&n(0,l=h.class),"src"in h&&n(1,i=h.src),"alt"in h&&n(2,r=h.alt),"loading"in h&&n(3,a=h.loading),"decoding"in h&&n(4,f=h.decoding)},[l,i,r,a,f,u]}class ye extends te{constructor(e){super(),le(this,e,Pt,Dt,X,{class:0,src:1,alt:2,loading:3,decoding:4})}}function St(o){let e,n,t="Reply to: ",l,i,r,a,f,u;return{c(){e=g("div"),n=g("span"),n.textContent=t,l=I(),i=g("a"),r=g("span"),a=I(),f=G(o[1]),this.h()},l(h){e=v(h,"DIV",{class:!0});var m=T(e);n=v(m,"SPAN",{class:!0,"data-svelte-h":!0}),ne(n)!=="svelte-11ov9r0"&&(n.textContent=t),l=$(m),i=v(m,"A",{href:!0,rel:!0,target:!0,class:!0});var d=T(i);r=v(d,"SPAN",{class:!0}),T(r).forEach(c),a=$(d),f=K(d,o[1]),d.forEach(c),m.forEach(c),this.h()},h(){s(n,"class","flex-none font-bold uppercase opacity-30"),s(r,"class","i-heroicons-outline-reply my-auto !w-4 !h-4"),s(i,"href",o[1]),s(i,"rel","noopener noreferrer external"),s(i,"target","_blank"),s(i,"class","ml-auto flex-none flex rounded-badge bg-base-200 hover:bg-base-300 transition-all gap-2 px-4 u-in-reply-to"),s(e,"class",u="flex flex-wrap gap-2 rounded-box outline outline-neutral/10 p-4 "+o[0])},m(h,m){_(h,e,m),k(e,n),k(e,l),k(e,i),k(i,r),k(i,a),k(i,f)},p(h,[m]){m&2&&x(f,h[1]),m&2&&s(i,"href",h[1]),m&1&&u!==(u="flex flex-wrap gap-2 rounded-box outline outline-neutral/10 p-4 "+h[0])&&s(e,"class",u)},i:z,o:z,d(h){h&&c(e)}}}function Vt(o,e,n){let{class:t=""}=e,{in_reply_to:l}=e;return o.$$set=i=>{"class"in i&&n(0,t=i.class),"in_reply_to"in i&&n(1,l=i.in_reply_to)},[t,l]}class Lt extends te{constructor(e){super(),le(this,e,Vt,St,X,{class:0,in_reply_to:1})}}function Rt(o){let e,n,t=P.author.name+"",l,i,r,a="/",f,u,h,m,d,p,y,w;return{c(){e=g("div"),n=g("a"),l=G(t),i=I(),r=g("span"),r.textContent=a,f=I(),u=g("a"),h=g("time"),m=G(o[2]),d=I(),p=g("time"),y=G(o[3]),this.h()},l(E){e=v(E,"DIV",{class:!0});var D=T(e);n=v(D,"A",{rel:!0,class:!0,href:!0});var q=T(n);l=K(q,t),q.forEach(c),i=$(D),r=v(D,"SPAN",{class:!0,"data-svelte-h":!0}),ne(r)!=="svelte-1edzios"&&(r.textContent=a),f=$(D),u=v(D,"A",{href:!0,class:!0});var C=T(u);h=v(C,"TIME",{class:!0,datetime:!0,itemprop:!0});var L=T(h);m=K(L,o[2]),L.forEach(c),d=$(C),p=v(C,"TIME",{class:!0,datetime:!0,itemprop:!0});var N=T(p);y=K(N,o[3]),N.forEach(c),C.forEach(c),D.forEach(c),this.h()},h(){s(n,"rel","author"),s(n,"class","opacity-75 hover:opacity-100 hover:text-primary duration-500 ease-in-out p-author h-card"),s(n,"href",P.protocol+P.domain),F(n,"hidden",o[1]),s(r,"class","opacity-50"),F(r,"hidden",o[1]),s(h,"class","group-hover/time:opacity-0 font-semibold opacity-75 duration-500 ease-in-out mr-auto dt-published"),s(h,"datetime",o[4]),s(h,"itemprop","datePublished"),s(p,"class","opacity-0 group-hover/time:opacity-100 font-semibold text-primary duration-500 ease-in-out mr-auto dt-updated"),s(p,"datetime",o[5]),s(p,"itemprop","dateModified"),s(u,"href",w=o[0].path),s(u,"class","u-url u-uid swap group/time"),s(e,"class","flex font-semibold gap-1.5"),F(e,"md:mb-4",!o[1]&&o[0].type!=="article")},m(E,D){_(E,e,D),k(e,n),k(n,l),k(e,i),k(e,r),k(e,f),k(e,u),k(u,h),k(h,m),k(u,d),k(u,p),k(p,y)},p(E,[D]){D&2&&F(n,"hidden",E[1]),D&2&&F(r,"hidden",E[1]),D&1&&w!==(w=E[0].path)&&s(u,"href",w),D&3&&F(e,"md:mb-4",!E[1]&&E[0].type!=="article")},i:z,o:z,d(E){E&&c(e)}}}function jt(o,e,n){let{post:t}=e,{preview:l=!1}=e;const i=new Date(t.published??t.created).toLocaleString(pe.locales,pe.options),r=new Date(t.updated??t.published??t.created).toLocaleString(pe.locales,pe.options),a=new Date(t.published??t.created).toJSON(),f=new Date(t.updated??t.published??t.created).toJSON();return o.$$set=u=>{"post"in u&&n(0,t=u.post),"preview"in u&&n(1,l=u.preview)},[t,l,i,r,a,f]}class Ut extends te{constructor(e){super(),le(this,e,jt,Rt,X,{post:0,preview:1})}}function $e(o){let e,n,t,l,i,r,a=(o[0].title??o[0].summary??o[0].path.slice(1))+"",f,u,h,m,d,p=o[0].image&&Ne(o),y=o[1]&&!o[1].image&&!o[0].image&&Me();return{c(){e=g("div"),p&&p.c(),n=I(),t=g("div"),l=g("span"),i=I(),r=g("a"),f=G(a),h=I(),y&&y.c(),m=R(),this.h()},l(w){e=v(w,"DIV",{class:!0});var E=T(e);p&&p.l(E),n=$(E),t=v(E,"DIV",{class:!0});var D=T(t);l=v(D,"SPAN",{class:!0}),T(l).forEach(c),i=$(D),r=v(D,"A",{rel:!0,href:!0,class:!0});var q=T(r);f=K(q,a),q.forEach(c),D.forEach(c),E.forEach(c),h=$(w),y&&y.l(w),m=R(),this.h()},h(){s(l,"class","i-heroicons-outline-chevron-left opacity-50 group-hover:opacity-100 mr-auto"),s(r,"rel","prev"),s(r,"href",u=o[0].path),s(r,"class","card-title block text-left mb-0 mr-auto bg-[length:100%_0%] bg-[position:0_88%] underline decoration-3 decoration-transparent group-hover:decoration-primary hover:bg-[length:100%_100%] hover:text-primary-content bg-gradient-to-t from-primary to-primary bg-no-repeat transition-all ease-in-out duration-300"),s(t,"class","card-body"),s(e,"class","flex-1 card group rounded-none before:!rounded-none overflow-hidden"),F(e,"image-full",o[0].image),F(e,"md:rounded-r-box",o[1]&&!o[1].image)},m(w,E){_(w,e,E),p&&p.m(e,null),k(e,n),k(e,t),k(t,l),k(t,i),k(t,r),k(r,f),_(w,h,E),y&&y.m(w,E),_(w,m,E),d=!0},p(w,E){w[0].image?p?(p.p(w,E),E&1&&S(p,1)):(p=Ne(w),p.c(),S(p,1),p.m(e,n)):p&&(Q(),O(p,1,1,()=>{p=null}),Y()),(!d||E&1)&&a!==(a=(w[0].title??w[0].summary??w[0].path.slice(1))+"")&&x(f,a),(!d||E&1&&u!==(u=w[0].path))&&s(r,"href",u),(!d||E&1)&&F(e,"image-full",w[0].image),(!d||E&2)&&F(e,"md:rounded-r-box",w[1]&&!w[1].image),w[1]&&!w[1].image&&!w[0].image?y||(y=Me(),y.c(),y.m(m.parentNode,m)):y&&(y.d(1),y=null)},i(w){d||(S(p),d=!0)},o(w){O(p),d=!1},d(w){w&&(c(e),c(h),c(m)),p&&p.d(),y&&y.d(w)}}}function Ne(o){let e,n,t;return n=new ye({props:{class:"object-center h-full w-full absolute group-hover:scale-105 transition-transform duration-500 ease-in-out",src:o[0].image,alt:o[0].alt??o[0].image}}),{c(){e=g("figure"),re(n.$$.fragment),this.h()},l(l){e=v(l,"FIGURE",{class:!0});var i=T(e);se(n.$$.fragment,i),i.forEach(c),this.h()},h(){s(e,"class","!block")},m(l,i){_(l,e,i),oe(n,e,null),t=!0},p(l,i){const r={};i&1&&(r.src=l[0].image),i&1&&(r.alt=l[0].alt??l[0].image),n.$set(r)},i(l){t||(S(n.$$.fragment,l),t=!0)},o(l){O(n.$$.fragment,l),t=!1},d(l){l&&c(e),ae(n)}}}function Me(o){let e;return{c(){e=g("div"),this.h()},l(n){e=v(n,"DIV",{class:!0}),T(e).forEach(c),this.h()},h(){s(e,"class","flex-0 divider mx-4 md:divider-horizontal md:mx-0 md:my-4")},m(n,t){_(n,e,t)},d(n){n&&c(e)}}}function Te(o){let e,n,t,l,i=(o[1].title??o[1].summary??o[1].path.slice(1))+"",r,a,f,u,h,m=o[1].image&&De(o);return{c(){e=g("div"),m&&m.c(),n=I(),t=g("div"),l=g("a"),r=G(i),f=I(),u=g("span"),this.h()},l(d){e=v(d,"DIV",{class:!0});var p=T(e);m&&m.l(p),n=$(p),t=v(p,"DIV",{class:!0});var y=T(t);l=v(y,"A",{rel:!0,href:!0,class:!0});var w=T(l);r=K(w,i),w.forEach(c),f=$(y),u=v(y,"SPAN",{class:!0}),T(u).forEach(c),y.forEach(c),p.forEach(c),this.h()},h(){s(l,"rel","next"),s(l,"href",a=o[1].path),s(l,"class","card-title block text-right mb-0 ml-auto bg-[length:100%_0%] bg-[position:0_88%] underline decoration-3 decoration-transparent group-hover:decoration-primary hover:bg-[length:100%_100%] hover:text-primary-content bg-gradient-to-t from-primary to-primary bg-no-repeat transition-all ease-in-out duration-300"),s(u,"class","i-heroicons-outline-chevron-right opacity-50 group-hover:opacity-100 ml-auto"),s(t,"class","card-body"),s(e,"class","flex-1 card group rounded-none before:!rounded-none overflow-hidden"),F(e,"image-full",o[1].image),F(e,"md:rounded-l-box",o[0]&&!o[0].image)},m(d,p){_(d,e,p),m&&m.m(e,null),k(e,n),k(e,t),k(t,l),k(l,r),k(t,f),k(t,u),h=!0},p(d,p){d[1].image?m?(m.p(d,p),p&2&&S(m,1)):(m=De(d),m.c(),S(m,1),m.m(e,n)):m&&(Q(),O(m,1,1,()=>{m=null}),Y()),(!h||p&2)&&i!==(i=(d[1].title??d[1].summary??d[1].path.slice(1))+"")&&x(r,i),(!h||p&2&&a!==(a=d[1].path))&&s(l,"href",a),(!h||p&2)&&F(e,"image-full",d[1].image),(!h||p&1)&&F(e,"md:rounded-l-box",d[0]&&!d[0].image)},i(d){h||(S(m),h=!0)},o(d){O(m),h=!1},d(d){d&&c(e),m&&m.d()}}}function De(o){let e,n,t;return n=new ye({props:{class:"object-center h-full w-full absolute group-hover:scale-105 transition-transform duration-500 ease-in-out",src:o[1].image,alt:o[1].alt??o[1].image}}),{c(){e=g("figure"),re(n.$$.fragment),this.h()},l(l){e=v(l,"FIGURE",{class:!0});var i=T(e);se(n.$$.fragment,i),i.forEach(c),this.h()},h(){s(e,"class","!block")},m(l,i){_(l,e,i),oe(n,e,null),t=!0},p(l,i){const r={};i&2&&(r.src=l[1].image),i&2&&(r.alt=l[1].alt??l[1].image),n.$set(r)},i(l){t||(S(n.$$.fragment,l),t=!0)},o(l){O(n.$$.fragment,l),t=!1},d(l){l&&c(e),ae(n)}}}function Bt(o){let e,n,t,l=o[0]&&$e(o),i=o[1]&&Te(o);return{c(){e=g("nav"),l&&l.c(),n=I(),i&&i.c(),this.h()},l(r){e=v(r,"NAV",{class:!0});var a=T(e);l&&l.l(a),n=$(a),i&&i.l(a),a.forEach(c),this.h()},h(){s(e,"class","flex flex-col md:flex-row flex-warp justify-evenly")},m(r,a){_(r,e,a),l&&l.m(e,null),k(e,n),i&&i.m(e,null),t=!0},p(r,[a]){r[0]?l?(l.p(r,a),a&1&&S(l,1)):(l=$e(r),l.c(),S(l,1),l.m(e,n)):l&&(Q(),O(l,1,1,()=>{l=null}),Y()),r[1]?i?(i.p(r,a),a&2&&S(i,1)):(i=Te(r),i.c(),S(i,1),i.m(e,null)):i&&(Q(),O(i,1,1,()=>{i=null}),Y())},i(r){t||(S(l),S(i),t=!0)},o(r){O(l),O(i),t=!1},d(r){r&&c(e),l&&l.d(),i&&i.d()}}}function Ot(o,e,n){let{prev:t=void 0}=e,{next:l=void 0}=e;return o.$$set=i=>{"prev"in i&&n(0,t=i.prev),"next"in i&&n(1,l=i.next)},[t,l]}class Ht extends te{constructor(e){super(),le(this,e,Ot,Bt,X,{prev:0,next:1})}}function zt(o){let e,n='<button id="giscus-loading" class="btn btn-lg flex mx-auto my-4 btn-ghost btn-circle loading"></button> <div id="giscus" class="giscus"></div>';return{c(){e=g("div"),e.innerHTML=n,this.h()},l(t){e=v(t,"DIV",{id:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1or5etm"&&(e.innerHTML=n),this.h()},h(){s(e,"id","giscus-container")},m(t,l){_(t,e,l)},p:z,i:z,o:z,d(t){t&&c(e)}}}function qt(o,e,n){let{config:t}=e;return ge(()=>{const l=document.createElement("script");Object.entries({src:t.src??"https://giscus.app/client.js","data-repo":t.repo,"data-repo-id":t.repoID,"data-category":t.category??"","data-category-id":t.categoryID,"data-mapping":"pathname","data-reactions-enabled":t.reactionsEnabled===!1?"0":"1","data-input-position":t.inputPosition??"bottom","data-theme":t.theme??"preferred_color_scheme","data-lang":t.lang??P.lang??"en","data-loading":t.loading??"",crossorigin:"anonymous",async:""}).forEach(([i,r])=>l.setAttribute(i,r)),setTimeout(()=>{const i=new MutationObserver(()=>{document.getElementById("giscus-loading").remove(),i.disconnect()});i.observe(document.getElementById("giscus"),{childList:!0}),document.getElementById("giscus-container").appendChild(l)},1e3)}),o.$$set=l=>{"config"in l&&n(0,t=l.config)},[t]}class Ft extends te{constructor(e){super(),le(this,e,qt,zt,X,{config:0})}}function Gt(o){let e;return{c(){e=g("div"),this.h()},l(n){e=v(n,"DIV",{id:!0}),T(e).forEach(c),this.h()},h(){s(e,"id","remark42")},m(n,t){_(n,e,t)},p:z,i:z,o:z,d(n){n&&c(e)}}}function Kt(o,e,n){let{post:t}=e,{config:l}=e,i;return ge(()=>{const[r,a]=[document.createElement("script"),document.createElement("script")];r.id="remark42_config",r.type="application/javascript",r.innerHTML=`
      var remark_config = {
        host: '${l.host}',
        site_id: '${l.site_id||"remark"}',
        url: '${t.path}',
        components: [${l.components||"'embed'"}],
        max_shown_comments: ${l.max_shown_comments||15},
        max_last_comments: ${l.max_last_comments||15},
        theme: '${l.theme||"light"}',
        page_title: '${l.page_title||t.title}',
        locale: '${l.locale||"en"}',
        show_email_subscription: ${l.show_email_subscription||!0},
        show_rss_subscription: ${l.show_rss_subscription||!0},
        simple_view: ${l.simple_view||!1},
        no_footer: ${l.no_footer||!1},
      }`,a.id="remark42_script",a.type="application/javascript",a.innerHTML=`!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src='${l.host}/web/'+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);`,document.head.appendChild(r),document.head.appendChild(a);const f={...l,url:t.path},u=()=>{window.REMARK42?i=window.REMARK42.createInstance({node:document.getElementById("remark42"),...f}):setTimeout(u,100)};u()}),gt(()=>{i&&typeof i.destroy=="function"&&i.destroy()}),o.$$set=r=>{"post"in r&&n(0,t=r.post),"config"in r&&n(1,l=r.config)},[t,l]}class Jt extends te{constructor(e){super(),le(this,e,Kt,Gt,X,{post:0,config:1})}}function Wt(o){let e,n='<button id="utterances-loading" class="btn btn-lg flex mx-auto my-4 btn-ghost btn-circle loading"></button> <div id="utterances" class="utterances"></div>';return{c(){e=g("div"),e.innerHTML=n,this.h()},l(t){e=v(t,"DIV",{id:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1jbbe0i"&&(e.innerHTML=n),this.h()},h(){s(e,"id","utterances-container")},m(t,l){_(t,e,l)},p:z,i:z,o:z,d(t){t&&c(e)}}}function Xt(o,e,n){let{config:t}=e;return ge(()=>{const l=document.createElement("script");Object.entries({src:t.src??"https://utteranc.es/client.js",repo:t.repo,"issue-term":"pathname",label:t.label??"",theme:t.theme??"preferred-color-scheme",crossorigin:"anonymous",async:""}).forEach(([i,r])=>l.setAttribute(i,r)),setTimeout(()=>{const i=new MutationObserver(()=>{document.getElementById("utterances-loading").remove(),i.disconnect()});i.observe(document.getElementById("utterances"),{childList:!0}),document.getElementById("utterances-container").appendChild(l)},1e3)}),o.$$set=l=>{"config"in l&&n(0,t=l.config)},[t]}class Zt extends te{constructor(e){super(),le(this,e,Xt,Wt,X,{config:0})}}function Ce(o,e,n){const t=o.slice();t[11]=e[n];const l={"in-reply-to":["💬 replied","border-primary/50","text-primary","tooltip-primary"],"like-of":["❤️ liked","border-secondary/50","text-secondary","tooltip-secondary"],"repost-of":["🔄 reposted","border-accent/50","text-accent","tooltip-accent"],"bookmark-of":["⭐️ bookmarked","border-neutral/50","text-neutral","tooltip-neutral"],"mention-of":["💬 mentioned","border-base-300/50","text-base-content","tooltip-base-content"],rsvp:[`📅 RSVPed ${t[11].rsvp&&{yes:"✅",no:"❌",interested:"💡",maybe:"💭"}[t[11].rsvp]}`,"border-warning/50","text-warning","tooltip-warning"]}[t[11]["wm-property"]];return t[12]=l[0],t[13]=l[1],t[14]=l[2],t[15]=l[3],t}function Qt(o){let e;return{c(){e=g("span"),this.h()},l(n){e=v(n,"SPAN",{class:!0}),T(e).forEach(c),this.h()},h(){s(e,"class","i-heroicons-outline-sort-descending")},m(n,t){_(n,e,t)},d(n){n&&c(e)}}}function Yt(o){let e;return{c(){e=g("span"),this.h()},l(n){e=v(n,"SPAN",{class:!0}),T(e).forEach(c),this.h()},h(){s(e,"class","i-heroicons-outline-sort-ascending")},m(n,t){_(n,e,t)},d(n){n&&c(e)}}}function Pe(o){var J,ie;let e,n,t,l,i,r,a,f=o[12]+"",u,h,m,d,p,y=(o[11].published?o[11].published.slice(0,10):o[11]["wm-received"].slice(0,10))+"",w,E,D,q,C,L,N=((ie=(J=o[11])==null?void 0:J.author)==null?void 0:ie.photo)&&Se(o);function V(j,H){var A,U;return(U=(A=j[11])==null?void 0:A.author)!=null&&U.url?el:xt}let B=V(o),b=B(o),M=o[11].content&&Ve(o);return{c(){e=g("div"),n=g("div"),N&&N.c(),t=I(),l=g("div"),i=g("p"),b.c(),r=I(),a=g("a"),u=G(f),d=G(`
                this post on
                `),p=g("span"),w=G(y),q=I(),M&&M.c(),C=I(),this.h()},l(j){e=v(j,"DIV",{class:!0});var H=T(e);n=v(H,"DIV",{class:!0});var A=T(n);N&&N.l(A),t=$(A),l=v(A,"DIV",{class:!0});var U=T(l);i=v(U,"P",{});var W=T(i);b.l(W),r=$(W),a=v(W,"A",{class:!0,href:!0});var Z=T(a);u=K(Z,f),Z.forEach(c),d=K(W,`
                this post on
                `),p=v(W,"SPAN",{class:!0,"data-tip":!0});var de=T(p);w=K(de,y),de.forEach(c),W.forEach(c),U.forEach(c),A.forEach(c),q=$(H),M&&M.l(H),C=$(H),H.forEach(c),this.h()},h(){s(a,"class",h=o[14]+" hover:underline"),s(a,"href",m=o[11]["wm-source"]),s(p,"class",E="tooltip tooltip-bottom xl:tooltip-right "+o[15]),s(p,"data-tip",D=new Date(o[11].published??o[11]["wm-received"]).toLocaleString()),s(l,"class","flex-1 px-4 py-2 m-auto"),s(n,"class","flex bg-base-200 rounded-btn"),s(e,"class",L=o[13]+" border-2 rounded-box p-4")},m(j,H){_(j,e,H),k(e,n),N&&N.m(n,null),k(n,t),k(n,l),k(l,i),b.m(i,null),k(i,r),k(i,a),k(a,u),k(i,d),k(i,p),k(p,w),k(e,q),M&&M.m(e,null),k(e,C)},p(j,H){var A,U;(U=(A=j[11])==null?void 0:A.author)!=null&&U.photo?N?N.p(j,H):(N=Se(j),N.c(),N.m(n,t)):N&&(N.d(1),N=null),B===(B=V(j))&&b?b.p(j,H):(b.d(1),b=B(j),b&&(b.c(),b.m(i,r))),H&16&&f!==(f=j[12]+"")&&x(u,f),H&16&&h!==(h=j[14]+" hover:underline")&&s(a,"class",h),H&16&&m!==(m=j[11]["wm-source"])&&s(a,"href",m),H&16&&y!==(y=(j[11].published?j[11].published.slice(0,10):j[11]["wm-received"].slice(0,10))+"")&&x(w,y),H&16&&E!==(E="tooltip tooltip-bottom xl:tooltip-right "+j[15])&&s(p,"class",E),H&16&&D!==(D=new Date(j[11].published??j[11]["wm-received"]).toLocaleString())&&s(p,"data-tip",D),j[11].content?M?M.p(j,H):(M=Ve(j),M.c(),M.m(e,C)):M&&(M.d(1),M=null),H&16&&L!==(L=j[13]+" border-2 rounded-box p-4")&&s(e,"class",L)},d(j){j&&c(e),N&&N.d(),b.d(),M&&M.d()}}}function Se(o){let e,n,t;return{c(){e=g("img"),this.h()},l(l){e=v(l,"IMG",{class:!0,src:!0,alt:!0,loading:!0,decoding:!0}),this.h()},h(){var l;s(e,"class","w-12 h-12 flex-none rounded-btn"),me(e.src,n=o[11].author.photo)||s(e,"src",n),s(e,"alt",t=((l=o[11].author)==null?void 0:l.name)??new URL(o[11].url).host),s(e,"loading","lazy"),s(e,"decoding","async")},m(l,i){_(l,e,i)},p(l,i){var r;i&16&&!me(e.src,n=l[11].author.photo)&&s(e,"src",n),i&16&&t!==(t=((r=l[11].author)==null?void 0:r.name)??new URL(l[11].url).host)&&s(e,"alt",t)},d(l){l&&c(e)}}}function xt(o){var t,l;let e=(((l=(t=o[11])==null?void 0:t.author)==null?void 0:l.name)??new URL(o[11].url).host)+"",n;return{c(){n=G(e)},l(i){n=K(i,e)},m(i,r){_(i,n,r)},p(i,r){var a,f;r&16&&e!==(e=(((f=(a=i[11])==null?void 0:a.author)==null?void 0:f.name)??new URL(i[11].url).host)+"")&&x(n,e)},d(i){i&&c(n)}}}function el(o){var r;let e,n=(((r=o[11].author)==null?void 0:r.name)??new URL(o[11].url).host)+"",t,l,i;return{c(){e=g("a"),t=G(n),this.h()},l(a){e=v(a,"A",{class:!0,href:!0});var f=T(e);t=K(f,n),f.forEach(c),this.h()},h(){s(e,"class",l="font-semibold "+o[14]+" hover:underline"),s(e,"href",i=o[11].author.url)},m(a,f){_(a,e,f),k(e,t)},p(a,f){var u;f&16&&n!==(n=(((u=a[11].author)==null?void 0:u.name)??new URL(a[11].url).host)+"")&&x(t,n),f&16&&l!==(l="font-semibold "+a[14]+" hover:underline")&&s(e,"class",l),f&16&&i!==(i=a[11].author.url)&&s(e,"href",i)},d(a){a&&c(e)}}}function Ve(o){var i,r;let e,n,t,l=(((i=o[11].content)==null?void 0:i.html)??((r=o[11].content)==null?void 0:r.text))+"";return{c(){e=g("div"),n=g("p"),t=new ve(!1),this.h()},l(a){e=v(a,"DIV",{class:!0});var f=T(e);n=v(f,"P",{});var u=T(n);t=ke(u,!1),u.forEach(c),f.forEach(c),this.h()},h(){t.a=null,s(e,"class","prose max-w-none break-words mt-4")},m(a,f){_(a,e,f),k(e,n),t.m(l,n)},p(a,f){var u,h;f&16&&l!==(l=(((u=a[11].content)==null?void 0:u.html)??((h=a[11].content)==null?void 0:h.text))+"")&&t.p(l)},d(a){a&&c(e)}}}function Le(o){let e,n=o[11].url!==null&&Pe(o);return{c(){n&&n.c(),e=R()},l(t){n&&n.l(t),e=R()},m(t,l){n&&n.m(t,l),_(t,e,l)},p(t,l){t[11].url!==null?n?n.p(t,l):(n=Pe(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&c(e),n&&n.d(t)}}}function Re(o){let e,n=ee(o[4]),t=[];for(let l=0;l<n.length;l+=1)t[l]=Le(Ce(o,n,l));return{c(){for(let l=0;l<t.length;l+=1)t[l].c();e=R()},l(l){for(let i=0;i<t.length;i+=1)t[i].l(l);e=R()},m(l,i){for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(l,i);_(l,e,i)},p(l,i){if(i&16){n=ee(l[4]);let r;for(r=0;r<n.length;r+=1){const a=Ce(l,n,r);t[r]?t[r].p(a,i):(t[r]=Le(a),t[r].c(),t[r].m(e.parentNode,e))}for(;r<t.length;r+=1)t[r].d(1);t.length=n.length}},d(l){l&&c(e),ue(t,l)}}}function tl(o){let e;return{c(){e=g("button"),this.h()},l(n){e=v(n,"BUTTON",{id:!0,class:!0}),T(e).forEach(c),this.h()},h(){s(e,"id","webmention-loading"),s(e,"class","btn btn-lg btn-block flex btn-ghost loading")},m(n,t){_(n,e,t)},p:z,d(n){n&&c(e)}}}function ll(o){let e;function n(i,r){var a;if(i[3]!==!0)return nl;if(((a=i[0])==null?void 0:a.form)!==!0)return il}let t=n(o),l=t&&t(o);return{c(){l&&l.c(),e=R()},l(i){l&&l.l(i),e=R()},m(i,r){l&&l.m(i,r),_(i,e,r)},p(i,r){t===(t=n(i))&&l?l.p(i,r):(l&&l.d(1),l=t&&t(i),l&&(l.c(),l.m(e.parentNode,e)))},d(i){i&&c(e),l&&l.d(i)}}}function il(o){let e,n="END";return{c(){e=g("div"),e.textContent=n,this.h()},l(t){e=v(t,"DIV",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-118134i"&&(e.textContent=n),this.h()},h(){s(e,"class","divider mt-0 -mb-2")},m(t,l){_(t,e,l)},p:z,d(t){t&&c(e)}}}function nl(o){let e,n="LOAD",t,l;return{c(){e=g("button"),e.textContent=n,this.h()},l(i){e=v(i,"BUTTON",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-xfqj5c"&&(e.textContent=n),this.h()},h(){s(e,"class","btn btn-primary btn-block")},m(i,r){_(i,e,r),t||(l=Ee(e,"click",o[9]),t=!0)},p:z,d(i){i&&c(e),t=!1,l()}}}function je(o){var y;let e,n,t,l,i,r,a="send webmentions here:",f,u,h,m='<div class="flex-1"><input class="input input-bordered focus:input-primary w-full" type="text" id="reply-url" name="source" placeholder="https://example.com/my-post"/></div> <button class="btn btn-primary flex-none mt-auto" type="submit" id="webmention-submit">Send</button>',d,p=((y=o[0])==null?void 0:y.commentParade)===!0&&Ue(o);return{c(){e=g("form"),n=g("input"),l=I(),i=g("div"),r=g("span"),r.textContent=a,f=I(),p&&p.c(),u=I(),h=g("div"),h.innerHTML=m,this.h()},l(w){e=v(w,"FORM",{id:!0,method:!0,action:!0});var E=T(e);n=v(E,"INPUT",{type:!0,name:!0}),l=$(E),i=v(E,"DIV",{class:!0});var D=T(i);r=v(D,"SPAN",{class:!0,"data-svelte-h":!0}),ne(r)!=="svelte-dlqoru"&&(r.textContent=a),f=$(D),p&&p.l(D),D.forEach(c),u=$(E),h=v(E,"DIV",{class:!0,"data-svelte-h":!0}),ne(h)!=="svelte-xyld3l"&&(h.innerHTML=m),E.forEach(c),this.h()},h(){s(n,"type","hidden"),s(n,"name","target"),n.value=t=P.protocol+P.domain+o[1].path,s(r,"class","label-text"),s(i,"class","label gap-4"),s(h,"class","flex gap-2"),s(e,"id","webmention-form"),s(e,"method","post"),s(e,"action",d="https://webmention.io/"+o[0].username+"/webmention")},m(w,E){_(w,e,E),k(e,n),k(e,l),k(e,i),k(i,r),k(i,f),p&&p.m(i,null),k(e,u),k(e,h)},p(w,E){var D;E&2&&t!==(t=P.protocol+P.domain+w[1].path)&&(n.value=t),((D=w[0])==null?void 0:D.commentParade)===!0?p?p.p(w,E):(p=Ue(w),p.c(),p.m(i,null)):p&&(p.d(1),p=null),E&1&&d!==(d="https://webmention.io/"+w[0].username+"/webmention")&&s(e,"action",d)},d(w){w&&c(e),p&&p.d()}}}function Ue(o){let e,n,t,l,i;return{c(){e=g("span"),n=G("or "),t=g("a"),l=G("comment anonymously"),this.h()},l(r){e=v(r,"SPAN",{class:!0});var a=T(e);n=K(a,"or "),t=v(a,"A",{class:!0,href:!0});var f=T(t);l=K(f,"comment anonymously"),f.forEach(c),a.forEach(c),this.h()},h(){s(t,"class","hover:!text-primary"),s(t,"href",i="https://quill.p3k.io/?dontask=1&me=https://commentpara.de/&reply="+encodeURI(P.protocol+P.domain+o[1].path)),s(e,"class","label-text-alt text-right")},m(r,a){_(r,e,a),k(e,n),k(e,t),k(t,l)},p(r,a){a&2&&i!==(i="https://quill.p3k.io/?dontask=1&me=https://commentpara.de/&reply="+encodeURI(P.protocol+P.domain+r[1].path))&&s(t,"href",i)},d(r){r&&c(e)}}}function rl(o){var V,B;let e,n,t,l=`sort-by=${((V=o[0])==null?void 0:V.sortBy)??"created"}&sort-dir=${o[5]?"up":"down"}`,i,r,a,f,u=o[4],h,m,d,p;function y(b,M){return b[5]===!0?Yt:Qt}let w=y(o),E=w(o),D=Re(o);function q(b,M){return b[2]===!0?ll:tl}let C=q(o),L=C(o),N=((B=o[0])==null?void 0:B.form)===!0&&je(o);return{c(){e=g("div"),n=g("div"),t=g("p"),i=G(l),r=I(),a=g("button"),E.c(),f=I(),D.c(),h=I(),L.c(),m=I(),N&&N.c(),this.h()},l(b){e=v(b,"DIV",{class:!0});var M=T(e);n=v(M,"DIV",{class:!0});var J=T(n);t=v(J,"P",{class:!0});var ie=T(t);i=K(ie,l),ie.forEach(c),r=$(J),a=v(J,"BUTTON",{class:!0});var j=T(a);E.l(j),j.forEach(c),J.forEach(c),f=$(M),D.l(M),h=$(M),L.l(M),m=$(M),N&&N.l(M),M.forEach(c),this.h()},h(){s(t,"class","flex-1 m-auto italic opacity-50"),s(a,"class","btn btn-ghost btn-sm float-right"),s(n,"class","flex"),s(e,"class","flex flex-col gap-8")},m(b,M){_(b,e,M),k(e,n),k(n,t),k(t,i),k(n,r),k(n,a),E.m(a,null),k(e,f),D.m(e,null),k(e,h),L.m(e,null),k(e,m),N&&N.m(e,null),d||(p=Ee(a,"click",o[8]),d=!0)},p(b,[M]){var J,ie;M&33&&l!==(l=`sort-by=${((J=b[0])==null?void 0:J.sortBy)??"created"}&sort-dir=${b[5]?"up":"down"}`)&&x(i,l),w!==(w=y(b))&&(E.d(1),E=w(b),E&&(E.c(),E.m(a,null))),M&16&&X(u,u=b[4])?(D.d(1),D=Re(b),D.c(),D.m(e,h)):D.p(b,M),C===(C=q(b))&&L?L.p(b,M):(L.d(1),L=C(b),L&&(L.c(),L.m(e,m))),((ie=b[0])==null?void 0:ie.form)===!0?N?N.p(b,M):(N=je(b),N.c(),N.m(e,null)):N&&(N.d(1),N=null)},i:z,o:z,d(b){b&&c(e),E.d(),D.d(b),L.d(),N&&N.d(),d=!1,p()}}}function ol(o,e,n){let{config:t}=e,{post:l}=e,[i,r,a,f,u]=[0,!1,!1,[],(t==null?void 0:t.sortDir)==="up"];const h=async()=>await fetch(`https://webmention.io/api/mentions.jf2?page=${i}&per-page=${(t==null?void 0:t.perPage)??"20"}&sort-by=${(t==null?void 0:t.sortBy)??"created"}&sort-dir=${u?"up":"down"}${(t==null?void 0:t.property)&&t.property.forEach(y=>`&wm-property=${y}`)}&target[]=${P.protocol+P.domain+l.path}&target[]=${P.protocol+P.domain+l.path}/`).then(y=>y.json()).then(y=>{y.children.length<10&&n(3,a=!0),y={...y,children:y.children.filter(w=>{var E;return!((E=t.blockList)!=null&&E.includes(new URL(w["wm-source"]).origin))})},y.children.length>0&&n(4,f=[...f,...y.children]),i++,n(2,r=!0)}),m=async()=>{i=0,n(2,r=!1),n(3,a=!1),n(4,f=[]),await h()};ge(()=>h());const d=()=>{n(5,u=!u),m()},p=()=>{n(2,r=!1),h()};return o.$$set=y=>{"config"in y&&n(0,t=y.config),"post"in y&&n(1,l=y.post)},[t,l,r,a,f,u,h,m,d,p]}class al extends te{constructor(e){super(),le(this,e,ol,rl,X,{config:0,post:1})}}const he=o=>o.charAt(0).toLowerCase()+o.slice(1).replace(/([A-Z]+)/g,"_$1").toLowerCase();function Be(o,e,n){const t=o.slice();return t[6]=e[n],t}function Oe(o){let e,n,t,l=o[1].use.length>1&&He(o),i=o[2]&&qe(o);return{c(){e=g("div"),l&&l.c(),n=I(),i&&i.c(),this.h()},l(r){e=v(r,"DIV",{id:!0,class:!0});var a=T(e);l&&l.l(a),n=$(a),i&&i.l(a),a.forEach(c),this.h()},h(){s(e,"id","post-comment"),s(e,"class","card card-body")},m(r,a){_(r,e,a),l&&l.m(e,null),k(e,n),i&&i.m(e,null),t=!0},p(r,a){r[1].use.length>1?l?l.p(r,a):(l=He(r),l.c(),l.m(e,n)):l&&(l.d(1),l=null),r[2]?i?(i.p(r,a),a&4&&S(i,1)):(i=qe(r),i.c(),S(i,1),i.m(e,null)):i&&(Q(),O(i,1,1,()=>{i=null}),Y())},i(r){t||(S(i),t=!0)},o(r){O(i),t=!1},d(r){r&&c(e),l&&l.d(),i&&i.d()}}}function He(o){let e,n=ee(o[1].use),t=[];for(let l=0;l<n.length;l+=1)t[l]=ze(Be(o,n,l));return{c(){e=g("div");for(let l=0;l<t.length;l+=1)t[l].c();this.h()},l(l){e=v(l,"DIV",{class:!0});var i=T(e);for(let r=0;r<t.length;r+=1)t[r].l(i);i.forEach(c),this.h()},h(){var l,i,r;s(e,"class","tabs w-full mb-8"),F(e,"tabs-boxed",((l=o[1])==null?void 0:l.style)==="boxed"),F(e,"tab-bordered",((i=o[1])==null?void 0:i.style)==="bordered"),F(e,"tab-lifted",((r=o[1])==null?void 0:r.style)==="lifted")},m(l,i){_(l,e,i);for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(e,null)},p(l,i){var r,a,f;if(i&6){n=ee(l[1].use);let u;for(u=0;u<n.length;u+=1){const h=Be(l,n,u);t[u]?t[u].p(h,i):(t[u]=ze(h),t[u].c(),t[u].m(e,null))}for(;u<t.length;u+=1)t[u].d(1);t.length=n.length}i&2&&F(e,"tabs-boxed",((r=l[1])==null?void 0:r.style)==="boxed"),i&2&&F(e,"tab-bordered",((a=l[1])==null?void 0:a.style)==="bordered"),i&2&&F(e,"tab-lifted",((f=l[1])==null?void 0:f.style)==="lifted")},d(l){l&&c(e),ue(t,l)}}}function ze(o){let e,n=o[6]+"",t,l,i,r;function a(){return o[5](o[6])}return{c(){e=g("span"),t=G(n),l=I(),this.h()},l(f){e=v(f,"SPAN",{class:!0});var u=T(e);t=K(u,n),l=$(u),u.forEach(c),this.h()},h(){s(e,"class","flex-1 tab transition-all"),F(e,"tab-active",o[2]===he(o[6]))},m(f,u){_(f,e,u),k(e,t),k(e,l),i||(r=Ee(e,"click",a),i=!0)},p(f,u){o=f,u&2&&n!==(n=o[6]+"")&&x(t,n),u&6&&F(e,"tab-active",o[2]===he(o[6]))},d(f){f&&c(e),i=!1,r()}}}function qe(o){let e=o[2],n,t,l=Fe(o);return{c(){l.c(),n=R()},l(i){l.l(i),n=R()},m(i,r){l.m(i,r),_(i,n,r),t=!0},p(i,r){r&4&&X(e,e=i[2])?(Q(),O(l,1,1,z),Y(),l=Fe(i),l.c(),S(l,1),l.m(n.parentNode,n)):l.p(i,r)},i(i){t||(S(l),t=!0)},o(i){O(l),t=!1},d(i){i&&c(n),l.d(i)}}}function Fe(o){let e,n,t;var l=o[4][`/src/lib/components/comments/${o[2]}.svelte`];function i(r,a){return{props:{post:r[0],config:r[3]}}}return l&&(e=Ae(l,i(o))),{c(){e&&re(e.$$.fragment),n=R()},l(r){e&&se(e.$$.fragment,r),n=R()},m(r,a){e&&oe(e,r,a),_(r,n,a),t=!0},p(r,a){if(a&4&&l!==(l=r[4][`/src/lib/components/comments/${r[2]}.svelte`])){if(e){Q();const f=e;O(f.$$.fragment,1,0,()=>{ae(f,1)}),Y()}l?(e=Ae(l,i(r)),re(e.$$.fragment),S(e.$$.fragment,1),oe(e,n.parentNode,n)):e=null}else if(l){const f={};a&1&&(f.post=r[0]),a&8&&(f.config=r[3]),e.$set(f)}},i(r){t||(e&&S(e.$$.fragment,r),t=!0)},o(r){e&&O(e.$$.fragment,r),t=!1},d(r){r&&c(n),e&&ae(e,r)}}}function sl(o){var l;let e,n,t=((l=o[1])==null?void 0:l.use.length)>0&&Oe(o);return{c(){t&&t.c(),e=R()},l(i){t&&t.l(i),e=R()},m(i,r){t&&t.m(i,r),_(i,e,r),n=!0},p(i,[r]){var a;((a=i[1])==null?void 0:a.use.length)>0?t?(t.p(i,r),r&2&&S(t,1)):(t=Oe(i),t.c(),S(t,1),t.m(e.parentNode,e)):t&&(Q(),O(t,1,1,()=>{t=null}),Y())},i(i){n||(S(t),n=!0)},o(i){O(t),n=!1},d(i){i&&c(e),t&&t.d(i)}}}function fl(o,e,n){let{post:t}=e,{config:l}=e;const i=Object.assign({"/src/lib/components/comments/giscus.svelte":Ft,"/src/lib/components/comments/remark42.svelte":Jt,"/src/lib/components/comments/utterances.svelte":Zt,"/src/lib/components/comments/webmention.svelte":al});let r,a;r=localStorage.getItem("comment")??he(l.use[0]);const f=u=>{n(2,r=he(u)),localStorage.setItem("comment",he(u))};return o.$$set=u=>{"post"in u&&n(0,t=u.post),"config"in u&&n(1,l=u.config)},o.$$.update=()=>{o.$$.dirty&6&&r&&n(3,a=l[r])},[t,l,r,a,i,f]}class cl extends te{constructor(e){super(),le(this,e,fl,sl,X,{post:0,config:1})}}function Ge(o,e,n){const t=o.slice();return t[9]=e[n],t}function Ke(o,e,n){const t=o.slice();return t[12]=e[n],t}function Je(o){var l;let e,n=ee((l=o[0].flags)!=null&&l.some(rt)?o[0].flags.flatMap(ot):[...fe.bridgy.post??[],...fe.bridgy[o[0].type]??[]]),t=[];for(let i=0;i<n.length;i+=1)t[i]=We(Ke(o,n,i));return{c(){e=g("div");for(let i=0;i<t.length;i+=1)t[i].c();this.h()},l(i){e=v(i,"DIV",{id:!0,class:!0});var r=T(e);for(let a=0;a<t.length;a+=1)t[a].l(r);r.forEach(c),this.h()},h(){s(e,"id","bridgy"),s(e,"class","hidden")},m(i,r){_(i,e,r);for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(e,null)},p(i,r){var a;if(r&1){n=ee((a=i[0].flags)!=null&&a.some(rt)?i[0].flags.flatMap(ot):[...fe.bridgy.post??[],...fe.bridgy[i[0].type]??[]]);let f;for(f=0;f<n.length;f+=1){const u=Ke(i,n,f);t[f]?t[f].p(u,r):(t[f]=We(u),t[f].c(),t[f].m(e,null))}for(;f<t.length;f+=1)t[f].d(1);t.length=n.length}},d(i){i&&c(e),ue(t,i)}}}function ul(o){let e,n=o[12]+"",t,l;return{c(){e=g("a"),t=G(n),this.h()},l(i){e=v(i,"A",{href:!0});var r=T(e);t=K(r,n),r.forEach(c),this.h()},h(){s(e,"href",l="https://brid.gy/publish/"+o[12])},m(i,r){_(i,e,r),k(e,t)},p(i,r){r&1&&n!==(n=i[12]+"")&&x(t,n),r&1&&l!==(l="https://brid.gy/publish/"+i[12])&&s(e,"href",l)},d(i){i&&c(e)}}}function ml(o){let e,n="fed";return{c(){e=g("a"),e.textContent=n,this.h()},l(t){e=v(t,"A",{href:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1dpaoev"&&(e.textContent=n),this.h()},h(){s(e,"href","https://fed.brid.gy/")},m(t,l){_(t,e,l)},p:z,d(t){t&&c(e)}}}function We(o){let e;function n(i,r){return i[12]==="fed"?ml:ul}let t=n(o),l=t(o);return{c(){l.c(),e=R()},l(i){l.l(i),e=R()},m(i,r){l.m(i,r),_(i,e,r)},p(i,r){t===(t=n(i))&&l?l.p(i,r):(l.d(1),l=t(i),l&&(l.c(),l.m(e.parentNode,e)))},d(i){i&&c(e),l.d(i)}}}function Xe(o){let e,n;return e=new Lt({props:{in_reply_to:o[0].in_reply_to,class:"mt-4 mx-4"}}),{c(){re(e.$$.fragment)},l(t){se(e.$$.fragment,t)},m(t,l){oe(e,t,l),n=!0},p(t,l){const i={};l&1&&(i.in_reply_to=t[0].in_reply_to),e.$set(i)},i(t){n||(S(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Ze(o){let e,n,t;return n=new ye({props:{class:o[0].type==="article"?"u-featured object-center h-full w-full absolute group-hover:scale-105 transition-transform duration-500 ease-in-out":"u-photo rounded-xl md:rounded-b-none -mb-6 md:-mb-2",src:o[0].image,alt:o[0].alt??o[0].image,loading:o[2],decoding:o[3]}}),{c(){e=g("figure"),re(n.$$.fragment),this.h()},l(l){e=v(l,"FIGURE",{class:!0});var i=T(e);se(n.$$.fragment,i),i.forEach(c),this.h()},h(){s(e,"class","!block")},m(l,i){_(l,e,i),oe(n,e,null),t=!0},p(l,i){const r={};i&1&&(r.class=l[0].type==="article"?"u-featured object-center h-full w-full absolute group-hover:scale-105 transition-transform duration-500 ease-in-out":"u-photo rounded-xl md:rounded-b-none -mb-6 md:-mb-2"),i&1&&(r.src=l[0].image),i&1&&(r.alt=l[0].alt??l[0].image),i&4&&(r.loading=l[2]),i&8&&(r.decoding=l[3]),n.$set(r)},i(l){t||(S(n.$$.fragment,l),t=!0)},o(l){O(n.$$.fragment,l),t=!1},d(l){l&&c(e),ae(n)}}}function Qe(o){let e,n,t,l;return n=new ye({props:{class:`${o[0].type==="article"?"u-featured":"u-photo"}`,src:o[0].image,alt:o[0].alt??o[0].image,loading:o[2],decoding:o[3]}}),{c(){e=g("figure"),re(n.$$.fragment),this.h()},l(i){e=v(i,"FIGURE",{class:!0});var r=T(e);se(n.$$.fragment,r),r.forEach(c),this.h()},h(){s(e,"class",t=`md:order-last rounded-box shadow-xl mb-4 ${o[0].type==="article"?"flex-col gap-2 -mx-4 -mt-8 md:mt-0":"flex-col -mx-8"}`)},m(i,r){_(i,e,r),oe(n,e,null),l=!0},p(i,r){const a={};r&1&&(a.class=`${i[0].type==="article"?"u-featured":"u-photo"}`),r&1&&(a.src=i[0].image),r&1&&(a.alt=i[0].alt??i[0].image),r&4&&(a.loading=i[2]),r&8&&(a.decoding=i[3]),n.$set(a),(!l||r&1&&t!==(t=`md:order-last rounded-box shadow-xl mb-4 ${i[0].type==="article"?"flex-col gap-2 -mx-4 -mt-8 md:mt-0":"flex-col -mx-8"}`))&&s(e,"class",t)},i(i){l||(S(n.$$.fragment,i),l=!0)},o(i){O(n.$$.fragment,i),l=!1},d(i){i&&c(e),ae(n)}}}function Ye(o){let e;function n(i,r){return i[1]?hl:dl}let t=n(o),l=t(o);return{c(){l.c(),e=R()},l(i){l.l(i),e=R()},m(i,r){l.m(i,r),_(i,e,r)},p(i,r){t===(t=n(i))&&l?l.p(i,r):(l.d(1),l=t(i),l&&(l.c(),l.m(e.parentNode,e)))},d(i){i&&c(e),l.d(i)}}}function dl(o){let e,n=(o[0].title??o[0].path.slice(1))+"",t;return{c(){e=g("h1"),t=G(n),this.h()},l(l){e=v(l,"H1",{itemprop:!0,class:!0});var i=T(e);t=K(i,n),i.forEach(c),this.h()},h(){s(e,"itemprop","name headline"),s(e,"class","card-title text-3xl mb-8 p-name")},m(l,i){_(l,e,i),k(e,t)},p(l,i){i&1&&n!==(n=(l[0].title??l[0].path.slice(1))+"")&&x(t,n)},d(l){l&&c(e)}}}function hl(o){let e,n,t=(o[0].title??o[0].path.slice(1))+"",l,i;return{c(){e=g("h2"),n=g("a"),l=G(t),this.h()},l(r){e=v(r,"H2",{itemprop:!0,class:!0});var a=T(e);n=v(a,"A",{itemprop:!0,class:!0,href:!0});var f=T(n);l=K(f,t),f.forEach(c),a.forEach(c),this.h()},h(){s(n,"itemprop","url"),s(n,"class","u-url p-name"),s(n,"href",i=o[0].path),s(e,"itemprop","name headline"),s(e,"class","card-title text-3xl mr-auto bg-[length:100%_0%] bg-[position:0_88%] underline decoration-4 decoration-transparent group-hover:decoration-primary hover:bg-[length:100%_100%] hover:text-primary-content bg-gradient-to-t from-primary to-primary bg-no-repeat transition-all ease-in-out duration-300")},m(r,a){_(r,e,a),k(e,n),k(n,l)},p(r,a){a&1&&t!==(t=(r[0].title??r[0].path.slice(1))+"")&&x(l,t),a&1&&i!==(i=r[0].path)&&s(n,"href",i)},d(r){r&&c(e)}}}function xe(o){let e,n=o[0].summary+"",t;return{c(){e=g("p"),t=G(n),this.h()},l(l){e=v(l,"P",{itemprop:!0,class:!0});var i=T(e);t=K(i,n),i.forEach(c),this.h()},h(){s(e,"itemprop","description"),s(e,"class","p-summary mb-auto"),F(e,"hidden",!o[1]||o[0].type!=="article")},m(l,i){_(l,e,i),k(e,t)},p(l,i){i&1&&n!==(n=l[0].summary+"")&&x(t,n),i&3&&F(e,"hidden",!l[1]||l[0].type!=="article")},d(l){l&&c(e)}}}function pl(o){let e,n=o[0].html+"",t;return{c(){e=new ve(!1),t=R(),this.h()},l(l){e=ke(l,!1),t=R(),this.h()},h(){e.a=t},m(l,i){e.m(n,l,i),_(l,t,i)},p(l,i){i&1&&n!==(n=l[0].html+"")&&e.p(n)},i:z,o:z,d(l){l&&(c(t),e.d())}}}function _l(o){let e;const n=o[7].default,t=vt(n,o,o[6],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,i){t&&t.m(l,i),e=!0},p(l,i){t&&t.p&&(!e||i&64)&&kt(t,n,l,l[6],e?wt(n,l[6],i,null):yt(l[6]),null)},i(l){e||(S(t,l),e=!0)},o(l){O(t,l),e=!1},d(l){t&&t.d(l)}}}function et(o){let e,n,t,l=ee(o[0].tags),i=[];for(let r=0;r<l.length;r+=1)i[r]=tt(Ge(o,l,r));return{c(){e=g("div"),n=I(),t=g("div");for(let r=0;r<i.length;r+=1)i[r].c();this.h()},l(r){e=v(r,"DIV",{class:!0}),T(e).forEach(c),n=$(r),t=v(r,"DIV",{});var a=T(t);for(let f=0;f<i.length;f+=1)i[f].l(a);a.forEach(c),this.h()},h(){s(e,"class","divider mt-4 mb-0")},m(r,a){_(r,e,a),_(r,n,a),_(r,t,a);for(let f=0;f<i.length;f+=1)i[f]&&i[f].m(t,null)},p(r,a){if(a&1){l=ee(r[0].tags);let f;for(f=0;f<l.length;f+=1){const u=Ge(r,l,f);i[f]?i[f].p(u,a):(i[f]=tt(u),i[f].c(),i[f].m(t,null))}for(;f<i.length;f+=1)i[f].d(1);i.length=l.length}},d(r){r&&(c(e),c(n),c(t)),ue(i,r)}}}function tt(o){let e,n,t=o[9]+"",l,i,r;return{c(){e=g("a"),n=G("#"),l=G(t),i=I(),this.h()},l(a){e=v(a,"A",{href:!0,class:!0});var f=T(e);n=K(f,"#"),l=K(f,t),i=$(f),f.forEach(c),this.h()},h(){s(e,"href",r="/?tags="+o[9]),s(e,"class","btn btn-sm btn-ghost normal-case mt-2 mr-2 p-category")},m(a,f){_(a,e,f),k(e,n),k(e,l),k(e,i)},p(a,f){f&1&&t!==(t=a[9]+"")&&x(l,t),f&1&&r!==(r="/?tags="+a[9])&&s(e,"href",r)},d(a){a&&c(e)}}}function lt(o){var f,u,h;let e=(o[4]||o[5])&&!((f=o[0].flags)!=null&&f.includes("pagination-disabled"))&&!((u=o[0].flags)!=null&&u.includes("unlisted")),n,t=fe.comment&&!((h=o[0].flags)!=null&&h.includes("comment-disabled")),l,i,r=e&&it(o),a=t&&nt(o);return{c(){r&&r.c(),n=I(),a&&a.c(),l=R()},l(m){r&&r.l(m),n=$(m),a&&a.l(m),l=R()},m(m,d){r&&r.m(m,d),_(m,n,d),a&&a.m(m,d),_(m,l,d),i=!0},p(m,d){var p,y,w;d&49&&(e=(m[4]||m[5])&&!((p=m[0].flags)!=null&&p.includes("pagination-disabled"))&&!((y=m[0].flags)!=null&&y.includes("unlisted"))),e?r?(r.p(m,d),d&49&&S(r,1)):(r=it(m),r.c(),S(r,1),r.m(n.parentNode,n)):r&&(Q(),O(r,1,1,()=>{r=null}),Y()),d&1&&(t=fe.comment&&!((w=m[0].flags)!=null&&w.includes("comment-disabled"))),t?a?(a.p(m,d),d&1&&S(a,1)):(a=nt(m),a.c(),S(a,1),a.m(l.parentNode,l)):a&&(Q(),O(a,1,1,()=>{a=null}),Y())},i(m){i||(S(r),S(a),i=!0)},o(m){O(r),O(a),i=!1},d(m){m&&(c(n),c(l)),r&&r.d(m),a&&a.d(m)}}}function it(o){let e,n;return e=new Ht({props:{next:o[5],prev:o[4]}}),{c(){re(e.$$.fragment)},l(t){se(e.$$.fragment,t)},m(t,l){oe(e,t,l),n=!0},p(t,l){const i={};l&32&&(i.next=t[5]),l&16&&(i.prev=t[4]),e.$set(i)},i(t){n||(S(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function nt(o){let e,n;return e=new cl({props:{post:o[0],config:fe.comment}}),{c(){re(e.$$.fragment)},l(t){se(e.$$.fragment,t)},m(t,l){oe(e,t,l),n=!0},p(t,l){const i={};l&1&&(i.post=t[0]),e.$set(i)},i(t){n||(S(e.$$.fragment,t),n=!0)},o(t){O(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function we(o){let e,n,t,l,i,r,a,f,u,h,m,d,p,y,w,E,D,q,C=!o[1]&&fe.bridgy&&Je(o),L=o[0].in_reply_to&&Xe(o),N=o[0].image&&o[1]&&Ze(o),V=o[0].image&&!o[1]&&Qe(o);f=new Ut({props:{post:o[0],preview:o[1]}});let B=o[0].title&&Ye(o),b=o[0].summary&&xe(o);const M=[_l,pl],J=[];function ie(A,U){return A[1]?A[0].html?1:-1:0}~(p=ie(o))&&(y=J[p]=M[p](o));let j=!o[1]&&o[0].tags&&et(o),H=!o[1]&&lt(o);return{c(){e=g(o[0].type==="article"?"article":"div"),C&&C.c(),n=I(),L&&L.c(),t=I(),N&&N.c(),l=I(),i=g("div"),r=g("div"),V&&V.c(),a=I(),re(f.$$.fragment),u=I(),B&&B.c(),h=I(),b&&b.c(),m=I(),d=g("main"),y&&y.c(),w=I(),j&&j.c(),D=I(),H&&H.c(),this.h()},l(A){e=v(A,((o[0].type==="article"?"article":"div")||"null").toUpperCase(),{itemscope:!0,itemtype:!0,itemprop:!0,class:!0});var U=T(e);C&&C.l(U),n=$(U),L&&L.l(U),t=$(U),N&&N.l(U),l=$(U),i=v(U,"DIV",{class:!0});var W=T(i);r=v(W,"DIV",{class:!0});var Z=T(r);V&&V.l(Z),a=$(Z),se(f.$$.fragment,Z),u=$(Z),B&&B.l(Z),h=$(Z),b&&b.l(Z),Z.forEach(c),m=$(W),d=v(W,"MAIN",{itemprop:!0,class:!0});var de=T(d);y&&y.l(de),de.forEach(c),w=$(W),j&&j.l(W),W.forEach(c),D=$(U),H&&H.l(U),U.forEach(c),this.h()},h(){s(r,"class","flex flex-col gap-2"),s(d,"itemprop","articleBody"),s(d,"class","urara-prose prose e-content"),F(d,"mt-4",o[0].type!=="article"),s(i,"class",E=`card-body gap-0 ${o[1]&&o[0].type==="article"&&o[0].image?"md:col-start-1 md:row-start-1 md:text-neutral-content md:z-20":""}`),Et(o[0].type==="article"?"article":"div")(e,{itemscope:"",itemtype:"https://schema.org/BlogPosting",itemprop:"blogPost",class:"h-entry card bg-base-100 rounded-none md:rounded-box md:shadow-xl overflow-hidden z-10"}),F(e,"md:mb-8",!o[1]),F(e,"lg:mb-16",!o[1]),F(e,"group",o[1]),F(e,"image-full",o[1]&&o[0].type==="article"&&o[0].image),F(e,"before:!rounded-none",o[1]&&o[0].image)},m(A,U){_(A,e,U),C&&C.m(e,null),k(e,n),L&&L.m(e,null),k(e,t),N&&N.m(e,null),k(e,l),k(e,i),k(i,r),V&&V.m(r,null),k(r,a),oe(f,r,null),k(r,u),B&&B.m(r,null),k(r,h),b&&b.m(r,null),k(i,m),k(i,d),~p&&J[p].m(d,null),k(i,w),j&&j.m(i,null),k(e,D),H&&H.m(e,null),q=!0},p(A,U){!A[1]&&fe.bridgy?C?C.p(A,U):(C=Je(A),C.c(),C.m(e,n)):C&&(C.d(1),C=null),A[0].in_reply_to?L?(L.p(A,U),U&1&&S(L,1)):(L=Xe(A),L.c(),S(L,1),L.m(e,t)):L&&(Q(),O(L,1,1,()=>{L=null}),Y()),A[0].image&&A[1]?N?(N.p(A,U),U&3&&S(N,1)):(N=Ze(A),N.c(),S(N,1),N.m(e,l)):N&&(Q(),O(N,1,1,()=>{N=null}),Y()),A[0].image&&!A[1]?V?(V.p(A,U),U&3&&S(V,1)):(V=Qe(A),V.c(),S(V,1),V.m(r,a)):V&&(Q(),O(V,1,1,()=>{V=null}),Y());const W={};U&1&&(W.post=A[0]),U&2&&(W.preview=A[1]),f.$set(W),A[0].title?B?B.p(A,U):(B=Ye(A),B.c(),B.m(r,h)):B&&(B.d(1),B=null),A[0].summary?b?b.p(A,U):(b=xe(A),b.c(),b.m(r,null)):b&&(b.d(1),b=null);let Z=p;p=ie(A),p===Z?~p&&J[p].p(A,U):(y&&(Q(),O(J[Z],1,1,()=>{J[Z]=null}),Y()),~p?(y=J[p],y?y.p(A,U):(y=J[p]=M[p](A),y.c()),S(y,1),y.m(d,null)):y=null),(!q||U&1)&&F(d,"mt-4",A[0].type!=="article"),!A[1]&&A[0].tags?j?j.p(A,U):(j=et(A),j.c(),j.m(i,null)):j&&(j.d(1),j=null),(!q||U&3&&E!==(E=`card-body gap-0 ${A[1]&&A[0].type==="article"&&A[0].image?"md:col-start-1 md:row-start-1 md:text-neutral-content md:z-20":""}`))&&s(i,"class",E),A[1]?H&&(Q(),O(H,1,1,()=>{H=null}),Y()):H?(H.p(A,U),U&2&&S(H,1)):(H=lt(A),H.c(),S(H,1),H.m(e,null)),(!q||U&2)&&F(e,"md:mb-8",!A[1]),(!q||U&2)&&F(e,"lg:mb-16",!A[1]),(!q||U&2)&&F(e,"group",A[1]),(!q||U&3)&&F(e,"image-full",A[1]&&A[0].type==="article"&&A[0].image),(!q||U&3)&&F(e,"before:!rounded-none",A[1]&&A[0].image)},i(A){q||(S(L),S(N),S(V),S(f.$$.fragment,A),S(y),S(H),q=!0)},o(A){O(L),O(N),O(V),O(f.$$.fragment,A),O(y),O(H),q=!1},d(A){A&&c(e),C&&C.d(),L&&L.d(),N&&N.d(),V&&V.d(),ae(f),B&&B.d(),b&&b.d(),~p&&J[p].d(),j&&j.d(),H&&H.d()}}}function bl(o){let e=o[0].type==="article"?"article":"div",n,t,l=(o[0].type==="article"?"article":"div")&&we(o);return{c(){l&&l.c(),n=R()},l(i){l&&l.l(i),n=R()},m(i,r){l&&l.m(i,r),_(i,n,r),t=!0},p(i,[r]){i[0].type,e?X(e,i[0].type==="article"?"article":"div")?(l.d(1),l=we(i),e=i[0].type==="article"?"article":"div",l.c(),l.m(n.parentNode,n)):l.p(i,r):(l=we(i),e=i[0].type==="article"?"article":"div",l.c(),l.m(n.parentNode,n))},i(i){t||(S(l,i),t=!0)},o(i){O(l,i),t=!1},d(i){i&&c(n),l&&l.d(i)}}}const rt=o=>o.startsWith("bridgy"),ot=o=>o.startsWith("bridgy")?o.slice(7):[];function gl(o,e,n){let{$$slots:t={},$$scope:l}=e,{post:i}=e,{preview:r=!1}=e,{loading:a="lazy"}=e,{decoding:f="async"}=e,u,h,m;return r||At.subscribe(d=>{u=d.findIndex(p=>p.path===i.path),n(4,h=d.slice(0,u).reverse().find(p=>{var y;return!((y=p.flags)!=null&&y.includes("unlisted"))})),n(5,m=d.slice(u+1).find(p=>{var y;return!((y=p.flags)!=null&&y.includes("unlisted"))})),It.set(i.title??i.path.slice(1))}),o.$$set=d=>{"post"in d&&n(0,i=d.post),"preview"in d&&n(1,r=d.preview),"loading"in d&&n(2,a=d.loading),"decoding"in d&&n(3,f=d.decoding),"$$scope"in d&&n(6,l=d.$$scope)},[i,r,a,f,h,m,l,t]}class Jl extends te{constructor(e){super(),le(this,e,gl,bl,X,{post:0,preview:1,loading:2,decoding:3})}}function at(o,e,n){const t=o.slice();return t[2]=e[n],t}function vl(o){let e,n,t,l,i,r,a;function f(m,d){return m[1]?wl:yl}let u=f(o),h=u(o);return{c(){e=g("meta"),n=I(),t=g("meta"),l=I(),i=g("meta"),r=I(),h.c(),a=R(),this.h()},l(m){e=v(m,"META",{property:!0,content:!0}),n=$(m),t=v(m,"META",{property:!0,content:!0}),l=$(m),i=v(m,"META",{property:!0,content:!0}),r=$(m),h.l(m),a=R(),this.h()},h(){s(e,"property","og:type"),s(e,"content","website"),s(t,"property","og:image"),s(t,"content",_t[512].src??_e[512].src??_e[192].src),s(i,"property","og:description"),s(i,"content",P.description)},m(m,d){_(m,e,d),_(m,n,d),_(m,t,d),_(m,l,d),_(m,i,d),_(m,r,d),h.m(m,d),_(m,a,d)},p(m,d){u===(u=f(m))&&h?h.p(m,d):(h.d(1),h=u(m),h&&(h.c(),h.m(a.parentNode,a)))},d(m){m&&(c(e),c(n),c(t),c(l),c(i),c(r),c(a)),h.d(m)}}}function kl(o){let e,n,t,l,i,r,a,f,u,h,m,d,p,y,w,E,D,q,C=o[0].summary&&st(o);function L(b,M){return b[0].image?Al:El}let N=L(o),V=N(o),B=o[0].tags&&ft(o);return{c(){e=g("meta"),n=I(),t=g("meta"),i=I(),C&&C.c(),r=I(),V.c(),a=I(),B&&B.c(),f=I(),u=g("meta"),m=I(),d=g("meta"),p=I(),y=g("meta"),E=I(),D=g("meta"),this.h()},l(b){e=v(b,"META",{property:!0,content:!0}),n=$(b),t=v(b,"META",{property:!0,content:!0}),i=$(b),C&&C.l(b),r=$(b),V.l(b),a=$(b),B&&B.l(b),f=$(b),u=v(b,"META",{property:!0,content:!0}),m=$(b),d=v(b,"META",{property:!0,content:!0}),p=$(b),y=v(b,"META",{property:!0,content:!0}),E=$(b),D=v(b,"META",{property:!0,content:!0}),this.h()},h(){s(e,"property","og:type"),s(e,"content","article"),s(t,"property","og:title"),s(t,"content",l=o[0].title??o[0].summary??o[0].path.slice(1)),s(u,"property","og:url"),s(u,"content",h=P.protocol+P.domain+o[0].path),s(d,"property","article:author"),s(d,"content",P.author.name),s(y,"property","article:published_time"),s(y,"content",w=o[0].published??o[0].created),s(D,"property","article:modified_time"),s(D,"content",q=o[0].updated??o[0].published??o[0].created)},m(b,M){_(b,e,M),_(b,n,M),_(b,t,M),_(b,i,M),C&&C.m(b,M),_(b,r,M),V.m(b,M),_(b,a,M),B&&B.m(b,M),_(b,f,M),_(b,u,M),_(b,m,M),_(b,d,M),_(b,p,M),_(b,y,M),_(b,E,M),_(b,D,M)},p(b,M){M&1&&l!==(l=b[0].title??b[0].summary??b[0].path.slice(1))&&s(t,"content",l),b[0].summary?C?C.p(b,M):(C=st(b),C.c(),C.m(r.parentNode,r)):C&&(C.d(1),C=null),N===(N=L(b))&&V?V.p(b,M):(V.d(1),V=N(b),V&&(V.c(),V.m(a.parentNode,a))),b[0].tags?B?B.p(b,M):(B=ft(b),B.c(),B.m(f.parentNode,f)):B&&(B.d(1),B=null),M&1&&h!==(h=P.protocol+P.domain+b[0].path)&&s(u,"content",h),M&1&&w!==(w=b[0].published??b[0].created)&&s(y,"content",w),M&1&&q!==(q=b[0].updated??b[0].published??b[0].created)&&s(D,"content",q)},d(b){b&&(c(e),c(n),c(t),c(i),c(r),c(a),c(f),c(u),c(m),c(d),c(p),c(y),c(E),c(D)),C&&C.d(b),V.d(b),B&&B.d(b)}}}function yl(o){let e,n,t;return{c(){e=g("meta"),n=I(),t=g("meta"),this.h()},l(l){e=v(l,"META",{property:!0,content:!0}),n=$(l),t=v(l,"META",{property:!0,content:!0}),this.h()},h(){s(e,"property","og:title"),s(e,"content",P.title),s(t,"property","og:url"),s(t,"content",P.protocol+P.domain)},m(l,i){_(l,e,i),_(l,n,i),_(l,t,i)},p:z,d(l){l&&(c(e),c(n),c(t))}}}function wl(o){let e,n,t,l,i;return{c(){e=g("meta"),t=I(),l=g("meta"),this.h()},l(r){e=v(r,"META",{property:!0,content:!0}),t=$(r),l=v(r,"META",{property:!0,content:!0}),this.h()},h(){s(e,"property","og:title"),s(e,"content",n=o[1].title??o[1].path.slice(1)),s(l,"property","og:url"),s(l,"content",i=P.protocol+P.domain+o[1].path)},m(r,a){_(r,e,a),_(r,t,a),_(r,l,a)},p(r,a){a&2&&n!==(n=r[1].title??r[1].path.slice(1))&&s(e,"content",n),a&2&&i!==(i=P.protocol+P.domain+r[1].path)&&s(l,"content",i)},d(r){r&&(c(e),c(t),c(l))}}}function st(o){let e,n;return{c(){e=g("meta"),this.h()},l(t){e=v(t,"META",{property:!0,content:!0}),this.h()},h(){s(e,"property","og:description"),s(e,"content",n=o[0].summary)},m(t,l){_(t,e,l)},p(t,l){l&1&&n!==(n=t[0].summary)&&s(e,"content",n)},d(t){t&&c(e)}}}function El(o){let e,n,t;return{c(){e=g("meta"),n=I(),t=g("meta"),this.h()},l(l){e=v(l,"META",{property:!0,content:!0}),n=$(l),t=v(l,"META",{name:!0,content:!0}),this.h()},h(){s(e,"property","og:image"),s(e,"content",_t[512].src??_e[512].src??_e[192].src),s(t,"name","twitter:card"),s(t,"content","summary")},m(l,i){_(l,e,i),_(l,n,i),_(l,t,i)},p:z,d(l){l&&(c(e),c(n),c(t))}}}function Al(o){let e,n,t,l;return{c(){e=g("meta"),t=I(),l=g("meta"),this.h()},l(i){e=v(i,"META",{property:!0,content:!0}),t=$(i),l=v(i,"META",{name:!0,content:!0}),this.h()},h(){s(e,"property","og:image"),s(e,"content",n=(o[0].image.startsWith("http")?"":P.protocol+P.domain)+o[0].image),s(l,"name","twitter:card"),s(l,"content","summary_large_image")},m(i,r){_(i,e,r),_(i,t,r),_(i,l,r)},p(i,r){r&1&&n!==(n=(i[0].image.startsWith("http")?"":P.protocol+P.domain)+i[0].image)&&s(e,"content",n)},d(i){i&&(c(e),c(t),c(l))}}}function ft(o){let e,n=ee(o[0].tags),t=[];for(let l=0;l<n.length;l+=1)t[l]=ct(at(o,n,l));return{c(){for(let l=0;l<t.length;l+=1)t[l].c();e=R()},l(l){for(let i=0;i<t.length;i+=1)t[i].l(l);e=R()},m(l,i){for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(l,i);_(l,e,i)},p(l,i){if(i&1){n=ee(l[0].tags);let r;for(r=0;r<n.length;r+=1){const a=at(l,n,r);t[r]?t[r].p(a,i):(t[r]=ct(a),t[r].c(),t[r].m(e.parentNode,e))}for(;r<t.length;r+=1)t[r].d(1);t.length=n.length}},d(l){l&&c(e),ue(t,l)}}}function ct(o){let e,n;return{c(){e=g("meta"),this.h()},l(t){e=v(t,"META",{property:!0,content:!0}),this.h()},h(){s(e,"property","article:tag"),s(e,"content",n=o[2])},m(t,l){_(t,e,l)},p(t,l){l&1&&n!==(n=t[2])&&s(e,"content",n)},d(t){t&&c(e)}}}function Il(o){let e,n,t;function l(a,f){return a[0]?kl:vl}let i=l(o),r=i(o);return{c(){e=g("meta"),n=g("meta"),r.c(),t=R(),this.h()},l(a){const f=pt("svelte-4dky5b",document.head);e=v(f,"META",{property:!0,content:!0}),n=v(f,"META",{property:!0,content:!0}),r.l(f),t=R(),f.forEach(c),this.h()},h(){s(e,"property","og:site_name"),s(e,"content",P.title),s(n,"property","og:locale"),s(n,"content",P.lang)},m(a,f){k(document.head,e),k(document.head,n),r.m(document.head,null),k(document.head,t)},p(a,[f]){i===(i=l(a))&&r?r.p(a,f):(r.d(1),r=i(a),r&&(r.c(),r.m(t.parentNode,t)))},i:z,o:z,d(a){c(e),c(n),r.d(a),c(t)}}}function $l(o,e,n){let{post:t=void 0}=e,{page:l=void 0}=e;return o.$$set=i=>{"post"in i&&n(0,t=i.post),"page"in i&&n(1,l=i.page)},[t,l]}class Nl extends te{constructor(e){super(),le(this,e,$l,Il,X,{post:0,page:1})}}function ut(o,e,n){const t=o.slice();return t[2]=e[n],t}function Ml(o){let e,n,t,l,i;function r(u,h){return u[1]?Cl:Dl}let a=r(o),f=a(o);return{c(){e=g("meta"),n=I(),t=g("meta"),l=I(),f.c(),i=R(),this.h()},l(u){e=v(u,"META",{name:!0,content:!0}),n=$(u),t=v(u,"META",{name:!0,content:!0}),l=$(u),f.l(u),i=R(),this.h()},h(){var u;s(e,"name","description"),s(e,"content",P.description),s(t,"name","keywords"),s(t,"content",(u=P.keywords)==null?void 0:u.join(", "))},m(u,h){_(u,e,h),_(u,n,h),_(u,t,h),_(u,l,h),f.m(u,h),_(u,i,h)},p(u,h){a===(a=r(u))&&f?f.p(u,h):(f.d(1),f=a(u),f&&(f.c(),f.m(i.parentNode,i)))},d(u){u&&(c(e),c(n),c(t),c(l),c(i)),f.d(u)}}}function Tl(o){let e,n,t,l,i,r;function a(d,p){if(d[0].type==="article")return Sl;if(d[0].type==="note")return Pl}let f=a(o),u=f&&f(o),h=o[0].tags&&mt(o),m=o[0].summary&&dt(o);return{c(){e=g("link"),t=I(),u&&u.c(),l=I(),h&&h.c(),i=I(),m&&m.c(),r=R(),this.h()},l(d){e=v(d,"LINK",{rel:!0,href:!0}),t=$(d),u&&u.l(d),l=$(d),h&&h.l(d),i=$(d),m&&m.l(d),r=R(),this.h()},h(){s(e,"rel","canonical"),s(e,"href",n=P.protocol+P.domain+o[0].path)},m(d,p){_(d,e,p),_(d,t,p),u&&u.m(d,p),_(d,l,p),h&&h.m(d,p),_(d,i,p),m&&m.m(d,p),_(d,r,p)},p(d,p){p&1&&n!==(n=P.protocol+P.domain+d[0].path)&&s(e,"href",n),f!==(f=a(d))&&(u&&u.d(1),u=f&&f(d),u&&(u.c(),u.m(l.parentNode,l))),d[0].tags?h?h.p(d,p):(h=mt(d),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),d[0].summary?m?m.p(d,p):(m=dt(d),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null)},d(d){d&&(c(e),c(t),c(l),c(i),c(r)),u&&u.d(d),h&&h.d(d),m&&m.d(d)}}}function Dl(o){let e,n;return document.title=`${P.title} - ${P.subtitle}`,{c(){e=I(),n=g("link"),this.h()},l(t){e=$(t),n=v(t,"LINK",{rel:!0,href:!0}),this.h()},h(){s(n,"rel","canonical"),s(n,"href",P.protocol+P.domain)},m(t,l){_(t,e,l),_(t,n,l)},p:z,d(t){t&&(c(e),c(n))}}}function Cl(o){let e,n,t,l;return document.title=e=(o[1].title??o[1].path.slice(1))+" | "+P.title,{c(){n=I(),t=g("link"),this.h()},l(i){n=$(i),t=v(i,"LINK",{rel:!0,href:!0}),this.h()},h(){s(t,"rel","canonical"),s(t,"href",l=P.protocol+P.domain+o[1].path)},m(i,r){_(i,n,r),_(i,t,r)},p(i,r){r&2&&e!==(e=(i[1].title??i[1].path.slice(1))+" | "+P.title)&&(document.title=e),r&2&&l!==(l=P.protocol+P.domain+i[1].path)&&s(t,"href",l)},d(i){i&&(c(n),c(t))}}}function Pl(o){return document.title=(o[0].summary??o[0].path.slice(1))+" | "+P.title,{c:z,l:z,m:z,d:z}}function Sl(o){return document.title=o[0].title+" | "+P.title,{c:z,l:z,m:z,d:z}}function mt(o){let e,n;return{c(){e=g("meta"),this.h()},l(t){e=v(t,"META",{name:!0,content:!0}),this.h()},h(){s(e,"name","keywords"),s(e,"content",n=o[0].tags.join(", "))},m(t,l){_(t,e,l)},p(t,l){l&1&&n!==(n=t[0].tags.join(", "))&&s(e,"content",n)},d(t){t&&c(e)}}}function dt(o){let e,n;return{c(){e=g("meta"),this.h()},l(t){e=v(t,"META",{name:!0,content:!0}),this.h()},h(){s(e,"name","description"),s(e,"content",n=o[0].summary)},m(t,l){_(t,e,l)},p(t,l){l&1&&n!==(n=t[0].summary)&&s(e,"content",n)},d(t){t&&c(e)}}}function Vl(o){let e,n=ee(be.custom({dev:Ie,post:o[0],page:o[1]})),t=[];for(let l=0;l<n.length;l+=1)t[l]=ht(ut(o,n,l));return{c(){for(let l=0;l<t.length;l+=1)t[l].c();e=R()},l(l){for(let i=0;i<t.length;i+=1)t[i].l(l);e=R()},m(l,i){for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(l,i);_(l,e,i)},p(l,i){if(i&3){n=ee(be.custom({dev:Ie,post:l[0],page:l[1]}));let r;for(r=0;r<n.length;r+=1){const a=ut(l,n,r);t[r]?t[r].p(a,i):(t[r]=ht(a),t[r].c(),t[r].m(e.parentNode,e))}for(;r<t.length;r+=1)t[r].d(1);t.length=n.length}},d(l){l&&c(e),ue(t,l)}}}function ht(o){let e,n=o[2]+"",t;return{c(){e=new ve(!1),t=R(),this.h()},l(l){e=ke(l,!1),t=R(),this.h()},h(){e.a=t},m(l,i){e.m(n,l,i),_(l,t,i)},p(l,i){i&3&&n!==(n=l[2]+"")&&e.p(n)},d(l){l&&(c(t),e.d())}}}function Ll(o){let e,n,t,l,i,r;function a(m,d){return m[0]?Tl:Ml}let f=a(o),u=f(o),h=be.custom&&Vl(o);return i=new Nl({props:{post:o[0],page:o[1]}}),{c(){e=g("meta"),u.c(),n=R(),h&&h.c(),t=R(),l=I(),re(i.$$.fragment),this.h()},l(m){const d=pt("svelte-abrfj",document.head);e=v(d,"META",{name:!0,content:!0}),u.l(d),n=R(),h&&h.l(d),t=R(),d.forEach(c),l=$(m),se(i.$$.fragment,m),this.h()},h(){var m;s(e,"name","author"),s(e,"content",(m=P.author)==null?void 0:m.name)},m(m,d){k(document.head,e),u.m(document.head,null),k(document.head,n),h&&h.m(document.head,null),k(document.head,t),_(m,l,d),oe(i,m,d),r=!0},p(m,[d]){f===(f=a(m))&&u?u.p(m,d):(u.d(1),u=f(m),u&&(u.c(),u.m(n.parentNode,n))),be.custom&&h.p(m,d);const p={};d&1&&(p.post=m[0]),d&2&&(p.page=m[1]),i.$set(p)},i(m){r||(S(i.$$.fragment,m),r=!0)},o(m){O(i.$$.fragment,m),r=!1},d(m){m&&c(l),c(e),u.d(m),c(n),h&&h.d(m),c(t),ae(i,m)}}}function Rl(o,e,n){let{post:t=void 0}=e,{page:l=void 0}=e;return o.$$set=i=>{"post"in i&&n(0,t=i.post),"page"in i&&n(1,l=i.page)},[t,l]}class Wl extends te{constructor(e){super(),le(this,e,Rl,Ll,X,{post:0,page:1})}}function jl(o,e,n){const t=o.slice();return t[3]=e[n].text,t[4]=e[n].link,t[6]=n,t}function Ul(o){let e,n,t=ee(ce.nav),l=[];for(let i=0;i<t.length;i+=1)l[i]=Ol(jl(o,t,i));return{c(){for(let i=0;i<l.length;i+=1)l[i].c();e=I(),n=g("br")},l(i){for(let r=0;r<l.length;r+=1)l[r].l(i);e=$(i),n=v(i,"BR",{})},m(i,r){for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(i,r);_(i,e,r),_(i,n,r)},d(i){i&&(c(e),c(n)),ue(l,i)}}}function Bl(o){let e,n="·";return{c(){e=g("span"),e.textContent=n,this.h()},l(t){e=v(t,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1qx196n"&&(e.textContent=n),this.h()},h(){s(e,"class","mr-1")},m(t,l){_(t,e,l)},d(t){t&&c(e)}}}function Ol(o){let e,n,t,l,i=o[6]+1<ce.nav.length&&Bl();return{c(){e=g("a"),n=G(o[3]),t=I(),i&&i.c(),l=R(),this.h()},l(r){e=v(r,"A",{href:!0,rel:!0,target:!0});var a=T(e);n=K(a,o[3]),a.forEach(c),t=$(r),i&&i.l(r),l=R(),this.h()},h(){s(e,"href",o[4]),s(e,"rel","noopener noreferrer external"),s(e,"target","_blank")},m(r,a){_(r,e,a),k(e,n),_(r,t,a),i&&i.m(r,a),_(r,l,a)},p:z,d(r){r&&(c(e),c(t),c(l)),i&&i.d(r)}}}function Hl(o){let e,n,t,l=ce.html+"",i;return{c(){e=g("br"),n=I(),t=new ve(!1),i=R(),this.h()},l(r){e=v(r,"BR",{}),n=$(r),t=ke(r,!1),i=R(),this.h()},h(){t.a=i},m(r,a){_(r,e,a),_(r,n,a),t.m(l,r,a),_(r,i,a)},d(r){r&&(c(e),c(n),c(i),t.d())}}}function zl(o){let e,n,t,l,i=(ce.since&&ce.since!==new Date().toJSON().substring(0,4)?`${ce.since} - ${new Date().toJSON().substring(0,4)}`:new Date().toJSON().substring(0,4))+"",r,a,f=P.author.name+"",u,h,m,d,p,y="Urara",w,E,D=ce.nav&&Ul(o),q=ce.html&&Hl();return{c(){e=g("footer"),n=g("div"),t=g("p"),D&&D.c(),l=G(`
      Copyright © `),r=G(i),a=I(),u=G(f),h=I(),m=g("br"),d=G(`
      Powered by
      `),p=g("a"),p.textContent=y,w=I(),q&&q.c(),this.h()},l(C){e=v(C,"FOOTER",{id:!0,class:!0});var L=T(e);n=v(L,"DIV",{class:!0});var N=T(n);t=v(N,"P",{});var V=T(t);D&&D.l(V),l=K(V,`
      Copyright © `),r=K(V,i),a=$(V),u=K(V,f),h=$(V),m=v(V,"BR",{}),d=K(V,`
      Powered by
      `),p=v(V,"A",{rel:!0,target:!0,class:!0,"data-tip":!0,href:!0,"data-svelte-h":!0}),ne(p)!=="svelte-urea7w"&&(p.textContent=y),w=$(V),q&&q.l(V),V.forEach(c),N.forEach(c),L.forEach(c),this.h()},h(){s(p,"rel","noopener noreferrer external"),s(p,"target","_blank"),s(p,"class","tooltip tooltip-secondary hover:text-secondary"),s(p,"data-tip","🌸 [δ] - Based on MDsveX & SvelteKit 🌸"),s(p,"href","https://github.com/importantimport/urara"),s(n,"class","prose"),s(e,"id","footer"),s(e,"class",E="footer footer-center bg-base-300 text-base-content shadow-inner p-8 "+(o[2]?"rounded-box":"md:rounded-box")+" "+(o[1]?"sticky bottom-0 z-0 md:static":"")+" "+(o[0]??""))},m(C,L){_(C,e,L),k(e,n),k(n,t),D&&D.m(t,null),k(t,l),k(t,r),k(t,a),k(t,u),k(t,h),k(t,m),k(t,d),k(t,p),k(t,w),q&&q.m(t,null)},p(C,[L]){L&7&&E!==(E="footer footer-center bg-base-300 text-base-content shadow-inner p-8 "+(C[2]?"rounded-box":"md:rounded-box")+" "+(C[1]?"sticky bottom-0 z-0 md:static":"")+" "+(C[0]??""))&&s(e,"class",E)},i:z,o:z,d(C){C&&c(e),D&&D.d(),q&&q.d()}}}function ql(o,e,n){let{class:t=void 0}=e,{sticky:l=!1}=e,{rounded:i=!1}=e;return o.$$set=r=>{"class"in r&&n(0,t=r.class),"sticky"in r&&n(1,l=r.sticky),"rounded"in r&&n(2,i=r.rounded)},[t,l,i]}class Xl extends te{constructor(e){super(),le(this,e,ql,zl,X,{class:0,sticky:1,rounded:2})}}export{Xl as F,Wl as H,Jl as P};
