@siberiacancode/reactuse 0.0.104 → 0.0.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-bNFZI5lN.js → _rollupPluginBabelHelpers-CV7lkadd.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-CV7lkadd.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
  5. package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
  6. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  7. package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
  8. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  9. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  10. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  11. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  12. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  13. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  14. package/dist/cjs/hooks/useCookie/useCookie.js +2 -2
  15. package/dist/cjs/hooks/useCookie/useCookie.js.map +1 -1
  16. package/dist/cjs/hooks/useCookies/useCookies.js +2 -2
  17. package/dist/cjs/hooks/useCopy/useCopy.js +2 -2
  18. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  19. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  20. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  21. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  22. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  23. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  24. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  25. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  26. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  27. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  28. package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  29. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  30. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  31. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  32. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  33. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  34. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  35. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  36. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  37. package/dist/cjs/hooks/useField/useField.js +2 -2
  38. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  39. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  40. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  41. package/dist/cjs/hooks/useFul/useFul.js +3 -0
  42. package/dist/cjs/hooks/useFul/useFul.js.map +1 -0
  43. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  44. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  45. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  46. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  47. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  48. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  49. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  50. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  51. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  52. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  53. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  54. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  55. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  56. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  57. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  58. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  59. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  60. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  61. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  62. package/dist/cjs/hooks/useLess/useLess.js +1 -1
  63. package/dist/cjs/hooks/useLess/useLess.js.map +1 -1
  64. package/dist/cjs/hooks/useList/useList.js +2 -2
  65. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  66. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  67. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  68. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  69. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  70. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  71. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  72. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  73. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  74. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  75. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  76. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  77. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  78. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  79. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  80. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  81. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  82. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  83. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  84. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  85. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  86. package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
  87. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  88. package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
  89. package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
  90. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  91. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  92. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  93. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  94. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  95. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  96. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  97. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  98. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  99. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  100. package/dist/cjs/hooks/useRefState/useRefState.js +2 -2
  101. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  102. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  103. package/dist/cjs/hooks/useRerender/useRerender.js +1 -1
  104. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  105. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  106. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  107. package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
  108. package/dist/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  109. package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
  110. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  111. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  112. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  113. package/dist/cjs/hooks/useStateHistory/useStateHistory.js +2 -2
  114. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  115. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  116. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  117. package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
  118. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  119. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  120. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
  121. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  122. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  123. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  124. package/dist/cjs/hooks/useTimer/useTimer.js.map +1 -1
  125. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  126. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  127. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  128. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  129. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  130. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  131. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  132. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  133. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  134. package/dist/cjs/index.js +2 -2
  135. package/dist/cjs/utils/helpers/copy.js +2 -2
  136. package/dist/cjs/utils/helpers/debounce.js +1 -1
  137. package/dist/cjs/utils/helpers/getDate.js +1 -1
  138. package/dist/cjs/utils/helpers/getElement.js +1 -1
  139. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  140. package/dist/cjs/utils/helpers/index.js +2 -2
  141. package/dist/cjs/utils/helpers/isTarget.js +2 -2
  142. package/dist/cjs/utils/helpers/throttle.js +1 -1
  143. package/dist/esm/{_rollupPluginBabelHelpers-F2c-yday.js → _rollupPluginBabelHelpers-5Q3v93KV.js} +2 -2
  144. package/dist/esm/_rollupPluginBabelHelpers-5Q3v93KV.js.map +1 -0
  145. package/dist/esm/hooks/index.js +2 -2
  146. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  147. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  148. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  149. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  150. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  151. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  152. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  153. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  154. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  155. package/dist/esm/hooks/useConst/useConst.js +1 -1
  156. package/dist/esm/hooks/useCookie/useCookie.js +2 -2
  157. package/dist/esm/hooks/useCookie/useCookie.js.map +1 -1
  158. package/dist/esm/hooks/useCookies/useCookies.js +2 -2
  159. package/dist/esm/hooks/useCopy/useCopy.js +2 -2
  160. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  161. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  162. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  163. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  164. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  165. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  166. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  167. package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  168. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  169. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  170. package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  171. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  172. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  173. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  174. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  175. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  176. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  177. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  178. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  179. package/dist/esm/hooks/useField/useField.js +2 -2
  180. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  181. package/dist/esm/hooks/useFocus/useFocus.js +2 -2
  182. package/dist/esm/hooks/useFps/useFps.js +2 -2
  183. package/dist/esm/hooks/useFul/useFul.js +3 -0
  184. package/dist/esm/hooks/useFul/useFul.js.map +1 -0
  185. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  186. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  187. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  188. package/dist/esm/hooks/useHash/useHash.js +2 -2
  189. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  190. package/dist/esm/hooks/useHover/useHover.js +2 -2
  191. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  192. package/dist/esm/hooks/useImage/useImage.js +2 -2
  193. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  194. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  195. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  196. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  197. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  198. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  199. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  200. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  201. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  202. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  203. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  204. package/dist/esm/hooks/useLess/useLess.js +1 -1
  205. package/dist/esm/hooks/useLess/useLess.js.map +1 -1
  206. package/dist/esm/hooks/useList/useList.js +2 -2
  207. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  208. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  209. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  210. package/dist/esm/hooks/useMap/useMap.js +2 -2
  211. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  212. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  213. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  214. package/dist/esm/hooks/useMount/useMount.js +1 -1
  215. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  216. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  217. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  218. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  219. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  220. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  221. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  222. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  223. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  224. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  225. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  226. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  227. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  228. package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
  229. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  230. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  231. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  232. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  233. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  234. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  235. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  236. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  237. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  238. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  239. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  240. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  241. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  242. package/dist/esm/hooks/useRefState/useRefState.js +2 -2
  243. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  244. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  245. package/dist/esm/hooks/useRerender/useRerender.js +1 -1
  246. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  247. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  248. package/dist/esm/hooks/useScript/useScript.js +2 -2
  249. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  250. package/dist/esm/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  251. package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
  252. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  253. package/dist/esm/hooks/useSet/useSet.js +2 -2
  254. package/dist/esm/hooks/useShare/useShare.js +2 -2
  255. package/dist/esm/hooks/useStateHistory/useStateHistory.js +2 -2
  256. package/dist/esm/hooks/useStep/useStep.js +2 -2
  257. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  258. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  259. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  260. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  261. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  262. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
  263. package/dist/esm/hooks/useTime/useTime.js +2 -2
  264. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  265. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  266. package/dist/esm/hooks/useTimer/useTimer.js.map +1 -1
  267. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  268. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  269. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  270. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  271. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  272. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  273. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  274. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  275. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  276. package/dist/esm/index.js +2 -2
  277. package/dist/esm/utils/helpers/copy.js +2 -2
  278. package/dist/esm/utils/helpers/debounce.js +1 -1
  279. package/dist/esm/utils/helpers/getDate.js +1 -1
  280. package/dist/esm/utils/helpers/getElement.js +1 -1
  281. package/dist/esm/utils/helpers/getRetry.js +1 -1
  282. package/dist/esm/utils/helpers/index.js +2 -2
  283. package/dist/esm/utils/helpers/isTarget.js +2 -2
  284. package/dist/esm/utils/helpers/throttle.js +1 -1
  285. package/dist/types/index.d.ts +15 -6
  286. package/package.json +91 -91
  287. package/dist/cjs/_rollupPluginBabelHelpers-bNFZI5lN.js.map +0 -1
  288. package/dist/esm/_rollupPluginBabelHelpers-F2c-yday.js.map +0 -1
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as e,useRef as t,useEffect as n}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as o}from"../useRefState/useRefState.js";var i=function(){var i,v,s=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=null!==(i=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==i?i:{},a=null!==(v=c.initialValue)&&void 0!==v&&v,f=e(a),d=r(f,2),m=d[0],p=d[1],g=o(),b=t(c);b.current=c;var h=t(null),E=function(){var r;return null===(r=h.current)||void 0===r?void 0:r.focus()},j=function(){var r;return null===(r=h.current)||void 0===r?void 0:r.blur()};return n((function(){if(s||g.state){var r=s?u(s):g.current;if(r){h.current=r;var e=function(r){var e,t,n,u;null===(e=b.current)||void 0===e||null===(t=e.onFocus)||void 0===t||t.call(e,r),(!E||null!==(n=(u=r.target).matches)&&void 0!==n&&n.call(u,":focus-visible"))&&p(!0)},t=function(r){var e,t;null===(e=b.current)||void 0===e||null===(t=e.onBlur)||void 0===t||t.call(e,r),p(!1)};return a&&r.focus(),r.addEventListener("focus",e),r.addEventListener("blur",t),function(){r.removeEventListener("focus",e),r.removeEventListener("blur",t)}}}}),[s,g.state]),s?{focus:E,blur:j,focused:m}:{ref:g,focus:E,blur:j,focused:m}};export{i as useFocus};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as e,useRef as t,useEffect as n}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as o}from"../useRefState/useRefState.js";var i=function(){var i,v,s=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=null!==(i=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==i?i:{},a=null!==(v=c.initialValue)&&void 0!==v&&v,f=e(a),d=r(f,2),m=d[0],p=d[1],g=o(),b=t(c);b.current=c;var h=t(null),E=function(){var r;return null===(r=h.current)||void 0===r?void 0:r.focus()},j=function(){var r;return null===(r=h.current)||void 0===r?void 0:r.blur()};return n((function(){if(s||g.state){var r=s?u(s):g.current;if(r){h.current=r;var e=function(r){var e,t,n,u;null===(e=b.current)||void 0===e||null===(t=e.onFocus)||void 0===t||t.call(e,r),(!E||null!==(n=(u=r.target).matches)&&void 0!==n&&n.call(u,":focus-visible"))&&p(!0)},t=function(r){var e,t;null===(e=b.current)||void 0===e||null===(t=e.onBlur)||void 0===t||t.call(e,r),p(!1)};return a&&r.focus(),r.addEventListener("focus",e),r.addEventListener("blur",t),function(){r.removeEventListener("focus",e),r.removeEventListener("blur",t)}}}}),[s,g.state]),s?{focus:E,blur:j,focused:m}:{ref:g,focus:E,blur:j,focused:m}};export{i as useFocus};
3
3
  //# sourceMappingURL=useFocus.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useEffect as e}from"react";var a=function(){var a=n(0),o=r(a,2),t=o[0],i=o[1];return e((function(){var r,n=0,e=performance.now(),a=function(){n+=1;var o=performance.now(),t=o-e;if(t>=1e3){var m=Math.round(1e3*n/t);i(m),n=0,e=o}r=requestAnimationFrame(a)};return r=requestAnimationFrame(a),function(){cancelAnimationFrame(r)}}),[]),t};export{a as useFps};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useEffect as e}from"react";var a=function(){var a=n(0),o=r(a,2),t=o[0],i=o[1];return e((function(){var r,n=0,e=performance.now(),a=function(){n+=1;var o=performance.now(),t=o-e;if(t>=1e3){var m=Math.round(1e3*n/t);i(m),n=0,e=o}r=requestAnimationFrame(a)};return r=requestAnimationFrame(a),function(){cancelAnimationFrame(r)}}),[]),t};export{a as useFps};
3
3
  //# sourceMappingURL=useFps.js.map
@@ -0,0 +1,3 @@
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{useEffect as o}from"react";var r=function(r){return o((function(){console.warn("Warning: You forgot to delete the 'useFul' hook.")}),[]),r};export{r as useFul};
3
+ //# sourceMappingURL=useFul.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFul.js","sources":["../../../../src/hooks/useFul/useFul.ts"],"sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @name useFul\n * @description - Hook that can be so useful\n * @category Humor\n *\n * @warning - This hook is a joke. Please do not use it in production code!\n *\n * @template Value The type of the value\n * @param {Value} [value] The value to be returned\n * @returns {Value} The value passed to the hook\n *\n * @example\n * const value = useFul(state);\n */\nexport const useFul = <Value>(value?: Value) => {\n useEffect(() => {\n console.warn(\"Warning: You forgot to delete the 'useFul' hook.\");\n }, []);\n\n return value;\n};\n"],"names":["useFul","value","useEffect","console","warn"],"mappings":";sCAgBaA,EAAS,SAAQC,GAK5B,OAJAC,GAAU,WACRC,QAAQC,KAAK,mDACd,GAAE,IAEIH,CACT"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useEffect as l}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as t}from"../../utils/helpers/isTarget.js";import{useRefState as o}from"../useRefState/useRefState.js";const c=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=(()=>{if("undefined"==typeof document)return!1;const e=c[0],n={};for(const l of c){const r=l?.[1];if(r in document){for(const[r,t]of l.entries())n[e[r]]=t;return n}}return!1})(),s={change:u.fullscreenchange,error:u.fullscreenerror};let i={request:(e=document.documentElement,n)=>new Promise(((l,r)=>{const t=()=>{i.off("change",t),l()};i.on("change",t);const o=e[u.requestFullscreen](n);o instanceof Promise&&o.then(t).catch(r)})),exit:()=>new Promise(((e,n)=>{if(!i.isFullscreen)return void e();const l=()=>{i.off("change",l),e()};i.on("change",l);const r=document[u.exitFullscreen]();r instanceof Promise&&r.then(l).catch(n)})),toggle:(e,n)=>i.isFullscreen?i.exit():i.request(e,n),onchange(e){i.on("change",e)},onerror(e){i.on("error",e)},on(e,n){const l=s[e];l&&document.addEventListener(l,n,!1)},off(e,n){const l=s[e];l&&document.removeEventListener(l,n,!1)},raw:u};Object.defineProperties(i,{isFullscreen:{get:()=>Boolean(document[u.fullscreenElement])},element:{enumerable:!0,get:()=>document[u.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[u.fullscreenEnabled])}}),u||(i={isEnabled:!1});var a=i,f=function(){var c,u=t(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],i=n(null!==(c=null==s?void 0:s.initialValue)&&void 0!==c&&c),f=e(i,2),m=f[0],d=f[1],g=o(),b=function(){if(a.isEnabled){var e,n;if(a.isFullscreen)null==s||null===(e=s.onEnter)||void 0===e||e.call(s);else a.off("change",b),null==s||null===(n=s.onExit)||void 0===n||n.call(s);d(a.isFullscreen)}},h=function(){var e=u?r(u):g.current;if(e&&a.isEnabled)try{a.request(e),a.on("change",b)}catch(e){console.error(e)}},E=function(){a.isEnabled&&a.exit()},F=function(){if(m)return E();h()};return l((function(){return function(){a.isEnabled&&a.off("change",b)}}),[]),u?{enter:h,exit:E,toggle:F,value:m}:{ref:g,enter:h,exit:E,toggle:F,value:m}};export{f as useFullscreen};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useEffect as l}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as t}from"../../utils/helpers/isTarget.js";import{useRefState as o}from"../useRefState/useRefState.js";const c=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=(()=>{if("undefined"==typeof document)return!1;const e=c[0],n={};for(const l of c){const r=l?.[1];if(r in document){for(const[r,t]of l.entries())n[e[r]]=t;return n}}return!1})(),s={change:u.fullscreenchange,error:u.fullscreenerror};let i={request:(e=document.documentElement,n)=>new Promise(((l,r)=>{const t=()=>{i.off("change",t),l()};i.on("change",t);const o=e[u.requestFullscreen](n);o instanceof Promise&&o.then(t).catch(r)})),exit:()=>new Promise(((e,n)=>{if(!i.isFullscreen)return void e();const l=()=>{i.off("change",l),e()};i.on("change",l);const r=document[u.exitFullscreen]();r instanceof Promise&&r.then(l).catch(n)})),toggle:(e,n)=>i.isFullscreen?i.exit():i.request(e,n),onchange(e){i.on("change",e)},onerror(e){i.on("error",e)},on(e,n){const l=s[e];l&&document.addEventListener(l,n,!1)},off(e,n){const l=s[e];l&&document.removeEventListener(l,n,!1)},raw:u};Object.defineProperties(i,{isFullscreen:{get:()=>Boolean(document[u.fullscreenElement])},element:{enumerable:!0,get:()=>document[u.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[u.fullscreenEnabled])}}),u||(i={isEnabled:!1});var a=i,f=function(){var c,u=t(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],i=n(null!==(c=null==s?void 0:s.initialValue)&&void 0!==c&&c),f=e(i,2),m=f[0],d=f[1],g=o(),b=function(){if(a.isEnabled){var e,n;if(a.isFullscreen)null==s||null===(e=s.onEnter)||void 0===e||e.call(s);else a.off("change",b),null==s||null===(n=s.onExit)||void 0===n||n.call(s);d(a.isFullscreen)}},h=function(){var e=u?r(u):g.current;if(e&&a.isEnabled)try{a.request(e),a.on("change",b)}catch(e){console.error(e)}},E=function(){a.isEnabled&&a.exit()},F=function(){if(m)return E();h()};return l((function(){return function(){a.isEnabled&&a.off("change",b)}}),[]),u?{enter:h,exit:E,toggle:F,value:m}:{ref:g,enter:h,exit:E,toggle:F,value:m}};export{f as useFullscreen};
3
3
  //# sourceMappingURL=useFullscreen.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as t,c as e,g as n,h as a,a as o}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r,useEffect as u}from"react";import{useRaf as i}from"../useRaf/useRaf.js";var s=function(){var s="undefined"!=typeof navigator&&"getGamepads"in navigator,c=r({}),d=t(c,2),p=d[0],b=d[1],v=function(t){var n=[],a="vibrationActuator"in t?t.vibrationActuator:null;return a&&n.push(a),t.hapticActuators&&n.push.apply(n,o(t.hapticActuators)),e(e({},t),{},{hapticActuators:n})},f=i((function(){var t,e,n=a(null!==(t=navigator.getGamepads())&&void 0!==t?t:[]);try{for(n.s();!(e=n.n()).done;){var o=e.value;o&&p[o.index]&&(p[o.index]=v(o))}}catch(t){n.e(t)}finally{n.f()}}),{enabled:!!Object.keys(p).length}).active;return u((function(){if(s){var t=navigator.getGamepads();b(t.reduce((function(t,a){return e(e({},t),a&&n({},a.index,v(a)))}),{}))}}),[]),u((function(){var t=function(t){var a=t.gamepad;b(e(e({},p),{},n({},a.index,v(a))))},a=function(t){var n=t.gamepad,a=e({},p);delete a[n.index],b(a)};return document.addEventListener("gamepadconnected",t),document.addEventListener("gamepaddisconnected",a),function(){document.removeEventListener("gamepadconnected",t),document.removeEventListener("gamepaddisconnected",a)}}),[]),{active:f,supported:s,gamepads:Object.values(p)}},c=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};export{c as mapGamepadToXbox360Controller,s as useGamepad};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as t,c as e,g as n,h as a,a as o}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r,useEffect as u}from"react";import{useRaf as i}from"../useRaf/useRaf.js";var s=function(){var s="undefined"!=typeof navigator&&"getGamepads"in navigator,c=r({}),d=t(c,2),p=d[0],b=d[1],v=function(t){var n=[],a="vibrationActuator"in t?t.vibrationActuator:null;return a&&n.push(a),t.hapticActuators&&n.push.apply(n,o(t.hapticActuators)),e(e({},t),{},{hapticActuators:n})},f=i((function(){var t,e,n=a(null!==(t=navigator.getGamepads())&&void 0!==t?t:[]);try{for(n.s();!(e=n.n()).done;){var o=e.value;o&&p[o.index]&&(p[o.index]=v(o))}}catch(t){n.e(t)}finally{n.f()}}),{enabled:!!Object.keys(p).length}).active;return u((function(){if(s){var t=navigator.getGamepads();b(t.reduce((function(t,a){return e(e({},t),a&&n({},a.index,v(a)))}),{}))}}),[]),u((function(){var t=function(t){var a=t.gamepad;b(e(e({},p),{},n({},a.index,v(a))))},a=function(t){var n=t.gamepad,a=e({},p);delete a[n.index],b(a)};return document.addEventListener("gamepadconnected",t),document.addEventListener("gamepaddisconnected",a),function(){document.removeEventListener("gamepadconnected",t),document.removeEventListener("gamepaddisconnected",a)}}),[]),{active:f,supported:s,gamepads:Object.values(p)}},c=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};export{c as mapGamepadToXbox360Controller,s as useGamepad};
3
3
  //# sourceMappingURL=useGamepad.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as t,c as a}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as e,useEffect as i}from"react";var o=function(o){var l=e({loading:!0,error:null,timestamp:Date.now(),accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null}),n=t(l,2),u=n[0],r=n[1];return i((function(){var t=function(t){var e=t.coords,i=t.timestamp;r(a(a({},u),{},{loading:!1,timestamp:i,latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,speed:e.speed}))},e=function(t){r(a(a({},u),{},{loading:!1,error:t}))};navigator.geolocation.getCurrentPosition(t,e,o);var i=navigator.geolocation.watchPosition(t,e,o);return function(){navigator.geolocation.clearWatch(i)}}),[null==o?void 0:o.enableHighAccuracy,null==o?void 0:o.maximumAge,null==o?void 0:o.timeout]),u};export{o as useGeolocation};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as t,c as a}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as e,useEffect as i}from"react";var o=function(o){var l=e({loading:!0,error:null,timestamp:Date.now(),accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null}),n=t(l,2),u=n[0],r=n[1];return i((function(){var t=function(t){var e=t.coords,i=t.timestamp;r(a(a({},u),{},{loading:!1,timestamp:i,latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,speed:e.speed}))},e=function(t){r(a(a({},u),{},{loading:!1,error:t}))};navigator.geolocation.getCurrentPosition(t,e,o);var i=navigator.geolocation.watchPosition(t,e,o);return function(){navigator.geolocation.clearWatch(i)}}),[null==o?void 0:o.enableHighAccuracy,null==o?void 0:o.maximumAge,null==o?void 0:o.timeout]),u};export{o as useGeolocation};
3
3
  //# sourceMappingURL=useGeolocation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as o,useEffect as e}from"react";var r=function(){return decodeURIComponent(window.location.hash.replace("#",""))},t=function(){var t=o(window?r():""),i=n(t,2),a=i[0],c=i[1];return e((function(){var n=function(){return c(r())};return window.addEventListener("hashchange",n),function(){window.removeEventListener("hashchange",n)}})),[a,function(n){window.location.hash=n,c(n)}]};export{t as useHash};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as o,useEffect as e}from"react";var r=function(){return decodeURIComponent(window.location.hash.replace("#",""))},t=function(){var t=o(window?r():""),i=n(t,2),a=i[0],c=i[1];return e((function(){var n=function(){return c(r())};return window.addEventListener("hashchange",n),function(){window.removeEventListener("hashchange",n)}})),[a,function(n){window.location.hash=n,c(n)}]};export{t as useHash};
3
3
  //# sourceMappingURL=useHash.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{a as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useRef as t,useEffect as n}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useEvent as i}from"../useEvent/useEvent.js";import{useRefState as u}from"../useRefState/useRefState.js";var l=function(e,t){return e.toLowerCase().split(/[+_,\-]/g).map((function(e){return e.trim()})).every((function(e){return t.find((function(t){return e===t.code.toLocaleLowerCase()||e===t.key.toLocaleLowerCase()||e===t.alias.toLocaleLowerCase()}))}))},a=function(){var a,c=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=c?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=c?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=c?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],f=u(window),m=t([]),p=null===(a=null==v?void 0:v.enabled)||void 0===a||a,g=i((function(t){var n,r;if(p&&!m.current.some((function(e){return e.code===t.code}))){var o=null!==(n=null==v||null===(r=v.alias)||void 0===r?void 0:r[t.key])&&void 0!==n?n:t.code,i=[].concat(e(m.current),[{key:t.key,code:t.code,alias:o}]);m.current=i,s.split(",").map((function(e){return e.trim()})).some((function(e){return l(e,i)}))&&(t.preventDefault(),d(t))}})),L=i((function(e){p&&(m.current=m.current.filter((function(t){return t.code!==e.code})))}));if(n((function(){if(m.current=[],c||f.state||p){var e=c?r(c):f.current;if(e)return e.addEventListener("keydown",g),e.addEventListener("keyup",L),function(){e.removeEventListener("keydown",g),e.removeEventListener("keyup",L)}}}),[c,f.state,p,s,g,L]),!c)return f};export{l as isHotkeyMatch,a as useHotkeys};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{a as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useRef as t,useEffect as n}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useEvent as i}from"../useEvent/useEvent.js";import{useRefState as u}from"../useRefState/useRefState.js";var l=function(e,t){return e.toLowerCase().split(/[+_,\-]/g).map((function(e){return e.trim()})).every((function(e){return t.find((function(t){return e===t.code.toLocaleLowerCase()||e===t.key.toLocaleLowerCase()||e===t.alias.toLocaleLowerCase()}))}))},a=function(){var a,c=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=c?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=c?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=c?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],f=u(window),m=t([]),p=null===(a=null==v?void 0:v.enabled)||void 0===a||a,g=i((function(t){var n,r;if(p&&!m.current.some((function(e){return e.code===t.code}))){var o=null!==(n=null==v||null===(r=v.alias)||void 0===r?void 0:r[t.key])&&void 0!==n?n:t.code,i=[].concat(e(m.current),[{key:t.key,code:t.code,alias:o}]);m.current=i,s.split(",").map((function(e){return e.trim()})).some((function(e){return l(e,i)}))&&(t.preventDefault(),d(t))}})),L=i((function(e){p&&(m.current=m.current.filter((function(t){return t.code!==e.code})))}));if(n((function(){if(m.current=[],c||f.state||p){var e=c?r(c):f.current;if(e)return e.addEventListener("keydown",g),e.addEventListener("keyup",L),function(){e.removeEventListener("keydown",g),e.removeEventListener("keyup",L)}}}),[c,f.state,p,s,g,L]),!c)return f};export{l as isHotkeyMatch,a as useHotkeys};
3
3
  //# sourceMappingURL=useHotkeys.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useRef as r,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as v}from"../useRefState/useRefState.js";var u=function(){var u=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?"object"===e(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onEntry:arguments.length<=1?void 0:arguments[1]}:"object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:{onEntry:arguments.length<=0?void 0:arguments[0]},a=n(!1),d=t(a,2),m=d[0],c=d[1],f=v(),g=r(s);return g.current=s,o((function(){if(u||f.state){var e=u?i(u):f.current;if(e){var t=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onEntry)||void 0===n||n.call(t,e),c(!0)},n=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onLeave)||void 0===n||n.call(t,e),c(!1)};return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n),function(){e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",n)}}}}),[u,f.state]),u?m:[f,m]};export{u as useHover};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useRef as r,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as v}from"../useRefState/useRefState.js";var u=function(){var u=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?"object"===e(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onEntry:arguments.length<=1?void 0:arguments[1]}:"object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:{onEntry:arguments.length<=0?void 0:arguments[0]},a=n(!1),d=t(a,2),m=d[0],c=d[1],f=v(),g=r(s);return g.current=s,o((function(){if(u||f.state){var e=u?i(u):f.current;if(e){var t=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onEntry)||void 0===n||n.call(t,e),c(!0)},n=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onLeave)||void 0===n||n.call(t,e),c(!1)};return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n),function(){e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",n)}}}}),[u,f.state]),u?m:[f,m]};export{u as useHover};
3
3
  //# sourceMappingURL=useHover.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as t,useEffect as n}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var o=["mousemove","mousedown","keydown","touchstart","wheel","resize"],r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=u.initialValue,c=void 0!==a&&a,d=u.events,s=void 0===d?o:d,l=t(c),m=e(l,2),v=m[0],f=m[1],h=t(Date.now()),w=e(h,2),p=w[0],E=w[1];return n((function(){var e,t=function(){return f(!0)},n=i((function(){f(!1),E(Date.now()),clearTimeout(e),e=setTimeout(t,r)}),500),o=function(){document.hidden||n()};return e=setTimeout(t,r),s.forEach((function(e){return window.addEventListener(e,n)})),document.addEventListener("visibilitychange",o),function(){s.forEach((function(e){return window.addEventListener(e,n)})),document.removeEventListener("visibilitychange",o),clearTimeout(e)}}),[r,s]),{idle:v,lastActive:p}};export{r as useIdle};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as t,useEffect as n}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var o=["mousemove","mousedown","keydown","touchstart","wheel","resize"],r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=u.initialValue,c=void 0!==a&&a,d=u.events,s=void 0===d?o:d,l=t(c),m=e(l,2),v=m[0],f=m[1],h=t(Date.now()),w=e(h,2),p=w[0],E=w[1];return n((function(){var e,t=function(){return f(!0)},n=i((function(){f(!1),E(Date.now()),clearTimeout(e),e=setTimeout(t,r)}),500),o=function(){document.hidden||n()};return e=setTimeout(t,r),s.forEach((function(e){return window.addEventListener(e,n)})),document.addEventListener("visibilitychange",o),function(){s.forEach((function(e){return window.addEventListener(e,n)})),document.removeEventListener("visibilitychange",o),clearTimeout(e)}}),[r,s]),{idle:v,lastActive:p}};export{r as useIdle};
3
3
  //# sourceMappingURL=useIdle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{c as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useQuery as o}from"../useQuery/useQuery.js";import"react";import"../../utils/helpers/getRetry.js";import"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../useMount/useMount.js";var n=function(){var r=s(t().mark((function r(e){var s,o=arguments;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=o.length>1&&void 0!==o[1]?o[1]:{},r.abrupt("return",new Promise((function(r,t){var o=new Image,n=s.srcset,i=s.sizes,u=s.class,a=s.loading,c=s.crossorigin,p=s.referrerPolicy;o.src=e,n&&(o.srcset=n),i&&(o.sizes=i),u&&(o.className=u),a&&(o.loading=a),c&&(o.crossOrigin=c),p&&(o.referrerPolicy=p),o.onload=function(){return r(o)},o.onerror=t})));case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),i=function(s,t){var i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o((function(){return n(s,t)}),r({keys:[s].concat(e(null!==(i=u.keys)&&void 0!==i?i:[]))},u))};export{i as useImage};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{c as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useQuery as o}from"../useQuery/useQuery.js";import"react";import"../../utils/helpers/getRetry.js";import"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../useMount/useMount.js";var n=function(){var r=s(t().mark((function r(e){var s,o=arguments;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=o.length>1&&void 0!==o[1]?o[1]:{},r.abrupt("return",new Promise((function(r,t){var o=new Image,n=s.srcset,i=s.sizes,u=s.class,a=s.loading,c=s.crossorigin,p=s.referrerPolicy;o.src=e,n&&(o.srcset=n),i&&(o.sizes=i),u&&(o.className=u),a&&(o.loading=a),c&&(o.crossOrigin=c),p&&(o.referrerPolicy=p),o.onload=function(){return r(o)},o.onerror=t})));case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),i=function(s,t){var i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o((function(){return n(s,t)}),r({keys:[s].concat(e(null!==(i=u.keys)&&void 0!==i?i:[]))},u))};export{i as useImage};
3
3
  //# sourceMappingURL=useImage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as t,d as e,e as r}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useRef as o,useEffect as i}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as s}from"../../utils/helpers/isTarget.js";import{useEvent as u}from"../useEvent/useEvent.js";import{useRefState as a}from"../useRefState/useRefState.js";var c=function(){var c,f,v=s(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],p=v?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],m=null!==(c=null==p?void 0:p.direction)&&void 0!==c?c:"bottom",h=null!==(f=null==p?void 0:p.distance)&&void 0!==f?f:10,g=n(!1),b=t(g,2),j=b[0],x=b[1],E=a(),k=o(d);k.current=d;var H=u(function(){var t=e(r().mark((function t(e){var n,o,i,l,s,u,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!j){t.next=2;break}return t.abrupt("return");case 2:if(n=e.target,o=n.clientHeight,i=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,u=n.scrollWidth,a=n.scrollLeft,!({bottom:i-(l+o),top:l,right:u-(a+s),left:a}[m]<=h)){t.next=11;break}return x(!0),t.next=10,k.current(e);case 10:x(!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());return i((function(){if(v||E.state){var t=v?l(v):E.current;if(t)return t.addEventListener("scroll",H),function(){t.removeEventListener("scroll",H)}}}),[v,E.state,m,h]),v?j:{ref:E,loading:j}};export{c as useInfiniteScroll};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as t,d as e,e as r}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useRef as o,useEffect as i}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as s}from"../../utils/helpers/isTarget.js";import{useEvent as u}from"../useEvent/useEvent.js";import{useRefState as a}from"../useRefState/useRefState.js";var c=function(){var c,f,v=s(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],p=v?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],m=null!==(c=null==p?void 0:p.direction)&&void 0!==c?c:"bottom",h=null!==(f=null==p?void 0:p.distance)&&void 0!==f?f:10,g=n(!1),b=t(g,2),j=b[0],x=b[1],E=a(),k=o(d);k.current=d;var H=u(function(){var t=e(r().mark((function t(e){var n,o,i,l,s,u,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!j){t.next=2;break}return t.abrupt("return");case 2:if(n=e.target,o=n.clientHeight,i=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,u=n.scrollWidth,a=n.scrollLeft,!({bottom:i-(l+o),top:l,right:u-(a+s),left:a}[m]<=h)){t.next=11;break}return x(!0),t.next=10,k.current(e);case 10:x(!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());return i((function(){if(v||E.state){var t=v?l(v):E.current;if(t)return t.addEventListener("scroll",H),function(){t.removeEventListener("scroll",H)}}}),[v,E.state,m,h]),v?j:{ref:E,loading:j}};export{c as useInfiniteScroll};
3
3
  //# sourceMappingURL=useInfiniteScroll.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as t,useRef as r,useEffect as o}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var s=function(){var s,v=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=null===(s=null==a?void 0:a.enabled)||void 0===s||s,c=t(),f=e(c,2),g=f[0],m=f[1],h=u(),p=r(null==a?void 0:a.onChange);return p.current=null==a?void 0:a.onChange,o((function(){if(d||v||h.state){var t=v?l(v):h.current;if(t){var r=new IntersectionObserver((function(n){var t,r=e(n,1)[0];m(r),null===(t=p.current)||void 0===t||t.call(p,r)}),n(n({},a),{},{root:null!=a&&a.root?l(a.root):document}));return r.observe(t),function(){r.disconnect()}}}}),[v,h.state,null==a?void 0:a.rootMargin,null==a?void 0:a.threshold,null==a?void 0:a.root,d]),v?{entry:g,inView:!(null==g||!g.isIntersecting)}:{ref:h,entry:g,inView:!(null==g||!g.isIntersecting)}};export{s as useIntersectionObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as t,useRef as r,useEffect as o}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var s=function(){var s,v=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=null===(s=null==a?void 0:a.enabled)||void 0===s||s,c=t(),f=e(c,2),g=f[0],m=f[1],h=u(),p=r(null==a?void 0:a.onChange);return p.current=null==a?void 0:a.onChange,o((function(){if(d||v||h.state){var t=v?l(v):h.current;if(t){var r=new IntersectionObserver((function(n){var t,r=e(n,1)[0];m(r),null===(t=p.current)||void 0===t||t.call(p,r)}),n(n({},a),{},{root:null!=a&&a.root?l(a.root):document}));return r.observe(t),function(){r.disconnect()}}}}),[v,h.state,null==a?void 0:a.rootMargin,null==a?void 0:a.threshold,null==a?void 0:a.root,d]),v?{entry:g,inView:!(null==g||!g.isIntersecting)}:{ref:h,entry:g,inView:!(null==g||!g.isIntersecting)}};export{s as useIntersectionObserver};
3
3
  //# sourceMappingURL=useIntersectionObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{b as r,_ as n}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as e,useRef as t,useEffect as u}from"react";var l=function(){for(var l,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var f=a[0],v=null!==(l="number"==typeof a[1]?a[1]:a[1].interval)&&void 0!==l?l:1e3,m="object"===r(a[1])?a[1]:a[2],p=null===(o=null==m?void 0:m.immediately)||void 0===o||o,s=e(null==p||p),b=n(s,2),d=b[0],g=b[1],y=t(),j=t(f);j.current=f,u((function(){if(d)return y.current=setInterval((function(){return j.current()}),v),function(){clearInterval(y.current)}}),[d,v]);return{active:d,pause:function(){return g(!1)},resume:function(){v<=0||g(!0)},toggle:function(){return g(!d)}}};export{l as useInterval};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{b as r,_ as n}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as e,useRef as t,useEffect as u}from"react";var l=function(){for(var l,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var f=a[0],v=null!==(l="number"==typeof a[1]?a[1]:a[1].interval)&&void 0!==l?l:1e3,m="object"===r(a[1])?a[1]:a[2],p=null===(o=null==m?void 0:m.immediately)||void 0===o||o,s=e(null==p||p),b=n(s,2),d=b[0],g=b[1],y=t(),j=t(f);j.current=f,u((function(){if(d)return y.current=setInterval((function(){return j.current()}),v),function(){clearInterval(y.current)}}),[d,v]);return{active:d,pause:function(){return g(!1)},resume:function(){v<=0||g(!0)},toggle:function(){return g(!d)}}};export{l as useInterval};
3
3
  //# sourceMappingURL=useInterval.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useRef as r}from"react";var t=function(){var t=r(!0);return!0===t.current?(t.current=!1,!0):t.current};export{t as useIsFirstRender};
3
3
  //# sourceMappingURL=useIsFirstRender.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useLayoutEffect as e,useEffect as o}from"react";var r="undefined"!=typeof window?e:o;export{r as useIsomorphicLayoutEffect};
3
3
  //# sourceMappingURL=useIsomorphicLayoutEffect.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r,useRef as t,useEffect as n}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var l=function(){var l=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],a=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=r(!1),c=e(v,2),d=c[0],f=c[1],m=u(window),p=t(s);p.current=s;var y=t(a);return y.current=a,n((function(){if(l||m.state){var e=l?i(l):m.current;if(e){var r=function(e){var r,t=e;(Array.isArray(p.current)?p.current.includes(t.key):t.key===p.current)&&(f(!0),null===(r=y.current)||void 0===r||r.call(y,!0,t))},t=function(e){var r,t=e;(Array.isArray(p.current)?p.current.includes(t.key):t.key===p.current)&&(f(!1),null===(r=y.current)||void 0===r||r.call(y,!1,t))};return e.addEventListener("keydown",r),e.addEventListener("keyup",t),function(){e.removeEventListener("keydown",r),e.removeEventListener("keyup",t)}}}}),[l,m.state]),l?d:{pressed:d,ref:m}};export{l as useKeyPress};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r,useRef as t,useEffect as n}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var l=function(){var l=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],a=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=r(!1),c=e(v,2),d=c[0],f=c[1],m=u(window),p=t(s);p.current=s;var y=t(a);return y.current=a,n((function(){if(l||m.state){var e=l?i(l):m.current;if(e){var r=function(e){var r,t=e;(Array.isArray(p.current)?p.current.includes(t.key):t.key===p.current)&&(f(!0),null===(r=y.current)||void 0===r||r.call(y,!0,t))},t=function(e){var r,t=e;(Array.isArray(p.current)?p.current.includes(t.key):t.key===p.current)&&(f(!1),null===(r=y.current)||void 0===r||r.call(y,!1,t))};return e.addEventListener("keydown",r),e.addEventListener("keyup",t),function(){e.removeEventListener("keydown",r),e.removeEventListener("keyup",t)}}}}),[l,m.state]),l?d:{pressed:d,ref:m}};export{l as useKeyPress};
3
3
  //# sourceMappingURL=useKeyPress.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{useRef as e,useEffect as r}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-F2c-yday.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,l=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],u=o?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=o?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],a=i(window),s=e(l);s.current=l;var d=e(u);if(d.current=u,r((function(){var e=o?t(o):a.current;if(e){var r=function(e){var r=e;(Array.isArray(s.current)?s.current:[s.current]).includes(r.key)&&d.current(r)};return e.addEventListener("keydown",r,{capture:null==v?void 0:v.capture,passive:null==v?void 0:v.passive,once:null==v?void 0:v.once}),function(){e.removeEventListener("keydown",r,{capture:null==v?void 0:v.capture})}}}),[o,a.state,null==v?void 0:v.capture,null==v?void 0:v.passive,null==v?void 0:v.once]),!o)return a};export{o as useKeyPressEvent};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{useRef as e,useEffect as r}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-5Q3v93KV.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,l=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],u=o?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=o?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],a=i(window),s=e(l);s.current=l;var d=e(u);if(d.current=u,r((function(){var e=o?t(o):a.current;if(e){var r=function(e){var r=e;(Array.isArray(s.current)?s.current:[s.current]).includes(r.key)&&d.current(r)};return e.addEventListener("keydown",r,{capture:null==v?void 0:v.capture,passive:null==v?void 0:v.passive,once:null==v?void 0:v.once}),function(){e.removeEventListener("keydown",r,{capture:null==v?void 0:v.capture})}}}),[o,a.state,null==v?void 0:v.capture,null==v?void 0:v.passive,null==v?void 0:v.once]),!o)return a};export{o as useKeyPressEvent};
3
3
  //# sourceMappingURL=useKeyPressEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{useEffect as e}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as r}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-F2c-yday.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,i=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],l=r(window);if(e((function(){if(o||l.state){var e=o?t(o):l.current;if(e){var n=function(e){var t;return null==i||null===(t=i.onKeyDown)||void 0===t?void 0:t.call(i,e)},r=function(e){var t;return null==i||null===(t=i.onKeyUp)||void 0===t?void 0:t.call(i,e)};return e.addEventListener("keydown",n),e.addEventListener("keyup",r),function(){e.removeEventListener("keydown",n),e.removeEventListener("keyup",r)}}}}),[o,l.state]),!o)return l};export{o as useKeyboard};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{useEffect as e}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as r}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-5Q3v93KV.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,i=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],l=r(window);if(e((function(){if(o||l.state){var e=o?t(o):l.current;if(e){var n=function(e){var t;return null==i||null===(t=i.onKeyDown)||void 0===t?void 0:t.call(i,e)},r=function(e){var t;return null==i||null===(t=i.onKeyUp)||void 0===t?void 0:t.call(i,e)};return e.addEventListener("keydown",n),e.addEventListener("keyup",r),function(){e.removeEventListener("keydown",n),e.removeEventListener("keyup",r)}}}}),[o,l.state]),!o)return l};export{o as useKeyboard};
3
3
  //# sourceMappingURL=useKeyboard.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useEffect as r}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var d=function(){var d,l=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],f=null===(d=null==a?void 0:a.enabled)||void 0===d||d,s=n([]),v=e(s,2),c=v[0],m=v[1],p=u(window);return r((function(){if(f){m([]);var e=l?o(l):p.current;if(e){var n=function(e){var n=e;m((function(e){return e.some((function(e){return e.code===n.code}))?e:[].concat(t(e),[{key:n.key,code:n.code}])}))},r=function(e){var t=e;m((function(e){return e.filter((function(e){return e.code!==t.code}))}))};return e.addEventListener("keydown",n),e.addEventListener("keyup",r),function(){e.removeEventListener("keydown",n),e.removeEventListener("keyup",r)}}}}),[f,p.state,l]),l?c:{value:c,ref:p}};export{d as useKeysPressed};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useEffect as r}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var d=function(){var d,l=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],f=null===(d=null==a?void 0:a.enabled)||void 0===d||d,s=n([]),v=e(s,2),c=v[0],m=v[1],p=u(window);return r((function(){if(f){m([]);var e=l?o(l):p.current;if(e){var n=function(e){var n=e;m((function(e){return e.some((function(e){return e.code===n.code}))?e:[].concat(t(e),[{key:n.key,code:n.code}])}))},r=function(e){var t=e;m((function(e){return e.filter((function(e){return e.code!==t.code}))}))};return e.addEventListener("keydown",n),e.addEventListener("keyup",r),function(){e.removeEventListener("keydown",n),e.removeEventListener("keyup",r)}}}}),[f,p.state,l]),l?c:{value:c,ref:p}};export{d as useKeysPressed};
3
3
  //# sourceMappingURL=useKeysPressed.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as o}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var e=function(e,i){var u,l=r(null!==(u=null==i?void 0:i.initialValue)&&void 0!==u?u:null),a=o(l,2),n=a[0],p=a[1];return t((function(){return p(Date.now())}),[e]),n};export{e as useLastChanged};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as o}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var e=function(e,i){var u,l=r(null!==(u=null==i?void 0:i.initialValue)&&void 0!==u?u:null),a=o(l,2),n=a[0],p=a[1];return t((function(){return p(Date.now())}),[e]),n};export{e as useLastChanged};
3
3
  //# sourceMappingURL=useLastChanged.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useRef as r}from"react";var t=function(t){var e=r(t);return e.current=t,e.current};export{t as useLatest};
3
3
  //# sourceMappingURL=useLatest.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useEffect as o}from"react";var e=function(e){return o((function(){console.warn("Warning: You forgot to delete the 'useLess' hook.")}),[]),e};export{e as useLess};
3
3
  //# sourceMappingURL=useLess.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLess.js","sources":["../../../../src/hooks/useLess/useLess.ts"],"sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @name useLess\n * @description - Hook that humorously suggests using it less not for production\n * @category Humor\n *\n * @template Value The type of the value\n * @param {Value} [value] The value to be returned\n * @returns {Value} The value passed to the hook\n *\n * @example\n * const value = useLess(state);\n */\nexport const useLess = (value?: any) => {\n useEffect(() => {\n console.warn(\"Warning: You forgot to delete the 'useLess' hook.\");\n }, []);\n\n return value;\n};\n"],"names":["useLess","value","useEffect","console","warn"],"mappings":";sCAcaA,EAAU,SAACC,GAKtB,OAJAC,GAAU,WACRC,QAAQC,KAAK,oDACd,GAAE,IAEIH,CACT"}
1
+ {"version":3,"file":"useLess.js","sources":["../../../../src/hooks/useLess/useLess.ts"],"sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @name useLess\n * @description - Hook that can be so useless\n * @category Humor\n *\n * @warning - This hook is a joke. Please do not use it in production code!\n *\n * @template Value The type of the value\n * @param {Value} [value] The value to be returned\n * @returns {Value} The value passed to the hook\n *\n * @example\n * const value = useLess(state);\n */\nexport const useLess = <Value>(value?: Value) => {\n useEffect(() => {\n console.warn(\"Warning: You forgot to delete the 'useLess' hook.\");\n }, []);\n\n return value;\n};\n"],"names":["useLess","value","useEffect","console","warn"],"mappings":";sCAgBaA,EAAU,SAAQC,GAK7B,OAJAC,GAAU,WACRC,QAAQC,KAAK,oDACd,GAAE,IAEIH,CACT"}
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as n,a as t}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r}from"react";var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r(e),c=n(u,2),o=c[0],i=c[1];return{value:o,set:i,push:function(n){return i((function(r){return[].concat(t(r),[n])}))},removeAt:function(n){return i((function(r){return[].concat(t(r.slice(0,n)),t(r.slice(n+1)))}))},insertAt:function(n,r){return i((function(e){return[].concat(t(e.slice(0,n)),[r],t(e.slice(n)))}))},updateAt:function(n,t){return i((function(r){return r.map((function(r,e){return e===n?t:r}))}))},clear:function(){return i([])},reset:function(){return i(e)}}};export{e as useList};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as n,a as t}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r}from"react";var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r(e),c=n(u,2),o=c[0],i=c[1];return{value:o,set:i,push:function(n){return i((function(r){return[].concat(t(r),[n])}))},removeAt:function(n){return i((function(r){return[].concat(t(r.slice(0,n)),t(r.slice(n+1)))}))},insertAt:function(n,r){return i((function(e){return[].concat(t(e.slice(0,n)),[r],t(e.slice(n)))}))},updateAt:function(n,t){return i((function(r){return r.map((function(r,e){return e===n?t:r}))}))},clear:function(){return i([])},reset:function(){return i(e)}}};export{e as useList};
3
3
  //# sourceMappingURL=useList.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{c as o}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useStorage as e}from"../useStorage/useStorage.js";import"react";var r=function(r,t,i){return e(r,o(o({},i),{},{initialValue:t,storage:"undefined"!=typeof window?window.localStorage:void 0}))};export{r as useLocalStorage};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{c as o}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useStorage as e}from"../useStorage/useStorage.js";import"react";var r=function(r,t,i){return e(r,o(o({},i),{},{initialValue:t,storage:"undefined"!=typeof window?window.localStorage:void 0}))};export{r as useLocalStorage};
