import n from"./fieldsize.js";var r={string:"C",number:"N",boolean:"L",date:"D",null:"C"};export function multi(n){var r={};return n.forEach((function(n){!function(n,r){for(var e in r){var o=void 0!==r[e]&&null!==r[e];(void 0===n[e]||o)&&(n[e]=r[e])}}(r,n)})),obj(r)}export function obj(e){var o={},t=[];for(var i in e)o[i]=null===e[i]?"null":e[i]instanceof Date?"date":typeof e[i];for(var u in o){var a=r[o[u]];a&&t.push({name:u,type:a,size:n[a]})}return t}export function bytesPer(n){return n.reduce((function(n,r){return n+r.size}),1)}