"use strict";const r=r=>{if(Number.isNaN(r)||null==r||""===r||Array.isArray(r))return!0;const e=Number(r);return Number.isNaN(e)};exports.isNotNumber=r,exports.normalizeAriaAttribute=function(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},exports.normalizeArray=function(r){return Array.isArray(r)?r:[]},exports.normalizeBoolean=function(r){return"string"==typeof r||!!r},exports.normalizeNumber=function(e,t={}){const{fallbackValue:n,minValue:o,maxValue:i}=t,a="number"==typeof n&&n||void 0;return r(e)||!r(e)&&e<o||!r(e)&&e>i?a:1*Number(e)},exports.normalizeString=function(r,e={}){const{fallbackValue:t="",validValues:n,toLowerCase:o=!0}=e;let i="string"==typeof r&&r.trim()||"";return i=o?i.toLowerCase():i,n&&-1===n.indexOf(i)&&(i=t),i};