3
3
  //# sourceMappingURL=useLocalStorage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{a as o}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useEffect as t}from"react";import{useDidUpdate as c}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var n=function(n,e){t((function(){var t;return(t=console).log.apply(t,["".concat(n," mounted")].concat(o(e))),function(){return console.log("".concat(n," unmounted"))}}),[]),c((function(){var t;(t=console).log.apply(t,["".concat(n," updated")].concat(o(e)))}),e)};export{n as useLogger};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{a as o}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useEffect as t}from"react";import{useDidUpdate as c}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var n=function(n,e){t((function(){var t;return(t=console).log.apply(t,["".concat(n," mounted")].concat(o(e))),function(){return console.log("".concat(n," unmounted"))}}),[]),c((function(){var t;(t=console).log.apply(t,["".concat(n," updated")].concat(o(e)))}),e)};export{n as useLogger};
3
3
  //# sourceMappingURL=useLogger.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as l,useRef as r}from"react";var o=function(o,u){var t=l(!1),e=n(t,2),c=e[0],i=e[1],a=r(),v=r(!1),s=function(n){var l,r;null==u||null===(l=u.onStart)||void 0===l||l.call(u,n),v.current=!0,a.current=setTimeout((function(){o(n),i(!0)}),null!==(r=null==u?void 0:u.threshold)&&void 0!==r?r:400)},f=function(n){var l;if(c)null==u||null===(l=u.onFinish)||void 0===l||l.call(u,n);else if(v.current){var r;null==u||null===(r=u.onCancel)||void 0===r||r.call(u,n)}i(!1),v.current=!1,a.current&&clearTimeout(a.current)};return[{onMouseDown:s,onTouchStart:s,onMouseUp:f,onTouchEnd:f},c]};export{o as useLongPress};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as l,useRef as r}from"react";var o=function(o,u){var t=l(!1),e=n(t,2),c=e[0],i=e[1],a=r(),v=r(!1),s=function(n){var l,r;null==u||null===(l=u.onStart)||void 0===l||l.call(u,n),v.current=!0,a.current=setTimeout((function(){o(n),i(!0)}),null!==(r=null==u?void 0:u.threshold)&&void 0!==r?r:400)},f=function(n){var l;if(c)null==u||null===(l=u.onFinish)||void 0===l||l.call(u,n);else if(v.current){var r;null==u||null===(r=u.onCancel)||void 0===r||r.call(u,n)}i(!1),v.current=!1,a.current&&clearTimeout(a.current)};return[{onMouseDown:s,onTouchStart:s,onMouseUp:f,onTouchEnd:f},c]};export{o as useLongPress};
