import{B as e,Bt as t,F as n,L as r,N as i,Nt as a,Pt as o,U as s,Vt as c,W as l,X as u,Y as d,_t as f,a as p,at as m,ft as h,g,it as _,o as v,ot as y,u as b,v as x,vt as S,x as C,z as w}from"./BT3KAag_.js";import"./t62M88qj.js";import"./BZnJ8tbJ.js";import{t as T}from"./DoRjlkba.js";var E=e(`<title> </title>`),D=e(`<svg><!><path d="M14 21.414 9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"></path></svg>`);function O(e,s){let l=p(s,[`children`,`$$slots`,`$$events`,`$$legacy`]),x=p(l,[`size`,`title`]);o(s,!1);let C=f(),w=f(),T=v(s,`size`,8,16),O=v(s,`title`,8,void 0);_(()=>(d(l),d(O())),()=>{S(C,l[`aria-label`]||l[`aria-labelledby`]||O())}),_(()=>(u(C),d(l)),()=>{S(w,{"aria-hidden":u(C)?void 0:!0,role:u(C)?`img`:void 0,focusable:Number(l.tabindex)===0?!0:void 0})}),m(),b();var k=D();g(k,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...u(w),...x}));var A=h(k),j=e=>{var t=E(),i=h(t,!0);c(t),y(()=>n(i,O())),r(e,t)};i(A,e=>{O()&&e(j)}),t(2),c(k),r(e,k),a()}var k=w(`<button type="button"><!></button>`);function A(e,t){o(t,!0);let n=v(t,`hideCompleted`,15);var s=k();let u;var d=h(s),f=e=>{T(e,{size:16})},p=e=>{O(e,{size:16})};i(d,e=>{n()?e(p,-1):e(f)}),c(s),y(()=>{u=C(s,1,`toolbar-icon-btn`,null,u,{active:!n()}),x(s,`title`,n()?`Show completed`:`Hide completed`),x(s,`aria-pressed`,!n())}),l(`click`,s,()=>n(!n())),r(e,s),a()}s([`click`]);export{A as t};