"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("lodash"),l=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","enterKeyHint","form","id","inputMode","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"],c=["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],i=[...l,...c],m=["alt","height","src","srcSet","width","loading"],p=(e,t={})=>{const{htmlProps:s=i,includeAria:o=!0}=t,n={},u={};return a.forEach(e,(d,r)=>{const h=o&&(/^aria-.*$/.test(r)||r==="role"),g=a.includes(s,r)||h?n:u;g[r]=d}),[n,u]},y=(e,t)=>e&&t,M=(e,t)=>e&&e!==!0&&`${e} ${t}`,P=(e,t)=>{const{handledProps:s=[]}=e;return Object.keys(t).reduce((o,n)=>(n==="childKey"||n==="innerRef"||s.indexOf(n)===-1&&(o[n]=t[n]),o),{})};exports.getUnhandledProps=P;exports.htmlImageProps=m;exports.htmlInputAttrs=l;exports.htmlInputEvents=c;exports.htmlInputProps=i;exports.partitionHTMLProps=p;exports.useKeyOnly=y;exports.useValueAndKey=M;