3
3
  //# sourceMappingURL=useLongPress.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r}from"react";var n=function(n){var t=r(new Map(n)),u=e(t,2),a=u[0],o=u[1];return{value:a,size:a.size,set:function(e,r){return o((function(n){return new Map(n).set(e,r)}))},has:function(e){return a.has(e)},remove:function(e){return o((function(r){if(!r.has(e))return r;var n=new Map(r);return n.delete(e),n}))},clear:function(){return o(new Map)},reset:function(){return o(new Map(n))}}};export{n as useMap};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r}from"react";var n=function(n){var t=r(new Map(n)),u=e(t,2),a=u[0],o=u[1];return{value:a,size:a.size,set:function(e,r){return o((function(n){return new Map(n).set(e,r)}))},has:function(e){return a.has(e)},remove:function(e){return o((function(r){if(!r.has(e))return r;var n=new Map(r);return n.delete(e),n}))},clear:function(){return o(new Map)},reset:function(){return o(new Map(n))}}};export{n as useMap};
3
3
  //# sourceMappingURL=useMap.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as t,c as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as s}from"../useRefState/useRefState.js";var f=function(){var f=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,h=s(),a=r({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),l=t(a,2),m=l[0],p=l[1];return o((function(){if(f||h.state){var t=f?i(f):h.current;if(t){var e=new ResizeObserver((function(t){var e=t[0];if(e){var r=e.contentRect,o=r.x,i=r.y,n=r.width,s=r.height,f=r.top,h=r.left,a=r.bottom,l=r.right;p({x:o,y:i,width:n,height:s,top:f,left:h,bottom:a,right:l})}}));return e.observe(t),function(){e.disconnect()}}}}),[f,h.state]),f?m:e({ref:h},m)};export{f as useMeasure};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as t,c as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as s}from"../useRefState/useRefState.js";var f=function(){var f=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,h=s(),a=r({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0}),l=t(a,2),m=l[0],p=l[1];return o((function(){if(f||h.state){var t=f?i(f):h.current;if(t){var e=new ResizeObserver((function(t){var e=t[0];if(e){var r=e.contentRect,o=r.x,i=r.y,n=r.width,s=r.height,f=r.top,h=r.left,a=r.bottom,l=r.right;p({x:o,y:i,width:n,height:s,top:f,left:h,bottom:a,right:l})}}));return e.observe(t),function(){e.disconnect()}}}}),[f,h.state]),f?m:e({ref:h},m)};export{f as useMeasure};
