@airporting/integrations-app 0.4.31 → 0.4.32

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 (115) hide show
  1. package/README.md +74 -2
  2. package/dist/mf/{18.js → 1018.js} +3 -3
  3. package/dist/mf/{235.js → 1330.js} +2 -2
  4. package/dist/mf/1600.js +1 -0
  5. package/dist/mf/1857.js +1 -0
  6. package/dist/mf/{70.js → 2070.js} +3 -3
  7. package/dist/mf/3.js +1 -0
  8. package/dist/mf/{134.js → 3134.js} +2 -2
  9. package/dist/mf/{330.js → 3235.js} +2 -2
  10. package/dist/mf/{473.js → 3711.js} +2 -2
  11. package/dist/mf/4447.js +1 -0
  12. package/dist/mf/{756.js → 4756.js} +4 -4
  13. package/dist/mf/4810.js +1 -0
  14. package/dist/mf/5475.js +1 -0
  15. package/dist/mf/{616.js → 5616.js} +2 -2
  16. package/dist/mf/5625.js +1 -0
  17. package/dist/mf/5741.js +1 -0
  18. package/dist/mf/6082.js +1 -0
  19. package/dist/mf/6092.js +10 -0
  20. package/dist/mf/6124.js +1 -0
  21. package/dist/mf/6702.js +1 -0
  22. package/dist/mf/7285.js +1 -0
  23. package/dist/mf/{286.js → 7286.js} +3 -3
  24. package/dist/mf/7476.js +1 -0
  25. package/dist/mf/7493.js +6 -0
  26. package/dist/mf/7493.js.LICENSE.txt +13 -0
  27. package/dist/mf/8170.js +18 -0
  28. package/dist/mf/8473.js +10 -0
  29. package/dist/mf/{637.js → 8637.js} +3 -3
  30. package/dist/mf/8949.js +10 -0
  31. package/dist/mf/8978.js +33 -0
  32. package/dist/mf/{37.js → 9037.js} +3 -3
  33. package/dist/mf/9110.js +1 -0
  34. package/dist/mf/{755.js → 9430.js} +2 -2
  35. package/dist/mf/9666.js +10 -0
  36. package/dist/mf/9666.js.LICENSE.txt +9 -0
  37. package/dist/mf/9758.js +1 -0
  38. package/dist/mf/@mf-types/compiled-types/api/connectors/connectorAddMutation.d.ts +1 -0
  39. package/dist/mf/@mf-types/compiled-types/api/connectors/connectorCatalogQuery.d.ts +1 -0
  40. package/dist/mf/@mf-types/compiled-types/api/connectors/connectorDeleteMutation.d.ts +1 -0
  41. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroDetailQuery.d.ts +2 -0
  42. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobConfigQuery.d.ts +1 -0
  43. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobRunMutation.d.ts +4 -0
  44. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobSaveMutation.d.ts +5 -0
  45. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroListQuery.d.ts +2 -0
  46. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroRunMutation.d.ts +1 -0
  47. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroScheduleMutations.d.ts +21 -0
  48. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroSpreadsheetsQuery.d.ts +4 -0
  49. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroToggleMutation.d.ts +4 -0
  50. package/dist/mf/@mf-types/compiled-types/api/synchro/types.d.ts +67 -0
  51. package/dist/mf/@mf-types/compiled-types/api/useApiSynchro.d.ts +6 -0
  52. package/dist/mf/@mf-types/compiled-types/components/InlineLoader.d.ts +4 -0
  53. package/dist/mf/@mf-types/compiled-types/components/connectors/connector-menu.component.d.ts +7 -0
  54. package/dist/mf/@mf-types/compiled-types/components/connectors/delete-active-connector-modal.d.ts +1 -0
  55. package/dist/mf/@mf-types/compiled-types/components/connectors/is-delete-confirm-input.d.ts +6 -0
  56. package/dist/mf/@mf-types/compiled-types/components/connectors/list.catalog.component.d.ts +1 -0
  57. package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputDateBoundary.d.ts +12 -0
  58. package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputGsheetsSelector.d.ts +11 -0
  59. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.dynamic-form.d.ts +29 -0
  60. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.functions.d.ts +7 -0
  61. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.history.d.ts +6 -0
  62. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.job-config-modal.d.ts +9 -0
  63. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.list.d.ts +8 -0
  64. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.schedule.d.ts +8 -0
  65. package/dist/mf/@mf-types/compiled-types/gen/IntegrationsApi.d.ts +120 -4
  66. package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigConnectorSingle.d.ts +1 -1
  67. package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigSynchro.d.ts +9 -0
  68. package/dist/mf/@mf-types/compiled-types/providersSynchro.d.ts +15 -0
  69. package/dist/mf/@mf-types/compiled-types/synchro.app.d.ts +1 -0
  70. package/dist/mf/@mf-types/compiled-types/synchro.d.ts +2 -0
  71. package/dist/mf/__federation_expose_connectors.js +2 -2
  72. package/dist/mf/__federation_expose_single_connector.js +2 -2
  73. package/dist/mf/__federation_expose_synchronisation.js +10 -0
  74. package/dist/mf/__federation_expose_synchronisation.js.LICENSE.txt +9 -0
  75. package/dist/mf/index.js +4 -5
  76. package/dist/mf/integrations_app.js +4 -5
  77. package/dist/mf/mf-manifest.json +133 -30
  78. package/dist/mf/mf-stats.json +188 -40
  79. package/package.json +7 -6
  80. package/dist/mf/124.js +0 -1
  81. package/dist/mf/170.js +0 -18
  82. package/dist/mf/285.js +0 -1
  83. package/dist/mf/447.js +0 -1
  84. package/dist/mf/475.js +0 -1
  85. package/dist/mf/476.js +0 -1
  86. package/dist/mf/600.js +0 -1
  87. package/dist/mf/625.js +0 -1
  88. package/dist/mf/666.js +0 -10
  89. package/dist/mf/702.js +0 -1
  90. package/dist/mf/711.js +0 -10
  91. package/dist/mf/741.js +0 -1
  92. package/dist/mf/857.js +0 -1
  93. package/dist/mf/949.js +0 -10
  94. package/dist/mf/978.js +0 -33
  95. package/dist/mf/@mf-types/connectors.d.ts +0 -2
  96. package/dist/mf/@mf-types/single-connector.d.ts +0 -2
  97. package/dist/mf/@mf-types.d.ts +0 -3
  98. package/dist/mf/@mf-types.zip +0 -0
  99. /package/dist/mf/{18.js.LICENSE.txt → 1018.js.LICENSE.txt} +0 -0
  100. /package/dist/mf/{235.js.LICENSE.txt → 1330.js.LICENSE.txt} +0 -0
  101. /package/dist/mf/{70.css → 2070.css} +0 -0
  102. /package/dist/mf/{70.js.LICENSE.txt → 2070.js.LICENSE.txt} +0 -0
  103. /package/dist/mf/{134.js.LICENSE.txt → 3134.js.LICENSE.txt} +0 -0
  104. /package/dist/mf/{330.js.LICENSE.txt → 3235.js.LICENSE.txt} +0 -0
  105. /package/dist/mf/{473.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
  106. /package/dist/mf/{756.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
  107. /package/dist/mf/{616.js.LICENSE.txt → 5616.js.LICENSE.txt} +0 -0
  108. /package/dist/mf/{666.js.LICENSE.txt → 6092.js.LICENSE.txt} +0 -0
  109. /package/dist/mf/{286.js.LICENSE.txt → 7286.js.LICENSE.txt} +0 -0
  110. /package/dist/mf/{170.js.LICENSE.txt → 8170.js.LICENSE.txt} +0 -0
  111. /package/dist/mf/{711.js.LICENSE.txt → 8473.js.LICENSE.txt} +0 -0
  112. /package/dist/mf/{637.js.LICENSE.txt → 8637.js.LICENSE.txt} +0 -0
  113. /package/dist/mf/{949.js.LICENSE.txt → 8949.js.LICENSE.txt} +0 -0
  114. /package/dist/mf/{978.js.LICENSE.txt → 8978.js.LICENSE.txt} +0 -0
  115. /package/dist/mf/{37.js.LICENSE.txt → 9037.js.LICENSE.txt} +0 -0
@@ -0,0 +1,6 @@
1
+ /*! For license information please see 7493.js.LICENSE.txt */
2
+ (globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["7493"],{7972:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{useDeepCompareEffect:()=>useDeepCompareEffect,useBeforeUnload:()=>useBeforeUnload,useBattery:()=>esm_useBattery,usePromise:()=>esm_usePromise,useGeolocation:()=>esm_useGeolocation,useMouseHovered:()=>esm_useMouseHovered,useSetState:()=>esm_useSetState,useKeyPress:()=>esm_useKeyPress,useScrollbarWidth:()=>useScrollbarWidth,useLatest:()=>esm_useLatest,useLockBodyScroll:()=>useLockBodyScroll,useCopyToClipboard:()=>useCopyToClipboard,useCss:()=>esm_useCss,useDefault:()=>esm_useDefault,useClickAway:()=>esm_useClickAway,useMotion:()=>esm_useMotion,useEnsuredForwardedRef:()=>useEnsuredForwardedRef,useBoolean:()=>useBoolean,useInterval:()=>useInterval,useSessionStorage:()=>esm_useSessionStorage,useMethods:()=>useMethods,createGlobalState:()=>createGlobalState_createGlobalState,useError:()=>esm_useError,createReducer:()=>createReducer,useObservable:()=>esm_useObservable,createStateContext:()=>factory_createStateContext,useMap:()=>useMap,useKey:()=>esm_useKey,useStateList:()=>useStateList,useUpdateEffect:()=>useUpdateEffect,useMedia:()=>esm_useMedia,useTitle:()=>esm_useTitle,useWindowSize:()=>useWindowSize,useQueue:()=>esm_useQueue,useLifecycles:()=>esm_useLifecycles,useFavicon:()=>esm_useFavicon,useMouse:()=>esm_useMouse,useScrolling:()=>esm_useScrolling,useTimeout:()=>useTimeout,useToggle:()=>esm_useToggle,useLocalStorage:()=>useLocalStorage,useFullscreen:()=>useFullscreen,useLocation:()=>useLocation,useMount:()=>esm_useMount,useTween:()=>esm_useTween,useSlider:()=>esm_useSlider,useGetSet:()=>useGetSet,createBreakpoint:()=>createBreakpoint,useGetSetState:()=>useGetSetState,useUnmount:()=>esm_useUnmount,useThrottle:()=>useThrottle,useVibrate:()=>esm_useVibrate,useWindowScroll:()=>esm_useWindowScroll,useDropArea:()=>esm_useDropArea,useDrop:()=>esm_useDrop,usePinchZoom:()=>esm_usePinchZoom,useUnmountPromise:()=>useUnmountPromise,createMemo:()=>createMemo,useAudio:()=>esm_useAudio,useOrientation:()=>useOrientation,useSet:()=>useSet,useSearchParam:()=>useSearchParam,useEvent:()=>useEvent,usePrevious:()=>usePrevious,usePermission:()=>esm_usePermission,useRaf:()=>useRaf,useSize:()=>useSize,useLongPress:()=>esm_useLongPress,useMediaDevices:()=>esm_useMediaDevices,useStateValidator:()=>useStateValidator,useVideo:()=>useVideo,useHoverDirty:()=>useHoverDirty,useCounter:()=>useCounter,useRafState:()=>esm_useRafState,createReducerContext:()=>factory_createReducerContext,useLogger:()=>esm_useLogger,useRafLoop:()=>useRafLoop,useIdle:()=>useIdle,useMountedState:()=>useMountedState,useTimeoutFn:()=>useTimeoutFn,useScroll:()=>esm_useScroll,useNetworkState:()=>useNetworkState,useStateWithHistory:()=>useStateWithHistory,useMeasure:()=>useMeasure,useDebounce:()=>useDebounce,useHash:()=>useHash,useMultiStateValidator:()=>useMultiStateValidator,useHover:()=>esm_useHover,useIsomorphicLayoutEffect:()=>esm_useIsomorphicLayoutEffect,usePageLeave:()=>esm_usePageLeave,useKeyPressEvent:()=>esm_useKeyPressEvent,useThrottleFn:()=>esm_useThrottleFn,useMouseWheel:()=>useMouseWheel,useHarmonicIntervalFn:()=>useHarmonicIntervalFn,useCustomCompareEffect:()=>useCustomCompareEffect,useFirstMountState:()=>useFirstMountState,useUpsert:()=>useUpsert,useIntersection:()=>esm_useIntersection,useMediatedState:()=>useMediatedState,useAsync:()=>useAsync,useScratch:()=>useScratch,useShallowCompareEffect:()=>useShallowCompareEffect,useRendersCount:()=>useRendersCount,usePreviousDistinct:()=>usePreviousDistinct,useUpdate:()=>useUpdate,useNumber:()=>useNumber,useSpeech:()=>useSpeech,useEffectOnce:()=>useEffectOnce,ensuredForwardRef:()=>ensuredForwardRef,useAsyncRetry:()=>useAsyncRetry,useStartTyping:()=>esm_useStartTyping,useCookie:()=>esm_useCookie,useList:()=>esm_useList,useAsyncFn:()=>useAsyncFn});var index_js_=__webpack_require__(8556);var createMemo_createMemo=function(fn){return function(){var args=[];for(var _i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return(0,index_js_.useMemo)(function(){return fn.apply(void 0,args)},args)}};const createMemo=createMemo_createMemo;var createReducerContext=function(reducer,defaultInitialState){var context=(0,index_js_.createContext)(void 0);var providerFactory=function(props,children){return(0,index_js_.createElement)(context.Provider,props,children)};var ReducerProvider=function(_a){var children=_a.children,initialState=_a.initialState;var state=(0,index_js_.useReducer)(reducer,void 0!==initialState?initialState:defaultInitialState);return providerFactory({value:state},children)};var useReducerContext=function(){var state=(0,index_js_.useContext)(context);if(null==state)throw new Error("useReducerContext must be used inside a ReducerProvider.");return state};return[useReducerContext,ReducerProvider,context]};const factory_createReducerContext=createReducerContext;function useFirstMountState(){var isFirst=(0,index_js_.useRef)(true);if(isFirst.current){isFirst.current=false;return true}return isFirst.current}var useUpdateEffect_useUpdateEffect=function(effect,deps){var isFirstMount=useFirstMountState();(0,index_js_.useEffect)(function(){if(!isFirstMount)return effect()},deps)};const useUpdateEffect=useUpdateEffect_useUpdateEffect;function composeMiddleware(chain){return function(context,dispatch){return chain.reduceRight(function(res,middleware){return middleware(context)(res)},dispatch)}}var createReducer_createReducer=function(){var middlewares=[];for(var _i=0;_i<arguments.length;_i++)middlewares[_i]=arguments[_i];var composedMiddleware=composeMiddleware(middlewares);return function(reducer,initialState,initializer){if(void 0===initializer)initializer=function(value){return value};var ref=(0,index_js_.useRef)(initializer(initialState));var _a=(0,index_js_.useState)(ref.current),setState=_a[1];var dispatch=(0,index_js_.useCallback)(function(action){ref.current=reducer(ref.current,action);setState(ref.current);return action},[reducer]);var dispatchRef=(0,index_js_.useRef)(composedMiddleware({getState:function(){return ref.current},dispatch:function(){var args=[];for(var _i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return dispatchRef.current.apply(dispatchRef,args)}},dispatch));useUpdateEffect(function(){dispatchRef.current=composedMiddleware({getState:function(){return ref.current},dispatch:function(){var args=[];for(var _i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return dispatchRef.current.apply(dispatchRef,args)}},dispatch)},[dispatch]);return[ref.current,dispatchRef.current]}};const createReducer=createReducer_createReducer;var createStateContext=function(defaultInitialValue){var context=(0,index_js_.createContext)(void 0);var providerFactory=function(props,children){return(0,index_js_.createElement)(context.Provider,props,children)};var StateProvider=function(_a){var children=_a.children,initialValue=_a.initialValue;var state=(0,index_js_.useState)(void 0!==initialValue?initialValue:defaultInitialValue);return providerFactory({value:state},children)};var useStateContext=function(){var state=(0,index_js_.useContext)(context);if(null==state)throw new Error("useStateContext must be used inside a StateProvider.");return state};return[useStateContext,StateProvider,context]};const factory_createStateContext=createStateContext;var tslib_es6=__webpack_require__(5243);function useMountedState(){var mountedRef=(0,index_js_.useRef)(false);var get=(0,index_js_.useCallback)(function(){return mountedRef.current},[]);(0,index_js_.useEffect)(function(){mountedRef.current=true;return function(){mountedRef.current=false}},[]);return get}function useAsyncFn(fn,deps,initialState){if(void 0===deps)deps=[];if(void 0===initialState)initialState={loading:false};var lastCallId=(0,index_js_.useRef)(0);var isMounted=useMountedState();var _a=(0,index_js_.useState)(initialState),state=_a[0],set=_a[1];var callback=(0,index_js_.useCallback)(function(){var args=[];for(var _i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var callId=++lastCallId.current;if(!state.loading)set(function(prevState){return(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},prevState),{loading:true})});return fn.apply(void 0,args).then(function(value){isMounted()&&callId===lastCallId.current&&set({value:value,loading:false});return value},function(error){isMounted()&&callId===lastCallId.current&&set({error:error,loading:false});return error})},deps);return[state,callback]}function useAsync(fn,deps){if(void 0===deps)deps=[];var _a=useAsyncFn(fn,deps,{loading:true}),state=_a[0],callback=_a[1];(0,index_js_.useEffect)(function(){callback()},[callback]);return state}var useAsyncRetry_useAsyncRetry=function(fn,deps){if(void 0===deps)deps=[];var _a=(0,index_js_.useState)(0),attempt=_a[0],setAttempt=_a[1];var state=useAsync(fn,(0,tslib_es6.__spreadArrays)(deps,[attempt]));var stateLoading=state.loading;var retry=(0,index_js_.useCallback)(function(){if(stateLoading)return;setAttempt(function(currentAttempt){return currentAttempt+1})},(0,tslib_es6.__spreadArrays)(deps,[stateLoading]));return(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},state),{retry:retry})};const useAsyncRetry=useAsyncRetry_useAsyncRetry;var useSetState=function(initialState){if(void 0===initialState)initialState={};var _a=(0,index_js_.useState)(initialState),state=_a[0],set=_a[1];var setState=(0,index_js_.useCallback)(function(patch){set(function(prevState){return Object.assign({},prevState,patch instanceof Function?patch(prevState):patch)})},[]);return[state,setState]};const esm_useSetState=useSetState;function parseTimeRanges(ranges){var result=[];for(var i=0;i<ranges.length;i++)result.push({start:ranges.start(i),end:ranges.end(i)});return result}function createHTMLMediaHook(tag){return function(elOrProps){var element;var props;if(index_js_.isValidElement(elOrProps)){element=elOrProps;props=element.props}else props=elOrProps;var _a=esm_useSetState({buffered:[],time:0,duration:0,paused:true,muted:false,volume:1,playing:false}),state=_a[0],setState=_a[1];var ref=(0,index_js_.useRef)(null);var wrapEvent=function(userEvent,proxyEvent){return function(event){try{proxyEvent&&proxyEvent(event)}finally{userEvent&&userEvent(event)}}};var onPlay=function(){return setState({paused:false})};var onPlaying=function(){return setState({playing:true})};var onWaiting=function(){return setState({playing:false})};var onPause=function(){return setState({paused:true,playing:false})};var onVolumeChange=function(){var el=ref.current;if(!el)return;setState({muted:el.muted,volume:el.volume})};var onDurationChange=function(){var el=ref.current;if(!el)return;var duration=el.duration,buffered=el.buffered;setState({duration:duration,buffered:parseTimeRanges(buffered)})};var onTimeUpdate=function(){var el=ref.current;if(!el)return;setState({time:el.currentTime})};var onProgress=function(){var el=ref.current;if(!el)return;setState({buffered:parseTimeRanges(el.buffered)})};element=element?index_js_.cloneElement(element,(0,tslib_es6.__assign)((0,tslib_es6.__assign)({controls:false},props),{ref:ref,onPlay:wrapEvent(props.onPlay,onPlay),onPlaying:wrapEvent(props.onPlaying,onPlaying),onWaiting:wrapEvent(props.onWaiting,onWaiting),onPause:wrapEvent(props.onPause,onPause),onVolumeChange:wrapEvent(props.onVolumeChange,onVolumeChange),onDurationChange:wrapEvent(props.onDurationChange,onDurationChange),onTimeUpdate:wrapEvent(props.onTimeUpdate,onTimeUpdate),onProgress:wrapEvent(props.onProgress,onProgress)})):index_js_.createElement(tag,(0,tslib_es6.__assign)((0,tslib_es6.__assign)({controls:false},props),{ref:ref,onPlay:wrapEvent(props.onPlay,onPlay),onPlaying:wrapEvent(props.onPlaying,onPlaying),onWaiting:wrapEvent(props.onWaiting,onWaiting),onPause:wrapEvent(props.onPause,onPause),onVolumeChange:wrapEvent(props.onVolumeChange,onVolumeChange),onDurationChange:wrapEvent(props.onDurationChange,onDurationChange),onTimeUpdate:wrapEvent(props.onTimeUpdate,onTimeUpdate),onProgress:wrapEvent(props.onProgress,onProgress)}));var lockPlay=false;var controls={play:function(){var el=ref.current;if(!el)return;if(!lockPlay){var promise=el.play();var isPromise="object"==typeof promise;if(isPromise){lockPlay=true;var resetLock=function(){lockPlay=false};promise.then(resetLock,resetLock)}return promise}},pause:function(){var el=ref.current;if(el&&!lockPlay)return el.pause()},seek:function(time){var el=ref.current;if(!el||void 0===state.duration)return;time=Math.min(state.duration,Math.max(0,time));el.currentTime=time},volume:function(volume){var el=ref.current;if(!el)return;volume=Math.min(1,Math.max(0,volume));el.volume=volume;setState({volume:volume})},mute:function(){var el=ref.current;if(!el)return;el.muted=true},unmute:function(){var el=ref.current;if(!el)return;el.muted=false}};(0,index_js_.useEffect)(function(){var el=ref.current;if(!el)return;setState({volume:el.volume,muted:el.muted,paused:el.paused});if(props.autoPlay&&el.paused)controls.play()},[props.src]);return[element,state,controls,ref]}}var useAudio=createHTMLMediaHook("audio");const esm_useAudio=useAudio;var noop=function(){};function on(obj){var args=[];for(var _i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];if(obj&&obj.addEventListener)obj.addEventListener.apply(obj,args)}function off(obj){var args=[];for(var _i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];if(obj&&obj.removeEventListener)obj.removeEventListener.apply(obj,args)}var isBrowser="undefined"!=typeof window;var isNavigator="undefined"!=typeof navigator;var react=__webpack_require__(2774);var react_default=/*#__PURE__*/__webpack_require__.n(react);const isDeepEqual=react_default();var nav=isNavigator?navigator:void 0;var isBatteryApiSupported=nav&&"function"==typeof nav.getBattery;function useBatteryMock(){return{isSupported:false}}function useBattery(){var _a=(0,index_js_.useState)({isSupported:true,fetched:false}),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var isMounted=true;var battery=null;var handleChange=function(){if(!isMounted||!battery)return;var newState={isSupported:true,fetched:true,level:battery.level,charging:battery.charging,dischargingTime:battery.dischargingTime,chargingTime:battery.chargingTime};isDeepEqual(state,newState)||setState(newState)};nav.getBattery().then(function(bat){if(!isMounted)return;battery=bat;on(battery,"chargingchange",handleChange);on(battery,"chargingtimechange",handleChange);on(battery,"dischargingtimechange",handleChange);on(battery,"levelchange",handleChange);handleChange()});return function(){isMounted=false;if(battery){off(battery,"chargingchange",handleChange);off(battery,"chargingtimechange",handleChange);off(battery,"dischargingtimechange",handleChange);off(battery,"levelchange",handleChange)}}},[]);return state}const esm_useBattery=isBatteryApiSupported?useBattery:useBatteryMock;var useBeforeUnload_useBeforeUnload=function(enabled,message){if(void 0===enabled)enabled=true;var handler=(0,index_js_.useCallback)(function(event){var finalEnabled="function"==typeof enabled?enabled():true;if(!finalEnabled)return;event.preventDefault();if(message)event.returnValue=message;return message},[enabled,message]);(0,index_js_.useEffect)(function(){if(!enabled)return;on(window,"beforeunload",handler);return function(){return off(window,"beforeunload",handler)}},[enabled,handler])};const useBeforeUnload=useBeforeUnload_useBeforeUnload;var toggleReducer=function(state,nextValue){return"boolean"==typeof nextValue?nextValue:!state};var useToggle=function(initialValue){return(0,index_js_.useReducer)(toggleReducer,initialValue)};const esm_useToggle=useToggle;const useBoolean=esm_useToggle;var defaultEvents=["mousedown","touchstart"];var useClickAway=function(ref,onClickAway,events){if(void 0===events)events=defaultEvents;var savedCallback=(0,index_js_.useRef)(onClickAway);(0,index_js_.useEffect)(function(){savedCallback.current=onClickAway},[onClickAway]);(0,index_js_.useEffect)(function(){var handler=function(event){var el=ref.current;el&&!el.contains(event.target)&&savedCallback.current(event)};for(var _i=0,events_1=events;_i<events_1.length;_i++){var eventName=events_1[_i];on(document,eventName,handler)}return function(){for(var _i=0,events_2=events;_i<events_2.length;_i++){var eventName=events_2[_i];off(document,eventName,handler)}}},[events,ref])};const esm_useClickAway=useClickAway;var js_cookie=__webpack_require__(2215);var js_cookie_default=/*#__PURE__*/__webpack_require__.n(js_cookie);var useCookie=function(cookieName){var _a=(0,index_js_.useState)(function(){return js_cookie_default().get(cookieName)||null}),value=_a[0],setValue=_a[1];var updateCookie=(0,index_js_.useCallback)(function(newValue,options){js_cookie_default().set(cookieName,newValue,options);setValue(newValue)},[cookieName]);var deleteCookie=(0,index_js_.useCallback)(function(){js_cookie_default().remove(cookieName);setValue(null)},[cookieName]);return[value,updateCookie,deleteCookie]};const esm_useCookie=useCookie;var copy_to_clipboard=__webpack_require__(7965);var copy_to_clipboard_default=/*#__PURE__*/__webpack_require__.n(copy_to_clipboard);var useCopyToClipboard_useCopyToClipboard=function(){var isMounted=useMountedState();var _a=esm_useSetState({value:void 0,error:void 0,noUserInteraction:true}),state=_a[0],setState=_a[1];var copyToClipboard=(0,index_js_.useCallback)(function(value){if(!isMounted())return;var noUserInteraction;var normalizedValue;try{if("string"!=typeof value&&"number"!=typeof value){var error=new Error("Cannot copy typeof "+typeof value+" to clipboard, must be a string");setState({value:value,error:error,noUserInteraction:true});return}if(""===value){var error=new Error("Cannot copy empty string to clipboard.");setState({value:value,error:error,noUserInteraction:true});return}normalizedValue=value.toString();noUserInteraction=copy_to_clipboard_default()(normalizedValue);setState({value:normalizedValue,error:void 0,noUserInteraction:noUserInteraction})}catch(error){setState({value:normalizedValue,error:error,noUserInteraction:noUserInteraction})}},[]);return[state,copyToClipboard]};const useCopyToClipboard=useCopyToClipboard_useCopyToClipboard;var updateReducer=function(num){return(num+1)%1e6};function useUpdate(){var _a=(0,index_js_.useReducer)(updateReducer,0),update=_a[1];return update}function resolveHookState(nextState,currentState){if("function"==typeof nextState)return nextState.length?nextState(currentState):nextState();return nextState}function useGetSet(initialState){var state=(0,index_js_.useRef)(resolveHookState(initialState));var update=useUpdate();return(0,index_js_.useMemo)(function(){return[function(){return state.current},function(newState){state.current=resolveHookState(newState,state.current);update()}]},[])}function useCounter(initialValue,max,min){if(void 0===initialValue)initialValue=0;if(void 0===max)max=null;if(void 0===min)min=null;var init=resolveHookState(initialValue);"number"!=typeof init&&console.error("initialValue has to be a number, got "+typeof initialValue);if("number"==typeof min)init=Math.max(init,min);else if(null!==min)console.error("min has to be a number, got "+typeof min);if("number"==typeof max)init=Math.min(init,max);else if(null!==max)console.error("max has to be a number, got "+typeof max);var _a=useGetSet(init),get=_a[0],setInternal=_a[1];return[get(),(0,index_js_.useMemo)(function(){var set=function(newState){var prevState=get();var rState=resolveHookState(newState,prevState);if(prevState!==rState){if("number"==typeof min)rState=Math.max(rState,min);if("number"==typeof max)rState=Math.min(rState,max);prevState!==rState&&setInternal(rState)}};return{get:get,set:set,inc:function(delta){if(void 0===delta)delta=1;var rDelta=resolveHookState(delta,get());if("number"!=typeof rDelta)console.error("delta has to be a number or function returning a number, got "+typeof rDelta);set(function(num){return num+rDelta})},dec:function(delta){if(void 0===delta)delta=1;var rDelta=resolveHookState(delta,get());if("number"!=typeof rDelta)console.error("delta has to be a number or function returning a number, got "+typeof rDelta);set(function(num){return num-rDelta})},reset:function(value){if(void 0===value)value=init;var rValue=resolveHookState(value,get());if("number"!=typeof rValue)console.error("value has to be a number or function returning a number, got "+typeof rValue);init=rValue;set(rValue)}}},[init,min,max])]}var nano_css=__webpack_require__(2365);var cssom=__webpack_require__(759);var vcssom=__webpack_require__(2731);var cssToTree=__webpack_require__(2798);var useIsomorphicLayoutEffect=isBrowser?index_js_.useLayoutEffect:index_js_.useEffect;const esm_useIsomorphicLayoutEffect=useIsomorphicLayoutEffect;var nano=(0,nano_css.create)();(0,cssom.addon)(nano);(0,vcssom.addon)(nano);var counter=0;var useCss=function(css){var className=(0,index_js_.useMemo)(function(){return"react-use-css-"+(counter++).toString(36)},[]);var sheet=(0,index_js_.useMemo)(function(){return new nano.VSheet},[]);esm_useIsomorphicLayoutEffect(function(){var tree={};(0,cssToTree.cssToTree)(tree,css,"."+className,"");sheet.diff(tree);return function(){sheet.diff({})}});return className};const esm_useCss=useCss;var useCustomCompareEffect_useCustomCompareEffect=function(effect,deps,depsEqual){var ref=(0,index_js_.useRef)(void 0);if(!ref.current||!depsEqual(deps,ref.current))ref.current=deps;(0,index_js_.useEffect)(effect,ref.current)};const useCustomCompareEffect=useCustomCompareEffect_useCustomCompareEffect;function useTimeoutFn(fn,ms){if(void 0===ms)ms=0;var ready=(0,index_js_.useRef)(false);var timeout=(0,index_js_.useRef)();var callback=(0,index_js_.useRef)(fn);var isReady=(0,index_js_.useCallback)(function(){return ready.current},[]);var set=(0,index_js_.useCallback)(function(){ready.current=false;timeout.current&&clearTimeout(timeout.current);timeout.current=setTimeout(function(){ready.current=true;callback.current()},ms)},[ms]);var clear=(0,index_js_.useCallback)(function(){ready.current=null;timeout.current&&clearTimeout(timeout.current)},[]);(0,index_js_.useEffect)(function(){callback.current=fn},[fn]);(0,index_js_.useEffect)(function(){set();return clear},[ms]);return[isReady,clear,set]}function useDebounce(fn,ms,deps){if(void 0===ms)ms=0;if(void 0===deps)deps=[];var _a=useTimeoutFn(fn,ms),isReady=_a[0],cancel=_a[1],reset=_a[2];(0,index_js_.useEffect)(reset,deps);return[isReady,cancel]}var useDeepCompareEffect_useDeepCompareEffect=function(effect,deps){useCustomCompareEffect(effect,deps,isDeepEqual)};const useDeepCompareEffect=useDeepCompareEffect_useDeepCompareEffect;var useDefault=function(defaultValue,initialValue){var _a=(0,index_js_.useState)(initialValue),value=_a[0],setValue=_a[1];if(null==value)return[defaultValue,setValue];return[value,setValue]};const esm_useDefault=useDefault;var createProcess=function(options){return function(dataTransfer,event){var uri=dataTransfer.getData("text/uri-list");if(uri)return void(options.onUri||noop)(uri,event);if(dataTransfer.files&&dataTransfer.files.length)return void(options.onFiles||noop)(Array.from(dataTransfer.files),event);if(event.clipboardData){var text=event.clipboardData.getData("text");(options.onText||noop)(text,event);return}}};var useDrop=function(options,args){if(void 0===options)options={};if(void 0===args)args=[];var onFiles=options.onFiles,onText=options.onText,onUri=options.onUri;var _a=(0,index_js_.useState)(false),over=_a[0],setOverRaw=_a[1];var setOver=(0,index_js_.useCallback)(setOverRaw,[]);var process=(0,index_js_.useMemo)(function(){return createProcess(options)},[onFiles,onText,onUri]);(0,index_js_.useEffect)(function(){var onDragOver=function(event){event.preventDefault();setOver(true)};var onDragEnter=function(event){event.preventDefault();setOver(true)};var onDragLeave=function(){setOver(false)};var onDragExit=function(){setOver(false)};var onDrop=function(event){event.preventDefault();setOver(false);process(event.dataTransfer,event)};var onPaste=function(event){process(event.clipboardData,event)};on(document,"dragover",onDragOver);on(document,"dragenter",onDragEnter);on(document,"dragleave",onDragLeave);on(document,"dragexit",onDragExit);on(document,"drop",onDrop);if(onText)on(document,"paste",onPaste);return function(){off(document,"dragover",onDragOver);off(document,"dragenter",onDragEnter);off(document,"dragleave",onDragLeave);off(document,"dragexit",onDragExit);off(document,"drop",onDrop);off(document,"paste",onPaste)}},(0,tslib_es6.__spreadArrays)([process],args));return{over:over}};const esm_useDrop=useDrop;var useDropArea_createProcess=function(options,mounted){return function(dataTransfer,event){var uri=dataTransfer.getData("text/uri-list");if(uri)return void(options.onUri||noop)(uri,event);if(dataTransfer.files&&dataTransfer.files.length)return void(options.onFiles||noop)(Array.from(dataTransfer.files),event);if(dataTransfer.items&&dataTransfer.items.length)dataTransfer.items[0].getAsString(function(text){if(mounted)(options.onText||noop)(text,event)})}};var createBond=function(process,setOver){return{onDragOver:function(event){event.preventDefault()},onDragEnter:function(event){event.preventDefault();setOver(true)},onDragLeave:function(){setOver(false)},onDrop:function(event){event.preventDefault();event.persist();setOver(false);process(event.dataTransfer,event)},onPaste:function(event){event.persist();process(event.clipboardData,event)}}};var useDropArea=function(options){if(void 0===options)options={};var onFiles=options.onFiles,onText=options.onText,onUri=options.onUri;var isMounted=useMountedState();var _a=(0,index_js_.useState)(false),over=_a[0],setOver=_a[1];var process=(0,index_js_.useMemo)(function(){return useDropArea_createProcess(options,isMounted())},[onFiles,onText,onUri]);var bond=(0,index_js_.useMemo)(function(){return createBond(process,setOver)},[process,setOver]);return[bond,{over:over}]};const esm_useDropArea=useDropArea;var useEffectOnce_useEffectOnce=function(effect){(0,index_js_.useEffect)(effect,[])};const useEffectOnce=useEffectOnce_useEffectOnce;function useEnsuredForwardedRef(forwardedRef){var ensuredRef=(0,index_js_.useRef)(forwardedRef&&forwardedRef.current);(0,index_js_.useEffect)(function(){if(!forwardedRef)return;forwardedRef.current=ensuredRef.current},[forwardedRef]);return ensuredRef}function ensuredForwardRef(Component){return(0,index_js_.forwardRef)(function(props,ref){var ensuredRef=useEnsuredForwardedRef(ref);return Component(props,ensuredRef)})}var defaultTarget=isBrowser?window:null;var isListenerType1=function(target){return!!target.addEventListener};var isListenerType2=function(target){return!!target.on};var useEvent_useEvent=function(name,handler,target,options){if(void 0===target)target=defaultTarget;(0,index_js_.useEffect)(function(){if(!handler)return;if(!target)return;if(isListenerType1(target))on(target,name,handler,options);else if(isListenerType2(target))target.on(name,handler,options);return function(){if(isListenerType1(target))off(target,name,handler,options);else if(isListenerType2(target))target.off(name,handler,options)}},[name,handler,target,JSON.stringify(options)])};const useEvent=useEvent_useEvent;var useError=function(){var _a=(0,index_js_.useState)(null),error=_a[0],setError=_a[1];(0,index_js_.useEffect)(function(){if(error)throw error},[error]);var dispatchError=(0,index_js_.useCallback)(function(err){setError(err)},[]);return dispatchError};const esm_useError=useError;var useFavicon=function(href){(0,index_js_.useEffect)(function(){var link=document.querySelector("link[rel*='icon']")||document.createElement("link");link.type="image/x-icon";link.rel="shortcut icon";link.href=href;document.getElementsByTagName("head")[0].appendChild(link)},[href])};const esm_useFavicon=useFavicon;var screenfull=__webpack_require__(1916);var screenfull_default=/*#__PURE__*/__webpack_require__.n(screenfull);var useFullscreen_useFullscreen=function(ref,enabled,options){if(void 0===options)options={};var video=options.video,_a=options.onClose,onClose=void 0===_a?noop:_a;var _b=(0,index_js_.useState)(enabled),isFullscreen=_b[0],setIsFullscreen=_b[1];esm_useIsomorphicLayoutEffect(function(){if(!enabled)return;if(!ref.current)return;var onWebkitEndFullscreen=function(){if(null==video?void 0:video.current)off(video.current,"webkitendfullscreen",onWebkitEndFullscreen);onClose()};var onChange=function(){if(screenfull_default().isEnabled){var isScreenfullFullscreen=screenfull_default().isFullscreen;setIsFullscreen(isScreenfullFullscreen);if(!isScreenfullFullscreen)onClose()}};if(screenfull_default().isEnabled){try{screenfull_default().request(ref.current);setIsFullscreen(true)}catch(error){onClose(error);setIsFullscreen(false)}screenfull_default().on("change",onChange)}else if(video&&video.current&&video.current.webkitEnterFullscreen){video.current.webkitEnterFullscreen();on(video.current,"webkitendfullscreen",onWebkitEndFullscreen);setIsFullscreen(true)}else{onClose();setIsFullscreen(false)}return function(){setIsFullscreen(false);if(screenfull_default().isEnabled)try{screenfull_default().off("change",onChange);screenfull_default().exit()}catch(_a){}else if(video&&video.current&&video.current.webkitExitFullscreen){off(video.current,"webkitendfullscreen",onWebkitEndFullscreen);video.current.webkitExitFullscreen()}}},[enabled,video,ref]);return isFullscreen};const useFullscreen=useFullscreen_useFullscreen;var useGeolocation=function(options){var _a=(0,index_js_.useState)({loading:true,accuracy:null,altitude:null,altitudeAccuracy:null,heading:null,latitude:null,longitude:null,speed:null,timestamp:Date.now()}),state=_a[0],setState=_a[1];var mounted=true;var watchId;var onEvent=function(event){if(mounted)setState({loading:false,accuracy:event.coords.accuracy,altitude:event.coords.altitude,altitudeAccuracy:event.coords.altitudeAccuracy,heading:event.coords.heading,latitude:event.coords.latitude,longitude:event.coords.longitude,speed:event.coords.speed,timestamp:event.timestamp})};var onEventError=function(error){return mounted&&setState(function(oldState){return(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},oldState),{loading:false,error:error})})};(0,index_js_.useEffect)(function(){navigator.geolocation.getCurrentPosition(onEvent,onEventError,options);watchId=navigator.geolocation.watchPosition(onEvent,onEventError,options);return function(){mounted=false;navigator.geolocation.clearWatch(watchId)}},[]);return state};const esm_useGeolocation=useGeolocation;var useGetSetState_useGetSetState=function(initialState){if(void 0===initialState)initialState={};var update=useUpdate();var state=(0,index_js_.useRef)((0,tslib_es6.__assign)({},initialState));var get=(0,index_js_.useCallback)(function(){return state.current},[]);var set=(0,index_js_.useCallback)(function(patch){if(!patch)return;Object.assign(state.current,patch);update()},[]);return[get,set]};const useGetSetState=useGetSetState_useGetSetState;var index_esm_counter=0;var buckets={};var setHarmonicInterval=function(fn,ms){var _a;var id=index_esm_counter++;if(buckets[ms])buckets[ms].listeners[id]=fn;else{var timer=setInterval(function(){var listeners=buckets[ms].listeners;var didThrow=false;var lastError;for(var _i=0,_a=Object.values(listeners);_i<_a.length;_i++){var listener=_a[_i];try{listener()}catch(error){didThrow=true;lastError=error}}if(didThrow)throw lastError},ms);buckets[ms]={ms:ms,timer:timer,listeners:(_a={},_a[id]=fn,_a)}}return{bucket:buckets[ms],id:id}};var clearHarmonicInterval=function(_a){var bucket=_a.bucket,id=_a.id;delete bucket.listeners[id];var hasListeners=false;for(var listener in bucket.listeners){hasListeners=true;break}if(!hasListeners){clearInterval(bucket.timer);delete buckets[bucket.ms]}};var useHarmonicIntervalFn_useHarmonicIntervalFn=function(fn,delay){if(void 0===delay)delay=0;var latestCallback=(0,index_js_.useRef)(function(){});(0,index_js_.useEffect)(function(){latestCallback.current=fn});(0,index_js_.useEffect)(function(){if(null!==delay){var interval_1=setHarmonicInterval(function(){return latestCallback.current()},delay);return function(){return clearHarmonicInterval(interval_1)}}},[delay])};const useHarmonicIntervalFn=useHarmonicIntervalFn_useHarmonicIntervalFn;var useState=index_js_.useState;var useHover=function(element){var _a=useState(false),state=_a[0],setState=_a[1];var onMouseEnter=function(originalOnMouseEnter){return function(event){(originalOnMouseEnter||noop)(event);setState(true)}};var onMouseLeave=function(originalOnMouseLeave){return function(event){(originalOnMouseLeave||noop)(event);setState(false)}};if("function"==typeof element)element=element(state);var el=index_js_.cloneElement(element,{onMouseEnter:onMouseEnter(element.props.onMouseEnter),onMouseLeave:onMouseLeave(element.props.onMouseLeave)});return[el,state]};const esm_useHover=useHover;var useHoverDirty_useHoverDirty=function(ref,enabled){if(void 0===enabled)enabled=true;var _a=(0,index_js_.useState)(false),value=_a[0],setValue=_a[1];(0,index_js_.useEffect)(function(){var onMouseOver=function(){return setValue(true)};var onMouseOut=function(){return setValue(false)};if(enabled&&ref&&ref.current){on(ref.current,"mouseover",onMouseOver);on(ref.current,"mouseout",onMouseOut)}var current=ref.current;return function(){if(enabled&&current){off(current,"mouseover",onMouseOver);off(current,"mouseout",onMouseOut)}}},[enabled,ref]);return value};const useHoverDirty=useHoverDirty_useHoverDirty;function throttle(delay,noTrailing,callback,debounceMode){var timeoutID;var cancelled=false;var lastExec=0;function clearExistingTimeout(){if(timeoutID)clearTimeout(timeoutID)}function cancel(){clearExistingTimeout();cancelled=true}if("boolean"!=typeof noTrailing){debounceMode=callback;callback=noTrailing;noTrailing=void 0}function wrapper(){for(var _len=arguments.length,arguments_=new Array(_len),_key=0;_key<_len;_key++)arguments_[_key]=arguments[_key];var self=this;var elapsed=Date.now()-lastExec;if(cancelled)return;function exec(){lastExec=Date.now();callback.apply(self,arguments_)}function clear(){timeoutID=void 0}if(debounceMode&&!timeoutID)exec();clearExistingTimeout();if(void 0===debounceMode&&elapsed>delay)exec();else if(true!==noTrailing)timeoutID=setTimeout(debounceMode?clear:exec,void 0===debounceMode?delay-elapsed:delay)}wrapper.cancel=cancel;return wrapper}var useIdle_defaultEvents=["mousemove","mousedown","resize","keydown","touchstart","wheel"];var oneMinute=6e4;var useIdle_useIdle=function(ms,initialState,events){if(void 0===ms)ms=oneMinute;if(void 0===initialState)initialState=false;if(void 0===events)events=useIdle_defaultEvents;var _a=(0,index_js_.useState)(initialState),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var mounted=true;var timeout;var localState=state;var set=function(newState){if(mounted){localState=newState;setState(newState)}};var onEvent=throttle(50,function(){if(localState)set(false);clearTimeout(timeout);timeout=setTimeout(function(){return set(true)},ms)});var onVisibility=function(){if(!document.hidden)onEvent()};for(var i=0;i<events.length;i++)on(window,events[i],onEvent);on(document,"visibilitychange",onVisibility);timeout=setTimeout(function(){return set(true)},ms);return function(){mounted=false;for(var i=0;i<events.length;i++)off(window,events[i],onEvent);off(document,"visibilitychange",onVisibility)}},[ms,events]);return state};const useIdle=useIdle_useIdle;var useIntersection=function(ref,options){var _a=(0,index_js_.useState)(null),intersectionObserverEntry=_a[0],setIntersectionObserverEntry=_a[1];(0,index_js_.useEffect)(function(){if(ref.current&&"function"==typeof IntersectionObserver){var handler=function(entries){setIntersectionObserverEntry(entries[0])};var observer_1=new IntersectionObserver(handler,options);observer_1.observe(ref.current);return function(){setIntersectionObserverEntry(null);observer_1.disconnect()}}return function(){}},[ref.current,options.threshold,options.root,options.rootMargin]);return intersectionObserverEntry};const esm_useIntersection=useIntersection;var useInterval_useInterval=function(callback,delay){var savedCallback=(0,index_js_.useRef)(function(){});(0,index_js_.useEffect)(function(){savedCallback.current=callback});(0,index_js_.useEffect)(function(){if(null!==delay){var interval_1=setInterval(function(){return savedCallback.current()},delay||0);return function(){return clearInterval(interval_1)}}},[delay])};const useInterval=useInterval_useInterval;var createKeyPredicate=function(keyFilter){return"function"==typeof keyFilter?keyFilter:"string"==typeof keyFilter?function(event){return event.key===keyFilter}:keyFilter?function(){return true}:function(){return false}};var useKey=function(key,fn,opts,deps){if(void 0===fn)fn=noop;if(void 0===opts)opts={};if(void 0===deps)deps=[key];var _a=opts.event,event=void 0===_a?"keydown":_a,target=opts.target,options=opts.options;var useMemoHandler=(0,index_js_.useMemo)(function(){var predicate=createKeyPredicate(key);var handler=function(handlerEvent){if(predicate(handlerEvent))return fn(handlerEvent)};return handler},deps);useEvent(event,useMemoHandler,target,options)};const esm_useKey=useKey;var createBreakpoint_createBreakpoint=function(breakpoints){if(void 0===breakpoints)breakpoints={laptopL:1440,laptop:1024,tablet:768};return function(){var _a=(0,index_js_.useState)(isBrowser?window.innerWidth:0),screen=_a[0],setScreen=_a[1];(0,index_js_.useEffect)(function(){var setSideScreen=function(){setScreen(window.innerWidth)};setSideScreen();on(window,"resize",setSideScreen);return function(){off(window,"resize",setSideScreen)}});var sortedBreakpoints=(0,index_js_.useMemo)(function(){return Object.entries(breakpoints).sort(function(a,b){return a[1]>=b[1]?1:-1})},[breakpoints]);var result=sortedBreakpoints.reduce(function(acc,_a){var name=_a[0],width=_a[1];if(screen>=width)return name;return acc},sortedBreakpoints[0][0]);return result}};const createBreakpoint=createBreakpoint_createBreakpoint;var useKeyPress_useKeyPress=function(keyFilter){var _a=(0,index_js_.useState)([false,null]),state=_a[0],set=_a[1];esm_useKey(keyFilter,function(event){return set([true,event])},{event:"keydown"},[state]);esm_useKey(keyFilter,function(event){return set([false,event])},{event:"keyup"},[state]);return state};const esm_useKeyPress=useKeyPress_useKeyPress;var useKeyPressEvent=function(key,keydown,keyup,useKeyPress){if(void 0===useKeyPress)useKeyPress=esm_useKeyPress;var _a=useKeyPress(key),pressed=_a[0],event=_a[1];useUpdateEffect(function(){if(!pressed&&keyup)keyup(event);else if(pressed&&keydown)keydown(event)},[pressed])};const esm_useKeyPressEvent=useKeyPressEvent;var useLatest=function(value){var ref=(0,index_js_.useRef)(value);ref.current=value;return ref};const esm_useLatest=useLatest;var useLifecycles=function(mount,unmount){(0,index_js_.useEffect)(function(){if(mount)mount();return function(){if(unmount)unmount()}},[])};const esm_useLifecycles=useLifecycles;function useList(initialList){if(void 0===initialList)initialList=[];var list=(0,index_js_.useRef)(resolveHookState(initialList));var update=useUpdate();var actions=(0,index_js_.useMemo)(function(){var a={set:function(newList){list.current=resolveHookState(newList,list.current);update()},push:function(){var items=[];for(var _i=0;_i<arguments.length;_i++)items[_i]=arguments[_i];items.length&&actions.set(function(curr){return curr.concat(items)})},updateAt:function(index,item){actions.set(function(curr){var arr=curr.slice();arr[index]=item;return arr})},insertAt:function(index,item){actions.set(function(curr){var arr=curr.slice();index>arr.length?arr[index]=item:arr.splice(index,0,item);return arr})},update:function(predicate,newItem){actions.set(function(curr){return curr.map(function(item){return predicate(item,newItem)?newItem:item})})},updateFirst:function(predicate,newItem){var index=list.current.findIndex(function(item){return predicate(item,newItem)});index>=0&&actions.updateAt(index,newItem)},upsert:function(predicate,newItem){var index=list.current.findIndex(function(item){return predicate(item,newItem)});index>=0?actions.updateAt(index,newItem):actions.push(newItem)},sort:function(compareFn){actions.set(function(curr){return curr.slice().sort(compareFn)})},filter:function(callbackFn,thisArg){actions.set(function(curr){return curr.slice().filter(callbackFn,thisArg)})},removeAt:function(index){actions.set(function(curr){var arr=curr.slice();arr.splice(index,1);return arr})},clear:function(){actions.set([])},reset:function(){actions.set(resolveHookState(initialList).slice())}};a.remove=a.removeAt;return a},[]);return[list.current,actions]}const esm_useList=useList;var useLocalStorage_useLocalStorage=function(key,initialValue,options){if(!isBrowser)return[initialValue,noop,noop];if(!key)throw new Error("useLocalStorage key may not be falsy");var deserializer=options?options.raw?function(value){return value}:options.deserializer:JSON.parse;var initializer=(0,index_js_.useRef)(function(key){try{var serializer=options?options.raw?String:options.serializer:JSON.stringify;var localStorageValue=localStorage.getItem(key);if(null!==localStorageValue)return deserializer(localStorageValue);initialValue&&localStorage.setItem(key,serializer(initialValue));return initialValue}catch(_a){return initialValue}});var _a=(0,index_js_.useState)(function(){return initializer.current(key)}),state=_a[0],setState=_a[1];(0,index_js_.useLayoutEffect)(function(){return setState(initializer.current(key))},[key]);var set=(0,index_js_.useCallback)(function(valOrFunc){try{var newState="function"==typeof valOrFunc?valOrFunc(state):valOrFunc;if(void 0===newState)return;var value=void 0;value=options?options.raw?"string"==typeof newState?newState:JSON.stringify(newState):options.serializer?options.serializer(newState):JSON.stringify(newState):JSON.stringify(newState);localStorage.setItem(key,value);setState(deserializer(value))}catch(_a){}},[key,setState]);var remove=(0,index_js_.useCallback)(function(){try{localStorage.removeItem(key);setState(void 0)}catch(_a){}},[key,setState]);return[state,set,remove]};const useLocalStorage=useLocalStorage_useLocalStorage;var patchHistoryMethod=function(method){var history=window.history;var original=history[method];history[method]=function(state){var result=original.apply(this,arguments);var event=new Event(method.toLowerCase());event.state=state;window.dispatchEvent(event);return result}};if(isBrowser){patchHistoryMethod("pushState");patchHistoryMethod("replaceState")}var useLocationServer=function(){return{trigger:"load",length:1}};var buildState=function(trigger){var _a=window.history,state=_a.state,length=_a.length;var _b=window.location,hash=_b.hash,host=_b.host,hostname=_b.hostname,href=_b.href,origin=_b.origin,pathname=_b.pathname,port=_b.port,protocol=_b.protocol,search=_b.search;return{trigger:trigger,state:state,length:length,hash:hash,host:host,hostname:hostname,href:href,origin:origin,pathname:pathname,port:port,protocol:protocol,search:search}};var useLocationBrowser=function(){var _a=(0,index_js_.useState)(buildState("load")),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var onPopstate=function(){return setState(buildState("popstate"))};var onPushstate=function(){return setState(buildState("pushstate"))};var onReplacestate=function(){return setState(buildState("replacestate"))};on(window,"popstate",onPopstate);on(window,"pushstate",onPushstate);on(window,"replacestate",onReplacestate);return function(){off(window,"popstate",onPopstate);off(window,"pushstate",onPushstate);off(window,"replacestate",onReplacestate)}},[]);return state};var hasEventConstructor="function"==typeof Event;const useLocation=isBrowser&&hasEventConstructor?useLocationBrowser:useLocationServer;function getClosestBody(el){if(!el)return null;if("BODY"===el.tagName)return el;if("IFRAME"===el.tagName){var document_1=el.contentDocument;return document_1?document_1.body:null}if(!el.offsetParent)return null;return getClosestBody(el.offsetParent)}function preventDefault(rawEvent){var e=rawEvent||window.event;if(e.touches.length>1)return true;if(e.preventDefault)e.preventDefault();return false}var isIosDevice=isBrowser&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform);var bodies=new Map;var doc="object"==typeof document?document:void 0;var documentListenerAdded=false;const useLockBodyScroll=doc?function(locked,elementRef){if(void 0===locked)locked=true;var bodyRef=(0,index_js_.useRef)(doc.body);elementRef=elementRef||bodyRef;var lock=function(body){var bodyInfo=bodies.get(body);if(bodyInfo)bodies.set(body,{counter:bodyInfo.counter+1,initialOverflow:bodyInfo.initialOverflow});else{bodies.set(body,{counter:1,initialOverflow:body.style.overflow});if(isIosDevice){if(!documentListenerAdded){on(document,"touchmove",preventDefault,{passive:false});documentListenerAdded=true}}else body.style.overflow="hidden"}};var unlock=function(body){var bodyInfo=bodies.get(body);if(bodyInfo)if(1===bodyInfo.counter){bodies.delete(body);if(isIosDevice){body.ontouchmove=null;if(documentListenerAdded){off(document,"touchmove",preventDefault);documentListenerAdded=false}}else body.style.overflow=bodyInfo.initialOverflow}else bodies.set(body,{counter:bodyInfo.counter-1,initialOverflow:bodyInfo.initialOverflow})};(0,index_js_.useEffect)(function(){var body=getClosestBody(elementRef.current);if(!body)return;if(locked)lock(body);else unlock(body)},[locked,elementRef.current]);(0,index_js_.useEffect)(function(){var body=getClosestBody(elementRef.current);if(!body)return;return function(){unlock(body)}},[])}:function(_locked,_elementRef){if(void 0===_locked)_locked=true};var useLogger=function(componentName){var rest=[];for(var _i=1;_i<arguments.length;_i++)rest[_i-1]=arguments[_i];useEffectOnce(function(){console.log.apply(console,(0,tslib_es6.__spreadArrays)([componentName+" mounted"],rest));return function(){return console.log(componentName+" unmounted")}});useUpdateEffect(function(){console.log.apply(console,(0,tslib_es6.__spreadArrays)([componentName+" updated"],rest))})};const esm_useLogger=useLogger;var isTouchEvent=function(ev){return"touches"in ev};var useLongPress_preventDefault=function(ev){if(!isTouchEvent(ev))return;if(ev.touches.length<2&&ev.preventDefault)ev.preventDefault()};var useLongPress=function(callback,_a){var _b=void 0===_a?{}:_a,_c=_b.isPreventDefault,isPreventDefault=void 0===_c?true:_c,_d=_b.delay,delay=void 0===_d?300:_d;var timeout=(0,index_js_.useRef)();var target=(0,index_js_.useRef)();var start=(0,index_js_.useCallback)(function(event){if(isPreventDefault&&event.target){on(event.target,"touchend",useLongPress_preventDefault,{passive:false});target.current=event.target}timeout.current=setTimeout(function(){return callback(event)},delay)},[callback,delay,isPreventDefault]);var clear=(0,index_js_.useCallback)(function(){timeout.current&&clearTimeout(timeout.current);if(isPreventDefault&&target.current)off(target.current,"touchend",useLongPress_preventDefault)},[isPreventDefault]);return{onMouseDown:function(e){return start(e)},onTouchStart:function(e){return start(e)},onMouseUp:clear,onMouseLeave:clear,onTouchEnd:clear}};const esm_useLongPress=useLongPress;var useMap_useMap=function(initialMap){if(void 0===initialMap)initialMap={};var _a=(0,index_js_.useState)(initialMap),map=_a[0],set=_a[1];var stableActions=(0,index_js_.useMemo)(function(){return{set:function(key,entry){set(function(prevMap){var _a;return(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},prevMap),(_a={},_a[key]=entry,_a))})},setAll:function(newMap){set(newMap)},remove:function(key){set(function(prevMap){var _a=prevMap,_b=key,rest=(_a[_b],(0,tslib_es6.__rest)(_a,["symbol"==typeof _b?_b:_b+""]));return rest})},reset:function(){return set(initialMap)}}},[set]);var utils=(0,tslib_es6.__assign)({get:(0,index_js_.useCallback)(function(key){return map[key]},[map])},stableActions);return[map,utils]};const useMap=useMap_useMap;var getInitialState=function(query,defaultState){if(void 0!==defaultState)return defaultState;if(isBrowser)return window.matchMedia(query).matches;return false};var useMedia=function(query,defaultState){var _a=(0,index_js_.useState)(getInitialState(query,defaultState)),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var mounted=true;var mql=window.matchMedia(query);var onChange=function(){if(!mounted)return;setState(!!mql.matches)};mql.addEventListener("change",onChange);setState(mql.matches);return function(){mounted=false;mql.removeEventListener("change",onChange)}},[query]);return state};const esm_useMedia=useMedia;var useMediaDevices=function(){var _a=(0,index_js_.useState)({}),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var mounted=true;var onChange=function(){navigator.mediaDevices.enumerateDevices().then(function(devices){if(mounted)setState({devices:devices.map(function(_a){var deviceId=_a.deviceId,groupId=_a.groupId,kind=_a.kind,label=_a.label;return{deviceId:deviceId,groupId:groupId,kind:kind,label:label}})})}).catch(noop)};on(navigator.mediaDevices,"devicechange",onChange);onChange();return function(){mounted=false;off(navigator.mediaDevices,"devicechange",onChange)}},[]);return state};var useMediaDevicesMock=function(){return{}};const esm_useMediaDevices=isNavigator&&!!navigator.mediaDevices?useMediaDevices:useMediaDevicesMock;function useMediatedState(mediator,initialState){var mediatorFn=(0,index_js_.useRef)(mediator);var _a=(0,index_js_.useState)(initialState),state=_a[0],setMediatedState=_a[1];var setState=(0,index_js_.useCallback)(function(newState){if(2===mediatorFn.current.length)mediatorFn.current(newState,setMediatedState);else setMediatedState(mediatorFn.current(newState))},[state]);return[state,setState]}var useMethods_useMethods=function(createMethods,initialState){var reducer=(0,index_js_.useMemo)(function(){return function(reducerState,action){var _a;return(_a=createMethods(reducerState))[action.type].apply(_a,action.payload)}},[createMethods]);var _a=(0,index_js_.useReducer)(reducer,initialState),state=_a[0],dispatch=_a[1];var wrappedMethods=(0,index_js_.useMemo)(function(){var actionTypes=Object.keys(createMethods(initialState));return actionTypes.reduce(function(acc,type){acc[type]=function(){var payload=[];for(var _i=0;_i<arguments.length;_i++)payload[_i]=arguments[_i];return dispatch({type:type,payload:payload})};return acc},{})},[createMethods,initialState]);return[state,wrappedMethods]};const useMethods=useMethods_useMethods;var useMotion_defaultState={acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:16};var useMotion=function(initialState){if(void 0===initialState)initialState=useMotion_defaultState;var _a=(0,index_js_.useState)(initialState),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var handler=function(event){var acceleration=event.acceleration,accelerationIncludingGravity=event.accelerationIncludingGravity,rotationRate=event.rotationRate,interval=event.interval;setState({acceleration:{x:acceleration.x,y:acceleration.y,z:acceleration.z},accelerationIncludingGravity:{x:accelerationIncludingGravity.x,y:accelerationIncludingGravity.y,z:accelerationIncludingGravity.z},rotationRate:{alpha:rotationRate.alpha,beta:rotationRate.beta,gamma:rotationRate.gamma},interval:interval})};on(window,"devicemotion",handler);return function(){off(window,"devicemotion",handler)}},[]);return state};const esm_useMotion=useMotion;var useMount=function(fn){useEffectOnce(function(){fn()})};const esm_useMount=useMount;var useUnmount=function(fn){var fnRef=(0,index_js_.useRef)(fn);fnRef.current=fn;useEffectOnce(function(){return function(){return fnRef.current()}})};const esm_useUnmount=useUnmount;var useRafState=function(initialState){var frame=(0,index_js_.useRef)(0);var _a=(0,index_js_.useState)(initialState),state=_a[0],setState=_a[1];var setRafState=(0,index_js_.useCallback)(function(value){cancelAnimationFrame(frame.current);frame.current=requestAnimationFrame(function(){setState(value)})},[]);esm_useUnmount(function(){cancelAnimationFrame(frame.current)});return[state,setRafState]};const esm_useRafState=useRafState;var useMouse=function(ref){var _a=esm_useRafState({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var moveHandler=function(event){if(ref&&ref.current){var _a=ref.current.getBoundingClientRect(),left=_a.left,top_1=_a.top,elW=_a.width,elH=_a.height;var posX=left+window.pageXOffset;var posY=top_1+window.pageYOffset;var elX=event.pageX-posX;var elY=event.pageY-posY;setState({docX:event.pageX,docY:event.pageY,posX:posX,posY:posY,elX:elX,elY:elY,elH:elH,elW:elW})}};on(document,"mousemove",moveHandler);return function(){off(document,"mousemove",moveHandler)}},[ref]);return state};const esm_useMouse=useMouse;var nullRef={current:null};var useMouseHovered=function(ref,options){if(void 0===options)options={};var whenHovered=!!options.whenHovered;var bound=!!options.bound;var isHovered=useHoverDirty(ref,whenHovered);var state=esm_useMouse(whenHovered&&!isHovered?nullRef:ref);if(bound){state.elX=Math.max(0,Math.min(state.elX,state.elW));state.elY=Math.max(0,Math.min(state.elY,state.elH))}return state};const esm_useMouseHovered=useMouseHovered;const useMouseWheel=function(){var _a=(0,index_js_.useState)(0),mouseWheelScrolled=_a[0],setMouseWheelScrolled=_a[1];(0,index_js_.useEffect)(function(){var updateScroll=function(e){setMouseWheelScrolled(e.deltaY+mouseWheelScrolled)};on(window,"wheel",updateScroll,false);return function(){return off(window,"wheel",updateScroll)}});return mouseWheelScrolled};var useNetworkState_nav=isNavigator?navigator:void 0;var conn=useNetworkState_nav&&(useNetworkState_nav.connection||useNetworkState_nav.mozConnection||useNetworkState_nav.webkitConnection);function getConnectionState(previousState){var online=null==useNetworkState_nav?void 0:useNetworkState_nav.onLine;var previousOnline=null==previousState?void 0:previousState.online;return{online:online,previous:previousOnline,since:online!==previousOnline?new Date:null==previousState?void 0:previousState.since,downlink:null==conn?void 0:conn.downlink,downlinkMax:null==conn?void 0:conn.downlinkMax,effectiveType:null==conn?void 0:conn.effectiveType,rtt:null==conn?void 0:conn.rtt,saveData:null==conn?void 0:conn.saveData,type:null==conn?void 0:conn.type}}function useNetworkState(initialState){var _a=(0,index_js_.useState)(null!=initialState?initialState:getConnectionState),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var handleStateChange=function(){setState(getConnectionState)};on(window,"online",handleStateChange,{passive:true});on(window,"offline",handleStateChange,{passive:true});if(conn)on(conn,"change",handleStateChange,{passive:true});return function(){off(window,"online",handleStateChange);off(window,"offline",handleStateChange);if(conn)off(conn,"change",handleStateChange)}},[]);return state}const useNumber=useCounter;function useObservable(observable$,initialValue){var _a=(0,index_js_.useState)(initialValue),value=_a[0],update=_a[1];esm_useIsomorphicLayoutEffect(function(){var s=observable$.subscribe(update);return function(){return s.unsubscribe()}},[observable$]);return value}const esm_useObservable=useObservable;var useOrientation_defaultState={angle:0,type:"landscape-primary"};var useOrientation_useOrientation=function(initialState){if(void 0===initialState)initialState=useOrientation_defaultState;var _a=(0,index_js_.useState)(initialState),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var screen=window.screen;var mounted=true;var onChange=function(){if(mounted){var orientation_1=screen.orientation;if(orientation_1){var angle=orientation_1.angle,type=orientation_1.type;setState({angle:angle,type:type})}else void 0!==window.orientation?setState({angle:"number"==typeof window.orientation?window.orientation:0,type:""}):setState(initialState)}};on(window,"orientationchange",onChange);onChange();return function(){mounted=false;off(window,"orientationchange",onChange)}},[]);return state};const useOrientation=useOrientation_useOrientation;var usePageLeave=function(onPageLeave,args){if(void 0===args)args=[];(0,index_js_.useEffect)(function(){if(!onPageLeave)return;var handler=function(event){event=event?event:window.event;var from=event.relatedTarget||event.toElement;if(!from||"HTML"===from.nodeName)onPageLeave()};on(document,"mouseout",handler);return function(){off(document,"mouseout",handler)}},args)};const esm_usePageLeave=usePageLeave;var usePermission=function(permissionDesc){var _a=(0,index_js_.useState)(""),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var mounted=true;var permissionStatus=null;var onChange=function(){if(!mounted)return;setState(function(){var _a;return null!=(_a=null==permissionStatus?void 0:permissionStatus.state)?_a:""})};navigator.permissions.query(permissionDesc).then(function(status){permissionStatus=status;on(permissionStatus,"change",onChange);onChange()}).catch(noop);return function(){permissionStatus&&off(permissionStatus,"change",onChange);mounted=false;permissionStatus=null}},[permissionDesc]);return state};const esm_usePermission=usePermission;function usePrevious(state){var ref=(0,index_js_.useRef)();(0,index_js_.useEffect)(function(){ref.current=state});return ref.current}var strictEquals=function(prev,next){return prev===next};function usePreviousDistinct(value,compare){if(void 0===compare)compare=strictEquals;var prevRef=(0,index_js_.useRef)();var curRef=(0,index_js_.useRef)(value);var isFirstMount=useFirstMountState();if(!isFirstMount&&!compare(curRef.current,value)){prevRef.current=curRef.current;curRef.current=value}return prevRef.current}var usePromise=function(){var isMounted=useMountedState();return(0,index_js_.useCallback)(function(promise){return new Promise(function(resolve,reject){var onValue=function(value){isMounted()&&resolve(value)};var onError=function(error){isMounted()&&reject(error)};promise.then(onValue,onError)})},[])};const esm_usePromise=usePromise;var useQueue=function(initialValue){if(void 0===initialValue)initialValue=[];var _a=(0,index_js_.useState)(initialValue),state=_a[0],set=_a[1];return{add:function(value){set(function(queue){return(0,tslib_es6.__spreadArrays)(queue,[value])})},remove:function(){var result;set(function(_a){var first=_a[0],rest=_a.slice(1);result=first;return rest});return result},get first(){return state[0]},get last(){return state[state.length-1]},get size(){return state.length}}};const esm_useQueue=useQueue;var useRaf_useRaf=function(ms,delay){if(void 0===ms)ms=1e12;if(void 0===delay)delay=0;var _a=(0,index_js_.useState)(0),elapsed=_a[0],set=_a[1];esm_useIsomorphicLayoutEffect(function(){var raf;var timerStop;var start;var onFrame=function(){var time=Math.min(1,(Date.now()-start)/ms);set(time);loop()};var loop=function(){raf=requestAnimationFrame(onFrame)};var onStart=function(){timerStop=setTimeout(function(){cancelAnimationFrame(raf);set(1)},ms);start=Date.now();loop()};var timerDelay=setTimeout(onStart,delay);return function(){clearTimeout(timerStop);clearTimeout(timerDelay);cancelAnimationFrame(raf)}},[ms,delay]);return elapsed};const useRaf=useRaf_useRaf;function useRafLoop(callback,initiallyActive){if(void 0===initiallyActive)initiallyActive=true;var raf=(0,index_js_.useRef)(null);var rafActivity=(0,index_js_.useRef)(false);var rafCallback=(0,index_js_.useRef)(callback);rafCallback.current=callback;var step=(0,index_js_.useCallback)(function(time){if(rafActivity.current){rafCallback.current(time);raf.current=requestAnimationFrame(step)}},[]);var result=(0,index_js_.useMemo)(function(){return[function(){if(rafActivity.current){rafActivity.current=false;raf.current&&cancelAnimationFrame(raf.current)}},function(){if(!rafActivity.current){rafActivity.current=true;raf.current=requestAnimationFrame(step)}},function(){return rafActivity.current}]},[]);(0,index_js_.useEffect)(function(){if(initiallyActive)result[1]();return result[0]},[]);return result}var getValue=function(search,param){return new URLSearchParams(search).get(param)};var useSearchParam_useSearchParam=function(param){var location=window.location;var _a=(0,index_js_.useState)(function(){return getValue(location.search,param)}),value=_a[0],setValue=_a[1];(0,index_js_.useEffect)(function(){var onChange=function(){setValue(getValue(location.search,param))};on(window,"popstate",onChange);on(window,"pushstate",onChange);on(window,"replacestate",onChange);return function(){off(window,"popstate",onChange);off(window,"pushstate",onChange);off(window,"replacestate",onChange)}},[]);return value};var useSearchParamServer=function(){return null};const useSearchParam=isBrowser?useSearchParam_useSearchParam:useSearchParamServer;__webpack_require__(3426);var useScratch_useScratch=function(params){if(void 0===params)params={};var disabled=params.disabled;var paramsRef=esm_useLatest(params);var _a=(0,index_js_.useState)({isScratching:false}),state=_a[0],setState=_a[1];var refState=(0,index_js_.useRef)(state);var refScratching=(0,index_js_.useRef)(false);var refAnimationFrame=(0,index_js_.useRef)(null);var _b=(0,index_js_.useState)(null),el=_b[0],setEl=_b[1];(0,index_js_.useEffect)(function(){if(disabled)return;if(!el)return;var onMoveEvent=function(docX,docY){cancelAnimationFrame(refAnimationFrame.current);refAnimationFrame.current=requestAnimationFrame(function(){var _a=el.getBoundingClientRect(),left=_a.left,top=_a.top;var elX=left+window.scrollX;var elY=top+window.scrollY;var x=docX-elX;var y=docY-elY;setState(function(oldState){var newState=(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},oldState),{dx:x-(oldState.x||0),dy:y-(oldState.y||0),end:Date.now(),isScratching:true});refState.current=newState;(paramsRef.current.onScratch||noop)(newState);return newState})})};var onMouseMove=function(event){onMoveEvent(event.pageX,event.pageY)};var onTouchMove=function(event){onMoveEvent(event.changedTouches[0].pageX,event.changedTouches[0].pageY)};var onMouseUp;var onTouchEnd;var stopScratching=function(){if(!refScratching.current)return;refScratching.current=false;refState.current=(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},refState.current),{isScratching:false});(paramsRef.current.onScratchEnd||noop)(refState.current);setState({isScratching:false});off(window,"mousemove",onMouseMove);off(window,"touchmove",onTouchMove);off(window,"mouseup",onMouseUp);off(window,"touchend",onTouchEnd)};onMouseUp=stopScratching;onTouchEnd=stopScratching;var startScratching=function(docX,docY){if(!refScratching.current)return;var _a=el.getBoundingClientRect(),left=_a.left,top=_a.top;var elX=left+window.scrollX;var elY=top+window.scrollY;var x=docX-elX;var y=docY-elY;var time=Date.now();var newState={isScratching:true,start:time,end:time,docX:docX,docY:docY,x:x,y:y,dx:0,dy:0,elH:el.offsetHeight,elW:el.offsetWidth,elX:elX,elY:elY};refState.current=newState;(paramsRef.current.onScratchStart||noop)(newState);setState(newState);on(window,"mousemove",onMouseMove);on(window,"touchmove",onTouchMove);on(window,"mouseup",onMouseUp);on(window,"touchend",onTouchEnd)};var onMouseDown=function(event){refScratching.current=true;startScratching(event.pageX,event.pageY)};var onTouchStart=function(event){refScratching.current=true;startScratching(event.changedTouches[0].pageX,event.changedTouches[0].pageY)};on(el,"mousedown",onMouseDown);on(el,"touchstart",onTouchStart);return function(){off(el,"mousedown",onMouseDown);off(el,"touchstart",onTouchStart);off(window,"mousemove",onMouseMove);off(window,"touchmove",onTouchMove);off(window,"mouseup",onMouseUp);off(window,"touchend",onTouchEnd);if(refAnimationFrame.current)cancelAnimationFrame(refAnimationFrame.current);refAnimationFrame.current=null;refScratching.current=false;refState.current={isScratching:false};setState(refState.current)}},[el,disabled,paramsRef]);return[setEl,state]};const useScratch=useScratch_useScratch;var useScroll=function(ref){var _a=esm_useRafState({x:0,y:0}),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var handler=function(){if(ref.current)setState({x:ref.current.scrollLeft,y:ref.current.scrollTop})};if(ref.current)on(ref.current,"scroll",handler,{capture:false,passive:true});return function(){if(ref.current)off(ref.current,"scroll",handler)}},[ref]);return state};const esm_useScroll=useScroll;var useScrolling=function(ref){var _a=(0,index_js_.useState)(false),scrolling=_a[0],setScrolling=_a[1];(0,index_js_.useEffect)(function(){if(ref.current){var scrollingTimeout_1;var handleScrollEnd_1=function(){setScrolling(false)};var handleScroll_1=function(){setScrolling(true);clearTimeout(scrollingTimeout_1);scrollingTimeout_1=setTimeout(function(){return handleScrollEnd_1()},150)};on(ref.current,"scroll",handleScroll_1,false);return function(){if(ref.current)off(ref.current,"scroll",handleScroll_1,false)}}return function(){}},[ref]);return scrolling};const esm_useScrolling=useScrolling;var useSessionStorage=function(key,initialValue,raw){if(!isBrowser)return[initialValue,function(){}];var _a=(0,index_js_.useState)(function(){try{var sessionStorageValue=sessionStorage.getItem(key);if("string"==typeof sessionStorageValue)return raw?sessionStorageValue:JSON.parse(sessionStorageValue||"null");sessionStorage.setItem(key,raw?String(initialValue):JSON.stringify(initialValue));return initialValue}catch(_a){return initialValue}}),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){try{var serializedState=raw?String(state):JSON.stringify(state);sessionStorage.setItem(key,serializedState)}catch(_a){}});return[state,setState]};const esm_useSessionStorage=useSessionStorage;var fast_shallow_equal=__webpack_require__(9851);var shallowEqualDepsList=function(prevDeps,nextDeps){return prevDeps.every(function(dep,index){return(0,fast_shallow_equal.equal)(dep,nextDeps[index])})};var useShallowCompareEffect_useShallowCompareEffect=function(effect,deps){useCustomCompareEffect(effect,deps,shallowEqualDepsList)};const useShallowCompareEffect=useShallowCompareEffect_useShallowCompareEffect;var useSize_useState=index_js_.useState,useEffect=index_js_.useEffect,useRef=index_js_.useRef;var DRAF=function(callback){return setTimeout(callback,35)};var useSize_useSize=function(element,_a){var _b=void 0===_a?{}:_a,_c=_b.width,width=void 0===_c?1/0:_c,_d=_b.height,height=void 0===_d?1/0:_d;if(!isBrowser)return["function"==typeof element?element({width:width,height:height}):element,{width:width,height:height}];var _e=useSize_useState({width:width,height:height}),state=_e[0],setState=_e[1];if("function"==typeof element)element=element(state);var style=element.props.style||{};var ref=useRef(null);var window1=null;var setSize=function(){var iframe=ref.current;var size=iframe?{width:iframe.offsetWidth,height:iframe.offsetHeight}:{width:width,height:height};setState(size)};var onWindow=function(windowToListenOn){on(windowToListenOn,"resize",setSize);DRAF(setSize)};useEffect(function(){var iframe=ref.current;if(!iframe)return;if(iframe.contentWindow){window1=iframe.contentWindow;onWindow(window1)}else{var onLoad_1=function(){on(iframe,"load",onLoad_1);window1=iframe.contentWindow;onWindow(window1)};off(iframe,"load",onLoad_1)}return function(){if(window1&&window1.removeEventListener)off(window1,"resize",setSize)}},[]);style.position="relative";var sized=index_js_.cloneElement.apply(index_js_,(0,tslib_es6.__spreadArrays)([element,{style:style}],(0,tslib_es6.__spreadArrays)([index_js_.createElement("iframe",{ref:ref,style:{background:"transparent",border:"none",height:"100%",left:0,position:"absolute",top:0,width:"100%",zIndex:-1}})],index_js_.Children.toArray(element.props.children))));return[sized,state]};const useSize=useSize_useSize;var useSlider=function(ref,options){if(void 0===options)options={};var isMounted=useMountedState();var isSliding=(0,index_js_.useRef)(false);var valueRef=(0,index_js_.useRef)(0);var frame=(0,index_js_.useRef)(0);var _a=esm_useSetState({isSliding:false,value:0}),state=_a[0],setState=_a[1];valueRef.current=state.value;(0,index_js_.useEffect)(function(){if(!isBrowser)return;var styles=void 0===options.styles?true:options.styles;var reverse_1=void 0===options.reverse?false:options.reverse;if(ref.current&&styles)ref.current.style.userSelect="none";var startScrubbing_1=function(){if(!isSliding.current&&isMounted()){(options.onScrubStart||noop)();isSliding.current=true;setState({isSliding:true});bindEvents_1()}};var stopScrubbing_1=function(){if(isSliding.current&&isMounted()){(options.onScrubStop||noop)(valueRef.current);isSliding.current=false;setState({isSliding:false});unbindEvents_1()}};var onMouseDown_1=function(event){startScrubbing_1();onMouseMove_1(event)};var onMouseMove_1=options.vertical?function(event){return onScrub_1(event.clientY)}:function(event){return onScrub_1(event.clientX)};var onTouchStart_1=function(event){startScrubbing_1();onTouchMove_1(event)};var onTouchMove_1=options.vertical?function(event){return onScrub_1(event.changedTouches[0].clientY)}:function(event){return onScrub_1(event.changedTouches[0].clientX)};var bindEvents_1=function(){on(document,"mousemove",onMouseMove_1);on(document,"mouseup",stopScrubbing_1);on(document,"touchmove",onTouchMove_1);on(document,"touchend",stopScrubbing_1)};var unbindEvents_1=function(){off(document,"mousemove",onMouseMove_1);off(document,"mouseup",stopScrubbing_1);off(document,"touchmove",onTouchMove_1);off(document,"touchend",stopScrubbing_1)};var onScrub_1=function(clientXY){cancelAnimationFrame(frame.current);frame.current=requestAnimationFrame(function(){if(isMounted()&&ref.current){var rect=ref.current.getBoundingClientRect();var pos=options.vertical?rect.top:rect.left;var length_1=options.vertical?rect.height:rect.width;if(!length_1)return;var value=(clientXY-pos)/length_1;if(value>1)value=1;else if(value<0)value=0;if(reverse_1)value=1-value;setState({value:value});(options.onScrub||noop)(value)}})};on(ref.current,"mousedown",onMouseDown_1);on(ref.current,"touchstart",onTouchStart_1);return function(){off(ref.current,"mousedown",onMouseDown_1);off(ref.current,"touchstart",onTouchStart_1)}},[ref,options.vertical]);return state};const esm_useSlider=useSlider;var useSpeech_Status;(function(Status){Status[Status["init"]=0]="init";Status[Status["play"]=1]="play";Status[Status["pause"]=2]="pause";Status[Status["end"]=3]="end"})(useSpeech_Status||(useSpeech_Status={}));var useSpeech_useSpeech=function(text,options){var mounted=(0,index_js_.useRef)(false);var _a=(0,index_js_.useState)(function(){var _a=options.voice||{},_b=_a.lang,lang=void 0===_b?"default":_b,_c=_a.name,name=void 0===_c?"":_c;return{isPlaying:false,status:useSpeech_Status[useSpeech_Status.init],lang:options.lang||"default",voiceInfo:{lang:lang,name:name},rate:options.rate||1,pitch:options.pitch||1,volume:options.volume||1}}),state=_a[0],setState=_a[1];var handlePlay=(0,index_js_.useCallback)(function(){if(!mounted.current)return;setState(function(preState){return(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},preState),{isPlaying:true,status:useSpeech_Status[useSpeech_Status.play]})})},[]);var handlePause=(0,index_js_.useCallback)(function(){if(!mounted.current)return;setState(function(preState){return(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},preState),{isPlaying:false,status:useSpeech_Status[useSpeech_Status.pause]})})},[]);var handleEnd=(0,index_js_.useCallback)(function(){if(!mounted.current)return;setState(function(preState){return(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},preState),{isPlaying:false,status:useSpeech_Status[useSpeech_Status.end]})})},[]);(0,index_js_.useEffect)(function(){mounted.current=true;var utterance=new SpeechSynthesisUtterance(text);options.lang&&(utterance.lang=options.lang);options.voice&&(utterance.voice=options.voice);utterance.rate=options.rate||1;utterance.pitch=options.pitch||1;utterance.volume=options.volume||1;utterance.onstart=handlePlay;utterance.onpause=handlePause;utterance.onresume=handlePlay;utterance.onend=handleEnd;window.speechSynthesis.speak(utterance);return function(){mounted.current=false}},[]);return state};const useSpeech=useSpeech_useSpeech;var isFocusedElementEditable=function(){var activeElement=document.activeElement,body=document.body;if(!activeElement)return false;if(activeElement===body)return false;switch(activeElement.tagName){case"INPUT":case"TEXTAREA":return true}return activeElement.hasAttribute("contenteditable")};var isTypedCharGood=function(_a){var keyCode=_a.keyCode,metaKey=_a.metaKey,ctrlKey=_a.ctrlKey,altKey=_a.altKey;if(metaKey||ctrlKey||altKey)return false;if(keyCode>=48&&keyCode<=57)return true;if(keyCode>=65&&keyCode<=90)return true;return false};var useStartTyping=function(onStartTyping){esm_useIsomorphicLayoutEffect(function(){var keydown=function(event){!isFocusedElementEditable()&&isTypedCharGood(event)&&onStartTyping(event)};on(document,"keydown",keydown);return function(){off(document,"keydown",keydown)}},[])};const esm_useStartTyping=useStartTyping;function useStateWithHistory(initialState,capacity,initialHistory){if(void 0===capacity)capacity=10;if(capacity<1)throw new Error("Capacity has to be greater than 1, got '"+capacity+"'");var isFirstMount=useFirstMountState();var _a=(0,index_js_.useState)(initialState),state=_a[0],innerSetState=_a[1];var history=(0,index_js_.useRef)(null!=initialHistory?initialHistory:[]);var historyPosition=(0,index_js_.useRef)(0);if(isFirstMount){if(history.current.length){if(history.current[history.current.length-1]!==initialState)history.current.push(initialState);if(history.current.length>capacity)history.current=history.current.slice(history.current.length-capacity)}else history.current.push(initialState);historyPosition.current=history.current.length&&history.current.length-1}var setState=(0,index_js_.useCallback)(function(newState){innerSetState(function(currentState){newState=resolveHookState(newState,currentState);if(newState!==currentState){if(historyPosition.current<history.current.length-1)history.current=history.current.slice(0,historyPosition.current+1);historyPosition.current=history.current.push(newState)-1;if(history.current.length>capacity)history.current=history.current.slice(history.current.length-capacity)}return newState})},[state,capacity]);var historyState=(0,index_js_.useMemo)(function(){return{history:history.current,position:historyPosition.current,capacity:capacity,back:function(amount){if(void 0===amount)amount=1;if(!historyPosition.current)return;innerSetState(function(){historyPosition.current-=Math.min(amount,historyPosition.current);return history.current[historyPosition.current]})},forward:function(amount){if(void 0===amount)amount=1;if(historyPosition.current===history.current.length-1)return;innerSetState(function(){historyPosition.current=Math.min(historyPosition.current+amount,history.current.length-1);return history.current[historyPosition.current]})},go:function(position){if(position===historyPosition.current)return;innerSetState(function(){historyPosition.current=position<0?Math.max(history.current.length+position,0):Math.min(history.current.length-1,position);return history.current[historyPosition.current]})}}},[state]);return[state,setState,historyState]}function useStateList(stateSet){if(void 0===stateSet)stateSet=[];var isMounted=useMountedState();var update=useUpdate();var index=(0,index_js_.useRef)(0);useUpdateEffect(function(){if(stateSet.length<=index.current){index.current=stateSet.length-1;update()}},[stateSet.length]);var actions=(0,index_js_.useMemo)(function(){return{next:function(){return actions.setStateAt(index.current+1)},prev:function(){return actions.setStateAt(index.current-1)},setStateAt:function(newIndex){if(!isMounted())return;if(!stateSet.length)return;if(newIndex===index.current)return;index.current=newIndex>=0?newIndex%stateSet.length:stateSet.length+newIndex%stateSet.length;update()},setState:function(state){if(!isMounted())return;var newIndex=stateSet.length?stateSet.indexOf(state):-1;if(-1===newIndex)throw new Error("State '"+state+"' is not a valid state (does not exist in state list)");index.current=newIndex;update()}}},[stateSet]);return(0,tslib_es6.__assign)({state:stateSet[index.current],currentIndex:index.current,isFirst:0===index.current,isLast:index.current===stateSet.length-1},actions)}var useThrottle_useThrottle=function(value,ms){if(void 0===ms)ms=200;var _a=(0,index_js_.useState)(value),state=_a[0],setState=_a[1];var timeout=(0,index_js_.useRef)();var nextValue=(0,index_js_.useRef)(null);var hasNextValue=(0,index_js_.useRef)(0);(0,index_js_.useEffect)(function(){if(timeout.current){nextValue.current=value;hasNextValue.current=true}else{setState(value);var timeoutCallback_1=function(){if(hasNextValue.current){hasNextValue.current=false;setState(nextValue.current);timeout.current=setTimeout(timeoutCallback_1,ms)}else timeout.current=void 0};timeout.current=setTimeout(timeoutCallback_1,ms)}},[value]);esm_useUnmount(function(){timeout.current&&clearTimeout(timeout.current)});return state};const useThrottle=useThrottle_useThrottle;var useThrottleFn=function(fn,ms,args){if(void 0===ms)ms=200;var _a=(0,index_js_.useState)(null),state=_a[0],setState=_a[1];var timeout=(0,index_js_.useRef)();var nextArgs=(0,index_js_.useRef)();(0,index_js_.useEffect)(function(){if(timeout.current)nextArgs.current=args;else{setState(fn.apply(void 0,args));var timeoutCallback_1=function(){if(nextArgs.current){setState(fn.apply(void 0,nextArgs.current));nextArgs.current=void 0;timeout.current=setTimeout(timeoutCallback_1,ms)}else timeout.current=void 0};timeout.current=setTimeout(timeoutCallback_1,ms)}},args);esm_useUnmount(function(){timeout.current&&clearTimeout(timeout.current)});return state};const esm_useThrottleFn=useThrottleFn;function useTimeout(ms){if(void 0===ms)ms=0;var update=useUpdate();return useTimeoutFn(update,ms)}var DEFAULT_USE_TITLE_OPTIONS={restoreOnUnmount:false};function useTitle(title,options){if(void 0===options)options=DEFAULT_USE_TITLE_OPTIONS;var prevTitleRef=(0,index_js_.useRef)(document.title);if(document.title!==title)document.title=title;(0,index_js_.useEffect)(function(){if(options&&options.restoreOnUnmount)return function(){document.title=prevTitleRef.current}},[])}const esm_useTitle="undefined"!=typeof document?useTitle:function(_title){};var ts_easing_lib=__webpack_require__(3118);var useTween=function(easingName,ms,delay){if(void 0===easingName)easingName="inCirc";if(void 0===ms)ms=200;if(void 0===delay)delay=0;var fn=ts_easing_lib.easing[easingName];var t=useRaf(ms,delay);return fn(t)};const esm_useTween=useTween;var useUnmountPromise_useUnmountPromise=function(){var refUnmounted=(0,index_js_.useRef)(false);useEffectOnce(function(){return function(){refUnmounted.current=true}});var wrapper=(0,index_js_.useMemo)(function(){var race=function(promise,onError){var newPromise=new Promise(function(resolve,reject){promise.then(function(result){if(!refUnmounted.current)resolve(result)},function(error){if(refUnmounted.current)if(onError)onError(error);else console.error("useUnmountPromise",error);else reject(error)})});return newPromise};return race},[]);return wrapper};const useUnmountPromise=useUnmountPromise_useUnmountPromise;function useUpsert(predicate,initialList){if(void 0===initialList)initialList=[];var _a=esm_useList(initialList),list=_a[0],listActions=_a[1];return[list,(0,tslib_es6.__assign)((0,tslib_es6.__assign)({},listActions),{upsert:function(newItem){listActions.upsert(predicate,newItem)}})]}var isVibrationApiSupported=isNavigator&&"vibrate"in navigator;function useVibrate(enabled,pattern,loop){if(void 0===enabled)enabled=true;if(void 0===pattern)pattern=[1e3,1e3];if(void 0===loop)loop=true;(0,index_js_.useEffect)(function(){var interval;if(enabled){navigator.vibrate(pattern);if(loop){var duration=pattern instanceof Array?pattern.reduce(function(a,b){return a+b}):pattern;interval=setInterval(function(){navigator.vibrate(pattern)},duration)}}return function(){if(enabled){navigator.vibrate(0);if(loop)clearInterval(interval)}}},[enabled])}const esm_useVibrate=isVibrationApiSupported?useVibrate:noop;var useVideo_useVideo=createHTMLMediaHook("video");const useVideo=useVideo_useVideo;function useStateValidator(state,validator,initialState){if(void 0===initialState)initialState=[void 0];var validatorInner=(0,index_js_.useRef)(validator);var stateInner=(0,index_js_.useRef)(state);validatorInner.current=validator;stateInner.current=state;var _a=(0,index_js_.useState)(initialState),validity=_a[0],setValidity=_a[1];var validate=(0,index_js_.useCallback)(function(){if(validatorInner.current.length>=2)validatorInner.current(stateInner.current,setValidity);else setValidity(validatorInner.current(stateInner.current))},[setValidity]);(0,index_js_.useEffect)(function(){validate()},[state]);return[validity,validate]}var index_esm_e=function(t){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==t&&"number"==typeof index_esm_e.__cache)return index_esm_e.__cache;var o=document.createElement("div"),d=o.style;d.display="block",d.position="absolute",d.width="100px",d.height="100px",d.left="-999px",d.top="-999px",d.overflow="scroll",document.body.insertBefore(o,null);var n=o.clientWidth;if(0!==n)return index_esm_e.__cache=100-n,document.body.removeChild(o),index_esm_e.__cache;document.body.removeChild(o)}};function useScrollbarWidth(){var _a=(0,index_js_.useState)(index_esm_e()),sbw=_a[0],setSbw=_a[1];(0,index_js_.useEffect)(function(){if(void 0!==sbw)return;var raf=requestAnimationFrame(function(){setSbw(index_esm_e())});return function(){return cancelAnimationFrame(raf)}},[]);return sbw}function useMultiStateValidator(states,validator,initialValidity){if(void 0===initialValidity)initialValidity=[void 0];if("object"!=typeof states)throw new Error("states expected to be an object or array, got "+typeof states);var validatorInner=(0,index_js_.useRef)(validator);var statesInner=(0,index_js_.useRef)(states);validatorInner.current=validator;statesInner.current=states;var _a=(0,index_js_.useState)(initialValidity),validity=_a[0],setValidity=_a[1];var validate=(0,index_js_.useCallback)(function(){if(validatorInner.current.length>=2)validatorInner.current(statesInner.current,setValidity);else setValidity(validatorInner.current(statesInner.current))},[setValidity]);(0,index_js_.useEffect)(function(){validate()},Object.values(states));return[validity,validate]}var useWindowScroll=function(){var _a=esm_useRafState(function(){return{x:isBrowser?window.pageXOffset:0,y:isBrowser?window.pageYOffset:0}}),state=_a[0],setState=_a[1];(0,index_js_.useEffect)(function(){var handler=function(){setState(function(state){var pageXOffset=window.pageXOffset,pageYOffset=window.pageYOffset;return state.x!==pageXOffset||state.y!==pageYOffset?{x:pageXOffset,y:pageYOffset}:state})};handler();on(window,"scroll",handler,{capture:false,passive:true});return function(){off(window,"scroll",handler)}},[]);return state};const esm_useWindowScroll=useWindowScroll;var useWindowSize_useWindowSize=function(_a){var _b=void 0===_a?{}:_a,_c=_b.initialWidth,initialWidth=void 0===_c?1/0:_c,_d=_b.initialHeight,initialHeight=void 0===_d?1/0:_d,onChange=_b.onChange;var _e=esm_useRafState({width:isBrowser?window.innerWidth:initialWidth,height:isBrowser?window.innerHeight:initialHeight}),state=_e[0],setState=_e[1];(0,index_js_.useEffect)(function(){if(isBrowser){var handler_1=function(){var width=window.innerWidth;var height=window.innerHeight;setState({width:width,height:height});if(onChange)onChange(width,height)};on(window,"resize",handler_1);return function(){off(window,"resize",handler_1)}}},[]);return state};const useWindowSize=useWindowSize_useWindowSize;var useMeasure_defaultState={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function useMeasure_useMeasure(){var _a=(0,index_js_.useState)(null),element=_a[0],ref=_a[1];var _b=(0,index_js_.useState)(useMeasure_defaultState),rect=_b[0],setRect=_b[1];var observer=(0,index_js_.useMemo)(function(){return new window.ResizeObserver(function(entries){if(entries[0]){var _a=entries[0].contentRect,x=_a.x,y=_a.y,width=_a.width,height=_a.height,top_1=_a.top,left=_a.left,bottom=_a.bottom,right=_a.right;setRect({x:x,y:y,width:width,height:height,top:top_1,left:left,bottom:bottom,right:right})}})},[]);esm_useIsomorphicLayoutEffect(function(){if(!element)return;observer.observe(element);return function(){observer.disconnect()}},[element]);return[ref,rect]}const useMeasure=isBrowser&&void 0!==window.ResizeObserver?useMeasure_useMeasure:function(){return[noop,useMeasure_defaultState]};var usePinchZoom_ZoomState;(function(ZoomState){ZoomState["ZOOMING_IN"]="ZOOMING_IN";ZoomState["ZOOMING_OUT"]="ZOOMING_OUT"})(usePinchZoom_ZoomState||(usePinchZoom_ZoomState={}));var usePinchZoom=function(ref){var cacheRef=(0,index_js_.useMemo)(function(){return{evCache:[],prevDiff:-1}},[ref.current]);var _a=(0,index_js_.useState)(),zoomingState=_a[0],setZoomingState=_a[1];var pointermove_handler=function(ev){for(var i=0;i<cacheRef.evCache.length;i++)if(ev.pointerId==cacheRef.evCache[i].pointerId){cacheRef.evCache[i]=ev;break}if(2==cacheRef.evCache.length){var curDiff=Math.abs(cacheRef.evCache[0].clientX-cacheRef.evCache[1].clientX);if(cacheRef.prevDiff>0){if(curDiff>cacheRef.prevDiff)setZoomingState([usePinchZoom_ZoomState.ZOOMING_IN,curDiff]);if(curDiff<cacheRef.prevDiff)setZoomingState([usePinchZoom_ZoomState.ZOOMING_OUT,curDiff])}cacheRef.prevDiff=curDiff}};var pointerdown_handler=function(ev){cacheRef.evCache.push(ev)};var pointerup_handler=function(ev){remove_event(ev);if(cacheRef.evCache.length<2)cacheRef.prevDiff=-1};var remove_event=function(ev){for(var i=0;i<cacheRef.evCache.length;i++)if(cacheRef.evCache[i].pointerId==ev.pointerId){cacheRef.evCache.splice(i,1);break}};(0,index_js_.useEffect)(function(){if(null==ref?void 0:ref.current){ref.current.onpointerdown=pointerdown_handler;ref.current.onpointermove=pointermove_handler;ref.current.onpointerup=pointerup_handler;ref.current.onpointercancel=pointerup_handler;ref.current.onpointerout=pointerup_handler;ref.current.onpointerleave=pointerup_handler}},[null==ref?void 0:ref.current]);return zoomingState?{zoomingState:zoomingState[0],pinchState:zoomingState[1]}:{zoomingState:null,pinchState:0}};const esm_usePinchZoom=usePinchZoom;function useRendersCount(){return++(0,index_js_.useRef)(0).current}var useSet_useSet=function(initialSet){if(void 0===initialSet)initialSet=new Set;var _a=(0,index_js_.useState)(initialSet),set=_a[0],setSet=_a[1];var stableActions=(0,index_js_.useMemo)(function(){var add=function(item){return setSet(function(prevSet){return new Set((0,tslib_es6.__spreadArrays)(Array.from(prevSet),[item]))})};var remove=function(item){return setSet(function(prevSet){return new Set(Array.from(prevSet).filter(function(i){return i!==item}))})};var toggle=function(item){return setSet(function(prevSet){return prevSet.has(item)?new Set(Array.from(prevSet).filter(function(i){return i!==item})):new Set((0,tslib_es6.__spreadArrays)(Array.from(prevSet),[item]))})};return{add:add,remove:remove,toggle:toggle,reset:function(){return setSet(initialSet)},clear:function(){return setSet(new Set)}}},[setSet]);var utils=(0,tslib_es6.__assign)({has:(0,index_js_.useCallback)(function(item){return set.has(item)},[set])},stableActions);return[set,utils]};const useSet=useSet_useSet;function createGlobalState_createGlobalState(initialState){var store={state:initialState instanceof Function?initialState():initialState,setState:function(nextState){store.state=resolveHookState(nextState,store.state);store.setters.forEach(function(setter){return setter(store.state)})},setters:[]};return function(){var _a=(0,index_js_.useState)(store.state),globalState=_a[0],stateSetter=_a[1];useEffectOnce(function(){return function(){store.setters=store.setters.filter(function(setter){return setter!==stateSetter})}});esm_useIsomorphicLayoutEffect(function(){if(!store.setters.includes(stateSetter))store.setters.push(stateSetter)});return[globalState,store.setState]}}var useHash=function(){var _a=(0,index_js_.useState)(function(){return window.location.hash}),hash=_a[0],setHash=_a[1];var onHashChange=(0,index_js_.useCallback)(function(){setHash(window.location.hash)},[]);esm_useLifecycles(function(){on(window,"hashchange",onHashChange)},function(){off(window,"hashchange",onHashChange)});var _setHash=(0,index_js_.useCallback)(function(newHash){if(newHash!==hash)window.location.hash=newHash},[hash]);return[hash,_setHash]}},7965:function(module,__unused_webpack_exports,__webpack_require__){"use strict";var deselectCurrent=__webpack_require__(6426);var clipboardToIE11Formatting={"text/plain":"Text","text/html":"Url",default:"Text"};var defaultMessage="Copy to clipboard: #{key}, Enter";function format(message){var copyKey=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return message.replace(/#{\s*key\s*}/g,copyKey)}function copy(text,options){var debug,message,reselectPrevious,range,selection,mark,success=false;if(!options)options={};debug=options.debug||false;try{reselectPrevious=deselectCurrent();range=document.createRange();selection=document.getSelection();mark=document.createElement("span");mark.textContent=text;mark.ariaHidden="true";mark.style.all="unset";mark.style.position="fixed";mark.style.top=0;mark.style.clip="rect(0, 0, 0, 0)";mark.style.whiteSpace="pre";mark.style.webkitUserSelect="text";mark.style.MozUserSelect="text";mark.style.msUserSelect="text";mark.style.userSelect="text";mark.addEventListener("copy",function(e){e.stopPropagation();if(options.format){e.preventDefault();if(void 0===e.clipboardData){debug&&console.warn("unable to use e.clipboardData");debug&&console.warn("trying IE specific stuff");window.clipboardData.clearData();var format=clipboardToIE11Formatting[options.format]||clipboardToIE11Formatting["default"];window.clipboardData.setData(format,text)}else{e.clipboardData.clearData();e.clipboardData.setData(options.format,text)}}if(options.onCopy){e.preventDefault();options.onCopy(e.clipboardData)}});document.body.appendChild(mark);range.selectNodeContents(mark);selection.addRange(range);var successful=document.execCommand("copy");if(!successful)throw new Error("copy command was unsuccessful");success=true}catch(err){debug&&console.error("unable to copy using execCommand: ",err);debug&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(options.format||"text",text);options.onCopy&&options.onCopy(window.clipboardData);success=true}catch(err){debug&&console.error("unable to copy using clipboardData: ",err);debug&&console.error("falling back to prompt");message=format("message"in options?options.message:defaultMessage);window.prompt(message,text)}}finally{if(selection)if("function"==typeof selection.removeRange)selection.removeRange(range);else selection.removeAllRanges();if(mark)document.body.removeChild(mark);reselectPrevious()}return success}module.exports=copy},2774:function(module){"use strict";module.exports=function equal(a,b){if(a===b)return true;if(a&&b&&"object"==typeof a&&"object"==typeof b){if(a.constructor!==b.constructor)return false;var length,i,keys;if(Array.isArray(a)){length=a.length;if(length!=b.length)return false;for(i=length;0!==i--;)if(!equal(a[i],b[i]))return false;return true}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();keys=Object.keys(a);length=keys.length;if(length!==Object.keys(b).length)return false;for(i=length;0!==i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return false;for(i=length;0!==i--;){var key=keys[i];if("_owner"!==key||!a.$$typeof){if(!equal(a[key],b[key]))return false}}return true}return a!==a&&b!==b}},9851:function(__unused_webpack_module,exports){var keyList=Object.keys;exports.equal=function(a,b){if(a===b)return true;if(!(a instanceof Object)||!(b instanceof Object))return false;var keys=keyList(a);var length=keys.length;for(var i=0;i<length;i++)if(!(keys[i]in b))return false;for(var i=0;i<length;i++)if(a[keys[i]]!==b[keys[i]])return false;return length===keyList(b).length}},2215:function(module){(function(factory){var registeredInModuleLoader;if("function"==typeof define&&define.amd){define(factory);registeredInModuleLoader=true}module.exports=factory();registeredInModuleLoader=true;if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api}}})(function(){function extend(){var i=0;var result={};for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes)result[key]=attributes[key]}return result}function decode(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function init(converter){function api(){}function set(key,value,attributes){if("undefined"==typeof document)return;attributes=extend({path:"/"},api.defaults,attributes);if("number"==typeof attributes.expires)attributes.expires=new Date(new Date*1+864e5*attributes.expires);attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{var result=JSON.stringify(value);if(/^[\{\[]/.test(result))value=result}catch(e){}value=converter.write?converter.write(value,key):encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);key=encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes)if(attributes[attributeName]){stringifiedAttributes+="; "+attributeName;if(true!==attributes[attributeName])stringifiedAttributes+="="+attributes[attributeName].split(";")[0]}return document.cookie=key+"="+value+stringifiedAttributes}function get(key,json){if("undefined"==typeof document)return;var jar={};var cookies=document.cookie?document.cookie.split("; "):[];var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split("=");var cookie=parts.slice(1).join("=");if(!json&&'"'===cookie.charAt(0))cookie=cookie.slice(1,-1);try{var name=decode(parts[0]);cookie=(converter.read||converter)(cookie,name)||decode(cookie);if(json)try{cookie=JSON.parse(cookie)}catch(e){}jar[name]=cookie;if(key===name)break}catch(e){}}return key?jar[key]:jar}api.set=set;api.get=function(key){return get(key,false)};api.getJSON=function(key){return get(key,true)};api.remove=function(key,attributes){set(key,"",extend(attributes,{expires:-1}))};api.defaults={};api.withConverter=init;return api}return init(function(){})})},759:function(__unused_webpack_module,exports){"use strict";exports.addon=function(renderer){if(!renderer.client)return;document.head.appendChild(renderer.msh=document.createElement("style"));renderer.createRule=function(selector,prelude){var rawCss=selector+"{}";if(prelude)rawCss=prelude+"{"+rawCss+"}";var sheet=prelude?renderer.msh.sheet:renderer.sh.sheet;var index=sheet.insertRule(rawCss,sheet.cssRules.length);var rule=(sheet.cssRules||sheet.rules)[index];rule.index=index;if(prelude){var selectorRule=(rule.cssRules||rule.rules)[0];rule.style=selectorRule.style;rule.styleMap=selectorRule.styleMap}return rule}}},2731:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var removeRule=__webpack_require__(5732).removeRule;exports.addon=function(renderer){if(!renderer.client)return;var kebab=renderer.kebab;function VRule(selector,prelude){this.rule=renderer.createRule(selector,prelude);this.decl={}}VRule.prototype.diff=function(newDecl){var oldDecl=this.decl;var style=this.rule.style;var property;for(property in oldDecl)if(void 0===newDecl[property])style.removeProperty(property);for(property in newDecl)if(newDecl[property]!==oldDecl[property])style.setProperty(kebab(property),newDecl[property]);this.decl=newDecl};VRule.prototype.del=function(){removeRule(this.rule)};function VSheet(){this.tree={}}VSheet.prototype.diff=function(newTree){var oldTree=this.tree;for(var prelude in oldTree)if(void 0===newTree[prelude]){var rules=oldTree[prelude];for(var selector in rules)rules[selector].del()}for(var prelude in newTree)if(void 0===oldTree[prelude])for(var selector in newTree[prelude]){var rule=new VRule(selector,prelude);rule.diff(newTree[prelude][selector]);newTree[prelude][selector]=rule}else{var oldRules=oldTree[prelude];var newRules=newTree[prelude];for(var selector in oldRules)if(!newRules[selector])oldRules[selector].del();for(var selector in newRules){var rule=oldRules[selector];if(rule){rule.diff(newRules[selector]);newRules[selector]=rule}else{rule=new VRule(selector,prelude);rule.diff(newRules[selector]);newRules[selector]=rule}}}this.tree=newTree};renderer.VRule=VRule;renderer.VSheet=VSheet}},2798:function(__unused_webpack_module,exports){function cssToTree(tree,css,selector,prelude){var declarations={};var hasDeclarations=false;var key,value;for(key in css){value=css[key];if("object"!=typeof value){hasDeclarations=true;declarations[key]=value}}if(hasDeclarations){if(!tree[prelude])tree[prelude]={};tree[prelude][selector]=declarations}for(key in css){value=css[key];if("object"==typeof value)if("@"===key[0])cssToTree(tree,value,selector,key);else{var hasCurrentSymbol=key.indexOf("&")>-1;var selectorParts=selector.split(",");if(hasCurrentSymbol)for(var i=0;i<selectorParts.length;i++)selectorParts[i]=key.replace(/&/g,selectorParts[i]);else for(var i=0;i<selectorParts.length;i++)selectorParts[i]=selectorParts[i]+" "+key;cssToTree(tree,value,selectorParts.join(","),prelude)}}}exports.cssToTree=cssToTree},5732:function(__unused_webpack_module,exports){function removeRule(rule){var maxIndex=rule.index;var sh=rule.parentStyleSheet;var rules=sh.cssRules||sh.rules;maxIndex=Math.max(maxIndex,rules.length-1);while(maxIndex>=0){if(rules[maxIndex]===rule){sh.deleteRule(maxIndex);break}maxIndex--}}exports.removeRule=removeRule},2365:function(__unused_webpack_module,exports){"use strict";var KEBAB_REGEX=/[A-Z]/g;var hash=function(str){var h=5381,i=str.length;while(i)h=33*h^str.charCodeAt(--i);return"_"+(h>>>0).toString(36)};exports.create=function(config){config=config||{};var assign=config.assign||Object.assign;var client="object"==typeof window;var renderer=assign({raw:"",pfx:"_",client:client,assign:assign,stringify:JSON.stringify,kebab:function(prop){return prop.replace(KEBAB_REGEX,"-$&").toLowerCase()},decl:function(key,value){key=renderer.kebab(key);return key+":"+value+";"},hash:function(obj){return hash(renderer.stringify(obj))},selector:function(parent,selector){return parent+(":"===selector[0]?"":" ")+selector},putRaw:function(rawCssRule){renderer.raw+=rawCssRule}},config);if(renderer.client){if(!renderer.sh)document.head.appendChild(renderer.sh=document.createElement("style"));renderer.putRaw=function(rawCssRule){var sheet=renderer.sh.sheet;try{sheet.insertRule(rawCssRule,sheet.cssRules.length)}catch(error){}}}renderer.put=function(selector,decls,atrule){var str="";var prop,value;var postponed=[];for(prop in decls){value=decls[prop];if(value instanceof Object&&!(value instanceof Array))postponed.push(prop);else str+=renderer.decl(prop,value,selector,atrule)}if(str){str=selector+"{"+str+"}";renderer.putRaw(atrule?atrule+"{"+str+"}":str)}for(var i=0;i<postponed.length;i++){prop=postponed[i];if("@"===prop[0]&&"@font-face"!==prop)renderer.putAt(selector,decls[prop],prop);else renderer.put(renderer.selector(selector,prop),decls[prop],atrule)}};renderer.putAt=renderer.put;return renderer}},2009:function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var tslib_1=__webpack_require__(5243);var wrapInStatefulComponent_1=tslib_1.__importDefault(__webpack_require__(7092));var addClassDecoratorSupport=function(Comp){var isSFC=!Comp.prototype;return isSFC?wrapInStatefulComponent_1.default(Comp):Comp};exports["default"]=addClassDecoratorSupport},8012:function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.divWrapper=void 0;var tslib_1=__webpack_require__(5243);var React=tslib_1.__importStar(__webpack_require__(8556));var addClassDecoratorSupport_1=tslib_1.__importDefault(__webpack_require__(2009));var h=React.createElement;var noWrap=function(Comp,propName,props,state){var _a;return h(Comp,propName?tslib_1.__assign((_a={},_a[propName]=state,_a),props):tslib_1.__assign(tslib_1.__assign({},state),props))};exports.divWrapper=function(Comp,propName,props,state){return h("div",null,noWrap(Comp,propName,props,state))};var createEnhancer=function(Facc,prop,wrapper){if(void 0===wrapper)wrapper=noWrap;var enhancer=function(Comp,propName,faccProps){if(void 0===propName)propName=prop;if(void 0===faccProps)faccProps=null;var isClassDecoratorMethodCall="string"==typeof Comp;if(isClassDecoratorMethodCall)return function(Klass){return enhancer(Klass,Comp||prop,propName)};var Enhanced=function(props){return h(Facc,faccProps,function(state){return wrapper(Comp,propName,props,state)})};return isClassDecoratorMethodCall?addClassDecoratorSupport_1.default(Enhanced):Enhanced};return enhancer};exports["default"]=createEnhancer},7975:function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var tslib_1=__webpack_require__(5243);var render_1=tslib_1.__importDefault(__webpack_require__(1284));var defaultMapPropsToArgs=function(props){return[props]};var hookToRenderProp=function(hook,mapPropsToArgs){if(void 0===mapPropsToArgs)mapPropsToArgs=defaultMapPropsToArgs;return function(props){return render_1.default(props,hook.apply(void 0,mapPropsToArgs(props)))}};exports["default"]=hookToRenderProp},3426:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var tslib_1=__webpack_require__(5243);var render_1=tslib_1.__importDefault(__webpack_require__(1284));render_1.default;var createEnhancer_1=tslib_1.__importDefault(__webpack_require__(8012));createEnhancer_1.default;var hookToRenderProp_1=tslib_1.__importDefault(__webpack_require__(7975));hookToRenderProp_1.default},1284:function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var tslib_1=__webpack_require__(5243);var react_1=__webpack_require__(8556);var isReact16Plus=parseInt(react_1.version.substr(0,react_1.version.indexOf(".")))>15;var isFn=function(fn){return"function"==typeof fn};var render=function(props,data){var more=[];for(var _i=2;_i<arguments.length;_i++)more[_i-2]=arguments[_i];var render=props.render,_a=props.children,children=void 0===_a?render:_a,component=props.component,_b=props.comp,comp=void 0===_b?component:_b;if(isFn(children))return children.apply(void 0,tslib_1.__spreadArrays([data],more));if(comp)return react_1.createElement(comp,data);if(children instanceof Array)return isReact16Plus?children:react_1.createElement.apply(void 0,tslib_1.__spreadArrays(["div",null],children));if(children&&children instanceof Object){if("string"==typeof children.type)return children;return react_1.cloneElement(children,Object.assign({},children.props,data))}return children||null};exports["default"]=render},7092:function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var tslib_1=__webpack_require__(5243);var React=tslib_1.__importStar(__webpack_require__(8556));var wrapInStatefulComponent=function(Comp){var Decorated=function(_super){tslib_1.__extends(class_1,_super);function class_1(){return null!==_super&&_super.apply(this,arguments)||this}class_1.prototype.render=function(){return Comp(this.props,this.context)};return class_1}(React.Component);return Decorated};exports["default"]=wrapInStatefulComponent},1916:function(module){/*!
3
+ * screenfull
4
+ * v5.2.0 - 2021-11-03
5
+ * (c) Sindre Sorhus; MIT License
6
+ */(function(){"use strict";var document1="undefined"!=typeof window&&void 0!==window.document?window.document:{};var isCommonjs=module.exports;var fn=function(){var val;var fnMap=[["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"]];var i=0;var l=fnMap.length;var ret={};for(;i<l;i++){val=fnMap[i];if(val&&val[1]in document1){for(i=0;i<val.length;i++)ret[fnMap[0][i]]=val[i];return ret}}return false}();var eventNameMap={change:fn.fullscreenchange,error:fn.fullscreenerror};var screenfull={request:function(element,options){return new Promise((function(resolve,reject){var onFullScreenEntered=(function(){this.off("change",onFullScreenEntered);resolve()}).bind(this);this.on("change",onFullScreenEntered);element=element||document1.documentElement;var returnPromise=element[fn.requestFullscreen](options);if(returnPromise instanceof Promise)returnPromise.then(onFullScreenEntered).catch(reject)}).bind(this))},exit:function(){return new Promise((function(resolve,reject){if(!this.isFullscreen)return void resolve();var onFullScreenExit=(function(){this.off("change",onFullScreenExit);resolve()}).bind(this);this.on("change",onFullScreenExit);var returnPromise=document1[fn.exitFullscreen]();if(returnPromise instanceof Promise)returnPromise.then(onFullScreenExit).catch(reject)}).bind(this))},toggle:function(element,options){return this.isFullscreen?this.exit():this.request(element,options)},onchange:function(callback){this.on("change",callback)},onerror:function(callback){this.on("error",callback)},on:function(event,callback){var eventName=eventNameMap[event];if(eventName)document1.addEventListener(eventName,callback,false)},off:function(event,callback){var eventName=eventNameMap[event];if(eventName)document1.removeEventListener(eventName,callback,false)},raw:fn};if(!fn){if(isCommonjs)module.exports={isEnabled:false};else window.screenfull={isEnabled:false};return}Object.defineProperties(screenfull,{isFullscreen:{get:function(){return Boolean(document1[fn.fullscreenElement])}},element:{enumerable:true,get:function(){return document1[fn.fullscreenElement]}},isEnabled:{enumerable:true,get:function(){return Boolean(document1[fn.fullscreenEnabled])}}});if(isCommonjs)module.exports=screenfull;else window.screenfull=screenfull})()},6426:function(module){module.exports=function(){var selection=document.getSelection();if(!selection.rangeCount)return function(){};var active=document.activeElement;var ranges=[];for(var i=0;i<selection.rangeCount;i++)ranges.push(selection.getRangeAt(i));switch(active.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":active.blur();break;default:active=null;break}selection.removeAllRanges();return function(){"Caret"===selection.type&&selection.removeAllRanges();if(!selection.rangeCount)ranges.forEach(function(range){selection.addRange(range)});active&&active.focus()}}},3118:function(__unused_webpack_module,exports){"use strict";exports.easing={linear:function(t){return t},quadratic:function(t){return t*(-(t*t)*t+4*t*t-6*t+4)},cubic:function(t){return t*(4*t*t-9*t+6)},elastic:function(t){return t*(33*t*t*t*t-106*t*t*t+126*t*t-67*t+15)},inQuad:function(t){return t*t},outQuad:function(t){return t*(2-t)},inOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},inCubic:function(t){return t*t*t},outCubic:function(t){return--t*t*t+1},inOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},inQuart:function(t){return t*t*t*t},outQuart:function(t){return 1- --t*t*t*t},inOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},inQuint:function(t){return t*t*t*t*t},outQuint:function(t){return 1+--t*t*t*t*t},inOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},inSine:function(t){return-Math.cos(Math.PI/2*t)+1},outSine:function(t){return Math.sin(Math.PI/2*t)},inOutSine:function(t){return-(Math.cos(Math.PI*t)-1)/2},inExpo:function(t){return Math.pow(2,10*(t-1))},outExpo:function(t){return-Math.pow(2,-10*t)+1},inOutExpo:function(t){t/=.5;if(t<1)return Math.pow(2,10*(t-1))/2;t--;return(-Math.pow(2,-10*t)+2)/2},inCirc:function(t){return-Math.sqrt(1-t*t)+1},outCirc:function(t){return Math.sqrt(1-(t-=1)*t)},inOutCirc:function(t){t/=.5;if(t<1)return-(Math.sqrt(1-t*t)-1)/2;t-=2;return(Math.sqrt(1-t*t)+1)/2}}},5243:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{__addDisposableResource:()=>__addDisposableResource,__assign:()=>__assign,__asyncDelegator:()=>__asyncDelegator,__asyncGenerator:()=>__asyncGenerator,__asyncValues:()=>__asyncValues,__await:()=>__await,__awaiter:()=>__awaiter,__classPrivateFieldGet:()=>__classPrivateFieldGet,__classPrivateFieldIn:()=>__classPrivateFieldIn,__classPrivateFieldSet:()=>__classPrivateFieldSet,__createBinding:()=>__createBinding,__decorate:()=>__decorate,__disposeResources:()=>__disposeResources,__esDecorate:()=>__esDecorate,__exportStar:()=>__exportStar,__extends:()=>__extends,__generator:()=>__generator,__importDefault:()=>__importDefault,__importStar:()=>__importStar,__makeTemplateObject:()=>__makeTemplateObject,__metadata:()=>__metadata,__param:()=>__param,__propKey:()=>__propKey,__read:()=>__read,__rest:()=>__rest,__rewriteRelativeImportExtension:()=>__rewriteRelativeImportExtension,__runInitializers:()=>__runInitializers,__setFunctionName:()=>__setFunctionName,__spread:()=>__spread,__spreadArray:()=>__spreadArray,__spreadArrays:()=>__spreadArrays,__values:()=>__values,default:()=>__WEBPACK_DEFAULT_EXPORT__});var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p]};return extendStatics(d,b)};function __extends(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");extendStatics(d,b);function __(){this.constructor=d}d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}var __assign=function(){__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};return __assign.apply(this,arguments)};function __rest(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)if(e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i]))t[p[i]]=s[p[i]]}return t}function __decorate(decorators,target,key,desc){var c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r}function __param(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}}function __esDecorate(ctor,descriptorIn,decorators,contextIn,initializers,extraInitializers){function accept(f){if(void 0!==f&&"function"!=typeof f)throw new TypeError("Function expected");return f}var kind=contextIn.kind,key="getter"===kind?"get":"setter"===kind?"set":"value";var target=!descriptorIn&&ctor?contextIn["static"]?ctor:ctor.prototype:null;var descriptor=descriptorIn||(target?Object.getOwnPropertyDescriptor(target,contextIn.name):{});var _,done=false;for(var i=decorators.length-1;i>=0;i--){var context={};for(var p in contextIn)context[p]="access"===p?{}:contextIn[p];for(var p in contextIn.access)context.access[p]=contextIn.access[p];context.addInitializer=function(f){if(done)throw new TypeError("Cannot add initializers after decoration has completed");extraInitializers.push(accept(f||null))};var result=(0,decorators[i])("accessor"===kind?{get:descriptor.get,set:descriptor.set}:descriptor[key],context);if("accessor"===kind){if(void 0===result)continue;if(null===result||"object"!=typeof result)throw new TypeError("Object expected");if(_=accept(result.get))descriptor.get=_;if(_=accept(result.set))descriptor.set=_;if(_=accept(result.init))initializers.unshift(_)}else if(_=accept(result))if("field"===kind)initializers.unshift(_);else descriptor[key]=_}if(target)Object.defineProperty(target,contextIn.name,descriptor);done=true}function __runInitializers(thisArg,initializers,value){var useValue=arguments.length>2;for(var i=0;i<initializers.length;i++)value=useValue?initializers[i].call(thisArg,value):initializers[i].call(thisArg);return useValue?value:void 0}function __propKey(x){return"symbol"==typeof x?x:"".concat(x)}function __setFunctionName(f,name,prefix){if("symbol"==typeof name)name=name.description?"[".concat(name.description,"]"):"";return Object.defineProperty(f,"name",{configurable:true,value:prefix?"".concat(prefix," ",name):name})}function __metadata(metadataKey,metadataValue){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(metadataKey,metadataValue)}function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}function __generator(thisArg,body){var _={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=verb(0),g["throw"]=verb(1),g["return"]=verb(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(g&&(g=0,op[0]&&(_=0)),_)try{if(f=1,y&&(t=2&op[0]?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[2&op[0],t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(t=_.trys,!(t=t.length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1];t=op;break}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op);break}if(t[2])_.ops.pop();_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e];y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:true}}}var __createBinding=Object.create?function(o,m,k,k2){if(void 0===k2)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))desc={enumerable:true,get:function(){return m[k]}};Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){if(void 0===k2)k2=k;o[k2]=m[k]};function __exportStar(m,o){for(var p in m)if("default"!==p&&!Object.prototype.hasOwnProperty.call(o,p))__createBinding(o,m,p)}function __values(o){var s="function"==typeof Symbol&&Symbol.iterator,m=s&&o[s],i=0;if(m)return m.call(o);if(o&&"number"==typeof o.length)return{next:function(){if(o&&i>=o.length)o=void 0;return{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(o,n){var m="function"==typeof Symbol&&o[Symbol.iterator];if(!m)return o;var i=m.call(o),r,ar=[],e;try{while((void 0===n||n-- >0)&&!(r=i.next()).done)ar.push(r.value)}catch(error){e={error:error}}finally{try{if(r&&!r.done&&(m=i["return"]))m.call(i)}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;for(var r=Array(s),k=0,i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r}function __spreadArray(to,from,pack){if(pack||2===arguments.length){for(var i=0,l=from.length,ar;i<l;i++)if(ar||!(i in from)){if(!ar)ar=Array.prototype.slice.call(from,0,i);ar[i]=from[i]}}return to.concat(ar||Array.prototype.slice.call(from))}function __await(v){return this instanceof __await?(this.v=v,this):new __await(v)}function __asyncGenerator(thisArg,_arguments,generator){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=generator.apply(thisArg,_arguments||[]),i,q=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),i[Symbol.asyncIterator]=function(){return this},i;function awaitReturn(f){return function(v){return Promise.resolve(v).then(f,reject)}}function verb(n,f){if(g[n]){i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v)})};if(f)i[n]=f(i[n])}}function resume(n,v){try{step(g[n](v))}catch(e){settle(q[0][3],e)}}function step(r){r.value instanceof __await?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r)}function fulfill(value){resume("next",value)}function reject(value){resume("throw",value)}function settle(f,v){if(f(v),q.shift(),q.length)resume(q[0][0],q[0][1])}}function __asyncDelegator(o){var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i;function verb(n,f){i[n]=o[n]?function(v){return(p=!p)?{value:__await(o[n](v)),done:false}:f?f(v):v}:f}}function __asyncValues(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=o[Symbol.asyncIterator],i;return m?m.call(o):(o="function"==typeof __values?__values(o):o[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(n){i[n]=o[n]&&function(v){return new Promise(function(resolve,reject){v=o[n](v),settle(resolve,reject,v.done,v.value)})}}function settle(resolve,reject,d,v){Promise.resolve(v).then(function(v){resolve({value:v,done:d})},reject)}}function __makeTemplateObject(cooked,raw){if(Object.defineProperty)Object.defineProperty(cooked,"raw",{value:raw});else cooked.raw=raw;return cooked}var __setModuleDefault=Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:true,value:v})}:function(o,v){o["default"]=v};var ownKeys=function(o){ownKeys=Object.getOwnPropertyNames||function(o){var ar=[];for(var k in o)if(Object.prototype.hasOwnProperty.call(o,k))ar[ar.length]=k;return ar};return ownKeys(o)};function __importStar(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod){for(var k=ownKeys(mod),i=0;i<k.length;i++)if("default"!==k[i])__createBinding(result,mod,k[i])}__setModuleDefault(result,mod);return result}function __importDefault(mod){return mod&&mod.__esModule?mod:{default:mod}}function __classPrivateFieldGet(receiver,state,kind,f){if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===kind?f:"a"===kind?f.call(receiver):f?f.value:state.get(receiver)}function __classPrivateFieldSet(receiver,state,value,kind,f){if("m"===kind)throw new TypeError("Private method is not writable");if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===kind?f.call(receiver,value):f?f.value=value:state.set(receiver,value),value}function __classPrivateFieldIn(state,receiver){if(null===receiver||"object"!=typeof receiver&&"function"!=typeof receiver)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof state?receiver===state:state.has(receiver)}function __addDisposableResource(env,value,async){if(null!=value){if("object"!=typeof value&&"function"!=typeof value)throw new TypeError("Object expected.");var dispose,inner;if(async){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");dispose=value[Symbol.asyncDispose]}if(void 0===dispose){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");dispose=value[Symbol.dispose];if(async)inner=dispose}if("function"!=typeof dispose)throw new TypeError("Object not disposable.");if(inner)dispose=function(){try{inner.call(this)}catch(e){return Promise.reject(e)}};env.stack.push({value:value,dispose:dispose,async:async})}else if(async)env.stack.push({async:true});return value}var _SuppressedError="function"==typeof SuppressedError?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name="SuppressedError",e.error=error,e.suppressed=suppressed,e};function __disposeResources(env){function fail(e){env.error=env.hasError?new _SuppressedError(e,env.error,"An error was suppressed during disposal."):e;env.hasError=true}var r,s=0;function next(){while(r=env.stack.pop())try{if(!r.async&&1===s)return s=0,env.stack.push(r),Promise.resolve().then(next);if(r.dispose){var result=r.dispose.call(r.value);if(r.async)return s|=2,Promise.resolve(result).then(next,function(e){fail(e);return next()})}else s|=1}catch(e){fail(e)}if(1===s)return env.hasError?Promise.reject(env.error):Promise.resolve();if(env.hasError)throw env.error}return next()}function __rewriteRelativeImportExtension(path,preserveJsx){if("string"==typeof path&&/^\.\.?\//.test(path))return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(m,tsx,d,ext,cm){return tsx?preserveJsx?".jsx":".js":!d||ext&&cm?d+ext+"."+cm.toLowerCase()+"js":m});return path}const __WEBPACK_DEFAULT_EXPORT__={__extends,__assign,__rest,__decorate,__param,__esDecorate,__runInitializers,__propKey,__setFunctionName,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources,__rewriteRelativeImportExtension}}}]);
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * JavaScript Cookie v2.2.1
3
+ * https://github.com/js-cookie/js-cookie
4
+ *
5
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6
+ * Released under the MIT license
7
+ */
8
+
9
+ /*!
10
+ * screenfull
11
+ * v5.2.0 - 2021-11-03
12
+ * (c) Sindre Sorhus; MIT License
13
+ */