function n(n){var e;return n instanceof Element&&null!=(e=n.ownerDocument)?e:document}function e(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var t=e(),r=n=>n?"":void 0,o=n=>!!n||void 0,u=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")};function i(e){var t=n(e);return null==t?void 0:t.activeElement}function a(n,e){return!!n&&(n===e||n.contains(e))}function l(n){var{key:e,keyCode:t}=n;return t>=37&&t<=40&&0!==e.indexOf("Arrow")?"Arrow"+e:e}function c(n){var e,t,r,o=i(null!=(e=n.target)?e:n.currentTarget),u=n.nativeEvent.explicitOriginalTarget;return null!=(t=null!=(r=n.relatedTarget)?r:u)?t:o}function d(n){return 0!==n.button}export{o as ariaAttr,e as canUseDOM,a as contains,u as cx,r as dataAttr,i as getActiveElement,n as getOwnerDocument,c as getRelatedTarget,t as isBrowser,d as isRightClick,l as normalizeEventKey};
//# sourceMappingURL=dom.js.map
