ivt
Version:
Ivt Components Library
3 lines (2 loc) • 777 B
JavaScript
import{t}from"./bundle-mjs-DHbvkKp4.mjs";function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function r(){for(var t,r,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(r=e(t))&&(o&&(o+=" "),o+=r);return o}function n(...e){return t(r(e))}function o(t,e={}){const{decimals:r=0,sizeType:n="normal"}=e;if(0===t)return"0 Byte";const o=Math.floor(Math.log(t)/Math.log(1024));return`${(t/1024**o).toFixed(r)} ${"accurate"===n?["Bytes","KiB","MiB","GiB","TiB"][o]??"Bytes":["Bytes","KB","MB","GB","TB"][o]??"Bytes"}`}export{r as a,n as c,o as f};
//# sourceMappingURL=utils-C-nkZ_Ir.mjs.map