@abtnode/webapp 1.16.0-beta-7a7d5d97 → 1.16.0-beta-b741bcb3

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.
@@ -1 +1,2 @@
1
- (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6898],{76898:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return O},configResponsive:function(){return Wt},createUpdateEffect:function(){return i},useAntdTable:function(){return ee},useAsyncEffect:function(){return te},useBoolean:function(){return re},useClickAway:function(){return ae},useControllableValue:function(){return se},useCookieState:function(){return de},useCountDown:function(){return me},useCounter:function(){return ye},useCreation:function(){return b},useDebounce:function(){return Ee},useDebounceEffect:function(){return _e},useDebounceFn:function(){return we},useDeepCompareEffect:function(){return Re},useDeepCompareLayoutEffect:function(){return ke},useDocumentVisibility:function(){return Ce},useDrag:function(){return xe},useDrop:function(){return Ae},useDynamicList:function(){return Ie},useEventEmitter:function(){return De},useEventListener:function(){return Le},useEventTarget:function(){return Ze},useExternal:function(){return Pe},useFavicon:function(){return Ve},useFocusWithin:function(){return He},useFullscreen:function(){return Be},useFusionTable:function(){return Xe},useGetState:function(){return Ge},useHistoryTravel:function(){return Je},useHover:function(){return $e},useInViewport:function(){return it},useInfiniteScroll:function(){return nt},useInterval:function(){return rt},useIsomorphicLayoutEffect:function(){return ot},useKeyPress:function(){return dt},useLatest:function(){return y},useLocalStorageState:function(){return ht},useLockFn:function(){return pt},useLongPress:function(){return mt},useMap:function(){return bt},useMemoizedFn:function(){return v},useMount:function(){return B},useMouse:function(){return _t},useMutationObserver:function(){return Pn},useNetwork:function(){return Tt},usePagination:function(){return Q},usePrevious:function(){return kt},useRafInterval:function(){return Mt},useRafState:function(){return wt},useRafTimeout:function(){return xt},useReactive:function(){return Dt},useRequest:function(){return $},useResetState:function(){return Zt},useResponsive:function(){return qt},useSafeState:function(){return Ut},useScroll:function(){return Yt},useSelections:function(){return Xt},useSessionStorageState:function(){return Gt},useSet:function(){return Kt},useSetState:function(){return Jt},useSize:function(){return On},useTextSelection:function(){return Rn},useThrottle:function(){return Ln},useThrottleEffect:function(){return Mn},useThrottleFn:function(){return kn},useTimeout:function(){return Cn},useTitle:function(){return In},useToggle:function(){return ne},useTrackedEffect:function(){return Nn},useUnmount:function(){return w},useUnmountedRef:function(){return Bt},useUpdate:function(){return U},useUpdateEffect:function(){return h},useUpdateLayoutEffect:function(){return jn},useVirtualList:function(){return Dn},useWebSocket:function(){return Zn},useWhyDidYouUpdate:function(){return Fn}});var r=n(5057),i=function(e){return function(t,n){var i=(0,r.useRef)(!1);e((function(){return function(){i.current=!1}}),[]),e((function(){if(i.current)return t();i.current=!0}),n)}},o=n(68079),u=n(46840),c=n(96234),a=n(9161),s=function(e){return null!==e&&"object"===typeof e},f=function(e){return"function"===typeof e},l=function(e){return"string"===typeof e},d=function(e){return"number"===typeof e};var v=function(e){var t=(0,r.useRef)(e);t.current=(0,r.useMemo)((function(){return e}),[e]);var n=(0,r.useRef)();return n.current||(n.current=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(this,n)}),n.current},h=i(r.useEffect),p=function(e,t){var n=t.manual,i=t.ready,u=void 0===i||i,c=t.defaultParams,a=void 0===c?[]:c,s=t.refreshDeps,f=void 0===s?[]:s,l=t.refreshDepsAction,d=(0,r.useRef)(!1);return d.current=!1,h((function(){!n&&u&&(d.current=!0,e.run.apply(e,(0,o.Z)(a)))}),[u]),h((function(){d.current||n||(d.current=!0,l?l():e.refresh())}),(0,o.Z)(f)),{onBefore:function(){if(!u)return{stopNow:!0}}}};p.onInit=function(e){var t=e.ready,n=void 0===t||t;return{loading:!e.manual&&n}};var g=p;function m(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function b(e,t){var n=(0,r.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==n.initialized&&m(n.deps,t)||(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}var y=function(e){var t=(0,r.useRef)(e);return t.current=e,t},w=function(e){var t=y(e);(0,r.useEffect)((function(){return function(){t.current()}}),[])},E=new Map,_=function(e){return E.get(e)},O=function(e){e?(Array.isArray(e)?e:[e]).forEach((function(e){return E.delete(e)})):E.clear()},S=new Map,T={},R=function(e,t){return T[e]||(T[e]=[]),T[e].push(t),function(){var n=T[e].indexOf(t);T[e].splice(n,1)}},k=function(e,t){var n=t.cacheKey,i=t.cacheTime,u=void 0===i?3e5:i,c=t.staleTime,a=void 0===c?0:c,s=t.setCache,f=t.getCache,l=(0,r.useRef)(),d=(0,r.useRef)(),v=function(e,t){s?s(t):function(e,t,n){var r=E.get(e);(null===r||void 0===r?void 0:r.timer)&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout((function(){E.delete(e)}),t)),E.set(e,Object.assign(Object.assign({},n),{timer:i}))}(e,u,t),function(e,t){T[e]&&T[e].forEach((function(e){return e(t)}))}(e,t.data)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return f?f(t):_(e)};return b((function(){if(n){var t=h(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===a||(new Date).getTime()-t.time<=a)&&(e.state.loading=!1)),l.current=R(n,(function(t){e.setState({data:t})}))}}),[]),w((function(){var e;null===(e=l.current)||void 0===e||e.call(l)})),n?{onBefore:function(e){var t=h(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===a||(new Date).getTime()-t.time<=a?{loading:!1,data:null===t||void 0===t?void 0:t.data,error:void 0,returnNow:!0}:{data:null===t||void 0===t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var r=function(e){return S.get(e)}(n);return r&&r!==d.current||(r=e.apply(void 0,(0,o.Z)(t)),d.current=r,function(e,t){S.set(e,t),t.then((function(t){return S.delete(e),t})).catch((function(){S.delete(e)}))}(n,r)),{servicePromise:r}},onSuccess:function(t,r){var i;n&&(null===(i=l.current)||void 0===i||i.call(l),v(n,{data:t,params:r,time:(new Date).getTime()}),l.current=R(n,(function(t){e.setState({data:t})})))},onMutate:function(t){var r;n&&(null===(r=l.current)||void 0===r||r.call(l),v(n,{data:t,params:e.state.params,time:(new Date).getTime()}),l.current=R(n,(function(t){e.setState({data:t})})))}}:{}},L=n(67047),M=n.n(L),C=function(e,t){var n=t.debounceWait,i=t.debounceLeading,o=t.debounceTrailing,u=t.debounceMaxWait,c=(0,r.useRef)(),a=(0,r.useMemo)((function(){var e={};return void 0!==i&&(e.leading=i),void 0!==o&&(e.trailing=o),void 0!==u&&(e.maxWait=u),e}),[i,o,u]);return(0,r.useEffect)((function(){if(n){var t=e.runAsync.bind(e);return c.current=M()((function(e){e()}),n,a),e.runAsync=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new Promise((function(e,r){var i;null===(i=c.current)||void 0===i||i.call(c,(function(){t.apply(void 0,n).then(e).catch(r)}))}))},function(){var n;null===(n=c.current)||void 0===n||n.cancel(),e.runAsync=t}}}),[n,a]),n?{onCancel:function(){var e;null===(e=c.current)||void 0===e||e.cancel()}}:{}},x=function(e,t){var n=t.loadingDelay,i=(0,r.useRef)();if(!n)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),i.current=setTimeout((function(){e.setState({loading:!0})}),n),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},A=!("undefined"===typeof window||!window.document||!window.document.createElement);function I(){return!A||"hidden"!==document.visibilityState}var N=[];if(A){window.addEventListener("visibilitychange",(function(){if(I())for(var e=0;e<N.length;e++){(0,N[e])()}}),!1)}var j=function(e){return N.push(e),function(){var t=N.indexOf(e);N.splice(t,1)}},D=function(e,t){var n=t.pollingInterval,i=t.pollingWhenHidden,o=void 0===i||i,u=t.pollingErrorRetryCount,c=void 0===u?-1:u,a=(0,r.useRef)(),s=(0,r.useRef)(),f=(0,r.useRef)(0),l=function(){var e;a.current&&clearTimeout(a.current),null===(e=s.current)||void 0===e||e.call(s)};return h((function(){n||l()}),[n]),n?{onBefore:function(){l()},onError:function(){f.current+=1},onSuccess:function(){f.current=0},onFinally:function(){-1===c||-1!==c&&f.current<=c?a.current=setTimeout((function(){o||I()?e.refresh():s.current=j((function(){e.refresh()}))}),n):f.current=0},onCancel:function(){l()}}:{}};var Z=[];if(A){var F=function(){if(I()&&(!A||"undefined"===typeof navigator.onLine||navigator.onLine))for(var e=0;e<Z.length;e++){(0,Z[e])()}};window.addEventListener("visibilitychange",F,!1),window.addEventListener("focus",F,!1)}var P=function(e){return Z.push(e),function(){var t=Z.indexOf(e);t>-1&&Z.splice(t,1)}},z=function(e,t){var n=t.refreshOnWindowFocus,i=t.focusTimespan,o=void 0===i?5e3:i,u=(0,r.useRef)(),c=function(){var e;null===(e=u.current)||void 0===e||e.call(u)};return(0,r.useEffect)((function(){if(n){var t=function(e,t){var n=!1;return function(){n||(n=!0,e.apply(void 0,arguments),setTimeout((function(){n=!1}),t))}}(e.refresh.bind(e),o);u.current=P((function(){t()}))}return function(){c()}}),[n,o]),w((function(){c()})),{}},V=function(e,t){var n=t.retryInterval,i=t.retryCount,o=(0,r.useRef)(),u=(0,r.useRef)(0),c=(0,r.useRef)(!1);return i?{onBefore:function(){c.current||(u.current=0),c.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){u.current=0},onError:function(){if(u.current+=1,-1===i||u.current<=i){var t=null!==n&&void 0!==n?n:Math.min(1e3*Math.pow(2,u.current),3e4);o.current=setTimeout((function(){c.current=!0,e.refresh()}),t)}else u.current=0},onCancel:function(){u.current=0,o.current&&clearTimeout(o.current)}}:{}},H=n(8406),W=n.n(H),q=function(e,t){var n=t.throttleWait,i=t.throttleLeading,o=t.throttleTrailing,u=(0,r.useRef)(),c={};return void 0!==i&&(c.leading=i),void 0!==o&&(c.trailing=o),(0,r.useEffect)((function(){if(n){var t=e.runAsync.bind(e);return u.current=W()((function(e){e()}),n,c),e.runAsync=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new Promise((function(e,r){var i;null===(i=u.current)||void 0===i||i.call(u,(function(){t.apply(void 0,n).then(e).catch(r)}))}))},function(){var n;e.runAsync=t,null===(n=u.current)||void 0===n||n.cancel()}}}),[n,i,o]),n?{onCancel:function(){var e;null===(e=u.current)||void 0===e||e.cancel()}}:{}},B=function(e){(0,r.useEffect)((function(){null===e||void 0===e||e()}),[])},U=function(){var e=(0,r.useState)({}),t=(0,c.Z)(e,2)[1];return(0,r.useCallback)((function(){return t({})}),[])},Y=n(32723),X=n(9249),G=n(87371),K=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,X.Z)(this,e),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Object.assign(Object.assign(Object.assign({},this.state),{loading:!n.manual}),i)}return(0,G.Z)(e,[{key:"setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state=Object.assign(Object.assign({},this.state),e),this.subscribe()}},{key:"runPluginHandler",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.pluginImpls.map((function(t){var r,i;return null===(i=t[e])||void 0===i?void 0:(r=i).call.apply(r,[t].concat(n))})).filter(Boolean);return Object.assign.apply(Object,[{}].concat((0,o.Z)(i)))}},{key:"runAsync",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i,o,u,c,s,f,l,d,v;return(0,a.__awaiter)(this,void 0,void 0,(0,Y.Z)().mark((function e(){var n,h,p,g,m,b,y,w,E,_,O;return(0,Y.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.count+=1,n=this.count,h=this.runPluginHandler("onBefore",t),p=h.stopNow,g=void 0!==p&&p,m=h.returnNow,b=void 0!==m&&m,y=(0,a.__rest)(h,["stopNow","returnNow"]),!g){e.next=5;break}return e.abrupt("return",new Promise((function(){})));case 5:if(this.setState(Object.assign({loading:!0,params:t},y)),!b){e.next=8;break}return e.abrupt("return",Promise.resolve(y.data));case 8:return null===(i=(r=this.options).onBefore)||void 0===i||i.call(r,t),e.prev=9,w=this.runPluginHandler("onRequest",this.serviceRef.current,t),(E=w.servicePromise)||(E=(_=this.serviceRef).current.apply(_,t)),e.next=14,E;case 14:if(O=e.sent,n===this.count){e.next=17;break}return e.abrupt("return",new Promise((function(){})));case 17:return this.setState({data:O,error:void 0,loading:!1}),null===(u=(o=this.options).onSuccess)||void 0===u||u.call(o,O,t),this.runPluginHandler("onSuccess",O,t),null===(s=(c=this.options).onFinally)||void 0===s||s.call(c,t,O,void 0),n===this.count&&this.runPluginHandler("onFinally",t,O,void 0),e.abrupt("return",O);case 25:if(e.prev=25,e.t0=e.catch(9),n===this.count){e.next=29;break}return e.abrupt("return",new Promise((function(){})));case 29:throw this.setState({error:e.t0,loading:!1}),null===(l=(f=this.options).onError)||void 0===l||l.call(f,e.t0,t),this.runPluginHandler("onError",e.t0,t),null===(v=(d=this.options).onFinally)||void 0===v||v.call(d,t,void 0,e.t0),n===this.count&&this.runPluginHandler("onFinally",t,void 0,e.t0),e.t0;case 35:case"end":return e.stop()}}),e,this,[[9,25]])})))}},{key:"run",value:function(){var e=this;this.runAsync.apply(this,arguments).catch((function(t){e.options.onError||console.error(t)}))}},{key:"cancel",value:function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}},{key:"refresh",value:function(){this.run.apply(this,(0,o.Z)(this.state.params||[]))}},{key:"refreshAsync",value:function(){return this.runAsync.apply(this,(0,o.Z)(this.state.params||[]))}},{key:"mutate",value:function(e){var t=f(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}]),e}();var J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=t.manual,i=void 0!==r&&r,u=(0,a.__rest)(t,["manual"]),c=Object.assign({manual:i},u),s=y(e),f=U(),l=b((function(){var e=n.map((function(e){var t;return null===(t=null===e||void 0===e?void 0:e.onInit)||void 0===t?void 0:t.call(e,c)})).filter(Boolean);return new K(s,c,f,Object.assign.apply(Object,[{}].concat((0,o.Z)(e))))}),[]);return l.options=c,l.pluginImpls=n.map((function(e){return e(l,c)})),B((function(){if(!i){var e=l.state.params||t.defaultParams||[];l.run.apply(l,(0,o.Z)(e))}})),w((function(){l.cancel()})),{loading:l.state.loading,data:l.state.data,error:l.state.error,params:l.state.params||[],cancel:v(l.cancel.bind(l)),refresh:v(l.refresh.bind(l)),refreshAsync:v(l.refreshAsync.bind(l)),run:v(l.run.bind(l)),runAsync:v(l.runAsync.bind(l)),mutate:v(l.mutate.bind(l))}};var $=function(e,t,n){return J(e,t,[].concat((0,o.Z)(n||[]),[C,x,D,z,q,g,k,V]))},Q=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.defaultPageSize,c=void 0===i?10:i,s=n.defaultCurrent,f=void 0===s?1:s,l=(0,a.__rest)(n,["defaultPageSize","defaultCurrent"]),d=$(e,Object.assign({defaultParams:[{current:f,pageSize:c}],refreshDepsAction:function(){_(1)}},l)),h=d.params[0]||{},p=h.current,g=void 0===p?1:p,m=h.pageSize,b=void 0===m?c:m,y=(null===(t=d.data)||void 0===t?void 0:t.total)||0,w=(0,r.useMemo)((function(){return Math.ceil(y/b)}),[b,y]),E=function(e,t){var n=e<=0?1:e,r=t<=0?1:t,i=Math.ceil(y/r);n>i&&(n=Math.max(1,i));var c=d.params||[],a=(0,u.Z)(c),s=a[0],f=void 0===s?{}:s,l=a.slice(1);d.run.apply(d,[Object.assign(Object.assign({},f),{current:n,pageSize:r})].concat((0,o.Z)(l)))},_=function(e){E(e,b)},O=function(e){E(g,e)};return Object.assign(Object.assign({},d),{pagination:{current:g,pageSize:b,total:y,totalPage:w,onChange:v(E),changeCurrent:v(_),changePageSize:v(O)}})},ee=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.form,s=n.defaultType,f=void 0===s?"simple":s,l=n.defaultParams,d=n.manual,p=void 0!==d&&d,g=n.refreshDeps,m=void 0===g?[]:g,b=n.ready,y=void 0===b||b,w=(0,a.__rest)(n,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),E=Q(e,Object.assign({manual:!0},w)),_=E.params,O=void 0===_?[]:_,S=E.run,T=O[2]||{},R=(0,r.useState)((null===T||void 0===T?void 0:T.type)||f),k=(0,c.Z)(R,2),L=k[0],M=k[1],C=(0,r.useRef)({}),x=(0,r.useRef)([]),A=!!(null===i||void 0===i?void 0:i.getInternalHooks),I=function(){if(!i)return{};if(A)return i.getFieldsValue(null,(function(){return!0}));var e=i.getFieldsValue(),t={};return Object.keys(e).forEach((function(n){i.getFieldInstance&&!i.getFieldInstance(n)||(t[n]=e[n])})),t},N=function(){if(!i)return Promise.resolve({});var e=I(),t=Object.keys(e);return A?i.validateFields(t):new Promise((function(e,n){i.validateFields(t,(function(t,r){t?n(t):e(r)}))}))},j=function(){if(i){if(A)return i.setFieldsValue(C.current);var e={};Object.keys(C.current).forEach((function(t){i.getFieldInstance&&!i.getFieldInstance(t)||(e[t]=C.current[t])})),i.setFieldsValue(e)}},D=function(){var e=I();C.current=Object.assign(Object.assign({},C.current),e),M((function(e){return"simple"===e?"advance":"simple"}))},Z=function(e){y&&setTimeout((function(){N().then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e||Object.assign(Object.assign({pageSize:n.defaultPageSize||10},(null===O||void 0===O?void 0:O[0])||{}),{current:1});i?(C.current=Object.assign(Object.assign({},C.current),t),S(r,t,{allFormData:C.current,type:L})):S(r)})).catch((function(e){return e}))}))},F=function(){i&&i.resetFields(),Z()},P=function(e){var t;null===(t=null===e||void 0===e?void 0:e.preventDefault)||void 0===t||t.call(e),Z()},z=function(e,t,n,r){var i=O||[],c=(0,u.Z)(i),a=c[0],s=c.slice(1);S.apply(void 0,[Object.assign(Object.assign({},a),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:r})].concat((0,o.Z)(s)))};(0,r.useEffect)((function(){if(O.length>0)return C.current=(null===T||void 0===T?void 0:T.allFormData)||{},j(),void S.apply(void 0,(0,o.Z)(O));!p&&y&&(C.current=(null===l||void 0===l?void 0:l[1])||{},j(),Z(null===l||void 0===l?void 0:l[0]))}),[]),h((function(){y&&j()}),[L]);var V=(0,r.useRef)(!1);return V.current=!1,h((function(){!p&&y&&(V.current=!0,i&&i.resetFields(),C.current=(null===l||void 0===l?void 0:l[1])||{},j(),Z(null===l||void 0===l?void 0:l[0]))}),[y]),h((function(){V.current||y&&(p||(V.current=!0,E.pagination.changeCurrent(1)))}),(0,o.Z)(m)),Object.assign(Object.assign({},E),{tableProps:{dataSource:(null===(t=E.data)||void 0===t?void 0:t.list)||x.current,loading:E.loading,onChange:v(z),pagination:{current:E.pagination.current,pageSize:E.pagination.pageSize,total:E.pagination.total}},search:{submit:v(P),type:L,changeType:v(D),reset:v(F)}})};var te=function(e,t){(0,r.useEffect)((function(){var t=e(),n=!1;return function(){(0,a.__awaiter)(this,void 0,void 0,(0,Y.Z)().mark((function e(){return(0,Y.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!f(t[Symbol.asyncIterator])){e.next=11;break}case 1:return e.next=4,t.next();case 4:if(!e.sent.done&&!n){e.next=7;break}return e.abrupt("break",9);case 7:e.next=1;break;case 9:e.next=13;break;case 11:return e.next=13,t;case 13:case"end":return e.stop()}}),e)})))}(),function(){n=!0}}),t)};var ne=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useMemo)((function(){var n=void 0===t?!e:t;return{toggle:function(){return u((function(t){return t===e?n:e}))},set:function(e){return u(e)},setLeft:function(){return u(e)},setRight:function(){return u(n)}}}),[]);return[o,a]};function re(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=ne(e),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=o.toggle,a=o.set,s=(0,r.useMemo)((function(){return{toggle:u,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}}),[]);return[i,s]}function ie(e,t){if(A)return e?f(e)?e():"current"in e?e.current:e:t}var oe=function(e){if(!e||!document.getRootNode)return document;var t,n=Array.isArray(e)?e:[e];return function(e){return e.every((function(e){var t=ie(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=ie(n[0]))?t.getRootNode():document},ue=function(e){return function(t,n,i){var o=(0,r.useRef)(!1),u=(0,r.useRef)([]),c=(0,r.useRef)([]),a=(0,r.useRef)();e((function(){var e,r=(Array.isArray(i)?i:[i]).map((function(e){return ie(e)}));if(!o.current)return o.current=!0,u.current=r,c.current=n,void(a.current=t());r.length===u.current.length&&m(r,u.current)&&m(n,c.current)||(null===(e=a.current)||void 0===e||e.call(a),u.current=r,c.current=n,a.current=t())})),w((function(){var e;null===(e=a.current)||void 0===e||e.call(a),o.current=!1}))}},ce=ue(r.useEffect);function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click",r=y(e);ce((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=ie(t);return!n||n.contains(e.target)}))||r.current(e)},i=oe(t),o=Array.isArray(n)?n:[n];return o.forEach((function(t){return i.addEventListener(t,e)})),function(){o.forEach((function(t){return i.removeEventListener(t,e)}))}}),Array.isArray(n)?n:[n],t)}var se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultValue,i=t.defaultValuePropName,o=void 0===i?"defaultValue":i,u=t.valuePropName,c=void 0===u?"value":u,a=t.trigger,s=void 0===a?"onChange":a,l=e[c],d=e.hasOwnProperty(c),h=(0,r.useMemo)((function(){return d?l:e.hasOwnProperty(o)?e[o]:n}),[]),p=(0,r.useRef)(h);d&&(p.current=l);var g=U();function m(t){var n=f(t)?t(p.current):t;if(d||(p.current=n,g()),e[s]){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[s].apply(e,[n].concat(i))}}return[p.current,v(m)]},fe=n(4899),le=n.n(fe);var de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.useState)((function(){var n=le().get(e);return l(n)?n:f(t.defaultValue)?t.defaultValue():t.defaultValue})),i=(0,c.Z)(n,2),o=i[0],u=i[1],s=v((function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign(Object.assign({},t),r),o=(i.defaultValue,(0,a.__rest)(i,["defaultValue"]));u((function(t){var r=f(n)?n(t):n;return void 0===r?le().remove(e):le().set(e,r,o),r}))}));return[o,s]},ve=n(74410),he=n.n(ve),pe=function(e){if(!e)return 0;var t=he()(e).valueOf()-Date.now();return t<0?0:t},ge=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{},n=t.leftTime,i=t.targetDate,o=t.interval,u=void 0===o?1e3:o,a=t.onEnd,s=(0,r.useMemo)((function(){return"leftTime"in e?d(n)&&n>0?Date.now()+n:void 0:i}),[n,i]),f=(0,r.useState)((function(){return pe(s)})),l=(0,c.Z)(f,2),v=l[0],h=l[1],p=y(a);(0,r.useEffect)((function(){if(s){h(pe(s));var e=setInterval((function(){var t,n=pe(s);h(n),0===n&&(clearInterval(e),null===(t=p.current)||void 0===t||t.call(p))}),u);return function(){return clearInterval(e)}}h(0)}),[s,u]);var g=(0,r.useMemo)((function(){return ge(v)}),[v]);return[v,g]};function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,r=t.max,i=e;return d(r)&&(i=Math.min(r,i)),d(n)&&(i=Math.max(n,i)),i}var ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,i=t.max,o=(0,r.useState)((function(){return be(e,{min:n,max:i})})),u=(0,c.Z)(o,2),a=u[0],s=u[1],f=function(e){s((function(t){return be(d(e)?e:e(t),{max:i,min:n})}))},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f((function(t){return t+e}))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f((function(t){return t-e}))},p=function(e){f(e)},g=function(){f(e)};return[a,{inc:v(l),dec:v(h),set:v(p),reset:v(g)}]};var we=function(e,t){var n,i=y(e),o=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,u=(0,r.useMemo)((function(){return M()((function(){return i.current.apply(i,arguments)}),o,t)}),[]);return w((function(){u.cancel()})),{run:u,cancel:u.cancel,flush:u.flush}};var Ee=function(e,t){var n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=we((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),o};var _e=function(e,t,n){var i=(0,r.useState)({}),o=(0,c.Z)(i,2),u=o[0],a=o[1],s=we((function(){a({})}),n).run;(0,r.useEffect)((function(){return s()}),t),h(e,[u])},Oe=n(50482),Se=n.n(Oe),Te=function(e){return function(t,n){var i=(0,r.useRef)(),o=(0,r.useRef)(0);void 0!==n&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Se()(e,t)}(n,i.current)||(i.current=n,o.current+=1),e(t,[o.current])}},Re=Te(r.useEffect),ke=Te(r.useLayoutEffect);var Le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);ce((function(){var t=ie(n.target,window);if(null===t||void 0===t?void 0:t.addEventListener){var i=function(e){return r.current(e)};return t.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,i,{capture:n.capture})}}}),[e,n.capture,n.once,n.passive],n.target)},Me=function(){return A?document.visibilityState:"visible"};var Ce=function(){var e=(0,r.useState)((function(){return Me()})),t=(0,c.Z)(e,2),n=t[0],i=t[1];return Le("visibilitychange",(function(){i(Me())}),{target:function(){return document}}),n},xe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(n),i=y(e);ce((function(){var e=ie(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){var t,n;null===(n=(t=r.current).onDragStart)||void 0===n||n.call(t,e),e.dataTransfer.setData("custom",JSON.stringify(i.current))},o=function(e){var t,n;null===(n=(t=r.current).onDragEnd)||void 0===n||n.call(t,e)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",n),e.addEventListener("dragend",o),function(){e.removeEventListener("dragstart",n),e.removeEventListener("dragend",o)}}}),[],t)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=y(t),i=(0,r.useRef)();ce((function(){var t=ie(e);if(null===t||void 0===t?void 0:t.addEventListener){var r=function(e,t){var r=e.getData("text/uri-list"),i=e.getData("custom");if(i&&n.current.onDom){var o=i;try{o=JSON.parse(i)}catch(u){o=i}n.current.onDom(o,t)}else r&&n.current.onUri?n.current.onUri(r,t):e.files&&e.files.length&&n.current.onFiles?n.current.onFiles(Array.from(e.files),t):e.items&&e.items.length&&n.current.onText&&e.items[0].getAsString((function(e){n.current.onText(e,t)}))},o=function(e){var t,r;e.preventDefault(),e.stopPropagation(),i.current=e.target,null===(r=(t=n.current).onDragEnter)||void 0===r||r.call(t,e)},u=function(e){var t,r;e.preventDefault(),null===(r=(t=n.current).onDragOver)||void 0===r||r.call(t,e)},c=function(e){var t,r;e.target===i.current&&(null===(r=(t=n.current).onDragLeave)||void 0===r||r.call(t,e))},a=function(e){var t,i;e.preventDefault(),r(e.dataTransfer,e),null===(i=(t=n.current).onDrop)||void 0===i||i.call(t,e)},s=function(e){var t,i;r(e.clipboardData,e),null===(i=(t=n.current).onPaste)||void 0===i||i.call(t,e)};return t.addEventListener("dragenter",o),t.addEventListener("dragover",u),t.addEventListener("dragleave",c),t.addEventListener("drop",a),t.addEventListener("paste",s),function(){t.removeEventListener("dragenter",o),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",c),t.removeEventListener("drop",a),t.removeEventListener("paste",s)}}}),[],e)},Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,r.useRef)(-1),n=(0,r.useRef)([]),i=(0,r.useCallback)((function(e){t.current+=1,n.current.splice(e,0,t.current)}),[]),u=(0,r.useState)((function(){return e.forEach((function(e,t){i(t)})),e})),a=(0,c.Z)(u,2),s=a[0],f=a[1],l=(0,r.useCallback)((function(e){n.current=[],f((function(){return e.forEach((function(e,t){i(t)})),e}))}),[]),d=(0,r.useCallback)((function(e,t){f((function(n){var r=(0,o.Z)(n);return r.splice(e,0,t),i(e),r}))}),[]),v=(0,r.useCallback)((function(e){return n.current[e]}),[]),h=(0,r.useCallback)((function(e){return n.current.findIndex((function(t){return t===e}))}),[]),p=(0,r.useCallback)((function(e,t){f((function(n){var r=(0,o.Z)(n);return t.forEach((function(t,n){i(e+n)})),r.splice.apply(r,[e,0].concat((0,o.Z)(t))),r}))}),[]),g=(0,r.useCallback)((function(e,t){f((function(n){var r=(0,o.Z)(n);return r[e]=t,r}))}),[]),m=(0,r.useCallback)((function(e){f((function(t){var r=(0,o.Z)(t);r.splice(e,1);try{n.current.splice(e,1)}catch(i){console.error(i)}return r}))}),[]),b=(0,r.useCallback)((function(e,t){e!==t&&f((function(r){var i=(0,o.Z)(r),u=i.filter((function(t,n){return n!==e}));u.splice(t,0,i[e]);try{var c=n.current.filter((function(t,n){return n!==e}));c.splice(t,0,n.current[e]),n.current=c}catch(a){console.error(a)}return u}))}),[]),y=(0,r.useCallback)((function(e){f((function(t){return i(t.length),t.concat([e])}))}),[]),w=(0,r.useCallback)((function(){try{n.current=n.current.slice(0,n.current.length-1)}catch(e){console.error(e)}f((function(e){return e.slice(0,e.length-1)}))}),[]),E=(0,r.useCallback)((function(e){f((function(t){return i(0),[e].concat(t)}))}),[]),_=(0,r.useCallback)((function(){try{n.current=n.current.slice(1,n.current.length)}catch(e){console.error(e)}f((function(e){return e.slice(1,e.length)}))}),[]),O=(0,r.useCallback)((function(e){return e.map((function(e,t){return{key:t,item:e}})).sort((function(e,t){return h(e.key)-h(t.key)})).filter((function(e){return!!e.item})).map((function(e){return e.item}))}),[]);return{list:s,insert:d,merge:p,replace:g,remove:m,getKey:v,getIndex:h,move:b,push:y,pop:w,unshift:E,shift:_,sortList:O,resetList:l}},Ne=n(41361),je=(0,G.Z)((function e(){var t=this;(0,X.Z)(this,e),this.subscriptions=new Set,this.emit=function(e){var n,r=(0,Ne.Z)(t.subscriptions);try{for(r.s();!(n=r.n()).done;){(0,n.value)(e)}}catch(i){r.e(i)}finally{r.f()}},this.useSubscription=function(e){var n=(0,r.useRef)();n.current=e,(0,r.useEffect)((function(){function e(e){n.current&&n.current(e)}return t.subscriptions.add(e),function(){t.subscriptions.delete(e)}}),[])}}));function De(){var e=(0,r.useRef)();return e.current||(e.current=new je),e.current}var Ze=function(e){var t=e||{},n=t.initialValue,i=t.transformer,o=(0,r.useState)(n),u=(0,c.Z)(o,2),a=u[0],s=u[1],l=y(i),d=(0,r.useCallback)((function(){return s(n)}),[]);return[a,{onChange:(0,r.useCallback)((function(e){var t=e.target.value;return f(l.current)?s(l.current(t)):s(t)}),[]),reset:d}]},Fe={},Pe=function(e,t){var n=(0,r.useState)(e?"loading":"unset"),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useRef)();return(0,r.useEffect)((function(){if(e){var n=e.replace(/[|#].*$/,"");if("css"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^css!|\.css$)/.test(n)){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.querySelector('link[href="'.concat(e,'"]'));if(!n){var r=document.createElement("link");return r.rel="stylesheet",r.href=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),"hideFocus"in r&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.css);a.current=r.ref,u(r.status)}else if("js"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^js!|\.js$)/.test(n)){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.querySelector('script[src="'.concat(e,'"]'));if(!n){var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.js);a.current=i.ref,u(i.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(a.current){void 0===Fe[e]?Fe[e]=1:Fe[e]+=1;var o=function(e){var t,n="load"===e.type?"ready":"error";null===(t=a.current)||void 0===t||t.setAttribute("data-status",n),u(n)};return a.current.addEventListener("load",o),a.current.addEventListener("error",o),function(){var t,n,r;null===(t=a.current)||void 0===t||t.removeEventListener("load",o),null===(n=a.current)||void 0===n||n.removeEventListener("error",o),Fe[e]-=1,0===Fe[e]&&(null===(r=a.current)||void 0===r||r.remove()),a.current=void 0}}}else u("unset")}),[e]),o},ze={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},Ve=function(e){(0,r.useEffect)((function(){if(e){var t=e.split("."),n=t[t.length-1].toLocaleUpperCase(),r=document.querySelector("link[rel*='icon']")||document.createElement("link");r.type=ze[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function He(e,t){var n=(0,r.useState)(!1),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=t||{},s=a.onFocus,f=a.onBlur,l=a.onChange;return Le("focusin",(function(e){o||(null===s||void 0===s||s(e),null===l||void 0===l||l(!0),u(!0))}),{target:e}),Le("focusout",(function(e){var t,n;o&&!(null===(n=null===(t=e.currentTarget)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,e.relatedTarget))&&(null===f||void 0===f||f(e),null===l||void 0===l||l(!1),u(!1))}),{target:e}),o}var We=n(20026),qe=n.n(We),Be=function(e,t){var n=t||{},i=n.onExit,o=n.onEnter,u=y(i),a=y(o),s=(0,r.useState)(!1),f=(0,c.Z)(s,2),l=f[0],d=f[1],h=function t(){var n,r,i;if(qe().isEnabled){var o=ie(e);if(qe().element){var c=qe().element===o;c?null===(r=a.current)||void 0===r||r.call(a):null===(i=u.current)||void 0===i||i.call(u),d(c)}else null===(n=u.current)||void 0===n||n.call(u),d(!1),qe().off("change",t)}},p=function(){var t=ie(e);if(t&&qe().isEnabled)try{qe().request(t),qe().on("change",h)}catch(n){console.error(n)}},g=function(){var t=ie(e);qe().isEnabled&&qe().element===t&&qe().exit()};return w((function(){qe().isEnabled&&qe().off("change",h)})),[l,{enterFullscreen:v(p),exitFullscreen:v(g),toggleFullscreen:v((function(){l?g():p()})),isEnabled:qe().isEnabled}]},Ue=function(e){return{getFieldInstance:function(t){return e.getNames().includes(t)},setFieldsValue:e.setValues,getFieldsValue:e.getValues,resetFields:e.resetToDefault,validateFields:function(t,n){e.validate(t,n)}}},Ye=function(e){var t={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(t,n){var r;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},null===(r=e.params[0])||void 0===r?void 0:r.filters,{field:t,order:n})},onFilter:function(t){var n;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},t,null===(n=e.params[0])||void 0===n?void 0:n.sorter)}},n={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return Object.assign(Object.assign({},e),{tableProps:t,paginationProps:n})},Xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ee(e,Object.assign(Object.assign({},t),{form:t.field?Ue(t.field):void 0}));return Ye(n)};var Ge=function(e){var t=(0,r.useState)(e),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=(0,r.useRef)(i);return u.current=i,[i,o,(0,r.useCallback)((function(){return u.current}),[])]},Ke=function(e,t){var n=function(e,t){var n=e>0?e-1:t.length+e;return n>=t.length-1&&(n=t.length-1),n<0&&(n=0),n}(e,t);return{_current:t[n],_before:t.slice(0,n),_after:t.slice(n+1)}};function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,r.useState)({present:e,past:[],future:[]}),i=(0,c.Z)(n,2),u=i[0],a=i[1],s=u.present,f=u.past,l=u.future,h=(0,r.useRef)(e),p=function(){var e=arguments.length>0?arguments.length<=0?void 0:arguments[0]:h.current;h.current=e,a({present:e,future:[],past:[]})},g=function(e){var n=[].concat((0,o.Z)(f),[s]),r=d(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),a({present:e,future:[],past:n})},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0!==l.length){var t=Ke(e,l),n=t._before,r=t._current,i=t._after;a({past:[].concat((0,o.Z)(f),[s],(0,o.Z)(n)),present:r,future:i})}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(0!==f.length){var t=Ke(e,f),n=t._before,r=t._current,i=t._after;a({past:n,present:r,future:[].concat((0,o.Z)(i),[s],(0,o.Z)(l))})}},y=function(e){var t=d(e)?e:Number(e);if(0!==t)return t>0?m(t):void b(t)};return{value:s,backLength:f.length,forwardLength:l.length,setValue:v(g),go:v(y),back:v((function(){y(-1)})),forward:v((function(){y(1)})),reset:v(p)}}var $e=function(e,t){var n=t||{},r=n.onEnter,i=n.onLeave,o=n.onChange,u=re(!1),a=(0,c.Z)(u,2),s=a[0],f=a[1],l=f.setTrue,d=f.setFalse;return Le("mouseenter",(function(){null===r||void 0===r||r(),l(),null===o||void 0===o||o(!0)}),{target:e}),Le("mouseleave",(function(){null===i||void 0===i||i(),d(),null===o||void 0===o||o(!1)}),{target:e}),s},Qe=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},et=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},tt=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,i=t.isNoMore,u=t.threshold,s=void 0===u?100:u,f=t.reloadDeps,l=void 0===f?[]:f,d=t.manual,p=t.onBefore,g=t.onSuccess,m=t.onError,b=t.onFinally,y=(0,r.useState)(),w=(0,c.Z)(y,2),E=w[0],_=w[1],O=(0,r.useState)(!1),S=(0,c.Z)(O,2),T=S[0],R=S[1],k=(0,r.useMemo)((function(){return!!i&&i(E)}),[E]),L=$((function(t){return(0,a.__awaiter)(void 0,void 0,void 0,(0,Y.Z)().mark((function n(){var r;return(0,Y.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e(t);case 2:return r=n.sent,_(t?Object.assign(Object.assign({},r),{list:[].concat((0,o.Z)(t.list),(0,o.Z)(r.list))}):r),n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))}),{manual:d,onFinally:function(e,t,n){R(!1),null===b||void 0===b||b(t,n)},onBefore:function(){return null===p||void 0===p?void 0:p()},onSuccess:function(e){setTimeout((function(){Z()})),null===g||void 0===g||g(e)},onError:function(e){return null===m||void 0===m?void 0:m(e)}}),M=L.loading,C=L.run,x=L.runAsync,A=L.cancel,I=function(){k||(R(!0),C(E))},N=function(){return k?Promise.reject():(R(!0),x(E))},j=function(){return C()},D=function(){return x()},Z=function(){var e=ie(n);if(e){var t=Qe(e);et(e)-t<=tt(e)+s&&I()}};return Le("scroll",(function(){M||T||Z()}),{target:n}),h((function(){C()}),(0,o.Z)(l)),{data:E,loading:!T&&M,loadingMore:T,noMore:k,loadMore:v(I),loadMoreAsync:v(N),reload:v(j),reloadAsync:v(D),mutate:_,cancel:A}};var rt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.immediate,o=y(e),u=(0,r.useRef)(null);(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i&&o.current(),u.current=setInterval((function(){o.current()}),t),function(){u.current&&clearInterval(u.current)}}),[t]);var c=(0,r.useCallback)((function(){u.current&&clearInterval(u.current)}),[]);return c};n(53634);var it=function(e,t){var n=(0,r.useState)(),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useState)(),s=(0,c.Z)(a,2),f=s[0],l=s[1];return ce((function(){var n=ie(e);if(n){var r=new IntersectionObserver((function(e){var t,n=(0,Ne.Z)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;l(r.intersectionRatio),u(r.isIntersecting)}}catch(i){n.e(i)}finally{n.f()}}),Object.assign(Object.assign({},t),{root:ie(null===t||void 0===t?void 0:t.root)}));return r.observe(n),function(){r.disconnect()}}}),[null===t||void 0===t?void 0:t.rootMargin,null===t||void 0===t?void 0:t.threshold],e),[o,f]},ot=A?r.useLayoutEffect:r.useEffect,ut=function(e,t,n){var i=(0,r.useRef)(),o=(0,r.useRef)(0);(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Se()(e,t)})(t,i.current)||(i.current=t,o.current+=1),ce(e,[o.current],n)},ct=/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:""),at={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};at.meta=ct?[91,93]:[91,92];var st={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?at.meta.includes(e.keyCode):e.metaKey}};function ft(e,t,n){if(!e.key)return!1;if(d(t))return e.keyCode===t;var r,i=t.split("."),o=0,u=(0,Ne.Z)(i);try{for(u.s();!(r=u.n()).done;){var c=r.value,a=st[c],s=at[c.toLowerCase()];(a&&a(e)||s&&s===e.keyCode)&&o++}}catch(f){u.e(f)}finally{u.f()}return n?o===i.length&&function(e){var t=Object.keys(st).reduce((function(t,n){return st[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===i.length:o===i.length}var lt=["keydown"];var dt=function(e,t,n){var r=n||{},i=r.events,o=void 0===i?lt:i,u=r.target,c=r.exactMatch,a=void 0!==c&&c,s=r.useCapture,v=void 0!==s&&s,h=y(t),p=y(e);ut((function(){var e,t=ie(u,window);if(t){var n,r=function(e){var t,n=function(e,t){return f(e)?e:l(e)||d(e)?function(n){return ft(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return ft(n,e,t)}))}:function(){return Boolean(e)}}(p.current,a);if(n(e))return null===(t=h.current)||void 0===t?void 0:t.call(h,e)},i=(0,Ne.Z)(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;null===(e=null===t||void 0===t?void 0:t.addEventListener)||void 0===e||e.call(t,c,r,v)}}catch(s){i.e(s)}finally{i.f()}return function(){var e,n,i=(0,Ne.Z)(o);try{for(i.s();!(n=i.n()).done;){var u=n.value;null===(e=null===t||void 0===t?void 0:t.removeEventListener)||void 0===e||e.call(t,u,r,v)}}catch(s){i.e(s)}finally{i.f()}}}}),[o],u)};function vt(e){return function(t,n){var i;try{i=e()}catch(d){console.error(d)}function o(){try{var e=null===i||void 0===i?void 0:i.getItem(t);if(e)return r=e,(null===n||void 0===n?void 0:n.deserializer)?null===n||void 0===n?void 0:n.deserializer(r):JSON.parse(r)}catch(o){console.error(o)}var r;return f(null===n||void 0===n?void 0:n.defaultValue)?null===n||void 0===n?void 0:n.defaultValue():null===n||void 0===n?void 0:n.defaultValue}var u=(0,r.useState)((function(){return o()})),a=(0,c.Z)(u,2),s=a[0],l=a[1];return h((function(){l(o())}),[t]),[s,v((function(e){var r=f(e)?e(s):e;if(l(r),function(e){return"undefined"===typeof e}(r))null===i||void 0===i||i.removeItem(t);else try{null===i||void 0===i||i.setItem(t,function(e){return(null===n||void 0===n?void 0:n.serializer)?null===n||void 0===n?void 0:n.serializer(e):JSON.stringify(e)}(r))}catch(o){console.error(o)}}))]}}var ht=vt((function(){return A?localStorage:void 0}));var pt=function(e){var t=this,n=(0,r.useRef)(!1);return(0,r.useCallback)((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(0,a.__awaiter)(t,void 0,void 0,(0,Y.Z)().mark((function t(){var r;return(0,Y.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.current){t.next=2;break}return t.abrupt("return");case 2:return n.current=!0,t.prev=3,t.next=6,e.apply(void 0,i);case 6:return r=t.sent,n.current=!1,t.abrupt("return",r);case 11:throw t.prev=11,t.t0=t.catch(3),n.current=!1,t.t0;case 15:case"end":return t.stop()}}),t,null,[[3,11]])})))}),[e])},gt=A&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var mt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.delay,o=void 0===i?300:i,u=n.moveThreshold,c=n.onClick,a=n.onLongPressEnd,s=y(e),f=y(c),l=y(a),d=(0,r.useRef)(),v=(0,r.useRef)(!1),h=(0,r.useRef)({x:0,y:0}),p=!!((null===u||void 0===u?void 0:u.x)&&u.x>0||(null===u||void 0===u?void 0:u.y)&&u.y>0);ce((function(){var e=ie(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(p){var t=a(e),n=t.clientX,r=t.clientY;h.current.x=n,h.current.y=r}d.current=setTimeout((function(){s.current(e),v.current=!0}),o)},r=function(e){d.current&&function(e){var t=a(e),n=t.clientX,r=t.clientY,i=Math.abs(n-h.current.x),o=Math.abs(r-h.current.y);return!!((null===u||void 0===u?void 0:u.x)&&i>u.x||(null===u||void 0===u?void 0:u.y)&&o>u.y)}(e)&&(clearInterval(d.current),d.current=void 0)},i=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.current&&clearTimeout(d.current),v.current&&(null===(t=l.current)||void 0===t||t.call(l,e)),n&&!v.current&&f.current&&f.current(e),v.current=!1},c=function(e){return i(e,!0)};return gt?(e.addEventListener("touchstart",n),e.addEventListener("touchend",c),p&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",i),p&&e.addEventListener("mousemove",r)),function(){d.current&&(clearTimeout(d.current),v.current=!1),gt?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",c),p&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",i),p&&e.removeEventListener("mousemove",r))}}function a(e){return e instanceof TouchEvent?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}}),[],t)};var bt=function(e){var t=function(){return void 0===e?new Map:new Map(e)},n=(0,r.useState)((function(){return t()})),i=(0,c.Z)(n,2),o=i[0],u=i[1];return[o,{set:v((function(e,t){u((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:v((function(e){u(new Map(e))})),remove:v((function(e){u((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:v((function(){return u(t())})),get:v((function(e){return o.get(e)}))}]};var yt,wt=function(e){var t=(0,r.useRef)(0),n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){u(e)}))}),[]);return w((function(){cancelAnimationFrame(t.current)})),[o,a]},Et={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},_t=function(e){var t=wt(Et),n=(0,c.Z)(t,2),r=n[0],i=n[1];return Le("mousemove",(function(t){var n=t.screenX,r=t.screenY,o=t.clientX,u=t.clientY,c=t.pageX,a=t.pageY,s={screenX:n,screenY:r,clientX:o,clientY:u,pageX:c,pageY:a,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=ie(e);if(f){var l=f.getBoundingClientRect(),d=l.left,v=l.top,h=l.width,p=l.height;s.elementPosX=d+window.pageXOffset,s.elementPosY=v+window.pageYOffset,s.elementX=c-s.elementPosX,s.elementY=a-s.elementPosY,s.elementW=h,s.elementH=p}i(s)}),{target:function(){return document}}),r};function Ot(){var e=navigator;return s(e)?e.connection||e.mozConnection||e.webkitConnection:null}function St(){var e=Ot();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}!function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"}(yt||(yt={}));var Tt=function(){var e=(0,r.useState)((function(){return Object.assign({since:void 0,online:null===navigator||void 0===navigator?void 0:navigator.onLine},St())})),t=(0,c.Z)(e,2),n=t[0],i=t[1];return(0,r.useEffect)((function(){var e=function(){i((function(e){return Object.assign(Object.assign({},e),{online:!0,since:new Date})}))},t=function(){i((function(e){return Object.assign(Object.assign({},e),{online:!1,since:new Date})}))},n=function(){i((function(e){return Object.assign(Object.assign({},e),St())}))};window.addEventListener(yt.ONLINE,e),window.addEventListener(yt.OFFLINE,t);var r=Ot();return null===r||void 0===r||r.addEventListener(yt.CHANGE,n),function(){window.removeEventListener(yt.ONLINE,e),window.removeEventListener(yt.OFFLINE,t),null===r||void 0===r||r.removeEventListener(yt.CHANGE,n)}}),[]),n},Rt=function(e,t){return!Object.is(e,t)};var kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rt,n=(0,r.useRef)(),i=(0,r.useRef)();return t(i.current,e)&&(n.current=i.current,i.current=e),n.current};var Lt=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};var Mt=function(e,t,n){var i=null===n||void 0===n?void 0:n.immediate,o=y(e),u=(0,r.useRef)();return(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i&&o.current(),u.current=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=(new Date).getTime(),r={id:0},i=function i(){(new Date).getTime()-n>=t&&(e(),n=(new Date).getTime()),r.id=requestAnimationFrame(i)};return r.id=requestAnimationFrame(i),r}((function(){o.current()}),t),function(){u.current&&Lt(u.current)}}),[t]),(0,r.useCallback)((function(){u.current&&Lt(u.current)}),[])};var Ct=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var xt=function(e,t){var n=y(e),i=(0,r.useRef)();return(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i.current=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("undefined"===typeof requestAnimationFrame)return{id:setTimeout(e,t)};var n={id:0},r=(new Date).getTime(),i=function i(){(new Date).getTime()-r>=t?e():n.id=requestAnimationFrame(i)};return n.id=requestAnimationFrame(i),n}((function(){n.current()}),t),function(){i.current&&Ct(i.current)}}),[t]),(0,r.useCallback)((function(){i.current&&Ct(i.current)}),[])},At=new WeakMap,It=new WeakMap;function Nt(e,t){var n=At.get(e);if(n)return n;if(It.has(e))return e;var r=new Proxy(e,{get:function(e,n,r){var i=Reflect.get(e,n,r);return s(i)?Nt(i,t):i},set:function(e,n,r){var i=Reflect.set(e,n,r);return t(),i},deleteProperty:function(e,n){var r=Reflect.deleteProperty(e,n);return t(),r}});return At.set(e,r),It.set(r,e),r}var jt,Dt=function(e){var t=U(),n=(0,r.useRef)(e);return b((function(){return Nt(n.current,(function(){t()}))}),[])},Zt=function(e){var t=(0,r.useState)(e),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=v((function(){o(e)}));return[i,o,u]},Ft=new Set,Pt={xs:0,sm:576,md:768,lg:992,xl:1200};function zt(){var e=jt;if(Ht(),e!==jt){var t,n=(0,Ne.Z)(Ft);try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(r){n.e(r)}finally{n.f()}}}var Vt=!1;function Ht(){for(var e=window.innerWidth,t={},n=!1,r=0,i=Object.keys(Pt);r<i.length;r++){var o=i[r];t[o]=e>=Pt[o],t[o]!==jt[o]&&(n=!0)}n&&(jt=t)}function Wt(e){Pt=e,jt&&Ht()}function qt(){A&&!Vt&&(jt={},Ht(),window.addEventListener("resize",zt),Vt=!0);var e=(0,r.useState)(jt),t=(0,c.Z)(e,2),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(A){Vt||window.addEventListener("resize",zt);var e=function(){i(jt)};return Ft.add(e),function(){Ft.delete(e),0===Ft.size&&(window.removeEventListener("resize",zt),Vt=!1)}}}),[]),n}var Bt=function(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var Ut=function(e){var t=Bt(),n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1];return[o,(0,r.useCallback)((function(e){t.current||u(e)}),[])]};var Yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=wt(),r=(0,c.Z)(n,2),i=r[0],o=r[1],u=y(t);return ce((function(){var t=ie(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},u.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),i};function Xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useState)(t),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useMemo)((function(){return new Set(o)}),[o]),s=function(e){return a.has(e)},f=function(e){return a.add(e),u(Array.from(a))},l=function(e){return a.delete(e),u(Array.from(a))},d=function(e){s(e)?l(e):f(e)},h=function(){e.forEach((function(e){a.add(e)})),u(Array.from(a))},p=function(){e.forEach((function(e){a.delete(e)})),u(Array.from(a))},g=(0,r.useMemo)((function(){return e.every((function(e){return!a.has(e)}))}),[e,a]),m=(0,r.useMemo)((function(){return e.every((function(e){return a.has(e)}))&&!g}),[e,a,g]),b=(0,r.useMemo)((function(){return!g&&!m}),[g,m]),y=function(){return m?p():h()};return{selected:o,noneSelected:g,allSelected:m,partiallySelected:b,setSelected:u,isSelected:s,select:v(f),unSelect:v(l),toggle:v(d),selectAll:v(h),unSelectAll:v(p),toggleAll:v(y)}}var Gt=vt((function(){return A?sessionStorage:void 0}));var Kt=function(e){var t=function(){return void 0===e?new Set:new Set(e)},n=(0,r.useState)((function(){return t()})),i=(0,c.Z)(n,2),o=i[0],u=i[1];return[o,{add:v((function(e){o.has(e)||u((function(t){var n=new Set(t);return n.add(e),n}))})),remove:v((function(e){o.has(e)&&u((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:v((function(){return u(t())}))}]},Jt=function(e){var t=(0,r.useState)(e),n=(0,c.Z)(t,2),i=n[0],o=n[1];return[i,(0,r.useCallback)((function(e){o((function(t){var n=f(e)?e(t):e;return n?Object.assign(Object.assign({},t),n):t}))}),[])]},$t=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Qt="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,en="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),tn="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(en):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var nn=["top","right","bottom","left","width","height","size","weight"],rn="undefined"!==typeof MutationObserver,on=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&c()}function u(){tn(o)}function c(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Qt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Qt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;nn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),un=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},cn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||en},an=hn(0,0,0,0);function sn(e){return parseFloat(e)||0}function fn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+sn(e["border-"+n+"-width"])}),0)}function ln(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return an;var r=cn(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=sn(o)}return t}(r),o=i.left+i.right,u=i.top+i.bottom,c=sn(r.width),a=sn(r.height);if("border-box"===r.boxSizing&&(Math.round(c+o)!==t&&(c-=fn(r,"left","right")+o),Math.round(a+u)!==n&&(a-=fn(r,"top","bottom")+u)),!function(e){return e===cn(e).document.documentElement}(e)){var s=Math.round(c+o)-t,f=Math.round(a+u)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(f)&&(a-=f)}return hn(i.left,i.top,c,a)}var dn="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof cn(e).SVGGraphicsElement}:function(e){return e instanceof cn(e).SVGElement&&"function"===typeof e.getBBox};function vn(e){return Qt?dn(e)?function(e){var t=e.getBBox();return hn(0,0,t.width,t.height)}(e):ln(e):an}function hn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var pn=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=hn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=vn(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),gn=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(o.prototype);return un(u,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),u}(t);un(this,{target:e,contentRect:n})},mn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new $t,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof cn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new pn(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof cn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new gn(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),bn="undefined"!==typeof WeakMap?new WeakMap:new $t,yn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=on.getInstance(),r=new mn(t,n,this);bn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){yn.prototype[e]=function(){var t;return(t=bn.get(this))[e].apply(t,arguments)}}));var wn="undefined"!==typeof en.ResizeObserver?en.ResizeObserver:yn,En=ue(r.useLayoutEffect),_n=A?En:ce;var On=function(e){var t=wt(),n=(0,c.Z)(t,2),r=n[0],i=n[1];return _n((function(){var t=ie(e);if(t){var n=new wn((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;i({width:n,height:r})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),r},Sn={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},Tn=Object.assign({text:""},Sn);var Rn=function(e){var t=(0,r.useState)(Tn),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=(0,r.useRef)(i),a=(0,r.useRef)(!1);return u.current=i,ce((function(){var t=ie(e,document);if(t){var n=function(){var e,t=null,n=Sn;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&a.current&&(n=function(e){if(!e)return Sn;if(e.rangeCount<1)return Sn;var t=e.getRangeAt(0).getBoundingClientRect();return{height:t.height,width:t.width,top:t.top,left:t.left,right:t.right,bottom:t.bottom}}(t),o(Object.assign(Object.assign(Object.assign({},i),{text:e}),n)))},r=function(e){if(window.getSelection){u.current.text&&o(Object.assign({},Tn)),a.current=!1;var n=window.getSelection();n&&(n.removeAllRanges(),a.current=t.contains(e.target))}};return t.addEventListener("mouseup",n),document.addEventListener("mousedown",r),function(){t.removeEventListener("mouseup",n),document.removeEventListener("mousedown",r)}}}),[],e),i};var kn=function(e,t){var n,i=y(e),o=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,u=(0,r.useMemo)((function(){return W()((function(){return i.current.apply(i,arguments)}),o,t)}),[]);return w((function(){u.cancel()})),{run:u,cancel:u.cancel,flush:u.flush}};var Ln=function(e,t){var n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=kn((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),o};var Mn=function(e,t,n){var i=(0,r.useState)({}),o=(0,c.Z)(i,2),u=o[0],a=o[1],s=kn((function(){a({})}),n).run;(0,r.useEffect)((function(){return s()}),t),h(e,[u])};var Cn=function(e,t){var n=y(e),i=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i.current=setTimeout((function(){n.current()}),t),function(){i.current&&clearTimeout(i.current)}}),[t]),(0,r.useCallback)((function(){i.current&&clearTimeout(i.current)}),[])},xn={restoreOnUnmount:!1};var An,In=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn,n=(0,r.useRef)(A?document.title:"");(0,r.useEffect)((function(){document.title=e}),[e]),w((function(){t.restoreOnUnmount&&(document.title=n.current)}))},Nn=function(e,t){var n=(0,r.useRef)();(0,r.useEffect)((function(){var r,i,o=(r=n.current,i=t,r?r.map((function(e,t){return Object.is(r[t],null===i||void 0===i?void 0:i[t])?-1:t})).filter((function(e){return e>=0})):i?i.map((function(e,t){return t})):[]),u=n.current;return n.current=t,e(o,u,t)}),t)},jn=i(r.useLayoutEffect),Dn=function(e,t){var n=t.containerTarget,i=t.wrapperTarget,o=t.itemHeight,u=t.overscan,a=void 0===u?5:u,s=y(o),f=On(n),l=(0,r.useRef)(!1),h=(0,r.useState)([]),p=(0,c.Z)(h,2),g=p[0],m=p[1],b=function(t){return d(s.current)?t*s.current:e.slice(0,t).reduce((function(t,n,r){return t+s.current(r,e[r])}),0)},w=(0,r.useMemo)((function(){return d(s.current)?e.length*s.current:e.reduce((function(t,n,r){return t+s.current(r,e[r])}),0)}),[e]),E=function(){var t=ie(n),r=ie(i);if(t&&r){var o=t.scrollTop,u=t.clientHeight,c=function(t){if(d(s.current))return Math.floor(t/s.current)+1;for(var n=0,r=0,i=0;i<e.length;i++)if((n+=s.current(i,e[i]))>=t){r=i;break}return r+1}(o),f=function(t,n){if(d(s.current))return Math.ceil(t/s.current);for(var r=0,i=0,o=n;o<e.length&&(i=o,!((r+=s.current(o,e[o]))>=t));o++);return i-n}(u,c),l=Math.max(0,c-a),v=Math.min(e.length,c+f+a),h=b(l);r.style.height=w-h+"px",r.style.marginTop=h+"px",m(e.slice(l,v).map((function(e,t){return{data:e,index:t+l}})))}};(0,r.useEffect)((function(){(null===f||void 0===f?void 0:f.width)&&(null===f||void 0===f?void 0:f.height)&&E()}),[null===f||void 0===f?void 0:f.width,null===f||void 0===f?void 0:f.height,e]),Le("scroll",(function(e){l.current?l.current=!1:(e.preventDefault(),E())}),{target:n});return[g,v((function(e){var t=ie(n);t&&(l.current=!0,t.scrollTop=b(e),E())}))]};function Zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reconnectLimit,i=void 0===n?3:n,o=t.reconnectInterval,u=void 0===o?3e3:o,a=t.manual,s=void 0!==a&&a,f=t.onOpen,l=t.onClose,d=t.onMessage,h=t.onError,p=t.protocols,g=y(f),m=y(l),b=y(d),E=y(h),_=(0,r.useRef)(0),O=(0,r.useRef)(),S=(0,r.useRef)(),T=(0,r.useRef)(!1),R=(0,r.useState)(),k=(0,c.Z)(R,2),L=k[0],M=k[1],C=(0,r.useState)(An.Closed),x=(0,c.Z)(C,2),A=x[0],I=x[1],N=function(){var e;_.current<i&&(null===(e=S.current)||void 0===e?void 0:e.readyState)!==An.Open&&(O.current&&clearTimeout(O.current),O.current=setTimeout((function(){j(),_.current++}),u))},j=function(){O.current&&clearTimeout(O.current),S.current&&S.current.close();var t=new WebSocket(e,p);I(An.Connecting),t.onerror=function(e){var n;T.current||(N(),null===(n=E.current)||void 0===n||n.call(E,e,t),I(t.readyState||An.Closed))},t.onopen=function(e){var n;T.current||(null===(n=g.current)||void 0===n||n.call(g,e,t),_.current=0,I(t.readyState||An.Open))},t.onmessage=function(e){var n;T.current||(null===(n=b.current)||void 0===n||n.call(b,e,t),M(e))},t.onclose=function(e){var n;T.current||(N(),null===(n=m.current)||void 0===n||n.call(m,e,t),I(t.readyState||An.Closed))},S.current=t},D=function(e){var t;if(A!==An.Open)throw new Error("WebSocket disconnected");null===(t=S.current)||void 0===t||t.send(e)},Z=function(){_.current=0,j()},F=function(){var e;O.current&&clearTimeout(O.current),_.current=i,null===(e=S.current)||void 0===e||e.close()};return(0,r.useEffect)((function(){s||Z()}),[e,s]),w((function(){T.current=!0,F()})),{latestMessage:L,sendMessage:v(D),connect:v(Z),disconnect:v(F),readyState:A,webSocketIns:S.current}}function Fn(e,t){var n=(0,r.useRef)({});(0,r.useEffect)((function(){if(n.current){var r=Object.keys(Object.assign(Object.assign({},n.current),t)),i={};r.forEach((function(e){Object.is(n.current[e],t[e])||(i[e]={from:n.current[e],to:t[e]})})),Object.keys(i).length&&console.log("[why-did-you-update]",e,i)}n.current=t}))}!function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"}(An||(An={}));var Pn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(e);ut((function(){var e=ie(t);if(e){var i=new MutationObserver(r.current);return i.observe(e,n),function(){i&&i.disconnect()}}}),[n],t)}},53634:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;u.prototype.THROTTLE_TIMEOUT=100,u.prototype.POLL_INTERVAL=null,u.prototype.USE_MUTATION_OBSERVER=!0,u._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},u._resetCrossOriginUpdater=function(){n=null,r=null},u.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},u.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},u.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},u.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},u.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},u.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},u.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,u=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(u=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),a(e,"resize",r,!0)),a(t,"scroll",r,!0),u&&u.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=s){var f=i(t);f&&this._monitorIntersections(f.ownerDocument)}}},u.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var u=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),u(),t!=r){var c=i(t);c&&this._unmonitorIntersections(c.ownerDocument)}}}},u.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},u.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,u=f(i),c=this._rootContainsTarget(i),a=r.entry,s=e&&c&&this._computeTargetAndRootIntersection(i,u,t),l=null;this._rootContainsTarget(i)?n&&!this.root||(l=t):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:u,rootBounds:l,intersectionRect:s});a?e&&c?this._hasCrossedThreshold(a,d)&&this._queuedEntries.push(d):a&&a.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},u.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var u=i,c=h(t),a=!1;!a&&c;){var l=null,v=1==c.nodeType?window.getComputedStyle(c):{};if("none"==v.display)return null;if(c==this.root||9==c.nodeType)if(a=!0,c==this.root||c==e)n&&!this.root?!r||0==r.width&&0==r.height?(c=null,l=null,u=null):l=r:l=o;else{var p=h(c),g=p&&f(p),m=p&&this._computeTargetAndRootIntersection(p,g,o);g&&m?(c=p,l=d(g,m)):(c=null,u=null)}else{var b=c.ownerDocument;c!=b.body&&c!=b.documentElement&&"visible"!=v.overflow&&(l=f(c))}if(l&&(u=s(l,u)),!u)break;c=c&&h(c)}return u}},u.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=f(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},u.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},u.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},u.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},u.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return v(n,t)&&(!this.root||n==t.ownerDocument)},u.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},u.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=u,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=l(e.rootBounds),this.boundingClientRect=l(e.boundingClientRect),this.intersectionRect=l(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function u(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function c(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function a(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),o=Math.min(e.right,t.right),u=o-i,c=r-n;return u>=0&&c>=0&&{top:n,bottom:r,left:i,right:o,width:u,height:c}||null}function f(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function v(e,t){for(var n=t;n;){if(n==e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}}()},67047:function(e,t,n){var r=n(26271),i=n(72685),o=n(81692),u=Math.max,c=Math.min;e.exports=function(e,t,n){var a,s,f,l,d,v,h=0,p=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=a,r=s;return a=s=void 0,h=t,l=e.apply(r,n)}function y(e){return h=e,d=setTimeout(E,t),p?b(e):l}function w(e){var n=e-v;return void 0===v||n>=t||n<0||g&&e-h>=f}function E(){var e=i();if(w(e))return _(e);d=setTimeout(E,function(e){var n=t-(e-v);return g?c(n,f-(e-h)):n}(e))}function _(e){return d=void 0,m&&a?b(e):(a=s=void 0,l)}function O(){var e=i(),n=w(e);if(a=arguments,s=this,v=e,n){if(void 0===d)return y(v);if(g)return clearTimeout(d),d=setTimeout(E,t),b(v)}return void 0===d&&(d=setTimeout(E,t)),l}return t=o(t)||0,r(n)&&(p=!!n.leading,f=(g="maxWait"in n)?u(o(n.maxWait)||0,t):f,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==d&&clearTimeout(d),h=0,a=v=s=d=void 0},O.flush=function(){return void 0===d?l:_(i())},O}},72685:function(e,t,n){var r=n(56164);e.exports=function(){return r.Date.now()}},8406:function(e,t,n){var r=n(67047),i=n(26271);e.exports=function(e,t,n){var o=!0,u=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,u="trailing"in n?!!n.trailing:u),r(e,t,{leading:o,maxWait:t,trailing:u})}}}]);
1
+ /*! For license information please see 6898.6fe0c32d.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6898],{76898:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return O},configResponsive:function(){return qt},createUpdateEffect:function(){return i},useAntdTable:function(){return ee},useAsyncEffect:function(){return te},useBoolean:function(){return re},useClickAway:function(){return ae},useControllableValue:function(){return se},useCookieState:function(){return de},useCountDown:function(){return me},useCounter:function(){return ye},useCreation:function(){return b},useDebounce:function(){return Ee},useDebounceEffect:function(){return _e},useDebounceFn:function(){return we},useDeepCompareEffect:function(){return Re},useDeepCompareLayoutEffect:function(){return ke},useDocumentVisibility:function(){return xe},useDrag:function(){return Ce},useDrop:function(){return Ae},useDynamicList:function(){return Fe},useEventEmitter:function(){return Ne},useEventListener:function(){return Le},useEventTarget:function(){return De},useExternal:function(){return Pe},useFavicon:function(){return Ve},useFocusWithin:function(){return He},useFullscreen:function(){return We},useFusionTable:function(){return Xe},useGetState:function(){return Ge},useHistoryTravel:function(){return Je},useHover:function(){return $e},useInViewport:function(){return it},useInfiniteScroll:function(){return nt},useInterval:function(){return rt},useIsomorphicLayoutEffect:function(){return ot},useKeyPress:function(){return dt},useLatest:function(){return y},useLocalStorageState:function(){return ht},useLockFn:function(){return gt},useLongPress:function(){return mt},useMap:function(){return bt},useMemoizedFn:function(){return v},useMount:function(){return W},useMouse:function(){return _t},useMutationObserver:function(){return Pn},useNetwork:function(){return Tt},usePagination:function(){return Q},usePrevious:function(){return kt},useRafInterval:function(){return Mt},useRafState:function(){return wt},useRafTimeout:function(){return Ct},useReactive:function(){return Nt},useRequest:function(){return $},useResetState:function(){return Dt},useResponsive:function(){return Bt},useSafeState:function(){return Ut},useScroll:function(){return Yt},useSelections:function(){return Xt},useSessionStorageState:function(){return Gt},useSet:function(){return Kt},useSetState:function(){return Jt},useSize:function(){return On},useTextSelection:function(){return Rn},useThrottle:function(){return Ln},useThrottleEffect:function(){return Mn},useThrottleFn:function(){return kn},useTimeout:function(){return xn},useTitle:function(){return Fn},useToggle:function(){return ne},useTrackedEffect:function(){return In},useUnmount:function(){return w},useUnmountedRef:function(){return Wt},useUpdate:function(){return U},useUpdateEffect:function(){return h},useUpdateLayoutEffect:function(){return jn},useVirtualList:function(){return Nn},useWebSocket:function(){return Dn},useWhyDidYouUpdate:function(){return Zn}});var r=n(5057),i=function(e){return function(t,n){var i=(0,r.useRef)(!1);e((function(){return function(){i.current=!1}}),[]),e((function(){if(i.current)return t();i.current=!0}),n)}},o=n(68079),u=n(46840),c=n(96234),a=n(9161),s=function(e){return null!==e&&"object"===typeof e},l=function(e){return"function"===typeof e},f=function(e){return"string"===typeof e},d=function(e){return"number"===typeof e};var v=function(e){var t=(0,r.useRef)(e);t.current=(0,r.useMemo)((function(){return e}),[e]);var n=(0,r.useRef)();return n.current||(n.current=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(this,n)}),n.current},h=i(r.useEffect),g=function(e,t){var n=t.manual,i=t.ready,u=void 0===i||i,c=t.defaultParams,a=void 0===c?[]:c,s=t.refreshDeps,l=void 0===s?[]:s,f=t.refreshDepsAction,d=(0,r.useRef)(!1);return d.current=!1,h((function(){!n&&u&&(d.current=!0,e.run.apply(e,(0,o.Z)(a)))}),[u]),h((function(){d.current||n||(d.current=!0,f?f():e.refresh())}),(0,o.Z)(l)),{onBefore:function(){if(!u)return{stopNow:!0}}}};g.onInit=function(e){var t=e.ready,n=void 0===t||t;return{loading:!e.manual&&n}};var p=g;function m(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function b(e,t){var n=(0,r.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==n.initialized&&m(n.deps,t)||(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}var y=function(e){var t=(0,r.useRef)(e);return t.current=e,t},w=function(e){var t=y(e);(0,r.useEffect)((function(){return function(){t.current()}}),[])},E=new Map,_=function(e){return E.get(e)},O=function(e){e?(Array.isArray(e)?e:[e]).forEach((function(e){return E.delete(e)})):E.clear()},S=new Map,T={},R=function(e,t){return T[e]||(T[e]=[]),T[e].push(t),function(){var n=T[e].indexOf(t);T[e].splice(n,1)}},k=function(e,t){var n=t.cacheKey,i=t.cacheTime,u=void 0===i?3e5:i,c=t.staleTime,a=void 0===c?0:c,s=t.setCache,l=t.getCache,f=(0,r.useRef)(),d=(0,r.useRef)(),v=function(e,t){s?s(t):function(e,t,n){var r=E.get(e);(null===r||void 0===r?void 0:r.timer)&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout((function(){E.delete(e)}),t)),E.set(e,Object.assign(Object.assign({},n),{timer:i}))}(e,u,t),function(e,t){T[e]&&T[e].forEach((function(e){return e(t)}))}(e,t.data)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return l?l(t):_(e)};return b((function(){if(n){var t=h(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===a||(new Date).getTime()-t.time<=a)&&(e.state.loading=!1)),f.current=R(n,(function(t){e.setState({data:t})}))}}),[]),w((function(){var e;null===(e=f.current)||void 0===e||e.call(f)})),n?{onBefore:function(e){var t=h(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===a||(new Date).getTime()-t.time<=a?{loading:!1,data:null===t||void 0===t?void 0:t.data,error:void 0,returnNow:!0}:{data:null===t||void 0===t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var r=function(e){return S.get(e)}(n);return r&&r!==d.current||(r=e.apply(void 0,(0,o.Z)(t)),d.current=r,function(e,t){S.set(e,t),t.then((function(t){return S.delete(e),t})).catch((function(){S.delete(e)}))}(n,r)),{servicePromise:r}},onSuccess:function(t,r){var i;n&&(null===(i=f.current)||void 0===i||i.call(f),v(n,{data:t,params:r,time:(new Date).getTime()}),f.current=R(n,(function(t){e.setState({data:t})})))},onMutate:function(t){var r;n&&(null===(r=f.current)||void 0===r||r.call(f),v(n,{data:t,params:e.state.params,time:(new Date).getTime()}),f.current=R(n,(function(t){e.setState({data:t})})))}}:{}},L=n(67047),M=n.n(L),x=function(e,t){var n=t.debounceWait,i=t.debounceLeading,o=t.debounceTrailing,u=t.debounceMaxWait,c=(0,r.useRef)(),a=(0,r.useMemo)((function(){var e={};return void 0!==i&&(e.leading=i),void 0!==o&&(e.trailing=o),void 0!==u&&(e.maxWait=u),e}),[i,o,u]);return(0,r.useEffect)((function(){if(n){var t=e.runAsync.bind(e);return c.current=M()((function(e){e()}),n,a),e.runAsync=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new Promise((function(e,r){var i;null===(i=c.current)||void 0===i||i.call(c,(function(){t.apply(void 0,n).then(e).catch(r)}))}))},function(){var n;null===(n=c.current)||void 0===n||n.cancel(),e.runAsync=t}}}),[n,a]),n?{onCancel:function(){var e;null===(e=c.current)||void 0===e||e.cancel()}}:{}},C=function(e,t){var n=t.loadingDelay,i=(0,r.useRef)();if(!n)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),i.current=setTimeout((function(){e.setState({loading:!0})}),n),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},A=!("undefined"===typeof window||!window.document||!window.document.createElement);function F(){return!A||"hidden"!==document.visibilityState}var I=[];if(A){window.addEventListener("visibilitychange",(function(){if(F())for(var e=0;e<I.length;e++){(0,I[e])()}}),!1)}var j=function(e){return I.push(e),function(){var t=I.indexOf(e);I.splice(t,1)}},N=function(e,t){var n=t.pollingInterval,i=t.pollingWhenHidden,o=void 0===i||i,u=t.pollingErrorRetryCount,c=void 0===u?-1:u,a=(0,r.useRef)(),s=(0,r.useRef)(),l=(0,r.useRef)(0),f=function(){var e;a.current&&clearTimeout(a.current),null===(e=s.current)||void 0===e||e.call(s)};return h((function(){n||f()}),[n]),n?{onBefore:function(){f()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){-1===c||-1!==c&&l.current<=c?a.current=setTimeout((function(){o||F()?e.refresh():s.current=j((function(){e.refresh()}))}),n):l.current=0},onCancel:function(){f()}}:{}};var D=[];if(A){var Z=function(){if(F()&&(!A||"undefined"===typeof navigator.onLine||navigator.onLine))for(var e=0;e<D.length;e++){(0,D[e])()}};window.addEventListener("visibilitychange",Z,!1),window.addEventListener("focus",Z,!1)}var P=function(e){return D.push(e),function(){var t=D.indexOf(e);t>-1&&D.splice(t,1)}},z=function(e,t){var n=t.refreshOnWindowFocus,i=t.focusTimespan,o=void 0===i?5e3:i,u=(0,r.useRef)(),c=function(){var e;null===(e=u.current)||void 0===e||e.call(u)};return(0,r.useEffect)((function(){if(n){var t=function(e,t){var n=!1;return function(){n||(n=!0,e.apply(void 0,arguments),setTimeout((function(){n=!1}),t))}}(e.refresh.bind(e),o);u.current=P((function(){t()}))}return function(){c()}}),[n,o]),w((function(){c()})),{}},V=function(e,t){var n=t.retryInterval,i=t.retryCount,o=(0,r.useRef)(),u=(0,r.useRef)(0),c=(0,r.useRef)(!1);return i?{onBefore:function(){c.current||(u.current=0),c.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){u.current=0},onError:function(){if(u.current+=1,-1===i||u.current<=i){var t=null!==n&&void 0!==n?n:Math.min(1e3*Math.pow(2,u.current),3e4);o.current=setTimeout((function(){c.current=!0,e.refresh()}),t)}else u.current=0},onCancel:function(){u.current=0,o.current&&clearTimeout(o.current)}}:{}},H=n(8406),q=n.n(H),B=function(e,t){var n=t.throttleWait,i=t.throttleLeading,o=t.throttleTrailing,u=(0,r.useRef)(),c={};return void 0!==i&&(c.leading=i),void 0!==o&&(c.trailing=o),(0,r.useEffect)((function(){if(n){var t=e.runAsync.bind(e);return u.current=q()((function(e){e()}),n,c),e.runAsync=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new Promise((function(e,r){var i;null===(i=u.current)||void 0===i||i.call(u,(function(){t.apply(void 0,n).then(e).catch(r)}))}))},function(){var n;e.runAsync=t,null===(n=u.current)||void 0===n||n.cancel()}}}),[n,i,o]),n?{onCancel:function(){var e;null===(e=u.current)||void 0===e||e.cancel()}}:{}},W=function(e){(0,r.useEffect)((function(){null===e||void 0===e||e()}),[])},U=function(){var e=(0,r.useState)({}),t=(0,c.Z)(e,2)[1];return(0,r.useCallback)((function(){return t({})}),[])},Y=n(32723),X=n(9249),G=n(87371),K=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,X.Z)(this,e),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Object.assign(Object.assign(Object.assign({},this.state),{loading:!n.manual}),i)}return(0,G.Z)(e,[{key:"setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state=Object.assign(Object.assign({},this.state),e),this.subscribe()}},{key:"runPluginHandler",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.pluginImpls.map((function(t){var r,i;return null===(i=t[e])||void 0===i?void 0:(r=i).call.apply(r,[t].concat(n))})).filter(Boolean);return Object.assign.apply(Object,[{}].concat((0,o.Z)(i)))}},{key:"runAsync",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i,o,u,c,s,l,f,d,v;return(0,a.__awaiter)(this,void 0,void 0,(0,Y.Z)().mark((function e(){var n,h,g,p,m,b,y,w,E,_,O;return(0,Y.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.count+=1,n=this.count,h=this.runPluginHandler("onBefore",t),g=h.stopNow,p=void 0!==g&&g,m=h.returnNow,b=void 0!==m&&m,y=(0,a.__rest)(h,["stopNow","returnNow"]),!p){e.next=5;break}return e.abrupt("return",new Promise((function(){})));case 5:if(this.setState(Object.assign({loading:!0,params:t},y)),!b){e.next=8;break}return e.abrupt("return",Promise.resolve(y.data));case 8:return null===(i=(r=this.options).onBefore)||void 0===i||i.call(r,t),e.prev=9,w=this.runPluginHandler("onRequest",this.serviceRef.current,t),(E=w.servicePromise)||(E=(_=this.serviceRef).current.apply(_,t)),e.next=14,E;case 14:if(O=e.sent,n===this.count){e.next=17;break}return e.abrupt("return",new Promise((function(){})));case 17:return this.setState({data:O,error:void 0,loading:!1}),null===(u=(o=this.options).onSuccess)||void 0===u||u.call(o,O,t),this.runPluginHandler("onSuccess",O,t),null===(s=(c=this.options).onFinally)||void 0===s||s.call(c,t,O,void 0),n===this.count&&this.runPluginHandler("onFinally",t,O,void 0),e.abrupt("return",O);case 25:if(e.prev=25,e.t0=e.catch(9),n===this.count){e.next=29;break}return e.abrupt("return",new Promise((function(){})));case 29:throw this.setState({error:e.t0,loading:!1}),null===(f=(l=this.options).onError)||void 0===f||f.call(l,e.t0,t),this.runPluginHandler("onError",e.t0,t),null===(v=(d=this.options).onFinally)||void 0===v||v.call(d,t,void 0,e.t0),n===this.count&&this.runPluginHandler("onFinally",t,void 0,e.t0),e.t0;case 35:case"end":return e.stop()}}),e,this,[[9,25]])})))}},{key:"run",value:function(){var e=this;this.runAsync.apply(this,arguments).catch((function(t){e.options.onError||console.error(t)}))}},{key:"cancel",value:function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}},{key:"refresh",value:function(){this.run.apply(this,(0,o.Z)(this.state.params||[]))}},{key:"refreshAsync",value:function(){return this.runAsync.apply(this,(0,o.Z)(this.state.params||[]))}},{key:"mutate",value:function(e){var t=l(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}]),e}();var J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=t.manual,i=void 0!==r&&r,u=(0,a.__rest)(t,["manual"]),c=Object.assign({manual:i},u),s=y(e),l=U(),f=b((function(){var e=n.map((function(e){var t;return null===(t=null===e||void 0===e?void 0:e.onInit)||void 0===t?void 0:t.call(e,c)})).filter(Boolean);return new K(s,c,l,Object.assign.apply(Object,[{}].concat((0,o.Z)(e))))}),[]);return f.options=c,f.pluginImpls=n.map((function(e){return e(f,c)})),W((function(){if(!i){var e=f.state.params||t.defaultParams||[];f.run.apply(f,(0,o.Z)(e))}})),w((function(){f.cancel()})),{loading:f.state.loading,data:f.state.data,error:f.state.error,params:f.state.params||[],cancel:v(f.cancel.bind(f)),refresh:v(f.refresh.bind(f)),refreshAsync:v(f.refreshAsync.bind(f)),run:v(f.run.bind(f)),runAsync:v(f.runAsync.bind(f)),mutate:v(f.mutate.bind(f))}};var $=function(e,t,n){return J(e,t,[].concat((0,o.Z)(n||[]),[x,C,N,z,B,p,k,V]))},Q=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.defaultPageSize,c=void 0===i?10:i,s=n.defaultCurrent,l=void 0===s?1:s,f=(0,a.__rest)(n,["defaultPageSize","defaultCurrent"]),d=$(e,Object.assign({defaultParams:[{current:l,pageSize:c}],refreshDepsAction:function(){_(1)}},f)),h=d.params[0]||{},g=h.current,p=void 0===g?1:g,m=h.pageSize,b=void 0===m?c:m,y=(null===(t=d.data)||void 0===t?void 0:t.total)||0,w=(0,r.useMemo)((function(){return Math.ceil(y/b)}),[b,y]),E=function(e,t){var n=e<=0?1:e,r=t<=0?1:t,i=Math.ceil(y/r);n>i&&(n=Math.max(1,i));var c=d.params||[],a=(0,u.Z)(c),s=a[0],l=void 0===s?{}:s,f=a.slice(1);d.run.apply(d,[Object.assign(Object.assign({},l),{current:n,pageSize:r})].concat((0,o.Z)(f)))},_=function(e){E(e,b)},O=function(e){E(p,e)};return Object.assign(Object.assign({},d),{pagination:{current:p,pageSize:b,total:y,totalPage:w,onChange:v(E),changeCurrent:v(_),changePageSize:v(O)}})},ee=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.form,s=n.defaultType,l=void 0===s?"simple":s,f=n.defaultParams,d=n.manual,g=void 0!==d&&d,p=n.refreshDeps,m=void 0===p?[]:p,b=n.ready,y=void 0===b||b,w=(0,a.__rest)(n,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),E=Q(e,Object.assign({manual:!0},w)),_=E.params,O=void 0===_?[]:_,S=E.run,T=O[2]||{},R=(0,r.useState)((null===T||void 0===T?void 0:T.type)||l),k=(0,c.Z)(R,2),L=k[0],M=k[1],x=(0,r.useRef)({}),C=(0,r.useRef)([]),A=!!(null===i||void 0===i?void 0:i.getInternalHooks),F=function(){if(!i)return{};if(A)return i.getFieldsValue(null,(function(){return!0}));var e=i.getFieldsValue(),t={};return Object.keys(e).forEach((function(n){i.getFieldInstance&&!i.getFieldInstance(n)||(t[n]=e[n])})),t},I=function(){if(!i)return Promise.resolve({});var e=F(),t=Object.keys(e);return A?i.validateFields(t):new Promise((function(e,n){i.validateFields(t,(function(t,r){t?n(t):e(r)}))}))},j=function(){if(i){if(A)return i.setFieldsValue(x.current);var e={};Object.keys(x.current).forEach((function(t){i.getFieldInstance&&!i.getFieldInstance(t)||(e[t]=x.current[t])})),i.setFieldsValue(e)}},N=function(){var e=F();x.current=Object.assign(Object.assign({},x.current),e),M((function(e){return"simple"===e?"advance":"simple"}))},D=function(e){y&&setTimeout((function(){I().then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e||Object.assign(Object.assign({pageSize:n.defaultPageSize||10},(null===O||void 0===O?void 0:O[0])||{}),{current:1});i?(x.current=Object.assign(Object.assign({},x.current),t),S(r,t,{allFormData:x.current,type:L})):S(r)})).catch((function(e){return e}))}))},Z=function(){i&&i.resetFields(),D()},P=function(e){var t;null===(t=null===e||void 0===e?void 0:e.preventDefault)||void 0===t||t.call(e),D()},z=function(e,t,n,r){var i=O||[],c=(0,u.Z)(i),a=c[0],s=c.slice(1);S.apply(void 0,[Object.assign(Object.assign({},a),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:r})].concat((0,o.Z)(s)))};(0,r.useEffect)((function(){if(O.length>0)return x.current=(null===T||void 0===T?void 0:T.allFormData)||{},j(),void S.apply(void 0,(0,o.Z)(O));!g&&y&&(x.current=(null===f||void 0===f?void 0:f[1])||{},j(),D(null===f||void 0===f?void 0:f[0]))}),[]),h((function(){y&&j()}),[L]);var V=(0,r.useRef)(!1);return V.current=!1,h((function(){!g&&y&&(V.current=!0,i&&i.resetFields(),x.current=(null===f||void 0===f?void 0:f[1])||{},j(),D(null===f||void 0===f?void 0:f[0]))}),[y]),h((function(){V.current||y&&(g||(V.current=!0,E.pagination.changeCurrent(1)))}),(0,o.Z)(m)),Object.assign(Object.assign({},E),{tableProps:{dataSource:(null===(t=E.data)||void 0===t?void 0:t.list)||C.current,loading:E.loading,onChange:v(z),pagination:{current:E.pagination.current,pageSize:E.pagination.pageSize,total:E.pagination.total}},search:{submit:v(P),type:L,changeType:v(N),reset:v(Z)}})};var te=function(e,t){(0,r.useEffect)((function(){var t=e(),n=!1;return function(){(0,a.__awaiter)(this,void 0,void 0,(0,Y.Z)().mark((function e(){return(0,Y.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l(t[Symbol.asyncIterator])){e.next=11;break}case 1:return e.next=4,t.next();case 4:if(!e.sent.done&&!n){e.next=7;break}return e.abrupt("break",9);case 7:e.next=1;break;case 9:e.next=13;break;case 11:return e.next=13,t;case 13:case"end":return e.stop()}}),e)})))}(),function(){n=!0}}),t)};var ne=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useMemo)((function(){var n=void 0===t?!e:t;return{toggle:function(){return u((function(t){return t===e?n:e}))},set:function(e){return u(e)},setLeft:function(){return u(e)},setRight:function(){return u(n)}}}),[]);return[o,a]};function re(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=ne(e),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=o.toggle,a=o.set,s=(0,r.useMemo)((function(){return{toggle:u,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}}),[]);return[i,s]}function ie(e,t){if(A)return e?l(e)?e():"current"in e?e.current:e:t}var oe=function(e){if(!e||!document.getRootNode)return document;var t,n=Array.isArray(e)?e:[e];return function(e){return e.every((function(e){var t=ie(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=ie(n[0]))?t.getRootNode():document},ue=function(e){return function(t,n,i){var o=(0,r.useRef)(!1),u=(0,r.useRef)([]),c=(0,r.useRef)([]),a=(0,r.useRef)();e((function(){var e,r=(Array.isArray(i)?i:[i]).map((function(e){return ie(e)}));if(!o.current)return o.current=!0,u.current=r,c.current=n,void(a.current=t());r.length===u.current.length&&m(r,u.current)&&m(n,c.current)||(null===(e=a.current)||void 0===e||e.call(a),u.current=r,c.current=n,a.current=t())})),w((function(){var e;null===(e=a.current)||void 0===e||e.call(a),o.current=!1}))}},ce=ue(r.useEffect);function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click",r=y(e);ce((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=ie(t);return!n||n.contains(e.target)}))||r.current(e)},i=oe(t),o=Array.isArray(n)?n:[n];return o.forEach((function(t){return i.addEventListener(t,e)})),function(){o.forEach((function(t){return i.removeEventListener(t,e)}))}}),Array.isArray(n)?n:[n],t)}var se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultValue,i=t.defaultValuePropName,o=void 0===i?"defaultValue":i,u=t.valuePropName,c=void 0===u?"value":u,a=t.trigger,s=void 0===a?"onChange":a,f=e[c],d=e.hasOwnProperty(c),h=(0,r.useMemo)((function(){return d?f:e.hasOwnProperty(o)?e[o]:n}),[]),g=(0,r.useRef)(h);d&&(g.current=f);var p=U();function m(t){var n=l(t)?t(g.current):t;if(d||(g.current=n,p()),e[s]){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[s].apply(e,[n].concat(i))}}return[g.current,v(m)]},le=n(4899),fe=n.n(le);var de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.useState)((function(){var n=fe().get(e);return f(n)?n:l(t.defaultValue)?t.defaultValue():t.defaultValue})),i=(0,c.Z)(n,2),o=i[0],u=i[1],s=v((function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign(Object.assign({},t),r),o=(i.defaultValue,(0,a.__rest)(i,["defaultValue"]));u((function(t){var r=l(n)?n(t):n;return void 0===r?fe().remove(e):fe().set(e,r,o),r}))}));return[o,s]},ve=n(74410),he=n.n(ve),ge=function(e){if(!e)return 0;var t=he()(e).valueOf()-Date.now();return t<0?0:t},pe=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e||{},n=t.leftTime,i=t.targetDate,o=t.interval,u=void 0===o?1e3:o,a=t.onEnd,s=(0,r.useMemo)((function(){return"leftTime"in e?d(n)&&n>0?Date.now()+n:void 0:i}),[n,i]),l=(0,r.useState)((function(){return ge(s)})),f=(0,c.Z)(l,2),v=f[0],h=f[1],g=y(a);(0,r.useEffect)((function(){if(s){h(ge(s));var e=setInterval((function(){var t,n=ge(s);h(n),0===n&&(clearInterval(e),null===(t=g.current)||void 0===t||t.call(g))}),u);return function(){return clearInterval(e)}}h(0)}),[s,u]);var p=(0,r.useMemo)((function(){return pe(v)}),[v]);return[v,p]};function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,r=t.max,i=e;return d(r)&&(i=Math.min(r,i)),d(n)&&(i=Math.max(n,i)),i}var ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,i=t.max,o=(0,r.useState)((function(){return be(e,{min:n,max:i})})),u=(0,c.Z)(o,2),a=u[0],s=u[1],l=function(e){s((function(t){return be(d(e)?e:e(t),{max:i,min:n})}))},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;l((function(t){return t+e}))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;l((function(t){return t-e}))},g=function(e){l(e)},p=function(){l(e)};return[a,{inc:v(f),dec:v(h),set:v(g),reset:v(p)}]};var we=function(e,t){var n,i=y(e),o=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,u=(0,r.useMemo)((function(){return M()((function(){return i.current.apply(i,arguments)}),o,t)}),[]);return w((function(){u.cancel()})),{run:u,cancel:u.cancel,flush:u.flush}};var Ee=function(e,t){var n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=we((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),o};var _e=function(e,t,n){var i=(0,r.useState)({}),o=(0,c.Z)(i,2),u=o[0],a=o[1],s=we((function(){a({})}),n).run;(0,r.useEffect)((function(){return s()}),t),h(e,[u])},Oe=n(50482),Se=n.n(Oe),Te=function(e){return function(t,n){var i=(0,r.useRef)(),o=(0,r.useRef)(0);void 0!==n&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Se()(e,t)}(n,i.current)||(i.current=n,o.current+=1),e(t,[o.current])}},Re=Te(r.useEffect),ke=Te(r.useLayoutEffect);var Le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);ce((function(){var t=ie(n.target,window);if(null===t||void 0===t?void 0:t.addEventListener){var i=function(e){return r.current(e)};return t.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,i,{capture:n.capture})}}}),[e,n.capture,n.once,n.passive],n.target)},Me=function(){return A?document.visibilityState:"visible"};var xe=function(){var e=(0,r.useState)((function(){return Me()})),t=(0,c.Z)(e,2),n=t[0],i=t[1];return Le("visibilitychange",(function(){i(Me())}),{target:function(){return document}}),n},Ce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(n),i=y(e);ce((function(){var e=ie(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){var t,n;null===(n=(t=r.current).onDragStart)||void 0===n||n.call(t,e),e.dataTransfer.setData("custom",JSON.stringify(i.current))},o=function(e){var t,n;null===(n=(t=r.current).onDragEnd)||void 0===n||n.call(t,e)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",n),e.addEventListener("dragend",o),function(){e.removeEventListener("dragstart",n),e.removeEventListener("dragend",o)}}}),[],t)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=y(t),i=(0,r.useRef)();ce((function(){var t=ie(e);if(null===t||void 0===t?void 0:t.addEventListener){var r=function(e,t){var r=e.getData("text/uri-list"),i=e.getData("custom");if(i&&n.current.onDom){var o=i;try{o=JSON.parse(i)}catch(u){o=i}n.current.onDom(o,t)}else r&&n.current.onUri?n.current.onUri(r,t):e.files&&e.files.length&&n.current.onFiles?n.current.onFiles(Array.from(e.files),t):e.items&&e.items.length&&n.current.onText&&e.items[0].getAsString((function(e){n.current.onText(e,t)}))},o=function(e){var t,r;e.preventDefault(),e.stopPropagation(),i.current=e.target,null===(r=(t=n.current).onDragEnter)||void 0===r||r.call(t,e)},u=function(e){var t,r;e.preventDefault(),null===(r=(t=n.current).onDragOver)||void 0===r||r.call(t,e)},c=function(e){var t,r;e.target===i.current&&(null===(r=(t=n.current).onDragLeave)||void 0===r||r.call(t,e))},a=function(e){var t,i;e.preventDefault(),r(e.dataTransfer,e),null===(i=(t=n.current).onDrop)||void 0===i||i.call(t,e)},s=function(e){var t,i;r(e.clipboardData,e),null===(i=(t=n.current).onPaste)||void 0===i||i.call(t,e)};return t.addEventListener("dragenter",o),t.addEventListener("dragover",u),t.addEventListener("dragleave",c),t.addEventListener("drop",a),t.addEventListener("paste",s),function(){t.removeEventListener("dragenter",o),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",c),t.removeEventListener("drop",a),t.removeEventListener("paste",s)}}}),[],e)},Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,r.useRef)(-1),n=(0,r.useRef)([]),i=(0,r.useCallback)((function(e){t.current+=1,n.current.splice(e,0,t.current)}),[]),u=(0,r.useState)((function(){return e.forEach((function(e,t){i(t)})),e})),a=(0,c.Z)(u,2),s=a[0],l=a[1],f=(0,r.useCallback)((function(e){n.current=[],l((function(){return e.forEach((function(e,t){i(t)})),e}))}),[]),d=(0,r.useCallback)((function(e,t){l((function(n){var r=(0,o.Z)(n);return r.splice(e,0,t),i(e),r}))}),[]),v=(0,r.useCallback)((function(e){return n.current[e]}),[]),h=(0,r.useCallback)((function(e){return n.current.findIndex((function(t){return t===e}))}),[]),g=(0,r.useCallback)((function(e,t){l((function(n){var r=(0,o.Z)(n);return t.forEach((function(t,n){i(e+n)})),r.splice.apply(r,[e,0].concat((0,o.Z)(t))),r}))}),[]),p=(0,r.useCallback)((function(e,t){l((function(n){var r=(0,o.Z)(n);return r[e]=t,r}))}),[]),m=(0,r.useCallback)((function(e){l((function(t){var r=(0,o.Z)(t);r.splice(e,1);try{n.current.splice(e,1)}catch(i){console.error(i)}return r}))}),[]),b=(0,r.useCallback)((function(e,t){e!==t&&l((function(r){var i=(0,o.Z)(r),u=i.filter((function(t,n){return n!==e}));u.splice(t,0,i[e]);try{var c=n.current.filter((function(t,n){return n!==e}));c.splice(t,0,n.current[e]),n.current=c}catch(a){console.error(a)}return u}))}),[]),y=(0,r.useCallback)((function(e){l((function(t){return i(t.length),t.concat([e])}))}),[]),w=(0,r.useCallback)((function(){try{n.current=n.current.slice(0,n.current.length-1)}catch(e){console.error(e)}l((function(e){return e.slice(0,e.length-1)}))}),[]),E=(0,r.useCallback)((function(e){l((function(t){return i(0),[e].concat(t)}))}),[]),_=(0,r.useCallback)((function(){try{n.current=n.current.slice(1,n.current.length)}catch(e){console.error(e)}l((function(e){return e.slice(1,e.length)}))}),[]),O=(0,r.useCallback)((function(e){return e.map((function(e,t){return{key:t,item:e}})).sort((function(e,t){return h(e.key)-h(t.key)})).filter((function(e){return!!e.item})).map((function(e){return e.item}))}),[]);return{list:s,insert:d,merge:g,replace:p,remove:m,getKey:v,getIndex:h,move:b,push:y,pop:w,unshift:E,shift:_,sortList:O,resetList:f}},Ie=n(41361),je=(0,G.Z)((function e(){var t=this;(0,X.Z)(this,e),this.subscriptions=new Set,this.emit=function(e){var n,r=(0,Ie.Z)(t.subscriptions);try{for(r.s();!(n=r.n()).done;){(0,n.value)(e)}}catch(i){r.e(i)}finally{r.f()}},this.useSubscription=function(e){var n=(0,r.useRef)();n.current=e,(0,r.useEffect)((function(){function e(e){n.current&&n.current(e)}return t.subscriptions.add(e),function(){t.subscriptions.delete(e)}}),[])}}));function Ne(){var e=(0,r.useRef)();return e.current||(e.current=new je),e.current}var De=function(e){var t=e||{},n=t.initialValue,i=t.transformer,o=(0,r.useState)(n),u=(0,c.Z)(o,2),a=u[0],s=u[1],f=y(i),d=(0,r.useCallback)((function(){return s(n)}),[]);return[a,{onChange:(0,r.useCallback)((function(e){var t=e.target.value;return l(f.current)?s(f.current(t)):s(t)}),[]),reset:d}]},Ze={},Pe=function(e,t){var n=(0,r.useState)(e?"loading":"unset"),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useRef)();return(0,r.useEffect)((function(){if(e){var n=e.replace(/[|#].*$/,"");if("css"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^css!|\.css$)/.test(n)){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.querySelector('link[href="'.concat(e,'"]'));if(!n){var r=document.createElement("link");return r.rel="stylesheet",r.href=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),"hideFocus"in r&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.css);a.current=r.ref,u(r.status)}else if("js"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^js!|\.js$)/.test(n)){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.querySelector('script[src="'.concat(e,'"]'));if(!n){var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.js);a.current=i.ref,u(i.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(a.current){void 0===Ze[e]?Ze[e]=1:Ze[e]+=1;var o=function(e){var t,n="load"===e.type?"ready":"error";null===(t=a.current)||void 0===t||t.setAttribute("data-status",n),u(n)};return a.current.addEventListener("load",o),a.current.addEventListener("error",o),function(){var t,n,r;null===(t=a.current)||void 0===t||t.removeEventListener("load",o),null===(n=a.current)||void 0===n||n.removeEventListener("error",o),Ze[e]-=1,0===Ze[e]&&(null===(r=a.current)||void 0===r||r.remove()),a.current=void 0}}}else u("unset")}),[e]),o},ze={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},Ve=function(e){(0,r.useEffect)((function(){if(e){var t=e.split("."),n=t[t.length-1].toLocaleUpperCase(),r=document.querySelector("link[rel*='icon']")||document.createElement("link");r.type=ze[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function He(e,t){var n=(0,r.useState)(!1),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=t||{},s=a.onFocus,l=a.onBlur,f=a.onChange;return Le("focusin",(function(e){o||(null===s||void 0===s||s(e),null===f||void 0===f||f(!0),u(!0))}),{target:e}),Le("focusout",(function(e){var t,n;o&&!(null===(n=null===(t=e.currentTarget)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,e.relatedTarget))&&(null===l||void 0===l||l(e),null===f||void 0===f||f(!1),u(!1))}),{target:e}),o}var qe=n(20026),Be=n.n(qe),We=function(e,t){var n=t||{},i=n.onExit,o=n.onEnter,u=y(i),a=y(o),s=(0,r.useState)(!1),l=(0,c.Z)(s,2),f=l[0],d=l[1],h=function t(){var n,r,i;if(Be().isEnabled){var o=ie(e);if(Be().element){var c=Be().element===o;c?null===(r=a.current)||void 0===r||r.call(a):null===(i=u.current)||void 0===i||i.call(u),d(c)}else null===(n=u.current)||void 0===n||n.call(u),d(!1),Be().off("change",t)}},g=function(){var t=ie(e);if(t&&Be().isEnabled)try{Be().request(t),Be().on("change",h)}catch(n){console.error(n)}},p=function(){var t=ie(e);Be().isEnabled&&Be().element===t&&Be().exit()};return w((function(){Be().isEnabled&&Be().off("change",h)})),[f,{enterFullscreen:v(g),exitFullscreen:v(p),toggleFullscreen:v((function(){f?p():g()})),isEnabled:Be().isEnabled}]},Ue=function(e){return{getFieldInstance:function(t){return e.getNames().includes(t)},setFieldsValue:e.setValues,getFieldsValue:e.getValues,resetFields:e.resetToDefault,validateFields:function(t,n){e.validate(t,n)}}},Ye=function(e){var t={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(t,n){var r;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},null===(r=e.params[0])||void 0===r?void 0:r.filters,{field:t,order:n})},onFilter:function(t){var n;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},t,null===(n=e.params[0])||void 0===n?void 0:n.sorter)}},n={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return Object.assign(Object.assign({},e),{tableProps:t,paginationProps:n})},Xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ee(e,Object.assign(Object.assign({},t),{form:t.field?Ue(t.field):void 0}));return Ye(n)};var Ge=function(e){var t=(0,r.useState)(e),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=(0,r.useRef)(i);return u.current=i,[i,o,(0,r.useCallback)((function(){return u.current}),[])]},Ke=function(e,t){var n=function(e,t){var n=e>0?e-1:t.length+e;return n>=t.length-1&&(n=t.length-1),n<0&&(n=0),n}(e,t);return{_current:t[n],_before:t.slice(0,n),_after:t.slice(n+1)}};function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,r.useState)({present:e,past:[],future:[]}),i=(0,c.Z)(n,2),u=i[0],a=i[1],s=u.present,l=u.past,f=u.future,h=(0,r.useRef)(e),g=function(){var e=arguments.length>0?arguments.length<=0?void 0:arguments[0]:h.current;h.current=e,a({present:e,future:[],past:[]})},p=function(e){var n=[].concat((0,o.Z)(l),[s]),r=d(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),a({present:e,future:[],past:n})},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0!==f.length){var t=Ke(e,f),n=t._before,r=t._current,i=t._after;a({past:[].concat((0,o.Z)(l),[s],(0,o.Z)(n)),present:r,future:i})}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(0!==l.length){var t=Ke(e,l),n=t._before,r=t._current,i=t._after;a({past:n,present:r,future:[].concat((0,o.Z)(i),[s],(0,o.Z)(f))})}},y=function(e){var t=d(e)?e:Number(e);if(0!==t)return t>0?m(t):void b(t)};return{value:s,backLength:l.length,forwardLength:f.length,setValue:v(p),go:v(y),back:v((function(){y(-1)})),forward:v((function(){y(1)})),reset:v(g)}}var $e=function(e,t){var n=t||{},r=n.onEnter,i=n.onLeave,o=n.onChange,u=re(!1),a=(0,c.Z)(u,2),s=a[0],l=a[1],f=l.setTrue,d=l.setFalse;return Le("mouseenter",(function(){null===r||void 0===r||r(),f(),null===o||void 0===o||o(!0)}),{target:e}),Le("mouseleave",(function(){null===i||void 0===i||i(),d(),null===o||void 0===o||o(!1)}),{target:e}),s},Qe=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},et=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},tt=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,i=t.isNoMore,u=t.threshold,s=void 0===u?100:u,l=t.reloadDeps,f=void 0===l?[]:l,d=t.manual,g=t.onBefore,p=t.onSuccess,m=t.onError,b=t.onFinally,y=(0,r.useState)(),w=(0,c.Z)(y,2),E=w[0],_=w[1],O=(0,r.useState)(!1),S=(0,c.Z)(O,2),T=S[0],R=S[1],k=(0,r.useMemo)((function(){return!!i&&i(E)}),[E]),L=$((function(t){return(0,a.__awaiter)(void 0,void 0,void 0,(0,Y.Z)().mark((function n(){var r;return(0,Y.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e(t);case 2:return r=n.sent,_(t?Object.assign(Object.assign({},r),{list:[].concat((0,o.Z)(t.list),(0,o.Z)(r.list))}):r),n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))}),{manual:d,onFinally:function(e,t,n){R(!1),null===b||void 0===b||b(t,n)},onBefore:function(){return null===g||void 0===g?void 0:g()},onSuccess:function(e){setTimeout((function(){D()})),null===p||void 0===p||p(e)},onError:function(e){return null===m||void 0===m?void 0:m(e)}}),M=L.loading,x=L.run,C=L.runAsync,A=L.cancel,F=function(){k||(R(!0),x(E))},I=function(){return k?Promise.reject():(R(!0),C(E))},j=function(){return x()},N=function(){return C()},D=function(){var e=ie(n);if(e){var t=Qe(e);et(e)-t<=tt(e)+s&&F()}};return Le("scroll",(function(){M||T||D()}),{target:n}),h((function(){x()}),(0,o.Z)(f)),{data:E,loading:!T&&M,loadingMore:T,noMore:k,loadMore:v(F),loadMoreAsync:v(I),reload:v(j),reloadAsync:v(N),mutate:_,cancel:A}};var rt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.immediate,o=y(e),u=(0,r.useRef)(null);(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i&&o.current(),u.current=setInterval((function(){o.current()}),t),function(){u.current&&clearInterval(u.current)}}),[t]);var c=(0,r.useCallback)((function(){u.current&&clearInterval(u.current)}),[]);return c};n(53634);var it=function(e,t){var n=(0,r.useState)(),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useState)(),s=(0,c.Z)(a,2),l=s[0],f=s[1];return ce((function(){var n=ie(e);if(n){var r=new IntersectionObserver((function(e){var t,n=(0,Ie.Z)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;f(r.intersectionRatio),u(r.isIntersecting)}}catch(i){n.e(i)}finally{n.f()}}),Object.assign(Object.assign({},t),{root:ie(null===t||void 0===t?void 0:t.root)}));return r.observe(n),function(){r.disconnect()}}}),[null===t||void 0===t?void 0:t.rootMargin,null===t||void 0===t?void 0:t.threshold],e),[o,l]},ot=A?r.useLayoutEffect:r.useEffect,ut=function(e,t,n){var i=(0,r.useRef)(),o=(0,r.useRef)(0);(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Se()(e,t)})(t,i.current)||(i.current=t,o.current+=1),ce(e,[o.current],n)},ct=/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:""),at={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};at.meta=ct?[91,93]:[91,92];var st={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?at.meta.includes(e.keyCode):e.metaKey}};function lt(e,t,n){if(!e.key)return!1;if(d(t))return e.keyCode===t;var r,i=t.split("."),o=0,u=(0,Ie.Z)(i);try{for(u.s();!(r=u.n()).done;){var c=r.value,a=st[c],s=at[c.toLowerCase()];(a&&a(e)||s&&s===e.keyCode)&&o++}}catch(l){u.e(l)}finally{u.f()}return n?o===i.length&&function(e){var t=Object.keys(st).reduce((function(t,n){return st[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===i.length:o===i.length}var ft=["keydown"];var dt=function(e,t,n){var r=n||{},i=r.events,o=void 0===i?ft:i,u=r.target,c=r.exactMatch,a=void 0!==c&&c,s=r.useCapture,v=void 0!==s&&s,h=y(t),g=y(e);ut((function(){var e,t=ie(u,window);if(t){var n,r=function(e){var t,n=function(e,t){return l(e)?e:f(e)||d(e)?function(n){return lt(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return lt(n,e,t)}))}:function(){return Boolean(e)}}(g.current,a);if(n(e))return null===(t=h.current)||void 0===t?void 0:t.call(h,e)},i=(0,Ie.Z)(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;null===(e=null===t||void 0===t?void 0:t.addEventListener)||void 0===e||e.call(t,c,r,v)}}catch(s){i.e(s)}finally{i.f()}return function(){var e,n,i=(0,Ie.Z)(o);try{for(i.s();!(n=i.n()).done;){var u=n.value;null===(e=null===t||void 0===t?void 0:t.removeEventListener)||void 0===e||e.call(t,u,r,v)}}catch(s){i.e(s)}finally{i.f()}}}}),[o],u)};function vt(e){return function(t,n){var i;try{i=e()}catch(d){console.error(d)}function o(){try{var e=null===i||void 0===i?void 0:i.getItem(t);if(e)return r=e,(null===n||void 0===n?void 0:n.deserializer)?null===n||void 0===n?void 0:n.deserializer(r):JSON.parse(r)}catch(o){console.error(o)}var r;return l(null===n||void 0===n?void 0:n.defaultValue)?null===n||void 0===n?void 0:n.defaultValue():null===n||void 0===n?void 0:n.defaultValue}var u=(0,r.useState)((function(){return o()})),a=(0,c.Z)(u,2),s=a[0],f=a[1];return h((function(){f(o())}),[t]),[s,v((function(e){var r=l(e)?e(s):e;if(f(r),function(e){return"undefined"===typeof e}(r))null===i||void 0===i||i.removeItem(t);else try{null===i||void 0===i||i.setItem(t,function(e){return(null===n||void 0===n?void 0:n.serializer)?null===n||void 0===n?void 0:n.serializer(e):JSON.stringify(e)}(r))}catch(o){console.error(o)}}))]}}var ht=vt((function(){return A?localStorage:void 0}));var gt=function(e){var t=this,n=(0,r.useRef)(!1);return(0,r.useCallback)((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(0,a.__awaiter)(t,void 0,void 0,(0,Y.Z)().mark((function t(){var r;return(0,Y.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.current){t.next=2;break}return t.abrupt("return");case 2:return n.current=!0,t.prev=3,t.next=6,e.apply(void 0,i);case 6:return r=t.sent,n.current=!1,t.abrupt("return",r);case 11:throw t.prev=11,t.t0=t.catch(3),n.current=!1,t.t0;case 15:case"end":return t.stop()}}),t,null,[[3,11]])})))}),[e])},pt=A&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var mt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.delay,o=void 0===i?300:i,u=n.moveThreshold,c=n.onClick,a=n.onLongPressEnd,s=y(e),l=y(c),f=y(a),d=(0,r.useRef)(),v=(0,r.useRef)(!1),h=(0,r.useRef)({x:0,y:0}),g=!!((null===u||void 0===u?void 0:u.x)&&u.x>0||(null===u||void 0===u?void 0:u.y)&&u.y>0);ce((function(){var e=ie(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(g){var t=a(e),n=t.clientX,r=t.clientY;h.current.x=n,h.current.y=r}d.current=setTimeout((function(){s.current(e),v.current=!0}),o)},r=function(e){d.current&&function(e){var t=a(e),n=t.clientX,r=t.clientY,i=Math.abs(n-h.current.x),o=Math.abs(r-h.current.y);return!!((null===u||void 0===u?void 0:u.x)&&i>u.x||(null===u||void 0===u?void 0:u.y)&&o>u.y)}(e)&&(clearInterval(d.current),d.current=void 0)},i=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.current&&clearTimeout(d.current),v.current&&(null===(t=f.current)||void 0===t||t.call(f,e)),n&&!v.current&&l.current&&l.current(e),v.current=!1},c=function(e){return i(e,!0)};return pt?(e.addEventListener("touchstart",n),e.addEventListener("touchend",c),g&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",i),g&&e.addEventListener("mousemove",r)),function(){d.current&&(clearTimeout(d.current),v.current=!1),pt?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",c),g&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",i),g&&e.removeEventListener("mousemove",r))}}function a(e){return e instanceof TouchEvent?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}}),[],t)};var bt=function(e){var t=function(){return void 0===e?new Map:new Map(e)},n=(0,r.useState)((function(){return t()})),i=(0,c.Z)(n,2),o=i[0],u=i[1];return[o,{set:v((function(e,t){u((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:v((function(e){u(new Map(e))})),remove:v((function(e){u((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:v((function(){return u(t())})),get:v((function(e){return o.get(e)}))}]};var yt,wt=function(e){var t=(0,r.useRef)(0),n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){u(e)}))}),[]);return w((function(){cancelAnimationFrame(t.current)})),[o,a]},Et={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},_t=function(e){var t=wt(Et),n=(0,c.Z)(t,2),r=n[0],i=n[1];return Le("mousemove",(function(t){var n=t.screenX,r=t.screenY,o=t.clientX,u=t.clientY,c=t.pageX,a=t.pageY,s={screenX:n,screenY:r,clientX:o,clientY:u,pageX:c,pageY:a,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},l=ie(e);if(l){var f=l.getBoundingClientRect(),d=f.left,v=f.top,h=f.width,g=f.height;s.elementPosX=d+window.pageXOffset,s.elementPosY=v+window.pageYOffset,s.elementX=c-s.elementPosX,s.elementY=a-s.elementPosY,s.elementW=h,s.elementH=g}i(s)}),{target:function(){return document}}),r};function Ot(){var e=navigator;return s(e)?e.connection||e.mozConnection||e.webkitConnection:null}function St(){var e=Ot();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}!function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"}(yt||(yt={}));var Tt=function(){var e=(0,r.useState)((function(){return Object.assign({since:void 0,online:null===navigator||void 0===navigator?void 0:navigator.onLine},St())})),t=(0,c.Z)(e,2),n=t[0],i=t[1];return(0,r.useEffect)((function(){var e=function(){i((function(e){return Object.assign(Object.assign({},e),{online:!0,since:new Date})}))},t=function(){i((function(e){return Object.assign(Object.assign({},e),{online:!1,since:new Date})}))},n=function(){i((function(e){return Object.assign(Object.assign({},e),St())}))};window.addEventListener(yt.ONLINE,e),window.addEventListener(yt.OFFLINE,t);var r=Ot();return null===r||void 0===r||r.addEventListener(yt.CHANGE,n),function(){window.removeEventListener(yt.ONLINE,e),window.removeEventListener(yt.OFFLINE,t),null===r||void 0===r||r.removeEventListener(yt.CHANGE,n)}}),[]),n},Rt=function(e,t){return!Object.is(e,t)};var kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rt,n=(0,r.useRef)(),i=(0,r.useRef)();return t(i.current,e)&&(n.current=i.current,i.current=e),n.current};var Lt=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};var Mt=function(e,t,n){var i=null===n||void 0===n?void 0:n.immediate,o=y(e),u=(0,r.useRef)();return(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i&&o.current(),u.current=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=(new Date).getTime(),r={id:0},i=function i(){(new Date).getTime()-n>=t&&(e(),n=(new Date).getTime()),r.id=requestAnimationFrame(i)};return r.id=requestAnimationFrame(i),r}((function(){o.current()}),t),function(){u.current&&Lt(u.current)}}),[t]),(0,r.useCallback)((function(){u.current&&Lt(u.current)}),[])};var xt=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var Ct=function(e,t){var n=y(e),i=(0,r.useRef)();return(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i.current=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("undefined"===typeof requestAnimationFrame)return{id:setTimeout(e,t)};var n={id:0},r=(new Date).getTime(),i=function i(){(new Date).getTime()-r>=t?e():n.id=requestAnimationFrame(i)};return n.id=requestAnimationFrame(i),n}((function(){n.current()}),t),function(){i.current&&xt(i.current)}}),[t]),(0,r.useCallback)((function(){i.current&&xt(i.current)}),[])},At=new WeakMap,Ft=new WeakMap;function It(e,t){var n=At.get(e);if(n)return n;if(Ft.has(e))return e;var r=new Proxy(e,{get:function(e,n,r){var i=Reflect.get(e,n,r);return s(i)?It(i,t):i},set:function(e,n,r){var i=Reflect.set(e,n,r);return t(),i},deleteProperty:function(e,n){var r=Reflect.deleteProperty(e,n);return t(),r}});return At.set(e,r),Ft.set(r,e),r}var jt,Nt=function(e){var t=U(),n=(0,r.useRef)(e);return b((function(){return It(n.current,(function(){t()}))}),[])},Dt=function(e){var t=(0,r.useState)(e),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=v((function(){o(e)}));return[i,o,u]},Zt=new Set,Pt={xs:0,sm:576,md:768,lg:992,xl:1200};function zt(){var e=jt;if(Ht(),e!==jt){var t,n=(0,Ie.Z)(Zt);try{for(n.s();!(t=n.n()).done;){(0,t.value)()}}catch(r){n.e(r)}finally{n.f()}}}var Vt=!1;function Ht(){for(var e=window.innerWidth,t={},n=!1,r=0,i=Object.keys(Pt);r<i.length;r++){var o=i[r];t[o]=e>=Pt[o],t[o]!==jt[o]&&(n=!0)}n&&(jt=t)}function qt(e){Pt=e,jt&&Ht()}function Bt(){A&&!Vt&&(jt={},Ht(),window.addEventListener("resize",zt),Vt=!0);var e=(0,r.useState)(jt),t=(0,c.Z)(e,2),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(A){Vt||window.addEventListener("resize",zt);var e=function(){i(jt)};return Zt.add(e),function(){Zt.delete(e),0===Zt.size&&(window.removeEventListener("resize",zt),Vt=!1)}}}),[]),n}var Wt=function(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var Ut=function(e){var t=Wt(),n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1];return[o,(0,r.useCallback)((function(e){t.current||u(e)}),[])]};var Yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=wt(),r=(0,c.Z)(n,2),i=r[0],o=r[1],u=y(t);return ce((function(){var t=ie(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},u.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),i};function Xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useState)(t),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=(0,r.useMemo)((function(){return new Set(o)}),[o]),s=function(e){return a.has(e)},l=function(e){return a.add(e),u(Array.from(a))},f=function(e){return a.delete(e),u(Array.from(a))},d=function(e){s(e)?f(e):l(e)},h=function(){e.forEach((function(e){a.add(e)})),u(Array.from(a))},g=function(){e.forEach((function(e){a.delete(e)})),u(Array.from(a))},p=(0,r.useMemo)((function(){return e.every((function(e){return!a.has(e)}))}),[e,a]),m=(0,r.useMemo)((function(){return e.every((function(e){return a.has(e)}))&&!p}),[e,a,p]),b=(0,r.useMemo)((function(){return!p&&!m}),[p,m]),y=function(){return m?g():h()};return{selected:o,noneSelected:p,allSelected:m,partiallySelected:b,setSelected:u,isSelected:s,select:v(l),unSelect:v(f),toggle:v(d),selectAll:v(h),unSelectAll:v(g),toggleAll:v(y)}}var Gt=vt((function(){return A?sessionStorage:void 0}));var Kt=function(e){var t=function(){return void 0===e?new Set:new Set(e)},n=(0,r.useState)((function(){return t()})),i=(0,c.Z)(n,2),o=i[0],u=i[1];return[o,{add:v((function(e){o.has(e)||u((function(t){var n=new Set(t);return n.add(e),n}))})),remove:v((function(e){o.has(e)&&u((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:v((function(){return u(t())}))}]},Jt=function(e){var t=(0,r.useState)(e),n=(0,c.Z)(t,2),i=n[0],o=n[1];return[i,(0,r.useCallback)((function(e){o((function(t){var n=l(e)?e(t):e;return n?Object.assign(Object.assign({},t),n):t}))}),[])]},$t=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Qt="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,en="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),tn="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(en):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var nn=["top","right","bottom","left","width","height","size","weight"],rn="undefined"!==typeof MutationObserver,on=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&c()}function u(){tn(o)}function c(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Qt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Qt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;nn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),un=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},cn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||en},an=hn(0,0,0,0);function sn(e){return parseFloat(e)||0}function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+sn(e["border-"+n+"-width"])}),0)}function fn(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return an;var r=cn(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=sn(o)}return t}(r),o=i.left+i.right,u=i.top+i.bottom,c=sn(r.width),a=sn(r.height);if("border-box"===r.boxSizing&&(Math.round(c+o)!==t&&(c-=ln(r,"left","right")+o),Math.round(a+u)!==n&&(a-=ln(r,"top","bottom")+u)),!function(e){return e===cn(e).document.documentElement}(e)){var s=Math.round(c+o)-t,l=Math.round(a+u)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(a-=l)}return hn(i.left,i.top,c,a)}var dn="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof cn(e).SVGGraphicsElement}:function(e){return e instanceof cn(e).SVGElement&&"function"===typeof e.getBBox};function vn(e){return Qt?dn(e)?function(e){var t=e.getBBox();return hn(0,0,t.width,t.height)}(e):fn(e):an}function hn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var gn=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=hn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=vn(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),pn=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(o.prototype);return un(u,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),u}(t);un(this,{target:e,contentRect:n})},mn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new $t,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof cn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new gn(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof cn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new pn(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),bn="undefined"!==typeof WeakMap?new WeakMap:new $t,yn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=on.getInstance(),r=new mn(t,n,this);bn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){yn.prototype[e]=function(){var t;return(t=bn.get(this))[e].apply(t,arguments)}}));var wn="undefined"!==typeof en.ResizeObserver?en.ResizeObserver:yn,En=ue(r.useLayoutEffect),_n=A?En:ce;var On=function(e){var t=wt(),n=(0,c.Z)(t,2),r=n[0],i=n[1];return _n((function(){var t=ie(e);if(t){var n=new wn((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;i({width:n,height:r})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),r},Sn={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},Tn=Object.assign({text:""},Sn);var Rn=function(e){var t=(0,r.useState)(Tn),n=(0,c.Z)(t,2),i=n[0],o=n[1],u=(0,r.useRef)(i),a=(0,r.useRef)(!1);return u.current=i,ce((function(){var t=ie(e,document);if(t){var n=function(){var e,t=null,n=Sn;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&a.current&&(n=function(e){if(!e)return Sn;if(e.rangeCount<1)return Sn;var t=e.getRangeAt(0).getBoundingClientRect();return{height:t.height,width:t.width,top:t.top,left:t.left,right:t.right,bottom:t.bottom}}(t),o(Object.assign(Object.assign(Object.assign({},i),{text:e}),n)))},r=function(e){if(window.getSelection){u.current.text&&o(Object.assign({},Tn)),a.current=!1;var n=window.getSelection();n&&(n.removeAllRanges(),a.current=t.contains(e.target))}};return t.addEventListener("mouseup",n),document.addEventListener("mousedown",r),function(){t.removeEventListener("mouseup",n),document.removeEventListener("mousedown",r)}}}),[],e),i};var kn=function(e,t){var n,i=y(e),o=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,u=(0,r.useMemo)((function(){return q()((function(){return i.current.apply(i,arguments)}),o,t)}),[]);return w((function(){u.cancel()})),{run:u,cancel:u.cancel,flush:u.flush}};var Ln=function(e,t){var n=(0,r.useState)(e),i=(0,c.Z)(n,2),o=i[0],u=i[1],a=kn((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),o};var Mn=function(e,t,n){var i=(0,r.useState)({}),o=(0,c.Z)(i,2),u=o[0],a=o[1],s=kn((function(){a({})}),n).run;(0,r.useEffect)((function(){return s()}),t),h(e,[u])};var xn=function(e,t){var n=y(e),i=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(d(t)&&!(t<0))return i.current=setTimeout((function(){n.current()}),t),function(){i.current&&clearTimeout(i.current)}}),[t]),(0,r.useCallback)((function(){i.current&&clearTimeout(i.current)}),[])},Cn={restoreOnUnmount:!1};var An,Fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cn,n=(0,r.useRef)(A?document.title:"");(0,r.useEffect)((function(){document.title=e}),[e]),w((function(){t.restoreOnUnmount&&(document.title=n.current)}))},In=function(e,t){var n=(0,r.useRef)();(0,r.useEffect)((function(){var r,i,o=(r=n.current,i=t,r?r.map((function(e,t){return Object.is(r[t],null===i||void 0===i?void 0:i[t])?-1:t})).filter((function(e){return e>=0})):i?i.map((function(e,t){return t})):[]),u=n.current;return n.current=t,e(o,u,t)}),t)},jn=i(r.useLayoutEffect),Nn=function(e,t){var n=t.containerTarget,i=t.wrapperTarget,o=t.itemHeight,u=t.overscan,a=void 0===u?5:u,s=y(o),l=On(n),f=(0,r.useRef)(!1),h=(0,r.useState)([]),g=(0,c.Z)(h,2),p=g[0],m=g[1],b=function(t){return d(s.current)?t*s.current:e.slice(0,t).reduce((function(t,n,r){return t+s.current(r,e[r])}),0)},w=(0,r.useMemo)((function(){return d(s.current)?e.length*s.current:e.reduce((function(t,n,r){return t+s.current(r,e[r])}),0)}),[e]),E=function(){var t=ie(n),r=ie(i);if(t&&r){var o=t.scrollTop,u=t.clientHeight,c=function(t){if(d(s.current))return Math.floor(t/s.current)+1;for(var n=0,r=0,i=0;i<e.length;i++)if((n+=s.current(i,e[i]))>=t){r=i;break}return r+1}(o),l=function(t,n){if(d(s.current))return Math.ceil(t/s.current);for(var r=0,i=0,o=n;o<e.length&&(i=o,!((r+=s.current(o,e[o]))>=t));o++);return i-n}(u,c),f=Math.max(0,c-a),v=Math.min(e.length,c+l+a),h=b(f);r.style.height=w-h+"px",r.style.marginTop=h+"px",m(e.slice(f,v).map((function(e,t){return{data:e,index:t+f}})))}};(0,r.useEffect)((function(){(null===l||void 0===l?void 0:l.width)&&(null===l||void 0===l?void 0:l.height)&&E()}),[null===l||void 0===l?void 0:l.width,null===l||void 0===l?void 0:l.height,e]),Le("scroll",(function(e){f.current?f.current=!1:(e.preventDefault(),E())}),{target:n});return[p,v((function(e){var t=ie(n);t&&(f.current=!0,t.scrollTop=b(e),E())}))]};function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reconnectLimit,i=void 0===n?3:n,o=t.reconnectInterval,u=void 0===o?3e3:o,a=t.manual,s=void 0!==a&&a,l=t.onOpen,f=t.onClose,d=t.onMessage,h=t.onError,g=t.protocols,p=y(l),m=y(f),b=y(d),E=y(h),_=(0,r.useRef)(0),O=(0,r.useRef)(),S=(0,r.useRef)(),T=(0,r.useRef)(!1),R=(0,r.useState)(),k=(0,c.Z)(R,2),L=k[0],M=k[1],x=(0,r.useState)(An.Closed),C=(0,c.Z)(x,2),A=C[0],F=C[1],I=function(){var e;_.current<i&&(null===(e=S.current)||void 0===e?void 0:e.readyState)!==An.Open&&(O.current&&clearTimeout(O.current),O.current=setTimeout((function(){j(),_.current++}),u))},j=function(){O.current&&clearTimeout(O.current),S.current&&S.current.close();var t=new WebSocket(e,g);F(An.Connecting),t.onerror=function(e){var n;T.current||(I(),null===(n=E.current)||void 0===n||n.call(E,e,t),F(t.readyState||An.Closed))},t.onopen=function(e){var n;T.current||(null===(n=p.current)||void 0===n||n.call(p,e,t),_.current=0,F(t.readyState||An.Open))},t.onmessage=function(e){var n;T.current||(null===(n=b.current)||void 0===n||n.call(b,e,t),M(e))},t.onclose=function(e){var n;T.current||(I(),null===(n=m.current)||void 0===n||n.call(m,e,t),F(t.readyState||An.Closed))},S.current=t},N=function(e){var t;if(A!==An.Open)throw new Error("WebSocket disconnected");null===(t=S.current)||void 0===t||t.send(e)},D=function(){_.current=0,j()},Z=function(){var e;O.current&&clearTimeout(O.current),_.current=i,null===(e=S.current)||void 0===e||e.close()};return(0,r.useEffect)((function(){s||D()}),[e,s]),w((function(){T.current=!0,Z()})),{latestMessage:L,sendMessage:v(N),connect:v(D),disconnect:v(Z),readyState:A,webSocketIns:S.current}}function Zn(e,t){var n=(0,r.useRef)({});(0,r.useEffect)((function(){if(n.current){var r=Object.keys(Object.assign(Object.assign({},n.current),t)),i={};r.forEach((function(e){Object.is(n.current[e],t[e])||(i[e]={from:n.current[e],to:t[e]})})),Object.keys(i).length&&console.log("[why-did-you-update]",e,i)}n.current=t}))}!function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"}(An||(An={}));var Pn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(e);ut((function(){var e=ie(t);if(e){var i=new MutationObserver(r.current);return i.observe(e,n),function(){i&&i.disconnect()}}}),[n],t)}},53634:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;u.prototype.THROTTLE_TIMEOUT=100,u.prototype.POLL_INTERVAL=null,u.prototype.USE_MUTATION_OBSERVER=!0,u._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},u._resetCrossOriginUpdater=function(){n=null,r=null},u.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},u.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},u.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},u.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},u.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},u.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},u.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,u=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(u=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),a(e,"resize",r,!0)),a(t,"scroll",r,!0),u&&u.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=s){var l=i(t);l&&this._monitorIntersections(l.ownerDocument)}}},u.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var u=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),u(),t!=r){var c=i(t);c&&this._unmonitorIntersections(c.ownerDocument)}}}},u.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},u.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,u=l(i),c=this._rootContainsTarget(i),a=r.entry,s=e&&c&&this._computeTargetAndRootIntersection(i,u,t),f=null;this._rootContainsTarget(i)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:u,rootBounds:f,intersectionRect:s});a?e&&c?this._hasCrossedThreshold(a,d)&&this._queuedEntries.push(d):a&&a.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},u.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var u=i,c=h(t),a=!1;!a&&c;){var f=null,v=1==c.nodeType?window.getComputedStyle(c):{};if("none"==v.display)return null;if(c==this.root||9==c.nodeType)if(a=!0,c==this.root||c==e)n&&!this.root?!r||0==r.width&&0==r.height?(c=null,f=null,u=null):f=r:f=o;else{var g=h(c),p=g&&l(g),m=g&&this._computeTargetAndRootIntersection(g,p,o);p&&m?(c=g,f=d(p,m)):(c=null,u=null)}else{var b=c.ownerDocument;c!=b.body&&c!=b.documentElement&&"visible"!=v.overflow&&(f=l(c))}if(f&&(u=s(f,u)),!u)break;c=c&&h(c)}return u}},u.prototype._getRootRect=function(){var t;if(this.root&&!g(this.root))t=l(this.root);else{var n=g(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},u.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},u.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},u.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},u.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return v(n,t)&&(!this.root||n==t.ownerDocument)},u.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},u.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=u,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=f(e.rootBounds),this.boundingClientRect=f(e.boundingClientRect),this.intersectionRect=f(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function u(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function c(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function a(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),o=Math.min(e.right,t.right),u=o-i,c=r-n;return u>=0&&c>=0&&{top:n,bottom:r,left:i,right:o,width:u,height:c}||null}function l(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function v(e,t){for(var n=t;n;){if(n==e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function g(e){return e&&9===e.nodeType}}()},67047:function(e,t,n){var r=n(26271),i=n(72685),o=n(81692),u=Math.max,c=Math.min;e.exports=function(e,t,n){var a,s,l,f,d,v,h=0,g=!1,p=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=a,r=s;return a=s=void 0,h=t,f=e.apply(r,n)}function y(e){return h=e,d=setTimeout(E,t),g?b(e):f}function w(e){var n=e-v;return void 0===v||n>=t||n<0||p&&e-h>=l}function E(){var e=i();if(w(e))return _(e);d=setTimeout(E,function(e){var n=t-(e-v);return p?c(n,l-(e-h)):n}(e))}function _(e){return d=void 0,m&&a?b(e):(a=s=void 0,f)}function O(){var e=i(),n=w(e);if(a=arguments,s=this,v=e,n){if(void 0===d)return y(v);if(p)return clearTimeout(d),d=setTimeout(E,t),b(v)}return void 0===d&&(d=setTimeout(E,t)),f}return t=o(t)||0,r(n)&&(g=!!n.leading,l=(p="maxWait"in n)?u(o(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==d&&clearTimeout(d),h=0,a=v=s=d=void 0},O.flush=function(){return void 0===d?f:_(i())},O}},72685:function(e,t,n){var r=n(56164);e.exports=function(){return r.Date.now()}},8406:function(e,t,n){var r=n(67047),i=n(26271);e.exports=function(e,t,n){var o=!0,u=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,u="trailing"in n?!!n.trailing:u),r(e,t,{leading:o,maxWait:t,trailing:u})}},20026:function(e){!function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["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"]],r=0,i=n.length,o={};r<i;r++)if((e=n[r])&&e[1]in t){for(r=0;r<e.length;r++)o[n[0][r]]=e[r];return o}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(e,n){return new Promise(function(i,o){var u=function(){this.off("change",u),i()}.bind(this);this.on("change",u);var c=(e=e||t.documentElement)[r.requestFullscreen](n);c instanceof Promise&&c.then(u).catch(o)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var i=function(){this.off("change",i),e()}.bind(this);this.on("change",i);var o=t[r.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=i[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=i[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=o:window.screenfull=o):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()}}]);
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * screenfull
3
+ * v5.2.0 - 2021-11-03
4
+ * (c) Sindre Sorhus; MIT License
5
+ */