3
3
  //# sourceMappingURL=useMeasure.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useCallback as n,useSyncExternalStore as e}from"react";var t=function(){return!1},r=function(r){var a=n((function(n){var e=window.matchMedia(r);return e.addEventListener("change",n),function(){e.removeEventListener("change",n)}}),[r]);return e(a,(function(){return window.matchMedia(r).matches}),t)};export{r as useMediaQuery};
3
3
  //# sourceMappingURL=useMediaQuery.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r}from"react";import{useInterval as o}from"../useInterval/useInterval.js";var a=function(){var a=performance&&"memory"in performance,m=r({jsHeapSizeLimit:0,totalJSHeapSize:0,usedJSHeapSize:0}),t=e(m,2),i=t[0],p=t[1];return o((function(){return p(performance.memory)}),1e3,{immediately:a}),{supported:a,value:i}};export{a as useMemory};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r}from"react";import{useInterval as o}from"../useInterval/useInterval.js";var a=function(){var a=performance&&"memory"in performance,m=r({jsHeapSizeLimit:0,totalJSHeapSize:0,usedJSHeapSize:0}),t=e(m,2),i=t[0],p=t[1];return o((function(){return p(performance.memory)}),1e3,{immediately:a}),{supported:a,value:i}};export{a as useMemory};
