import n from"../../prop-types/index.js";function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e(n)}function t(){var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n);var e=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),e}function o(n){document.body.style.paddingRight=n>0?"".concat(n,"px"):null}function r(){return document.body.clientWidth<window.innerWidth}function i(){var n=window.getComputedStyle(document.body,null);return parseInt(n&&n.getPropertyValue("padding-right")||0,10)}function c(){var n=t(),e=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],i=e?parseInt(e.style.paddingRight||0,10):0;r()&&o(i+n)}function u(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:undefined;return e?n.split(" ").map((function(n){return e[n]||n})).join(" "):n}function d(n,e){var t={};return Object.keys(n).forEach((function(o){-1===e.indexOf(o)&&(t[o]=n[o])})),t}function l(n,e){for(var t,o=Array.isArray(e)?e:[e],r=o.length,i={};r>0;)i[t=o[r-=1]]=n[t];return i}var a={};function f(n){a[n]||("undefined"!=typeof console&&console.error(n),a[n]=!0)}function p(n,e){return function(t,o,r){null!==t[o]&&void 0!==t[o]&&f('"'.concat(o,'" property of "').concat(r,'" has been deprecated.\n').concat(e));for(var i=arguments.length,c=new Array(i>3?i-3:0),u=3;u<i;u++)c[u-3]=arguments[u];return n.apply(void 0,[t,o,r].concat(c))}}var y="object"===("undefined"==typeof window?"undefined":e(window))&&window.Element||function(){};function s(n,e,t){if(!(n[e]instanceof y))return new Error("Invalid prop `"+e+"` supplied to `"+t+"`. Expected prop to be an instance of Element. Validation failed.")}var b=n.oneOfType([n.string,n.func,s,n.shape({current:n.any})]),m=n.oneOfType([n.func,n.string,n.shape({$$typeof:n.symbol,render:n.func}),n.arrayOf(n.oneOfType([n.func,n.string,n.shape({$$typeof:n.symbol,render:n.func})]))]),h={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},v=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],g={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},w=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(n){return!(!n||"object"!==e(n))&&"current"in n}function E(n){var t=e(n);return null!=n&&("object"===t||"function"===t)}function j(n){if(!E(n))return!1;var e=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}(n);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object Proxy]"===e}function O(n){if(x(n))return n.current;if(j(n))return n();if("string"==typeof n&&w){var e=document.querySelectorAll(n);if(e.length||(e=document.querySelectorAll("#".concat(n))),!e.length)throw new Error("The target '".concat(n,"' could not be identified in the dom, tip: check spelling"));return e}return n}function S(n){return null!==n&&(Array.isArray(n)||w&&"number"==typeof n.length)}function A(n,e){var t=O(n);return e?S(t)?t:null===t?[]:[t]:S(t)?t[0]:t}var C=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];export{s as DOMElement,v as TransitionPropTypeKeys,h as TransitionTimeouts,w as canUseDOM,c as conditionallyUpdateScrollbar,p as deprecated,O as findDOMElements,C as focusableElements,i as getOriginalBodyPadding,t as getScrollbarWidth,A as getTarget,S as isArrayOrNodeList,r as isBodyOverflowing,j as isFunction,E as isObject,x as isReactRefObj,g as keyCodes,u as mapToCssModules,d as omit,l as pick,o as setScrollbarWidth,m as tagPropType,b as targetPropType,f as warnOnce};
//# sourceMappingURL=utils.js.map
