import{S as X,b as Y,s as Z,n as F,d as _,r as $,R as H,e as E,f as d,P as C,g as h,h as v,j as S,l as w,o as g,p as O,q as D,k as A,m as ee,t as L,Q as I,A as P,B,c as J,G as te,I as se,T as ae,y as le,C as ne,D as re,E as ie}from"./wWjeKwgK.js";import"./IHki7fMi.js";import{s as x,g as K,h as T,d as ce,c as oe}from"./DJovQM42.js";function M(r){let e,t,a,i,l,o="Clear Search",n,c;return{c(){e=g("label"),t=g("input"),a=L(`
      Search by description`),i=O(),l=g("button"),l.textContent=o,this.h()},l(s){e=v(s,"LABEL",{class:!0});var f=S(e);t=v(f,"INPUT",{type:!0,class:!0}),a=A(f,`
      Search by description`),f.forEach(_),i=w(s),l=v(s,"BUTTON",{class:!0,"aria-label":!0,"data-svelte-h":!0}),ee(l)!=="svelte-1birnm5"&&(l.textContent=o),this.h()},h(){h(t,"type","checkbox"),h(t,"class","svelte-yg5clj"),h(e,"class","checkbox-container svelte-yg5clj"),h(l,"class","clear-button svelte-yg5clj"),h(l,"aria-label","Clear search")},m(s,f){E(s,e,f),d(e,t),t.checked=r[0],d(e,a),E(s,i,f),E(s,l,f),n||(c=[C(t,"change",r[6]),C(t,"change",r[7]),C(l,"click",r[8])],n=!0)},p(s,f){f&1&&(t.checked=s[0])},d(s){s&&(_(e),_(i),_(l)),n=!1,$(c)}}}function ue(r){let e,t,a,i=r[3].trim(),l,o,n=i&&M(r);return{c(){e=g("div"),t=g("input"),a=O(),n&&n.c(),this.h()},l(c){e=v(c,"DIV",{class:!0});var s=S(e);t=v(s,"INPUT",{type:!0,placeholder:!0,class:!0}),a=w(s),n&&n.l(s),s.forEach(_),this.h()},h(){h(t,"type","text"),h(t,"placeholder","Search..."),h(t,"class","search-bar svelte-yg5clj"),h(e,"class","search-container svelte-yg5clj")},m(c,s){E(c,e,s),d(e,t),H(t,r[3]),d(e,a),n&&n.m(e,null),l||(o=[C(t,"input",r[4]),C(t,"input",r[5])],l=!0)},p(c,[s]){s&8&&t.value!==c[3]&&H(t,c[3]),s&8&&(i=c[3].trim()),i?n?n.p(c,s):(n=M(c),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:F,o:F,d(c){c&&_(e),n&&n.d(),l=!1,$(o)}}}function fe(r,e,t){let a,i,l;D(r,T,b=>t(1,a=b)),D(r,ce,b=>t(2,i=b)),D(r,x,b=>t(3,l=b));let o=!0;function n(){l=this.value,x.set(l)}const c=()=>{I(T,a=K(i,l,o),a)};function s(){o=this.checked,t(0,o)}return[o,a,i,l,n,c,s,()=>{l.trim()&&I(T,a=K(i,l,o),a)},()=>{I(x,l="",l),I(T,a=i,a)}]}class he extends X{constructor(e){super(),Y(this,e,fe,ue,Z,{})}}function W(r){let e,t;return e=new he({}),{c(){ie(e.$$.fragment)},l(a){re(e.$$.fragment,a)},m(a,i){ne(e,a,i),t=!0},i(a){t||(B(e.$$.fragment,a),t=!0)},o(a){P(e.$$.fragment,a),t=!1},d(a){le(e,a)}}}function de(r){let e,t,a,i="Last updated: ",l,o=r[2][0].date+"",n,c,s,f,y,b,N,k,j,V,Q,u=r[0]&&W();return{c(){e=g("div"),t=g("div"),a=g("strong"),a.textContent=i,l=g("a"),n=L(o),s=O(),f=g("div"),y=g("button"),b=L(r[1]),N=O(),k=g("div"),u&&u.c(),this.h()},l(m){e=v(m,"DIV",{class:!0});var p=S(e);t=v(p,"DIV",{class:!0});var U=S(t);a=v(U,"STRONG",{"data-svelte-h":!0}),ee(a)!=="svelte-1hcbjgh"&&(a.textContent=i),l=v(U,"A",{class:!0,href:!0});var q=S(l);n=A(q,o),q.forEach(_),U.forEach(_),s=w(p),f=v(p,"DIV",{class:!0});var G=S(f);y=v(G,"BUTTON",{class:!0});var R=S(y);b=A(R,r[1]),R.forEach(_),G.forEach(_),N=w(p),k=v(p,"DIV",{class:!0});var z=S(k);u&&u.l(z),z.forEach(_),p.forEach(_),this.h()},h(){h(l,"class","underline"),h(l,"href",c="/changelog#"+r[2][0].date),h(t,"class","p-3 set-width text-sm md:p-2 md:text-base svelte-8g2rmj"),h(y,"class","btn-info cursor-pointer svelte-8g2rmj"),h(f,"class","flex justify-center set-width svelte-8g2rmj"),h(k,"class","set-width flex justify-end svelte-8g2rmj"),h(e,"class","flex justify-between items-start md:items-start w-full gap-2")},m(m,p){E(m,e,p),d(e,t),d(t,a),d(t,l),d(l,n),d(e,s),d(e,f),d(f,y),d(y,b),d(e,N),d(e,k),u&&u.m(k,null),j=!0,V||(Q=C(y,"click",r[4]),V=!0)},p(m,[p]){(!j||p&4)&&o!==(o=m[2][0].date+"")&&J(n,o),(!j||p&4&&c!==(c="/changelog#"+m[2][0].date))&&h(l,"href",c),(!j||p&2)&&J(b,m[1]),m[0]?u?p&1&&B(u,1):(u=W(),u.c(),B(u,1),u.m(k,null)):u&&(te(),P(u,1,1,()=>{u=null}),se())},i(m){j||(B(u),j=!0)},o(m){P(u),j=!1},d(m){m&&_(e),u&&u.d(),V=!1,Q()}}}function pe(r,e,t){let a,i,l;D(r,oe,s=>t(2,l=s));let{includeSearch:o=!1}=e;const n=ae("infoOpen");D(r,n,s=>t(5,i=s));function c(){n&&n.update(s=>!s)}return r.$$set=s=>{"includeSearch"in s&&t(0,o=s.includeSearch)},r.$$.update=()=>{r.$$.dirty&32&&t(1,a=i?"Close info":"Site info")},[o,a,l,n,c,i]}class ge extends X{constructor(e){super(),Y(this,e,pe,de,Z,{includeSearch:0})}}export{ge as B};