3
3
  //# sourceMappingURL=useMemory.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useEffect as r}from"react";var t=function(t){return r(t,[])};export{t as useMount};
3
3
  //# sourceMappingURL=useMount.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e,c as t}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useEffect as o}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as l}from"../useRefState/useRefState.js";var m=function(){var m=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=n({x:0,y:0,element:void 0,elementX:0,elementY:0,elementPositionX:0,elementPositionY:0}),u=e(s,2),a=u[0],f=u[1],p=l();return o((function(){if(m||p.state){var e=function(e){var n=m?r(m):p.current;if(n){var o={x:e.pageX,y:e.pageY},i=n.getBoundingClientRect(),l=i.left,s=i.top,u=l+window.scrollX,a=s+window.scrollY,v=e.pageX-u,c=e.pageY-a;o.element=n,o.elementX=v,o.elementY=c,o.elementPositionX=u,o.elementPositionY=a,f((function(e){return t(t({},e),o)}))}};return document.addEventListener("mousemove",e),function(){document.removeEventListener("mousemove",e)}}}),[p.state,m]),m?a:t({ref:p},a)};export{m as useMouse};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e,c as t}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useEffect as o}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as l}from"../useRefState/useRefState.js";var m=function(){var m=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=n({x:0,y:0,element:void 0,elementX:0,elementY:0,elementPositionX:0,elementPositionY:0}),u=e(s,2),a=u[0],f=u[1],p=l();return o((function(){if(m||p.state){var e=function(e){var n=m?r(m):p.current;if(n){var o={x:e.pageX,y:e.pageY},i=n.getBoundingClientRect(),l=i.left,s=i.top,u=l+window.scrollX,a=s+window.scrollY,v=e.pageX-u,c=e.pageY-a;o.element=n,o.elementX=v,o.elementY=c,o.elementPositionX=u,o.elementPositionY=a,f((function(e){return t(t({},e),o)}))}};return document.addEventListener("mousemove",e),function(){document.removeEventListener("mousemove",e)}}}),[p.state,m]),m?a:t({ref:p},a)};export{m as useMouse};
3
3
  //# sourceMappingURL=useMouse.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as r,d as l,c as n,e as o}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as u}from"react";var e=function(e,t){var i=u(!1),v=r(i,2),a=v[0],d=v[1],c=u(!1),s=r(c,2),y=s[0],f=s[1],p=u(!1),m=r(p,2),D=m[0],E=m[1],S=u(null),h=r(S,2),b=h[0],g=h[1],w=u(null),x=r(w,2),_=x[0],j=x[1],k=function(r,l){var o;d(!0);var u=null!==(o=null==l?void 0:l.attempt)&&void 0!==o?o:0;return e(r).then((function(r){var n;return null==l||null===(n=l.onSuccess)||void 0===n||n.call(l,r),j(r),E(!0),d(!1),g(null),f(!1),r})).catch((function(o){var e,t="function"==typeof(null==l?void 0:l.retry)?null==l?void 0:l.retry(u,o):null==l?void 0:l.retry,i="function"==typeof(null==l?void 0:l.retryDelay)?null==l?void 0:l.retryDelay(u,o):null==l?void 0:l.retryDelay;return"boolean"==typeof t&&t||t&&t>u?i?void setTimeout((function(){return k(r,n(n({},l),{},{attempt:u+1}))}),i):k(r,n(n({},l),{},{attempt:u+1})):(null==l||null===(e=l.onError)||void 0===e||e.call(l,o),j(null),E(!1),d(!1),g(o),void f(!0))}))},A=function(){var r=l(o().mark((function r(l,n){var u,e,i,v,a;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={retry:null!==(u=null==n?void 0:n.retry)&&void 0!==u?u:null==t?void 0:t.retry,retryDelay:null!==(e=null==n?void 0:n.retryDelay)&&void 0!==e?e:null==t?void 0:t.retryDelay,onSuccess:null!==(i=null==n?void 0:n.onSuccess)&&void 0!==i?i:null==t?void 0:t.onSuccess,onError:null!==(v=null==n?void 0:n.onError)&&void 0!==v?v:null==t?void 0:t.onError},r.abrupt("return",k(l,a));case 2:case"end":return r.stop()}}),r)})));return function(l,n){return r.apply(this,arguments)}}();return{data:_,error:b,mutate:function(r,l){var n,o,u,e,i={retry:null!==(n=null==l?void 0:l.retry)&&void 0!==n?n:null==t?void 0:t.retry,retryDelay:null!==(o=null==l?void 0:l.retryDelay)&&void 0!==o?o:null==t?void 0:t.retryDelay,onSuccess:null!==(u=null==l?void 0:l.onSuccess)&&void 0!==u?u:null==t?void 0:t.onSuccess,onError:null!==(e=null==l?void 0:l.onError)&&void 0!==e?e:null==t?void 0:t.onError};k(r,i)},mutateAsync:A,isLoading:a,isError:y,isSuccess:D}};export{e as useMutation};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as r,d as l,c as n,e as o}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as u}from"react";var e=function(e,t){var i=u(!1),v=r(i,2),a=v[0],d=v[1],c=u(!1),s=r(c,2),y=s[0],f=s[1],p=u(!1),m=r(p,2),D=m[0],E=m[1],S=u(null),h=r(S,2),b=h[0],g=h[1],w=u(null),x=r(w,2),_=x[0],j=x[1],k=function(r,l){var o;d(!0);var u=null!==(o=null==l?void 0:l.attempt)&&void 0!==o?o:0;return e(r).then((function(r){var n;return null==l||null===(n=l.onSuccess)||void 0===n||n.call(l,r),j(r),E(!0),d(!1),g(null),f(!1),r})).catch((function(o){var e,t="function"==typeof(null==l?void 0:l.retry)?null==l?void 0:l.retry(u,o):null==l?void 0:l.retry,i="function"==typeof(null==l?void 0:l.retryDelay)?null==l?void 0:l.retryDelay(u,o):null==l?void 0:l.retryDelay;return"boolean"==typeof t&&t||t&&t>u?i?void setTimeout((function(){return k(r,n(n({},l),{},{attempt:u+1}))}),i):k(r,n(n({},l),{},{attempt:u+1})):(null==l||null===(e=l.onError)||void 0===e||e.call(l,o),j(null),E(!1),d(!1),g(o),void f(!0))}))},A=function(){var r=l(o().mark((function r(l,n){var u,e,i,v,a;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={retry:null!==(u=null==n?void 0:n.retry)&&void 0!==u?u:null==t?void 0:t.retry,retryDelay:null!==(e=null==n?void 0:n.retryDelay)&&void 0!==e?e:null==t?void 0:t.retryDelay,onSuccess:null!==(i=null==n?void 0:n.onSuccess)&&void 0!==i?i:null==t?void 0:t.onSuccess,onError:null!==(v=null==n?void 0:n.onError)&&void 0!==v?v:null==t?void 0:t.onError},r.abrupt("return",k(l,a));case 2:case"end":return r.stop()}}),r)})));return function(l,n){return r.apply(this,arguments)}}();return{data:_,error:b,mutate:function(r,l){var n,o,u,e,i={retry:null!==(n=null==l?void 0:l.retry)&&void 0!==n?n:null==t?void 0:t.retry,retryDelay:null!==(o=null==l?void 0:l.retryDelay)&&void 0!==o?o:null==t?void 0:t.retryDelay,onSuccess:null!==(u=null==l?void 0:l.onSuccess)&&void 0!==u?u:null==t?void 0:t.onSuccess,onError:null!==(e=null==l?void 0:l.onError)&&void 0!==e?e:null==t?void 0:t.onError};k(r,i)},mutateAsync:A,isLoading:a,isError:y,isSuccess:D}};export{e as useMutation};
