import{B as e,E as t,H as n,It as r,Mt as i,Q as a,U as o,V as s,W as c,Z as l,_t as u,at as d,d as f,ft as p,ht as m,jt as h,ot as g,pt as _,s as v,st as y}from"./BA99CCI5.js";import"./xihTtKlq.js";import"./DGo8yE5j.js";var b=c(`<span> </span>`),x=c(`<span>—</span>`);function S(c,S){i(S,!1);let C=m(),w=m(),T=m(),E=v(S,`score`,8,null),D=v(S,`showSign`,8,!0),O=v(S,`size`,8,`md`),k=v(S,`colored`,8,!0);d(()=>(l(E()),l(k())),()=>{u(C,E()===null?`text-neutral-400`:k()?E()>0?`text-emerald-600 dark:text-emerald-400`:E()<0?`text-red-600 dark:text-red-400`:`text-neutral-500`:`text-neutral-900 dark:text-neutral-100`)}),d(()=>l(O()),()=>{u(w,O()===`sm`?`text-xs`:`text-sm`)}),d(()=>(l(E()),l(D())),()=>{u(T,E()===null?null:D()&&E()>0?`+${E().toLocaleString()}`:E().toLocaleString())}),g(),f();var A=o(),j=_(A),M=e=>{var i=b(),o=p(i,!0);r(i),y(()=>{t(i,1,`font-mono font-medium ${a(C)??``} ${a(w)??``}`),s(o,a(T))}),n(e,i)},N=e=>{var r=x();y(()=>t(r,1,`text-neutral-400 ${a(w)??``}`)),n(e,r)};e(j,e=>{E()===null?e(N,-1):e(M)}),n(c,A),h()}export{S as t};