function r(r,e={}){const{fallbackValue:n="",validValues:t,toLowerCase:a=!0}=e;let u="string"==typeof r&&r.trim()||"";return u=a?u.toLowerCase():u,t&&-1===t.indexOf(u)&&(u=n),u}function e(r){return"string"==typeof r||!!r}const n=r=>{if(Number.isNaN(r)||null==r||""===r||Array.isArray(r))return!0;const e=Number(r);return Number.isNaN(e)};function t(r,e={}){const{fallbackValue:t,minValue:a,maxValue:u}=e,i="number"==typeof t&&t||void 0;return n(r)||!n(r)&&r<a||!n(r)&&r>u?i:1*Number(r)}function a(r){return Array.isArray(r)?r:[]}function u(r){let e=Array.isArray(r)?r:[r];return e=e.map(r=>"string"==typeof r?r.replace(/\s+/g," ").trim():"").filter(r=>!!r),e.length>0?e.join(" "):null}export{t as a,e as b,u as c,a as d,r as n};