3
3
  //# sourceMappingURL=useMutation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as r,useRef as t,useEffect as n}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as l}from"../useRefState/useRefState.js";var u=function(){var u,s=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,v=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],a=s?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],c=r(),d=e(c,2),f=d[0],m=d[1],p=null===(u=null==a?void 0:a.enabled)||void 0===u||u,g=l(window.document.documentElement),h=t(v);h.current=v;var b=t(a);b.current=a,n((function(){if(p||s||g.state){var e=s?o(s):g.current;if(e){var r=new MutationObserver(h.current);return m(r),r.observe(e,b.current),function(){r.disconnect()}}}}),[s,g.state]);var j=function(){return null==f?void 0:f.disconnect()};return s?{stop:j,observer:f}:{ref:g,stop:j,observer:f}};export{u as useMutationObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as r,useRef as t,useEffect as n}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as l}from"../useRefState/useRefState.js";var u=function(){var u,s=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,v=s?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],a=s?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],c=r(),d=e(c,2),f=d[0],m=d[1],p=null===(u=null==a?void 0:a.enabled)||void 0===u||u,g=l(window.document.documentElement),h=t(v);h.current=v;var b=t(a);b.current=a,n((function(){if(p||s||g.state){var e=s?o(s):g.current;if(e){var r=new MutationObserver(h.current);return m(r),r.observe(e,b.current),function(){r.disconnect()}}}}),[s,g.state]);var j=function(){return null==f?void 0:f.disconnect()};return s?{stop:j,observer:f}:{ref:g,stop:j,observer:f}};export{u as useMutationObserver};
3
3
  //# sourceMappingURL=useMutationObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as e,useEffect as i}from"react";var o=function(){var n,e,i;return(null===(n=navigator)||void 0===n?void 0:n.connection)||(null===(e=navigator)||void 0===e?void 0:e.mozConnection)||(null===(i=navigator)||void 0===i?void 0:i.webkitConnection)},t=function(){var t=e((function(){if("undefined"==typeof navigator)return{online:!1,type:void 0,effectiveType:void 0,saveData:!1,downlink:0,downlinkMax:0,rtt:0};var n=navigator.onLine,e=o();return{online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}})),v=n(t,2),l=v[0],a=v[1];return i((function(){var n=function(){var n=navigator.onLine,e=o();a({online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type})};window.addEventListener("online",n,{passive:!0}),window.addEventListener("offline",n,{passive:!0});var e=o();return e&&e.addEventListener("change",n,{passive:!0}),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n),e&&e.removeEventListener("change",n)}})),l};export{o as getConnection,t as useNetwork};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as e,useEffect as i}from"react";var o=function(){var n,e,i;return(null===(n=navigator)||void 0===n?void 0:n.connection)||(null===(e=navigator)||void 0===e?void 0:e.mozConnection)||(null===(i=navigator)||void 0===i?void 0:i.webkitConnection)},t=function(){var t=e((function(){if("undefined"==typeof navigator)return{online:!1,type:void 0,effectiveType:void 0,saveData:!1,downlink:0,downlinkMax:0,rtt:0};var n=navigator.onLine,e=o();return{online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type}})),v=n(t,2),l=v[0],a=v[1];return i((function(){var n=function(){var n=navigator.onLine,e=o();a({online:n,downlink:null==e?void 0:e.downlink,downlinkMax:null==e?void 0:e.downlinkMax,effectiveType:null==e?void 0:e.effectiveType,rtt:null==e?void 0:e.rtt,saveData:null==e?void 0:e.saveData,type:null==e?void 0:e.type})};window.addEventListener("online",n,{passive:!0}),window.addEventListener("offline",n,{passive:!0});var e=o();return e&&e.addEventListener("change",n,{passive:!0}),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n),e&&e.removeEventListener("change",n)}})),l};export{o as getConnection,t as useNetwork};
3
3
  //# sourceMappingURL=useNetwork.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useRef as a,useEffect as i}from"react";var r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.total,o=void 0===t?Number.POSITIVE_INFINITY:t,g=r.pageSize,u=void 0===g?10:g,p=r.initialPage,c=void 0===p?1:p,f=r.onPageChange,v=void 0===f?function(){}:f,S=r.onPageCountChange,z=void 0===S?function(){}:S,l=r.onPageSizeChange,P=void 0===l?function(){}:l,s=n(c),d=e(s,2),h=d[0],m=d[1],C=a(v),I=a(z),x=a(P);C.current=v,I.current=z,x.current=P;var N=Math.max(1,Math.ceil(o/u)),_=1===h,b=h===N;return i((function(){I.current({page:h,pageSize:u})}),[N]),i((function(){x.current({page:h,pageSize:u})}),[u]),{page:h,set:function(e){m(e),v({page:e,pageSize:u})},currentPageSize:u,isFirstPage:_,isLastPage:b,pageCount:N,next:function(){if(b)return v({page:N,pageSize:u});m((function(e){var n=e+1;return v({page:n,pageSize:u}),n}))},prev:function(){if(_)return v({page:1,pageSize:u});m((function(e){var n=e-1;return v({page:n,pageSize:u}),n}))}}};export{r as useOffsetPagination};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useRef as a,useEffect as i}from"react";var r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.total,o=void 0===t?Number.POSITIVE_INFINITY:t,g=r.pageSize,u=void 0===g?10:g,p=r.initialPage,c=void 0===p?1:p,f=r.onPageChange,v=void 0===f?function(){}:f,S=r.onPageCountChange,z=void 0===S?function(){}:S,l=r.onPageSizeChange,P=void 0===l?function(){}:l,s=n(c),d=e(s,2),h=d[0],m=d[1],C=a(v),I=a(z),x=a(P);C.current=v,I.current=z,x.current=P;var N=Math.max(1,Math.ceil(o/u)),_=1===h,b=h===N;return i((function(){I.current({page:h,pageSize:u})}),[N]),i((function(){x.current({page:h,pageSize:u})}),[u]),{page:h,set:function(e){m(e),v({page:e,pageSize:u})},currentPageSize:u,isFirstPage:_,isLastPage:b,pageCount:N,next:function(){if(b)return v({page:N,pageSize:u});m((function(e){var n=e+1;return v({page:n,pageSize:u}),n}))},prev:function(){if(_)return v({page:1,pageSize:u});m((function(e){var n=e-1;return v({page:n,pageSize:u}),n}))}}};export{r as useOffsetPagination};
3
3
  //# sourceMappingURL=useOffsetPagination.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useSyncExternalStore as n}from"react";var e=function(){return navigator.onLine},t=function(){return!1},i=function(n){return window.addEventListener("online",n),window.addEventListener("offline",n),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}},o=function(){return n(i,e,t)};export{o as useOnline};
3
3
  //# sourceMappingURL=useOnline.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as i}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n}from"react";var e=function(){if("undefined"==typeof window)return"undetermined";var i=window.navigator.userAgent;return/Macintosh|MacIntel|MacPPC|Mac68K/i.test(i)?"macos":/iPhone|iPad|iPod/i.test(i)?"ios":/Win32|Win64|Windows|WinCE/i.test(i)?"windows":/Android/i.test(i)?"android":/Linux/i.test(i)?"linux":"undetermined"},t=function(){var t=n(e());return i(t,1)[0]};export{e as getOperatingSystem,t as useOperatingSystem};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as i}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n}from"react";var e=function(){if("undefined"==typeof window)return"undetermined";var i=window.navigator.userAgent;return/Macintosh|MacIntel|MacPPC|Mac68K/i.test(i)?"macos":/iPhone|iPad|iPod/i.test(i)?"ios":/Win32|Win64|Windows|WinCE/i.test(i)?"windows":/Android/i.test(i)?"android":/Linux/i.test(i)?"linux":"undetermined"},t=function(){var t=n(e());return i(t,1)[0]};export{e as getOperatingSystem,t as useOperatingSystem};
3
3
  //# sourceMappingURL=useOperatingSystem.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as t,useRef as o}from"react";import{useDidUpdate as e}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var u=function(u,n){var i=t(u),f=r(i,2),c=f[0],a=f[1],p=o(n);p.current=n;var s=t(!1),m=r(s,2),l=m[0],d=m[1];e((function(){l&&(a(u),d(!1))}),[l]);return[c,function(r,t){return a((function(t){return p.current(t,r)})),t.finally((function(){return d(!0)}))}]};export{u as useOptimistic};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as t,useRef as o}from"react";import{useDidUpdate as e}from"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var u=function(u,n){var i=t(u),f=r(i,2),c=f[0],a=f[1],p=o(n);p.current=n;var s=t(!1),m=r(s,2),l=m[0],d=m[1];e((function(){l&&(a(u),d(!1))}),[l]);return[c,function(r,t){return a((function(t){return p.current(t,r)})),t.finally((function(){return d(!0)}))}]};export{u as useOptimistic};
3
3
  //# sourceMappingURL=useOptimistic.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as e,useEffect as r}from"react";var t=function(){var t=e({angle:0,type:"landscape-primary"}),o=n(t,2),i=o[0],a=o[1];return r((function(){var n=function(){return a(window.screen.orientation)};return window.screen.orientation.addEventListener("change",n),function(){window.screen.orientation.removeEventListener("change",n)}}),[]),i};export{t as useOrientation};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as e,useEffect as r}from"react";var t=function(){var t=e({angle:0,type:"landscape-primary"}),o=n(t,2),i=o[0],a=o[1];return r((function(){var n=function(){return a(window.screen.orientation)};return window.screen.orientation.addEventListener("change",n),function(){window.screen.orientation.removeEventListener("change",n)}}),[]),i};export{t as useOrientation};
3
3
  //# sourceMappingURL=useOrientation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as r,d as n,e as t}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as e,useRef as o}from"react";var a=function(){for(var a,u,i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];var s=c[0]instanceof Function?c[0]:null===(a=c[0])||void 0===a?void 0:a.onSuccess,p=c[0]instanceof Function?null===(u=c[0])||void 0===u?void 0:u.onError:void 0,f="undefined"!=typeof navigator&&"OTPCredential"in window,v=e(!1),d=r(v,2),b=d[0],g=d[1],w=o(new AbortController),m=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(f){r.next=2;break}return r.abrupt("return");case 2:return w.current=new AbortController,r.prev=3,r.next=6,navigator.credentials.get({otp:{transport:["sms"]},signal:w.current.signal});case 6:return n=r.sent,null==s||s(n),g(!1),r.abrupt("return",n);case 12:r.prev=12,r.t0=r.catch(3),null==p||p(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(){return r.apply(this,arguments)}}();return{supported:f,abort:function(){w.current.abort(),w.current=new AbortController,w.current.signal.onabort=function(){return g(!0)}},aborted:b,get:m}};export{a as useOtpCredential};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as r,d as n,e as t}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as e,useRef as o}from"react";var a=function(){for(var a,u,i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];var s=c[0]instanceof Function?c[0]:null===(a=c[0])||void 0===a?void 0:a.onSuccess,p=c[0]instanceof Function?null===(u=c[0])||void 0===u?void 0:u.onError:void 0,f="undefined"!=typeof navigator&&"OTPCredential"in window,v=e(!1),d=r(v,2),b=d[0],g=d[1],w=o(new AbortController),m=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(f){r.next=2;break}return r.abrupt("return");case 2:return w.current=new AbortController,r.prev=3,r.next=6,navigator.credentials.get({otp:{transport:["sms"]},signal:w.current.signal});case 6:return n=r.sent,null==s||s(n),g(!1),r.abrupt("return",n);case 12:r.prev=12,r.t0=r.catch(3),null==p||p(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(){return r.apply(this,arguments)}}();return{supported:f,abort:function(){w.current.abort(),w.current=new AbortController,w.current.signal.onabort=function(){return g(!0)}},aborted:b,get:m}};export{a as useOtpCredential};
