const e=[`true`,`1`,`yes`,`on`],t=[`false`,`0`,`no`,`off`],n=new Set(e),r=new Set(t);function i(i,a={}){if(typeof i==`boolean`)return i;if(typeof i!=`string`)return;let o=i.trim().toLowerCase();if(!o)return;let s=a.truthy??e,c=a.falsy??t,l=s===e?n:new Set(s),u=c===t?r:new Set(c);if(l.has(o))return!0;if(u.has(o))return!1}export{i as t};
