function h(t,c){let e,r,n;try{e=t.toString().split(".")[1].length}catch{e=0}try{r=c.toString().split(".")[1].length}catch{r=0}return n=Math.pow(10,Math.max(e,r)),(t*n+c*n)/n}function s(t,c){let e=0,r=0,n,i;try{e=t.toString().split(".")[1].length}catch{}try{r=c.toString().split(".")[1].length}catch{}return n=Number(t.toString().replace(".","")),i=Number(c.toString().replace(".","")),a(n/i,Math.pow(10,r-e))}function a(t,c){let e=0,r=t.toString(),n=c.toString();try{e+=r.split(".")[1].length}catch{}try{e+=n.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(n.replace(".",""))/Math.pow(10,e)}function l(t,c){let e,r,n,i;try{e=t.toString().split(".")[1].length}catch{e=0}try{r=c.toString().split(".")[1].length}catch{r=0}return n=Math.pow(10,Math.max(e,r)),i=e>=r?e:r,((t*n-c*n)/n).toFixed(i)}function u(t){return t==="NaN"||Number(t)===0?"0":t<1e3&&t>0||t<0&&t>-1e3?t:s(t,1e4).toFixed(2)+"W"}function p(t){const c=Object.keys(t[0]);return t.reduce((e,r)=>c.reduce((n,i)=>({...n,[i]:h(e[i]||0,r[i])}),{}),{})}function m(t){return t?Number(t).toFixed(2):0}export{h as a,p as c,s as d,m as f,a as m,l as s,u};