3
3
  //# sourceMappingURL=useOtpCredential.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useEffect as t}from"react";import{useEvent as r}from"../useEvent/useEvent.js";var o=function(o){var u=n(!1),s=e(u,2),m=s[0],i=s[1],v=r((function(){if(m)return i(!1);null==o||o(),i(!0)}));return t((function(){return document.addEventListener("mouseleave",v,{passive:!0}),document.addEventListener("mouseenter",v,{passive:!0}),function(){document.removeEventListener("mouseenter",v),document.removeEventListener("mouseleave",v)}}),[]),m};export{o as usePageLeave};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useEffect as t}from"react";import{useEvent as r}from"../useEvent/useEvent.js";var o=function(o){var u=n(!1),s=e(u,2),m=s[0],i=s[1],v=r((function(){if(m)return i(!1);null==o||o(),i(!0)}));return t((function(){return document.addEventListener("mouseleave",v,{passive:!0}),document.addEventListener("mouseenter",v,{passive:!0}),function(){document.removeEventListener("mouseenter",v),document.removeEventListener("mouseleave",v)}}),[]),m};export{o as usePageLeave};
3
3
  //# sourceMappingURL=usePageLeave.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{i as t,_ as n,j as r,g as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useRef as i,useState as u,useEffect as o}from"react";import{getElement as s}from"../../utils/helpers/getElement.js";import{isTarget as a}from"../../utils/helpers/isTarget.js";import{useEvent as l}from"../useEvent/useEvent.js";import{useRefState as c}from"../useRefState/useRefState.js";var h=function(){function n(t,e){r(this,n),this.x=t,this.y=e}return t(n,[{key:"update",value:function(t){this.x=t.x,this.y=t.y}},{key:"getDifferenceTo",value:function(t){return new n(this.x-t.x,this.y-t.y)}},{key:"getDistanceTo",value:function(t){var n=this.getDifferenceTo(t);return Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}},{key:"getAngleTo",value:function(t){var n=this.getDifferenceTo(t);return Math.atan2(n.y,n.x)}},{key:"equalsTo",value:function(t){return this.x===t.x&&this.y===t.y}},{key:"moveByAngle",value:function(t,n){var r=t+Math.PI/2;return this.x+=Math.sin(r)*n,this.y-=Math.cos(r)*n,this}}])}(),v=function(){return t((function t(n){var i=n.x,u=n.y,o=n.radius,s=n.smooth;r(this,t),e(this,"smooth",!1),e(this,"points",[]),e(this,"lines",[]),this.smooth=s,this.pointer=new h(i,u),this.brush=new h(i,u),this.radius=o,this.points=[],this.lines=[]}),[{key:"getBrushCoordinates",value:function(){return{x:this.brush.x,y:this.brush.y}}},{key:"getPointerCoordinates",value:function(){return{x:this.pointer.x,y:this.pointer.y}}},{key:"update",value:function(t){if(this.pointer.equalsTo(t))return!1;if(this.pointer.update(t),!this.smooth)return this.brush.update(t),this.points.push(this.getBrushCoordinates()),!0;var n=this.pointer.getDistanceTo(this.brush),r=this.pointer.getAngleTo(this.brush);if(Math.round(10*(n-this.radius))/10>0){var e=r+Math.PI/2;return this.brush.update({x:this.brush.x+Math.sin(e)*(n-this.radius),y:this.brush.y-Math.cos(e)*(n-this.radius)}),this.points.push(this.getBrushCoordinates()),!0}return!1}}])}(),d=function(){var t,r,e,h,d,f,p=a(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,y=null!==(t=p?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==t?t:{},g=null!==(r=null==y?void 0:y.color)&&void 0!==r?r:"black",m=null!==(e=null==y?void 0:y.opacity)&&void 0!==e?e:1,x=null!==(h=null==y?void 0:y.radius)&&void 0!==h?h:10,w=i(new v({x:0,y:0,radius:null!==(d=null==y?void 0:y.radius)&&void 0!==d?d:10,smooth:null!==(f=null==y?void 0:y.smooth)&&void 0!==f&&f})),M=u(!1),b=n(M,2),k=b[0],E=b[1],T=c(),L=i(null),C=function(t,n,r,e){if(L.current){L.current.globalAlpha=r,L.current.strokeStyle=n,L.current.lineWidth=2*e,L.current.lineCap="round",L.current.lineJoin="round";var i=t[0],u=t[1];L.current.beginPath();for(var o=1;o<t.length;o+=1){var s={x:i.x+(u.x-i.x)/2,y:i.y+(u.y-i.y)/2};L.current.quadraticCurveTo(i.x,i.y,s.x,s.y),i=t[o],u=t[o+1]}L.current.lineTo(i.x,i.y),L.current.stroke()}},j=function(){L.current&&L.current.clearRect(0,0,L.current.canvas.width,L.current.canvas.height)},D=l((function(t){var n;if(k){null==y||null===(n=y.onMouseMove)||void 0===n||n.call(y,t,w.current);var r={x:t.offsetX,y:t.offsetY};w.current.update(r)&&L.current&&(j(),L.current.clearRect(0,0,L.current.canvas.width,L.current.canvas.height),w.current.lines.forEach((function(t){var n=t.points,r=t.color,e=t.opacity,i=t.radius;return C(n,r,e,i)})),C(w.current.points,g,m,x))}})),B=l((function(t){var n;if(L.current){var r={x:t.offsetX,y:t.offsetY};w.current.brush.update(r),w.current.points.push(r),C(w.current.points,g,m,x),null==y||null===(n=y.onMouseDown)||void 0===n||n.call(y,t,w.current),E(!0)}})),P=l((function(t){var n;L.current&&(w.current.points.length&&(w.current.lines.push({points:w.current.points,color:g,opacity:m,radius:x}),w.current.points=[]),null==y||null===(n=y.onMouseUp)||void 0===n||n.call(y,t,w.current),E(!1))})),q=function(){L.current&&(j(),w.current.lines=[],w.current.points=[])},A=function(){L.current&&(j(),w.current.lines.pop(),w.current.lines.forEach((function(t){var n=t.points,r=t.color,e=t.opacity,i=t.radius;return C(n,r,e,i)})))};return o((function(){if(p||T.state){var t=p?s(p):T.current;if(t)return L.current=t.getContext("2d"),null!=y&&y.initialLines&&(w.current.lines=y.initialLines,y.initialLines.forEach((function(t){var n=t.points,r=t.color,e=t.opacity,i=t.radius;return C(n,r,e,i)}))),t.addEventListener("mousedown",B),t.addEventListener("mousemove",D),t.addEventListener("mouseup",P),function(){t&&(t.removeEventListener("mousedown",B),t.removeEventListener("mousemove",D),t.removeEventListener("mouseup",P))}}}),[p,T.state]),p?{drawing:k,clear:q,undo:A,draw:C,lines:w.current.lines}:{ref:T,drawing:k,clear:q,undo:A,draw:C,lines:w.current.lines}};export{v as Paint,h as Pointer,d as usePaint};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{i as t,_ as n,j as r,g as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useRef as i,useState as u,useEffect as o}from"react";import{getElement as s}from"../../utils/helpers/getElement.js";import{isTarget as a}from"../../utils/helpers/isTarget.js";import{useEvent as l}from"../useEvent/useEvent.js";import{useRefState as c}from"../useRefState/useRefState.js";var h=function(){function n(t,e){r(this,n),this.x=t,this.y=e}return t(n,[{key:"update",value:function(t){this.x=t.x,this.y=t.y}},{key:"getDifferenceTo",value:function(t){return new n(this.x-t.x,this.y-t.y)}},{key:"getDistanceTo",value:function(t){var n=this.getDifferenceTo(t);return Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}},{key:"getAngleTo",value:function(t){var n=this.getDifferenceTo(t);return Math.atan2(n.y,n.x)}},{key:"equalsTo",value:function(t){return this.x===t.x&&this.y===t.y}},{key:"moveByAngle",value:function(t,n){var r=t+Math.PI/2;return this.x+=Math.sin(r)*n,this.y-=Math.cos(r)*n,this}}])}(),v=function(){return t((function t(n){var i=n.x,u=n.y,o=n.radius,s=n.smooth;r(this,t),e(this,"smooth",!1),e(this,"points",[]),e(this,"lines",[]),this.smooth=s,this.pointer=new h(i,u),this.brush=new h(i,u),this.radius=o,this.points=[],this.lines=[]}),[{key:"getBrushCoordinates",value:function(){return{x:this.brush.x,y:this.brush.y}}},{key:"getPointerCoordinates",value:function(){return{x:this.pointer.x,y:this.pointer.y}}},{key:"update",value:function(t){if(this.pointer.equalsTo(t))return!1;if(this.pointer.update(t),!this.smooth)return this.brush.update(t),this.points.push(this.getBrushCoordinates()),!0;var n=this.pointer.getDistanceTo(this.brush),r=this.pointer.getAngleTo(this.brush);if(Math.round(10*(n-this.radius))/10>0){var e=r+Math.PI/2;return this.brush.update({x:this.brush.x+Math.sin(e)*(n-this.radius),y:this.brush.y-Math.cos(e)*(n-this.radius)}),this.points.push(this.getBrushCoordinates()),!0}return!1}}])}(),d=function(){var t,r,e,h,d,f,p=a(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,y=null!==(t=p?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==t?t:{},g=null!==(r=null==y?void 0:y.color)&&void 0!==r?r:"black",m=null!==(e=null==y?void 0:y.opacity)&&void 0!==e?e:1,x=null!==(h=null==y?void 0:y.radius)&&void 0!==h?h:10,w=i(new v({x:0,y:0,radius:null!==(d=null==y?void 0:y.radius)&&void 0!==d?d:10,smooth:null!==(f=null==y?void 0:y.smooth)&&void 0!==f&&f})),M=u(!1),b=n(M,2),k=b[0],E=b[1],T=c(),L=i(null),C=function(t,n,r,e){if(L.current){L.current.globalAlpha=r,L.current.strokeStyle=n,L.current.lineWidth=2*e,L.current.lineCap="round",L.current.lineJoin="round";var i=t[0],u=t[1];L.current.beginPath();for(var o=1;o<t.length;o+=1){var s={x:i.x+(u.x-i.x)/2,y:i.y+(u.y-i.y)/2};L.current.quadraticCurveTo(i.x,i.y,s.x,s.y),i=t[o],u=t[o+1]}L.current.lineTo(i.x,i.y),L.current.stroke()}},j=function(){L.current&&L.current.clearRect(0,0,L.current.canvas.width,L.current.canvas.height)},D=l((function(t){var n;if(k){null==y||null===(n=y.onMouseMove)||void 0===n||n.call(y,t,w.current);var r={x:t.offsetX,y:t.offsetY};w.current.update(r)&&L.current&&(j(),L.current.clearRect(0,0,L.current.canvas.width,L.current.canvas.height),w.current.lines.forEach((function(t){var n=t.points,r=t.color,e=t.opacity,i=t.radius;return C(n,r,e,i)})),C(w.current.points,g,m,x))}})),B=l((function(t){var n;if(L.current){var r={x:t.offsetX,y:t.offsetY};w.current.brush.update(r),w.current.points.push(r),C(w.current.points,g,m,x),null==y||null===(n=y.onMouseDown)||void 0===n||n.call(y,t,w.current),E(!0)}})),P=l((function(t){var n;L.current&&(w.current.points.length&&(w.current.lines.push({points:w.current.points,color:g,opacity:m,radius:x}),w.current.points=[]),null==y||null===(n=y.onMouseUp)||void 0===n||n.call(y,t,w.current),E(!1))})),q=function(){L.current&&(j(),w.current.lines=[],w.current.points=[])},A=function(){L.current&&(j(),w.current.lines.pop(),w.current.lines.forEach((function(t){var n=t.points,r=t.color,e=t.opacity,i=t.radius;return C(n,r,e,i)})))};return o((function(){if(p||T.state){var t=p?s(p):T.current;if(t)return L.current=t.getContext("2d"),null!=y&&y.initialLines&&(w.current.lines=y.initialLines,y.initialLines.forEach((function(t){var n=t.points,r=t.color,e=t.opacity,i=t.radius;return C(n,r,e,i)}))),t.addEventListener("mousedown",B),t.addEventListener("mousemove",D),t.addEventListener("mouseup",P),function(){t&&(t.removeEventListener("mousedown",B),t.removeEventListener("mousemove",D),t.removeEventListener("mouseup",P))}}}),[p,T.state]),p?{drawing:k,clear:q,undo:A,draw:C,lines:w.current.lines}:{ref:T,drawing:k,clear:q,undo:A,draw:C,lines:w.current.lines}};export{v as Paint,h as Pointer,d as usePaint};
