import{p as w,e as ve,i as u,b as X,k as Y,u as Z}from"./i18n-Dnhn5Rxr.js";import{R as de,a6 as j,S as z,a,T as ie,U as p,V as x,Y as y,t as k,Z as B,x as C,W as l,a3 as oe,a7 as ce,a0 as D,w as b,z as h,X as F,G as H}from"./index-DWyDLubb.js";var ne=l('<table class="svelte-wcwkqi"><tbody><tr class="svelte-wcwkqi"><td class="svelte-wcwkqi">Empty</td></tr></tbody></table>'),_e=l('<td class="svelte-wcwkqi"> </td>'),fe=l('<td class="svelte-wcwkqi">…</td>'),ue=l('<tr class="svelte-wcwkqi"><!><!></tr>'),ye=l("<div></div>"),be=l('<table class="svelte-wcwkqi"><tbody></tbody></table> <!>',1),me=l("<div><!></div>");function pe(I,o){de(o,!1);let e=w(o,"value",12),c=w(o,"type",12),q=w(o,"selected",12,!1),m=w(o,"index",12),G=oe(!1),R=Array.isArray(e()),J=R&&(e().length===0||e()[0].length===0);var K={get value(){return e()},set value(t){e(t),p()},get type(){return c()},set type(t){c(t),p()},get selected(){return q()},set selected(t){q(t),p()},get index(){return m()},set index(t){m(t),p()}};ve();var T=j(),L=z(T);{var M=t=>{var r=me();let U;var N=x(r);{var O=v=>{var n=ce();k(()=>D(n,e())),a(v,n)},P=v=>{var n=j(),Q=z(n);{var $=d=>{var g=ne();a(d,g)},ee=d=>{var g=be(),A=z(g),V=x(A);Y(V,5,()=>(H(e()),h(()=>e().slice(0,3))),Z,(_,s)=>{var i=ue(),W=x(i);Y(W,1,()=>(b(s),h(()=>b(s).slice(0,3))),Z,(f,E)=>{var S=_e(),re=x(S,!0);y(S),k(()=>D(re,b(E))),a(f,S)});var se=F(W);{var le=f=>{var E=fe();a(f,E)};u(se,f=>{b(s),h(()=>b(s).length>3)&&f(le)})}y(i),a(_,i)}),y(V),y(A);var te=F(A,2);{var ae=_=>{var s=ye();let i;k(()=>i=X(s,1,"overlay svelte-wcwkqi",null,i,{odd:m()%2!=0,even:m()%2==0,button:c()==="gallery"})),a(_,s)};u(te,_=>{H(e()),h(()=>e().length>3)&&_(ae)})}a(d,g)};u(Q,d=>{J?d($):d(ee,!1)},!0)}a(v,n)};u(N,v=>{typeof e()=="string"?v(O):v(P,!1)})}y(r),k(()=>U=X(r,1,"svelte-wcwkqi",null,U,{table:c()==="table",gallery:c()==="gallery",selected:q()})),B("mouseenter",r,()=>C(G,!0)),B("mouseleave",r,()=>C(G,!1)),a(t,r)};u(L,t=>{R&&t(M)})}return a(I,T),ie(K)}export{pe as default};
