function i(e){return!e&&Number(e)!==0?"-":(e+"").replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,")}function u(e){const n=e.getMonth()+1,s=e.getFullYear(),r=n>9?n:`0${n}`;return`${s}-${r}`}function f(e,n=2){return g(e,100*1e4,n)}function g(e,n=1,s=2){if(!e)return"0";let t=(parseFloat(e)/n).toString(),o=t.indexOf(".");return o!==-1?t=t.substring(0,s+o+1):t=t.substring(0),parseFloat(t).toFixed(s)}function c(e,n){let s=`${e.getFullYear()}`,r=`${e.getMonth()+1}`;r.length===1&&(r=`0${r}`);let t=`${e.getDate()}`;t.length===1&&(t=`0${t}`);let o=`${e.getHours()}`;o.length===1&&(o=`0${o}`);let l=`${e.getMinutes()}`;l.length===1&&(l=`0${l}`);let a=`${e.getSeconds()}`;return a.length===1&&(a=`0${a}`),(n||"yyyy-MM-dd hh:mm:ss").replace(/yyyy/g,s).replace(/MM/g,r).replace(/dd/g,t).replace(/hh/g,o).replace(/mm/g,l).replace(/ss/g,a)}export{i as a,f as b,u as c,c as f};