3
3
  //# sourceMappingURL=usePaint.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as t,useEffect as a}from"react";import{isTarget as r}from"../../utils/helpers/isTarget.js";import{useDeviceOrientation as i}from"../useDeviceOrientation/useDeviceOrientation.js";import{useMouse as n}from"../useMouse/useMouse.js";import{useRefState as o}from"../useRefState/useRefState.js";import{useScreenOrientation as u}from"../useScreenOrientation/useScreenOrientation.js";import"../../utils/helpers/getElement.js";var l=function(){var l=r(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],m=o(),v=n(null!=l?l:m),c=u(),d=i(),p=null!=s?s:{},f=p.deviceOrientationRollAdjust,g=void 0===f?function(e){return e}:f,h=p.deviceOrientationTiltAdjust,b=void 0===h?function(e){return e}:h,y=p.mouseRollAdjust,j=void 0===y?function(e){return e}:y,O=p.mouseTiltAdjust,k=void 0===O?function(e){return e}:O,R=t({roll:0,tilt:0,source:"mouse"}),T=e(R,2),A=T[0],S=T[1],w=function(){return d.supported&&(d.value.alpha||d.value.gamma)?"deviceOrientation":"mouse"};return a((function(){if(v.element){var e=w(),t=function(){if("deviceOrientation"===w()){var e;switch(c.value.orientationType){case"landscape-primary":e=d.value.gamma/90;break;case"landscape-secondary":e=-d.value.gamma/90;break;case"portrait-primary":default:e=-d.value.beta/90;break;case"portrait-secondary":e=d.value.beta/90}return g(e)}if(!v.element)return 0;var t=v.y-v.elementPositionY,a=v.element.getBoundingClientRect().height;return j(-(t-a/2)/a)}(),a=function(){if("deviceOrientation"===w()){var e;switch(c.value.orientationType){case"landscape-primary":e=d.value.beta/90;break;case"landscape-secondary":e=-d.value.beta/90;break;case"portrait-primary":default:e=d.value.gamma/90;break;case"portrait-secondary":e=-d.value.gamma/90}return b(e)}if(!v.element)return 0;var t=v.x-v.elementPositionX,a=v.element.getBoundingClientRect().width;return k((t-a/2)/a)}();S({roll:t,source:e,tilt:a})}}),[c.value.angle,c.value.orientationType,d.value.gamma,d.value.beta,d.value.alpha,d.value.absolute,v.x,v.y,v.element]),l?{value:A}:{ref:m,value:A}};export{l as useParallax};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as t,useEffect as a}from"react";import{isTarget as r}from"../../utils/helpers/isTarget.js";import{useDeviceOrientation as i}from"../useDeviceOrientation/useDeviceOrientation.js";import{useMouse as n}from"../useMouse/useMouse.js";import{useRefState as o}from"../useRefState/useRefState.js";import{useScreenOrientation as u}from"../useScreenOrientation/useScreenOrientation.js";import"../../utils/helpers/getElement.js";var l=function(){var l=r(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],m=o(),v=n(null!=l?l:m),c=u(),d=i(),p=null!=s?s:{},f=p.deviceOrientationRollAdjust,g=void 0===f?function(e){return e}:f,h=p.deviceOrientationTiltAdjust,b=void 0===h?function(e){return e}:h,y=p.mouseRollAdjust,j=void 0===y?function(e){return e}:y,O=p.mouseTiltAdjust,k=void 0===O?function(e){return e}:O,R=t({roll:0,tilt:0,source:"mouse"}),T=e(R,2),A=T[0],S=T[1],w=function(){return d.supported&&(d.value.alpha||d.value.gamma)?"deviceOrientation":"mouse"};return a((function(){if(v.element){var e=w(),t=function(){if("deviceOrientation"===w()){var e;switch(c.value.orientationType){case"landscape-primary":e=d.value.gamma/90;break;case"landscape-secondary":e=-d.value.gamma/90;break;case"portrait-primary":default:e=-d.value.beta/90;break;case"portrait-secondary":e=d.value.beta/90}return g(e)}if(!v.element)return 0;var t=v.y-v.elementPositionY,a=v.element.getBoundingClientRect().height;return j(-(t-a/2)/a)}(),a=function(){if("deviceOrientation"===w()){var e;switch(c.value.orientationType){case"landscape-primary":e=d.value.beta/90;break;case"landscape-secondary":e=-d.value.beta/90;break;case"portrait-primary":default:e=d.value.gamma/90;break;case"portrait-secondary":e=-d.value.gamma/90}return b(e)}if(!v.element)return 0;var t=v.x-v.elementPositionX,a=v.element.getBoundingClientRect().width;return k((t-a/2)/a)}();S({roll:t,source:e,tilt:a})}}),[c.value.angle,c.value.orientationType,d.value.gamma,d.value.beta,d.value.alpha,d.value.absolute,v.x,v.y,v.element]),l?{value:A}:{ref:m,value:A}};export{l as useParallax};
3
3
  //# sourceMappingURL=useParallax.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as e,useRef as n,useEffect as t}from"react";var o=function(o,u){var i="undefined"!=typeof window&&"undefined"!=typeof PerformanceObserver,c=e([]),f=r(c,2),l=f[0],a=f[1],s=n(null),v=n();v.current=u;var d=function(){if(i){var r=new PerformanceObserver((function(r,e){var n;a(r.getEntries()),null===(n=v.current)||void 0===n||n.call(v,r,e)}));r.observe(o),s.current=r}},p=function(){var r;i&&(null===(r=s.current)||void 0===r||r.disconnect(),s.current=null)};return t((function(){if(i)return o.immediate&&d(),function(){p()}}),[]),{supported:i,entries:l,start:d,stop:p}};export{o as usePerformanceObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as e,useRef as n,useEffect as t}from"react";var o=function(o,u){var i="undefined"!=typeof window&&"undefined"!=typeof PerformanceObserver,c=e([]),f=r(c,2),l=f[0],a=f[1],s=n(null),v=n();v.current=u;var d=function(){if(i){var r=new PerformanceObserver((function(r,e){var n;a(r.getEntries()),null===(n=v.current)||void 0===n||n.call(v,r,e)}));r.observe(o),s.current=r}},p=function(){var r;i&&(null===(r=s.current)||void 0===r||r.disconnect(),s.current=null)};return t((function(){if(i)return o.immediate&&d(),function(){p()}}),[]),{supported:i,entries:l,start:d,stop:p}};export{o as usePerformanceObserver};
3
3
  //# sourceMappingURL=usePerformanceObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useEffect as a}from"react";import{useEvent as o}from"../useEvent/useEvent.js";var s=function(s,u){var i,p="undefined"!=typeof navigator&&"permissions"in navigator,c=n("prompt"),v=e(c,2),m=v[0],d=v[1],f=null===(i=null==u?void 0:u.enabled)||void 0===i||i,l={name:s},g=o(r(t().mark((function e(){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.permissions.query(l);case 3:return r=e.sent,d(r.state),e.abrupt("return",r.state);case 8:return e.prev=8,e.t0=e.catch(0),d("prompt"),e.abrupt("return","prompt");case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))));return a((function(){if(p&&f)return g(),window.addEventListener("change",g),function(){window.removeEventListener("change",g)}}),[s,f]),{state:m,supported:p,query:g}};export{s as usePermission};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useEffect as a}from"react";import{useEvent as o}from"../useEvent/useEvent.js";var s=function(s,u){var i,p="undefined"!=typeof navigator&&"permissions"in navigator,c=n("prompt"),v=e(c,2),m=v[0],d=v[1],f=null===(i=null==u?void 0:u.enabled)||void 0===i||i,l={name:s},g=o(r(t().mark((function e(){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.permissions.query(l);case 3:return r=e.sent,d(r.state),e.abrupt("return",r.state);case 8:return e.prev=8,e.t0=e.catch(0),d("prompt"),e.abrupt("return","prompt");case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))));return a((function(){if(p&&f)return g(),window.addEventListener("change",g),function(){window.removeEventListener("change",g)}}),[s,f]),{state:m,supported:p,query:g}};export{s as usePermission};
3
3
  //# sourceMappingURL=usePermission.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-F2c-yday.js";import{useState as n,useEffect as t}from"react";var o=function(){var o="undefined"!=typeof document&&"pointerLockElement"in document,r=n(),c=e(r,2),i=c[0],u=c[1];t((function(){if(o){var e=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;n&&n===i&&u(document.pointerLockElement)}},n=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;if(n&&n===i){var t=document.pointerLockElement?"release":"acquire";throw new Error("Failed to ".concat(t," pointer lock."))}}};return document.addEventListener("pointerlockchange",e),document.addEventListener("pointerlockerror",n),function(){document.removeEventListener("pointerlockchange",e),document.removeEventListener("pointerlockerror",n)}}}),[]);return{supported:o,element:i,lock:function(e){return!!o&&(!(e instanceof Event)&&(e.currentTarget.requestPointerLock(),u(e.currentTarget),!0))},unlock:function(){return!!o&&(!!i&&(document.exitPointerLock(),u(void 0),!0))}}};export{o as usePointerLock};
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-5Q3v93KV.js";import{useState as n,useEffect as t}from"react";var o=function(){var o="undefined"!=typeof document&&"pointerLockElement"in document,r=n(),c=e(r,2),i=c[0],u=c[1];t((function(){if(o){var e=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;n&&n===i&&u(document.pointerLockElement)}},n=function(){var e;if(o){var n=null!==(e=document.pointerLockElement)&&void 0!==e?e:i;if(n&&n===i){var t=document.pointerLockElement?"release":"acquire";throw new Error("Failed to ".concat(t," pointer lock."))}}};return document.addEventListener("pointerlockchange",e),document.addEventListener("pointerlockerror",n),function(){document.removeEventListener("pointerlockchange",e),document.removeEventListener("pointerlockerror",n)}}}),[]);return{supported:o,element:i,lock:function(e){return!!o&&(!(e instanceof Event)&&(e.currentTarget.requestPointerLock(),u(e.currentTarget),!0))},unlock:function(){return!!o&&(!!i&&(document.exitPointerLock(),u(void 0),!0))}}};export{o as usePointerLock};
3
3
  //# sourceMappingURL=usePointerLock.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.104 */
1
+ /* @license @siberiacancode/reactuse v0.0.106 */
2
2
  import{useRef as r,useEffect as n}from"react";var e=function(e,t){var i=r(t);i.current=t,n((function(){var r=function(r){!(!Array.isArray(e)||e.includes(r.origin)&&e.includes("*"))||r.origin!==e&&"*"!==e||i.current(r.data,r)};return window.addEventListener("message",r),function(){return window.removeEventListener("message",r)}}),[]);return function(r){Array.isArray(e)?e.forEach((function(n){return window.postMessage(r,n)})):window.postMessage(r,e)}};export{e as usePostMessage};
3
3
  //# sourceMappingURL=usePostMessage.js.map