@abtnode/webapp 1.16.11 → 1.16.12
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.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +16 -14
- package/build/index.html +1 -1
- package/build/static/js/135.65788394.chunk.js +2 -0
- package/build/static/js/4263.8ef0b31e.chunk.js +1 -0
- package/build/static/js/{442.ed7bae8d.chunk.js → 442.22c41926.chunk.js} +1 -1
- package/build/static/js/{519.a67b47b1.chunk.js → 519.70b1566a.chunk.js} +1 -1
- package/build/static/js/{6014.f48cccf2.chunk.js → 6014.5fc467d2.chunk.js} +1 -1
- package/build/static/js/6760.0872c3cb.chunk.js +2 -0
- package/build/static/js/{7148.5383b105.chunk.js → 7148.96a2f8b2.chunk.js} +2 -2
- package/build/static/js/{8235.ca745d19.chunk.js → 8235.359e45a1.chunk.js} +1 -1
- package/build/static/js/9194.59b53801.chunk.js +1 -0
- package/build/static/js/9199.ac850f6e.chunk.js +1 -0
- package/build/static/js/{9244.efda87a8.chunk.js → 9244.498948ce.chunk.js} +1 -1
- package/build/static/js/948.84863f73.chunk.js +2 -0
- package/build/static/js/{9520.0274a37b.chunk.js → 9520.160a00ba.chunk.js} +1 -1
- package/build/static/js/main.484b21e3.js +2 -0
- package/package.json +1 -1
- package/build/static/js/3074.456b54db.chunk.js +0 -2
- package/build/static/js/4691.b2e657a4.chunk.js +0 -2
- package/build/static/js/6166.0f1d0203.chunk.js +0 -2
- package/build/static/js/8928.cdfcabd1.chunk.js +0 -1
- package/build/static/js/main.e215e985.js +0 -2
- /package/build/static/css/{4691.cc1ab277.chunk.css → 135.cc1ab277.chunk.css} +0 -0
- /package/build/static/js/{4691.b2e657a4.chunk.js.LICENSE.txt → 135.65788394.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6166.0f1d0203.chunk.js.LICENSE.txt → 6760.0872c3cb.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7148.5383b105.chunk.js.LICENSE.txt → 7148.96a2f8b2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3074.456b54db.chunk.js.LICENSE.txt → 948.84863f73.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.e215e985.js.LICENSE.txt → main.484b21e3.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3074.456b54db.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[3074],{23074:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return g},configResponsive:function(){return xt},createUpdateEffect:function(){return i},useAntdTable:function(){return U},useAsyncEffect:function(){return Y},useBoolean:function(){return G},useClickAway:function(){return ee},useControllableValue:function(){return te},useCookieState:function(){return ie},useCountDown:function(){return ce},useCounter:function(){return le},useCreation:function(){return f},useDebounce:function(){return de},useDebounceEffect:function(){return ve},useDebounceFn:function(){return fe},useDeepCompareEffect:function(){return ge},useDeepCompareLayoutEffect:function(){return _e},useDocumentVisibility:function(){return we},useDrag:function(){return Ee},useDrop:function(){return Se},useDynamicList:function(){return Te},useEventEmitter:function(){return Re},useEventListener:function(){return ye},useEventTarget:function(){return Le},useExternal:function(){return xe},useFavicon:function(){return Ce},useFocusWithin:function(){return Me},useFullscreen:function(){return Ne},useFusionTable:function(){return De},useGetState:function(){return Pe},useHistoryTravel:function(){return je},useHover:function(){return ze},useInViewport:function(){return qe},useInfiniteScroll:function(){return He},useInterval:function(){return Ve},useIsomorphicLayoutEffect:function(){return We},useKeyPress:function(){return Ke},useLatest:function(){return d},useLocalStorageState:function(){return $e},useLockFn:function(){return Qe},useLongPress:function(){return tt},useMap:function(){return nt},useMemoizedFn:function(){return u.Z},useMount:function(){return j},useMouse:function(){return ut},useMutationObserver:function(){return An},useNetwork:function(){return st},usePagination:function(){return B},usePrevious:function(){return ft},useRafInterval:function(){return vt},useRafState:function(){return it},useRafTimeout:function(){return pt},useReactive:function(){return Et},useRequest:function(){return W},useResetState:function(){return St},useResponsive:function(){return Ot},useSafeState:function(){return Mt},useScroll:function(){return Ft},useSelections:function(){return It},useSessionStorageState:function(){return Nt},useSet:function(){return Dt},useSetState:function(){return Pt},useSize:function(){return sn},useTextSelection:function(){return dn},useThrottle:function(){return hn},useThrottleEffect:function(){return pn},useThrottleFn:function(){return vn},useTimeout:function(){return mn},useTitle:function(){return yn},useToggle:function(){return X},useTrackedEffect:function(){return bn},useUnmount:function(){return p},useUnmountedRef:function(){return Ct},useUpdate:function(){return z.Z},useUpdateEffect:function(){return a},useUpdateLayoutEffect:function(){return wn},useVirtualList:function(){return En},useWebSocket:function(){return Sn},useWhyDidYouUpdate:function(){return Tn}});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(9161),u=n(99360),a=i(r.useEffect),c=function(e,t){var n=t.manual,i=t.ready,u=void 0===i||i,c=t.defaultParams,s=void 0===c?[]:c,l=t.refreshDeps,f=void 0===l?[]:l,d=t.refreshDepsAction,v=(0,r.useRef)(!1);return v.current=!1,a((function(){!n&&u&&(v.current=!0,e.run.apply(e,(0,o.__spreadArray)([],(0,o.__read)(s),!1)))}),[u]),a((function(){v.current||n||(v.current=!0,d?d():e.refresh())}),(0,o.__spreadArray)([],(0,o.__read)(f),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};c.onInit=function(e){var t=e.ready,n=void 0===t||t;return{loading:!e.manual&&n}};var s=c;function l(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 f(e,t){var n=(0,r.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==n.initialized&&l(n.deps,t)||(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}var d=function(e){var t=(0,r.useRef)(e);return t.current=e,t},v=n(89141),h=n(59818),p=function(e){h.Z&&((0,v.mf)(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=d(e);(0,r.useEffect)((function(){return function(){t.current()}}),[])},m=new Map,g=function(e){e?(Array.isArray(e)?e:[e]).forEach((function(e){return m.delete(e)})):m.clear()},_=new Map,y={},b=function(e,t){return y[e]||(y[e]=[]),y[e].push(t),function(){var n=y[e].indexOf(t);y[e].splice(n,1)}},w=function(e,t){var n=t.cacheKey,i=t.cacheTime,u=void 0===i?3e5:i,a=t.staleTime,c=void 0===a?0:a,s=t.setCache,l=t.getCache,d=(0,r.useRef)(),v=(0,r.useRef)(),h=function(e,t){s?s(t):function(e,t,n){var r=m.get(e);(null===r||void 0===r?void 0:r.timer)&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout((function(){m.delete(e)}),t)),m.set(e,(0,o.__assign)((0,o.__assign)({},n),{timer:i}))}(e,u,t),function(e,t){y[e]&&y[e].forEach((function(e){return e(t)}))}(e,t.data)},g=function(e,t){return void 0===t&&(t=[]),l?l(t):function(e){return m.get(e)}(e)};return f((function(){if(n){var t=g(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||(new Date).getTime()-t.time<=c)&&(e.state.loading=!1)),d.current=b(n,(function(t){e.setState({data:t})}))}}),[]),p((function(){var e;null===(e=d.current)||void 0===e||e.call(d)})),n?{onBefore:function(e){var t=g(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||(new Date).getTime()-t.time<=c?{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 _.get(e)}(n);return r&&r!==v.current||(r=e.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(t),!1)),v.current=r,function(e,t){_.set(e,t),t.then((function(t){return _.delete(e),t})).catch((function(){_.delete(e)}))}(n,r)),{servicePromise:r}},onSuccess:function(t,r){var i;n&&(null===(i=d.current)||void 0===i||i.call(d),h(n,{data:t,params:r,time:(new Date).getTime()}),d.current=b(n,(function(t){e.setState({data:t})})))},onMutate:function(t){var r;n&&(null===(r=d.current)||void 0===r||r.call(d),h(n,{data:t,params:e.state.params,time:(new Date).getTime()}),d.current=b(n,(function(t){e.setState({data:t})})))}}:{}},E=n(67047),S=n.n(E),T=function(e,t){var n=t.debounceWait,i=t.debounceLeading,u=t.debounceTrailing,a=t.debounceMaxWait,c=(0,r.useRef)(),s=(0,r.useMemo)((function(){var e={};return void 0!==i&&(e.leading=i),void 0!==u&&(e.trailing=u),void 0!==a&&(e.maxWait=a),e}),[i,u,a]);return(0,r.useEffect)((function(){if(n){var t=e.runAsync.bind(e);return c.current=S()((function(e){e()}),n,s),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise((function(n,r){var i;null===(i=c.current)||void 0===i||i.call(c,(function(){t.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(e),!1)).then(n).catch(r)}))}))},function(){var n;null===(n=c.current)||void 0===n||n.cancel(),e.runAsync=t}}}),[n,s]),n?{onCancel:function(){var e;null===(e=c.current)||void 0===e||e.cancel()}}:{}},A=function(e,t){var n=t.loadingDelay,i=t.ready,o=(0,r.useRef)();if(!n)return{};var u=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return u(),!1!==i&&(o.current=setTimeout((function(){e.setState({loading:!0})}),n)),{loading:!1}},onFinally:function(){u()},onCancel:function(){u()}}},R=!("undefined"===typeof window||!window.document||!window.document.createElement);function L(){return!R||"hidden"!==document.visibilityState}var k=[];if(R){window.addEventListener("visibilitychange",(function(){if(L())for(var e=0;e<k.length;e++){(0,k[e])()}}),!1)}var x=function(e){return k.push(e),function(){var t=k.indexOf(e);k.splice(t,1)}},O=function(e,t){var n=t.pollingInterval,i=t.pollingWhenHidden,o=void 0===i||i,u=t.pollingErrorRetryCount,c=void 0===u?-1:u,s=(0,r.useRef)(),l=(0,r.useRef)(),f=(0,r.useRef)(0),d=function(){var e;s.current&&clearTimeout(s.current),null===(e=l.current)||void 0===e||e.call(l)};return a((function(){n||d()}),[n]),n?{onBefore:function(){d()},onError:function(){f.current+=1},onSuccess:function(){f.current=0},onFinally:function(){-1===c||-1!==c&&f.current<=c?s.current=setTimeout((function(){o||L()?e.refresh():l.current=x((function(){e.refresh()}))}),n):f.current=0},onCancel:function(){d()}}:{}};var C=[];if(R){var M=function(){if(L()&&(!R||"undefined"===typeof navigator.onLine||navigator.onLine))for(var e=0;e<C.length;e++){(0,C[e])()}};window.addEventListener("visibilitychange",M,!1),window.addEventListener("focus",M,!1)}var F=function(e){return C.push(e),function(){var t=C.indexOf(e);t>-1&&C.splice(t,1)}},I=function(e,t){var n=t.refreshOnWindowFocus,i=t.focusTimespan,u=void 0===i?5e3:i,a=(0,r.useRef)(),c=function(){var e;null===(e=a.current)||void 0===e||e.call(a)};return(0,r.useEffect)((function(){if(n){var t=function(e,t){var n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n||(n=!0,e.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(r),!1)),setTimeout((function(){n=!1}),t))}}(e.refresh.bind(e),u);a.current=F((function(){t()}))}return function(){c()}}),[n,u]),p((function(){c()})),{}},N=function(e,t){var n=t.retryInterval,i=t.retryCount,o=(0,r.useRef)(),u=(0,r.useRef)(0),a=(0,r.useRef)(!1);return i?{onBefore:function(){a.current||(u.current=0),a.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(){a.current=!0,e.refresh()}),t)}else u.current=0},onCancel:function(){u.current=0,o.current&&clearTimeout(o.current)}}:{}},D=n(8406),P=n.n(D),Z=function(e,t){var n=t.throttleWait,i=t.throttleLeading,u=t.throttleTrailing,a=(0,r.useRef)(),c={};return void 0!==i&&(c.leading=i),void 0!==u&&(c.trailing=u),(0,r.useEffect)((function(){if(n){var t=e.runAsync.bind(e);return a.current=P()((function(e){e()}),n,c),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise((function(n,r){var i;null===(i=a.current)||void 0===i||i.call(a,(function(){t.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(e),!1)).then(n).catch(r)}))}))},function(){var n;e.runAsync=t,null===(n=a.current)||void 0===n||n.cancel()}}}),[n,i,u]),n?{onCancel:function(){var e;null===(e=a.current)||void 0===e||e.cancel()}}:{}},j=function(e){h.Z&&((0,v.mf)(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),(0,r.useEffect)((function(){null===e||void 0===e||e()}),[])},z=n(39861),H=function(){function e(e,t,n,r){void 0===r&&(r={}),this.serviceRef=e,this.options=t,this.subscribe=n,this.initState=r,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=(0,o.__assign)((0,o.__assign)((0,o.__assign)({},this.state),{loading:!t.manual}),r)}return e.prototype.setState=function(e){void 0===e&&(e={}),this.state=(0,o.__assign)((0,o.__assign)({},this.state),e),this.subscribe()},e.prototype.runPluginHandler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.pluginImpls.map((function(n){var r;return null===(r=n[e])||void 0===r?void 0:r.call.apply(r,(0,o.__spreadArray)([n],(0,o.__read)(t),!1))})).filter(Boolean);return Object.assign.apply(Object,(0,o.__spreadArray)([{}],(0,o.__read)(r),!1))},e.prototype.runAsync=function(){for(var e,t,n,r,i,u,a,c,s,l,f=[],d=0;d<arguments.length;d++)f[d]=arguments[d];return(0,o.__awaiter)(this,void 0,void 0,(function(){var d,v,h,p,m,g,_,y,b,w,E;return(0,o.__generator)(this,(function(S){switch(S.label){case 0:if(this.count+=1,d=this.count,v=this.runPluginHandler("onBefore",f),h=v.stopNow,p=void 0!==h&&h,m=v.returnNow,g=void 0!==m&&m,_=(0,o.__rest)(v,["stopNow","returnNow"]),p)return[2,new Promise((function(){}))];if(this.setState((0,o.__assign)({loading:!0,params:f},_)),g)return[2,Promise.resolve(_.data)];null===(t=(e=this.options).onBefore)||void 0===t||t.call(e,f),S.label=1;case 1:return S.trys.push([1,3,,4]),(y=this.runPluginHandler("onRequest",this.serviceRef.current,f).servicePromise)||(y=(E=this.serviceRef).current.apply(E,(0,o.__spreadArray)([],(0,o.__read)(f),!1))),[4,y];case 2:return b=S.sent(),d!==this.count?[2,new Promise((function(){}))]:(this.setState({data:b,error:void 0,loading:!1}),null===(r=(n=this.options).onSuccess)||void 0===r||r.call(n,b,f),this.runPluginHandler("onSuccess",b,f),null===(u=(i=this.options).onFinally)||void 0===u||u.call(i,f,b,void 0),d===this.count&&this.runPluginHandler("onFinally",f,b,void 0),[2,b]);case 3:if(w=S.sent(),d!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:w,loading:!1}),null===(c=(a=this.options).onError)||void 0===c||c.call(a,w,f),this.runPluginHandler("onError",w,f),null===(l=(s=this.options).onFinally)||void 0===l||l.call(s,f,void 0,w),d===this.count&&this.runPluginHandler("onFinally",f,void 0,w),w;case 4:return[2]}}))}))},e.prototype.run=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,(0,o.__spreadArray)([],(0,o.__read)(t),!1)).catch((function(t){e.options.onError||console.error(t)}))},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,(0,o.__spreadArray)([],(0,o.__read)(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,(0,o.__spreadArray)([],(0,o.__read)(this.state.params||[]),!1))},e.prototype.mutate=function(e){var t=(0,v.mf)(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})},e}(),V=H;var q=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=t.manual,i=void 0!==r&&r,a=(0,o.__rest)(t,["manual"]);h.Z&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var c=(0,o.__assign)({manual:i},a),s=d(e),l=(0,z.Z)(),v=f((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 V(s,c,l,Object.assign.apply(Object,(0,o.__spreadArray)([{}],(0,o.__read)(e),!1)))}),[]);return v.options=c,v.pluginImpls=n.map((function(e){return e(v,c)})),j((function(){if(!i){var e=v.state.params||t.defaultParams||[];v.run.apply(v,(0,o.__spreadArray)([],(0,o.__read)(e),!1))}})),p((function(){v.cancel()})),{loading:v.state.loading,data:v.state.data,error:v.state.error,params:v.state.params||[],cancel:(0,u.Z)(v.cancel.bind(v)),refresh:(0,u.Z)(v.refresh.bind(v)),refreshAsync:(0,u.Z)(v.refreshAsync.bind(v)),run:(0,u.Z)(v.run.bind(v)),runAsync:(0,u.Z)(v.runAsync.bind(v)),mutate:(0,u.Z)(v.mutate.bind(v))}};var W=function(e,t,n){return q(e,t,(0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(n||[]),!1),[T,A,O,I,Z,s,w,N],!1))},B=function(e,t){var n;void 0===t&&(t={});var i=t.defaultPageSize,a=void 0===i?10:i,c=t.defaultCurrent,s=void 0===c?1:c,l=(0,o.__rest)(t,["defaultPageSize","defaultCurrent"]),f=W(e,(0,o.__assign)({defaultParams:[{current:s,pageSize:a}],refreshDepsAction:function(){b(1)}},l)),d=f.params[0]||{},v=d.current,h=void 0===v?1:v,p=d.pageSize,m=void 0===p?a:p,g=(null===(n=f.data)||void 0===n?void 0:n.total)||0,_=(0,r.useMemo)((function(){return Math.ceil(g/m)}),[m,g]),y=function(e,t){var n=e<=0?1:e,r=t<=0?1:t,i=Math.ceil(g/r);n>i&&(n=Math.max(1,i));var u=(0,o.__read)(f.params||[]),a=u[0],c=void 0===a?{}:a,s=u.slice(1);f.run.apply(f,(0,o.__spreadArray)([(0,o.__assign)((0,o.__assign)({},c),{current:n,pageSize:r})],(0,o.__read)(s),!1))},b=function(e){y(e,m)};return(0,o.__assign)((0,o.__assign)({},f),{pagination:{current:h,pageSize:m,total:g,totalPage:_,onChange:(0,u.Z)(y),changeCurrent:(0,u.Z)(b),changePageSize:(0,u.Z)((function(e){y(h,e)}))}})},U=function(e,t){var n;void 0===t&&(t={});var i=t.form,c=t.defaultType,s=void 0===c?"simple":c,l=t.defaultParams,f=t.manual,d=void 0!==f&&f,v=t.refreshDeps,h=void 0===v?[]:v,p=t.ready,m=void 0===p||p,g=(0,o.__rest)(t,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),_=B(e,(0,o.__assign)({manual:!0},g)),y=_.params,b=void 0===y?[]:y,w=_.run,E=b[2]||{},S=(0,o.__read)((0,r.useState)((null===E||void 0===E?void 0:E.type)||s),2),T=S[0],A=S[1],R=(0,r.useRef)({}),L=(0,r.useRef)([]),k=!!(null===i||void 0===i?void 0:i.getInternalHooks),x=function(){if(!i)return{};if(k)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},O=function(){if(i){if(k)return i.setFieldsValue(R.current);var e={};Object.keys(R.current).forEach((function(t){i.getFieldInstance&&!i.getFieldInstance(t)||(e[t]=R.current[t])})),i.setFieldsValue(e)}},C=function(e){m&&setTimeout((function(){(function(){if(!i)return Promise.resolve({});var e=x(),t=Object.keys(e);return k?i.validateFields(t):new Promise((function(e,n){i.validateFields(t,(function(t,r){t?n(t):e(r)}))}))})().then((function(n){void 0===n&&(n={});var r=e||(0,o.__assign)((0,o.__assign)({pageSize:t.defaultPageSize||10},(null===b||void 0===b?void 0:b[0])||{}),{current:1});i?(R.current=(0,o.__assign)((0,o.__assign)({},R.current),n),w(r,n,{allFormData:R.current,type:T})):w(r)})).catch((function(e){return e}))}))};(0,r.useEffect)((function(){if(b.length>0)return R.current=(null===E||void 0===E?void 0:E.allFormData)||{},O(),void w.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(b),!1));!d&&m&&(R.current=(null===l||void 0===l?void 0:l[1])||{},O(),C(null===l||void 0===l?void 0:l[0]))}),[]),a((function(){m&&O()}),[T]);var M=(0,r.useRef)(!1);return M.current=!1,a((function(){!d&&m&&(M.current=!0,i&&i.resetFields(),R.current=(null===l||void 0===l?void 0:l[1])||{},O(),C(null===l||void 0===l?void 0:l[0]))}),[m]),a((function(){M.current||m&&(d||(M.current=!0,_.pagination.changeCurrent(1)))}),(0,o.__spreadArray)([],(0,o.__read)(h),!1)),(0,o.__assign)((0,o.__assign)({},_),{tableProps:{dataSource:(null===(n=_.data)||void 0===n?void 0:n.list)||L.current,loading:_.loading,onChange:(0,u.Z)((function(e,t,n,r){var i=(0,o.__read)(b||[]),u=i[0],a=i.slice(1);w.apply(void 0,(0,o.__spreadArray)([(0,o.__assign)((0,o.__assign)({},u),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:r})],(0,o.__read)(a),!1))})),pagination:{current:_.pagination.current,pageSize:_.pagination.pageSize,total:_.pagination.total}},search:{submit:(0,u.Z)((function(e){var t;null===(t=null===e||void 0===e?void 0:e.preventDefault)||void 0===t||t.call(e),C()})),type:T,changeType:(0,u.Z)((function(){var e=x();R.current=(0,o.__assign)((0,o.__assign)({},R.current),e),A((function(e){return"simple"===e?"advance":"simple"}))})),reset:(0,u.Z)((function(){var e,n;i&&i.resetFields(),C((0,o.__assign)((0,o.__assign)({},(null===l||void 0===l?void 0:l[0])||{}),{pageSize:t.defaultPageSize||(null===(n=null===(e=t.defaultParams)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageSize)||10,current:1}))}))}})};var Y=function(e,t){(0,r.useEffect)((function(){var t=e(),n=!1;return function(){(0,o.__awaiter)(this,void 0,void 0,(function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:if(r=t,!(0,v.mf)(r[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:return e.sent().done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}var r}))}))}(),function(){n=!0}}),t)};var X=function(e,t){void 0===e&&(e=!1);var n=(0,o.__read)((0,r.useState)(e),2),i=n[0],u=n[1];return[i,(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)}}}),[])]};function G(e){void 0===e&&(e=!1);var t=(0,o.__read)(X(!!e),2),n=t[0],i=t[1],u=i.toggle,a=i.set;return[n,(0,r.useMemo)((function(){return{toggle:u,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}}),[])]}function K(e,t){if(R)return e?(0,v.mf)(e)?e():"current"in e?e.current:e:t}var J=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=K(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=K(n[0]))?t.getRootNode():document},$=function(e){return function(t,n,i){var o=(0,r.useRef)(!1),u=(0,r.useRef)([]),a=(0,r.useRef)([]),c=(0,r.useRef)();e((function(){var e,r=(Array.isArray(i)?i:[i]).map((function(e){return K(e)}));if(!o.current)return o.current=!0,u.current=r,a.current=n,void(c.current=t());r.length===u.current.length&&l(r,u.current)&&l(n,a.current)||(null===(e=c.current)||void 0===e||e.call(c),u.current=r,a.current=n,c.current=t())})),p((function(){var e;null===(e=c.current)||void 0===e||e.call(c),o.current=!1}))}},Q=$(r.useEffect);function ee(e,t,n){void 0===n&&(n="click");var r=d(e);Q((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=K(t);return!n||n.contains(e.target)}))||r.current(e)},i=J(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 te=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.defaultValue,i=t.defaultValuePropName,a=void 0===i?"defaultValue":i,c=t.valuePropName,s=void 0===c?"value":c,l=t.trigger,f=void 0===l?"onChange":l,d=e[s],h=e.hasOwnProperty(s),p=(0,r.useMemo)((function(){return h?d:e.hasOwnProperty(a)?e[a]:n}),[]),m=(0,r.useRef)(p);h&&(m.current=d);var g=(0,z.Z)();return[m.current,(0,u.Z)((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=(0,v.mf)(t)?t(m.current):t;h||(m.current=i,g()),e[f]&&e[f].apply(e,(0,o.__spreadArray)([i],(0,o.__read)(n),!1))}))]},ne=n(4899),re=n.n(ne);var ie=function(e,t){void 0===t&&(t={});var n=(0,o.__read)((0,r.useState)((function(){var n=re().get(e);return(0,v.HD)(n)?n:(0,v.mf)(t.defaultValue)?t.defaultValue():t.defaultValue})),2),i=n[0],a=n[1],c=(0,u.Z)((function(n,r){void 0===r&&(r={});var u=(0,o.__assign)((0,o.__assign)({},t),r),c=(u.defaultValue,(0,o.__rest)(u,["defaultValue"])),s=(0,v.mf)(n)?n(i):n;a(s),void 0===s?re().remove(e):re().set(e,s,c)}));return[i,c]},oe=n(74410),ue=n.n(oe),ae=function(e){if(!e)return 0;var t=ue()(e).valueOf()-Date.now();return t<0?0:t},ce=function(e){void 0===e&&(e={});var t=e||{},n=t.leftTime,i=t.targetDate,u=t.interval,a=void 0===u?1e3:u,c=t.onEnd,s=(0,r.useMemo)((function(){return"leftTime"in e?(0,v.hj)(n)&&n>0?Date.now()+n:void 0:i}),[n,i]),l=(0,o.__read)((0,r.useState)((function(){return ae(s)})),2),f=l[0],h=l[1],p=d(c);(0,r.useEffect)((function(){if(s){h(ae(s));var e=setInterval((function(){var t,n=ae(s);h(n),0===n&&(clearInterval(e),null===(t=p.current)||void 0===t||t.call(p))}),a);return function(){return clearInterval(e)}}h(0)}),[s,a]);var m=(0,r.useMemo)((function(){return e=f,{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};var e}),[f]);return[f,m]};function se(e,t){void 0===t&&(t={});var n=t.min,r=t.max,i=e;return(0,v.hj)(r)&&(i=Math.min(r,i)),(0,v.hj)(n)&&(i=Math.max(n,i)),i}var le=function(e,t){void 0===e&&(e=0),void 0===t&&(t={});var n=t.min,i=t.max,a=(0,o.__read)((0,r.useState)((function(){return se(e,{min:n,max:i})})),2),c=a[0],s=a[1],l=function(e){s((function(t){return se((0,v.hj)(e)?e:e(t),{max:i,min:n})}))};return[c,{inc:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t+e}))})),dec:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t-e}))})),set:(0,u.Z)((function(e){l(e)})),reset:(0,u.Z)((function(){l(e)}))}]};var fe=function(e,t){var n;h.Z&&((0,v.mf)(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var i=d(e),u=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,a=(0,r.useMemo)((function(){return S()((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.current.apply(i,(0,o.__spreadArray)([],(0,o.__read)(e),!1))}),u,t)}),[]);return p((function(){a.cancel()})),{run:a,cancel:a.cancel,flush:a.flush}};var de=function(e,t){var n=(0,o.__read)((0,r.useState)(e),2),i=n[0],u=n[1],a=fe((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),i};var ve=function(e,t,n){var i=(0,o.__read)((0,r.useState)({}),2),u=i[0],c=i[1],s=fe((function(){c({})}),n).run;(0,r.useEffect)((function(){return s()}),t),a(e,[u])},he=n(50482),pe=n.n(he),me=function(e){return function(t,n){var i,o,u=(0,r.useRef)(),a=(0,r.useRef)(0);void 0!==n&&(i=n,o=u.current,void 0===i&&(i=[]),void 0===o&&(o=[]),pe()(i,o))||(u.current=n,a.current+=1),e(t,[a.current])}},ge=me(r.useEffect),_e=me(r.useLayoutEffect);var ye=function(e,t,n){void 0===n&&(n={});var r=d(t);Q((function(){var t=K(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)},be=function(){return R?document.visibilityState:"visible"};var we=function(){var e=(0,o.__read)((0,r.useState)((function(){return be()})),2),t=e[0],n=e[1];return ye("visibilitychange",(function(){n(be())}),{target:function(){return document}}),t},Ee=function(e,t,n){void 0===n&&(n={});var r=d(n),i=d(e);Q((function(){var e=K(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)},Se=function(e,t){void 0===t&&(t={});var n=d(t),i=(0,r.useRef)();Q((function(){var t=K(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)},a=function(e){var t,r;e.target===i.current&&(null===(r=(t=n.current).onDragLeave)||void 0===r||r.call(t,e))},c=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",a),t.addEventListener("drop",c),t.addEventListener("paste",s),function(){t.removeEventListener("dragenter",o),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",a),t.removeEventListener("drop",c),t.removeEventListener("paste",s)}}}),[],e)},Te=function(e){void 0===e&&(e=[]);var 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,o.__read)((0,r.useState)((function(){return e.forEach((function(e,t){i(t)})),e})),2),a=u[0],c=u[1],s=(0,r.useCallback)((function(e){n.current=[],c((function(){return e.forEach((function(e,t){i(t)})),e}))}),[]),l=(0,r.useCallback)((function(e,t){c((function(n){var r=(0,o.__spreadArray)([],(0,o.__read)(n),!1);return r.splice(e,0,t),i(e),r}))}),[]),f=(0,r.useCallback)((function(e){return n.current[e]}),[]),d=(0,r.useCallback)((function(e){return n.current.findIndex((function(t){return t===e}))}),[]),v=(0,r.useCallback)((function(e,t){c((function(n){var r=(0,o.__spreadArray)([],(0,o.__read)(n),!1);return t.forEach((function(t,n){i(e+n)})),r.splice.apply(r,(0,o.__spreadArray)([e,0],(0,o.__read)(t),!1)),r}))}),[]),h=(0,r.useCallback)((function(e,t){c((function(n){var r=(0,o.__spreadArray)([],(0,o.__read)(n),!1);return r[e]=t,r}))}),[]),p=(0,r.useCallback)((function(e){c((function(t){var r=(0,o.__spreadArray)([],(0,o.__read)(t),!1);r.splice(e,1);try{n.current.splice(e,1)}catch(i){console.error(i)}return r}))}),[]),m=(0,r.useCallback)((function(e,t){e!==t&&c((function(r){var i=(0,o.__spreadArray)([],(0,o.__read)(r),!1),u=i.filter((function(t,n){return n!==e}));u.splice(t,0,i[e]);try{var a=n.current.filter((function(t,n){return n!==e}));a.splice(t,0,n.current[e]),n.current=a}catch(c){console.error(c)}return u}))}),[]),g=(0,r.useCallback)((function(e){c((function(t){return i(t.length),t.concat([e])}))}),[]),_=(0,r.useCallback)((function(){try{n.current=n.current.slice(0,n.current.length-1)}catch(e){console.error(e)}c((function(e){return e.slice(0,e.length-1)}))}),[]),y=(0,r.useCallback)((function(e){c((function(t){return i(0),[e].concat(t)}))}),[]),b=(0,r.useCallback)((function(){try{n.current=n.current.slice(1,n.current.length)}catch(e){console.error(e)}c((function(e){return e.slice(1,e.length)}))}),[]),w=(0,r.useCallback)((function(e){return e.map((function(e,t){return{key:t,item:e}})).sort((function(e,t){return d(e.key)-d(t.key)})).filter((function(e){return!!e.item})).map((function(e){return e.item}))}),[]);return{list:a,insert:l,merge:v,replace:h,remove:p,getKey:f,getIndex:d,move:m,push:g,pop:_,unshift:y,shift:b,sortList:w,resetList:s}},Ae=function(){var e=this;this.subscriptions=new Set,this.emit=function(t){var n,r;try{for(var i=(0,o.__values)(e.subscriptions),u=i.next();!u.done;u=i.next())(0,u.value)(t)}catch(a){n={error:a}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},this.useSubscription=function(t){var n=(0,r.useRef)();n.current=t,(0,r.useEffect)((function(){function t(e){n.current&&n.current(e)}return e.subscriptions.add(t),function(){e.subscriptions.delete(t)}}),[])}};function Re(){var e=(0,r.useRef)();return e.current||(e.current=new Ae),e.current}var Le=function(e){var t=e||{},n=t.initialValue,i=t.transformer,u=(0,o.__read)((0,r.useState)(n),2),a=u[0],c=u[1],s=d(i),l=(0,r.useCallback)((function(){return c(n)}),[]);return[a,{onChange:(0,r.useCallback)((function(e){var t=e.target.value;return(0,v.mf)(s.current)?c(s.current(t)):c(t)}),[]),reset:l}]},ke={},xe=function(e,t){var n=(0,o.__read)((0,r.useState)(e?"loading":"unset"),2),i=n[0],u=n[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,t){void 0===t&&(t={});var 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)){r=function(e,t){void 0===t&&(t={});var 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=r.ref,u(r.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===ke[e]?ke[e]=1:ke[e]+=1;var i=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",i),a.current.addEventListener("error",i),function(){var n,r,o;null===(n=a.current)||void 0===n||n.removeEventListener("load",i),null===(r=a.current)||void 0===r||r.removeEventListener("error",i),ke[e]-=1,0!==ke[e]||(null===t||void 0===t?void 0:t.keepWhenUnused)||null===(o=a.current)||void 0===o||o.remove(),a.current=void 0}}}else u("unset")}),[e]),i},Oe={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},Ce=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=Oe[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function Me(e,t){var n=(0,o.__read)((0,r.useState)(!1),2),i=n[0],u=n[1],a=t||{},c=a.onFocus,s=a.onBlur,l=a.onChange;return ye("focusin",(function(e){i||(null===c||void 0===c||c(e),null===l||void 0===l||l(!0),u(!0))}),{target:e}),ye("focusout",(function(e){var t,n;i&&!(null===(n=null===(t=e.currentTarget)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,e.relatedTarget))&&(null===s||void 0===s||s(e),null===l||void 0===l||l(!1),u(!1))}),{target:e}),i}var Fe=n(20026),Ie=n.n(Fe),Ne=function(e,t){var n=t||{},i=n.onExit,a=n.onEnter,c=n.pageFullscreen,s=void 0!==c&&c,l=(0,v.jn)(s)||!s?{}:s,f=l.className,h=void 0===f?"ahooks-page-fullscreen":f,m=l.zIndex,g=void 0===m?999999:m,_=d(i),y=d(a),b=(0,o.__read)((0,r.useState)(!1),2),w=b[0],E=b[1],S=function(e){var t,n;e?null===(t=y.current)||void 0===t||t.call(y):null===(n=_.current)||void 0===n||n.call(_)},T=(0,u.Z)((function(){if(Ie().isEnabled){var t=K(e);if(Ie().element){var n=Ie().element===t;S(n),E(n)}else S(!1),E(!1),Ie().off("change",T)}})),A=function(t){var n=K(e);if(n){var r=document.getElementById(h);t?(n.classList.add(h),r||((r=document.createElement("style")).setAttribute("id",h),r.textContent="\n .".concat(h," {\n position: fixed; left: 0; top: 0; right: 0; bottom: 0;\n width: 100% !important; height: 100% !important;\n z-index: ").concat(g,";\n }"),n.appendChild(r))):(n.classList.remove(h),r&&r.remove()),w!==t&&(S(t),E(t))}},R=function(){var t=K(e);if(t)if(s)A(!0);else if(Ie().isEnabled)try{Ie().request(t),Ie().on("change",T)}catch(n){console.error(n)}},L=function(){var t=K(e);t&&(s?A(!1):Ie().isEnabled&&Ie().element===t&&Ie().exit())};return p((function(){Ie().isEnabled&&!s&&Ie().off("change",T)})),[w,{enterFullscreen:(0,u.Z)(R),exitFullscreen:(0,u.Z)(L),toggleFullscreen:(0,u.Z)((function(){w?L():R()})),isEnabled:Ie().isEnabled}]},De=function(e,t){var n;return void 0===t&&(t={}),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(0,o.__assign)((0,o.__assign)({},e),{tableProps:t,paginationProps:n})}(U(e,(0,o.__assign)((0,o.__assign)({},t),{form:t.field?(n=t.field,{getFieldInstance:function(e){return n.getNames().includes(e)},setFieldsValue:n.setValues,getFieldsValue:n.getValues,resetFields:n.resetToDefault,validateFields:function(e,t){n.validate(e,t)}}):void 0})))};var Pe=function(e){var t=(0,o.__read)((0,r.useState)(e),2),n=t[0],i=t[1],u=(0,r.useRef)(n);return u.current=n,[n,i,(0,r.useCallback)((function(){return u.current}),[])]},Ze=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,t){void 0===t&&(t=0);var n=(0,o.__read)((0,r.useState)({present:e,past:[],future:[]}),2),i=n[0],a=n[1],c=i.present,s=i.past,l=i.future,f=(0,r.useRef)(e),d=function(e){var t=(0,v.hj)(e)?e:Number(e);if(0!==t)return t>0?function(e){if(void 0===e&&(e=1),0!==l.length){var t=Ze(e,l),n=t._before,r=t._current,i=t._after;a({past:(0,o.__spreadArray)((0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(s),!1),[c],!1),(0,o.__read)(n),!1),present:r,future:i})}}(t):void function(e){if(void 0===e&&(e=-1),0!==s.length){var t=Ze(e,s),n=t._before,r=t._current,i=t._after;a({past:n,present:r,future:(0,o.__spreadArray)((0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(i),!1),[c],!1),(0,o.__read)(l),!1)})}}(t)};return{value:c,backLength:s.length,forwardLength:l.length,setValue:(0,u.Z)((function(e){var n=(0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(s),!1),[c],!1),r=(0,v.hj)(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),a({present:e,future:[],past:n})})),go:(0,u.Z)(d),back:(0,u.Z)((function(){d(-1)})),forward:(0,u.Z)((function(){d(1)})),reset:(0,u.Z)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length>0?e[0]:f.current;f.current=n,a({present:n,future:[],past:[]})}))}}var ze=function(e,t){var n=t||{},r=n.onEnter,i=n.onLeave,u=n.onChange,a=(0,o.__read)(G(!1),2),c=a[0],s=a[1],l=s.setTrue,f=s.setFalse;return ye("mouseenter",(function(){null===r||void 0===r||r(),l(),null===u||void 0===u||u(!0)}),{target:e}),ye("mouseleave",(function(){null===i||void 0===i||i(),f(),null===u||void 0===u||u(!1)}),{target:e}),c},He=function(e,t){void 0===t&&(t={});var n=t.target,i=t.isNoMore,c=t.threshold,s=void 0===c?100:c,l=t.reloadDeps,f=void 0===l?[]:l,d=t.manual,v=t.onBefore,h=t.onSuccess,p=t.onError,m=t.onFinally,g=(0,o.__read)((0,r.useState)(),2),_=g[0],y=g[1],b=(0,o.__read)((0,r.useState)(!1),2),w=b[0],E=b[1],S=(0,r.useMemo)((function(){return!!i&&i(_)}),[_]),T=W((function(t){return(0,o.__awaiter)(void 0,void 0,void 0,(function(){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return[4,e(t)];case 1:return n=r.sent(),y(t?(0,o.__assign)((0,o.__assign)({},n),{list:(0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(t.list),!1),(0,o.__read)(n.list),!1)}):n),[2,n]}}))}))}),{manual:d,onFinally:function(e,t,n){E(!1),null===m||void 0===m||m(t,n)},onBefore:function(){return null===v||void 0===v?void 0:v()},onSuccess:function(e){setTimeout((function(){C()})),null===h||void 0===h||h(e)},onError:function(e){return null===p||void 0===p?void 0:p(e)}}),A=T.loading,R=T.run,L=T.runAsync,k=T.cancel,x=(0,u.Z)((function(){S||(E(!0),R(_))})),O=(0,u.Z)((function(){return S?Promise.reject():(E(!0),L(_))})),C=function(){var e=K(n);if(e){var t=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop}(e=e===document?document.documentElement:e),r=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)}(e),i=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)}(e);r-t<=i+s&&x()}};return ye("scroll",(function(){A||w||C()}),{target:n}),a((function(){R()}),(0,o.__spreadArray)([],(0,o.__read)(f),!1)),{data:_,loading:!w&&A,loadingMore:w,noMore:S,loadMore:x,loadMoreAsync:O,reload:(0,u.Z)((function(){return E(!1),R()})),reloadAsync:(0,u.Z)((function(){return E(!1),L()})),mutate:y,cancel:k}},Ve=function(e,t,n){void 0===n&&(n={});var i=(0,u.Z)(e),o=(0,r.useRef)(null),a=(0,r.useCallback)((function(){o.current&&clearInterval(o.current)}),[]);return(0,r.useEffect)((function(){if((0,v.hj)(t)&&!(t<0))return n.immediate&&i(),o.current=setInterval(i,t),a}),[t,n.immediate]),a};n(53634);var qe=function(e,t){var n=(0,o.__read)((0,r.useState)(),2),i=n[0],u=n[1],a=(0,o.__read)((0,r.useState)(),2),c=a[0],s=a[1];return Q((function(){var n=K(e);if(n){var r=new IntersectionObserver((function(e){var t,n;try{for(var r=(0,o.__values)(e),i=r.next();!i.done;i=r.next()){var a=i.value;s(a.intersectionRatio),u(a.isIntersecting)}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(0,o.__assign)((0,o.__assign)({},t),{root:K(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),[i,c]},We=R?r.useLayoutEffect:r.useEffect,Be=function(e,t,n){var i,o,u=(0,r.useRef)(),a=(0,r.useRef)(0);i=t,void 0===(o=u.current)&&(o=[]),pe()(i,o)||(u.current=t,a.current+=1),Q(e,[a.current],n)},Ue={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,meta:/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:"")?[91,93]:[91,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},Ye={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?Ue.meta.includes(e.keyCode):e.metaKey}};function Xe(e,t,n){var r,i;if(!e.key)return!1;if((0,v.hj)(t))return e.keyCode===t;var u=t.split("."),a=0;try{for(var c=(0,o.__values)(u),s=c.next();!s.done;s=c.next()){var l=s.value,f=Ye[l],d=Ue[l.toLowerCase()];(f&&f(e)||d&&d===e.keyCode)&&a++}}catch(h){r={error:h}}finally{try{s&&!s.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return n?a===u.length&&function(e){var t=Object.keys(Ye).reduce((function(t,n){return Ye[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===u.length:a===u.length}var Ge=["keydown"];var Ke=function(e,t,n){var r=n||{},i=r.events,u=void 0===i?Ge:i,a=r.target,c=r.exactMatch,s=void 0!==c&&c,l=r.useCapture,f=void 0!==l&&l,h=d(t),p=d(e);Be((function(){var e,t,n,r=K(a,window);if(r){var i=function(e){var t,n=function(e,t){return(0,v.mf)(e)?e:(0,v.HD)(e)||(0,v.hj)(e)?function(n){return Xe(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return Xe(n,e,t)}))}:function(){return Boolean(e)}}(p.current,s);if(n(e))return null===(t=h.current)||void 0===t?void 0:t.call(h,e)};try{for(var c=(0,o.__values)(u),l=c.next();!l.done;l=c.next()){var d=l.value;null===(n=null===r||void 0===r?void 0:r.addEventListener)||void 0===n||n.call(r,d,i,f)}}catch(m){e={error:m}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return function(){var e,t,n;try{for(var a=(0,o.__values)(u),c=a.next();!c.done;c=a.next()){var s=c.value;null===(n=null===r||void 0===r?void 0:r.removeEventListener)||void 0===n||n.call(r,s,i,f)}}catch(l){e={error:l}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}}}),[u],a)};function Je(e){return function(t,n){var i;void 0===n&&(n={});var c=n.onError,s=void 0===c?function(e){console.error(e)}:c;try{i=e()}catch(p){s(p)}function l(){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){s(o)}var r;return(0,v.mf)(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 f=(0,o.__read)((0,r.useState)((function(){return l()})),2),d=f[0],h=f[1];return a((function(){h(l())}),[t]),[d,(0,u.Z)((function(e){var r=(0,v.mf)(e)?e(d):e;if(h(r),(0,v.G7)(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 $e=Je((function(){return R?localStorage:void 0}));var Qe=function(e){var t=this,n=(0,r.useRef)(!1);return(0,r.useCallback)((function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,o.__awaiter)(t,void 0,void 0,(function(){var t,i;return(0,o.__generator)(this,(function(u){switch(u.label){case 0:if(n.current)return[2];n.current=!0,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(r),!1))];case 2:return t=u.sent(),n.current=!1,[2,t];case 3:throw i=u.sent(),n.current=!1,i;case 4:return[2]}}))}))}),[e])},et=R&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var tt=function(e,t,n){var i=void 0===n?{}:n,o=i.delay,u=void 0===o?300:o,a=i.moveThreshold,c=i.onClick,s=i.onLongPressEnd,l=d(e),f=d(c),v=d(s),h=(0,r.useRef)(),p=(0,r.useRef)(!1),m=(0,r.useRef)({x:0,y:0}),g=!!((null===a||void 0===a?void 0:a.x)&&a.x>0||(null===a||void 0===a?void 0:a.y)&&a.y>0);Q((function(){var e=K(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(g){var t=c(e),n=t.clientX,r=t.clientY;m.current.x=n,m.current.y=r}h.current=setTimeout((function(){l.current(e),p.current=!0}),u)},r=function(e){h.current&&function(e){var t=c(e),n=t.clientX,r=t.clientY,i=Math.abs(n-m.current.x),o=Math.abs(r-m.current.y);return!!((null===a||void 0===a?void 0:a.x)&&i>a.x||(null===a||void 0===a?void 0:a.y)&&o>a.y)}(e)&&(clearInterval(h.current),h.current=void 0)},i=function(e,t){var n;void 0===t&&(t=!1),h.current&&clearTimeout(h.current),p.current&&(null===(n=v.current)||void 0===n||n.call(v,e)),t&&!p.current&&f.current&&f.current(e),p.current=!1},o=function(e){return i(e,!0)};return et?(e.addEventListener("touchstart",n),e.addEventListener("touchend",o),g&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",o),e.addEventListener("mouseleave",i),g&&e.addEventListener("mousemove",r)),function(){h.current&&(clearTimeout(h.current),p.current=!1),et?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",o),g&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",o),e.removeEventListener("mouseleave",i),g&&e.removeEventListener("mousemove",r))}}function c(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 nt=function(e){var t=function(){return new Map(e)},n=(0,o.__read)((0,r.useState)(t),2),i=n[0],a=n[1];return[i,{set:(0,u.Z)((function(e,t){a((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:(0,u.Z)((function(e){a(new Map(e))})),remove:(0,u.Z)((function(e){a((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())})),get:(0,u.Z)((function(e){return i.get(e)}))}]};var rt,it=function(e){var t=(0,r.useRef)(0),n=(0,o.__read)((0,r.useState)(e),2),i=n[0],u=n[1],a=(0,r.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){u(e)}))}),[]);return p((function(){cancelAnimationFrame(t.current)})),[i,a]},ot={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},ut=function(e){var t=(0,o.__read)(it(ot),2),n=t[0],r=t[1];return ye("mousemove",(function(t){var n=t.screenX,i=t.screenY,o=t.clientX,u=t.clientY,a=t.pageX,c=t.pageY,s={screenX:n,screenY:i,clientX:o,clientY:u,pageX:a,pageY:c,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},l=K(e);if(l){var f=l.getBoundingClientRect(),d=f.left,v=f.top,h=f.width,p=f.height;s.elementPosX=d+window.pageXOffset,s.elementPosY=v+window.pageYOffset,s.elementX=a-s.elementPosX,s.elementY=c-s.elementPosY,s.elementW=h,s.elementH=p}r(s)}),{target:function(){return document}}),n};function at(){var e=navigator;return(0,v.Kn)(e)?e.connection||e.mozConnection||e.webkitConnection:null}function ct(){var e=at();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"}(rt||(rt={}));var st=function(){var e=(0,o.__read)((0,r.useState)((function(){return(0,o.__assign)({since:void 0,online:null===navigator||void 0===navigator?void 0:navigator.onLine},ct())})),2),t=e[0],n=e[1];return(0,r.useEffect)((function(){var e=function(){n((function(e){return(0,o.__assign)((0,o.__assign)({},e),{online:!0,since:new Date})}))},t=function(){n((function(e){return(0,o.__assign)((0,o.__assign)({},e),{online:!1,since:new Date})}))},r=function(){n((function(e){return(0,o.__assign)((0,o.__assign)({},e),ct())}))};window.addEventListener(rt.ONLINE,e),window.addEventListener(rt.OFFLINE,t);var i=at();return null===i||void 0===i||i.addEventListener(rt.CHANGE,r),function(){window.removeEventListener(rt.ONLINE,e),window.removeEventListener(rt.OFFLINE,t),null===i||void 0===i||i.removeEventListener(rt.CHANGE,r)}}),[]),t},lt=function(e,t){return!Object.is(e,t)};var ft=function(e,t){void 0===t&&(t=lt);var n=(0,r.useRef)(),i=(0,r.useRef)();return t(i.current,e)&&(n.current=i.current,i.current=e),n.current};var dt=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};var vt=function(e,t,n){var i=null===n||void 0===n?void 0:n.immediate,o=d(e),u=(0,r.useRef)();return(0,r.useEffect)((function(){if((0,v.hj)(t)&&!(t<0))return i&&o.current(),u.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=(new Date).getTime(),r={id:0};return r.id=requestAnimationFrame((function i(){(new Date).getTime()-n>=t&&(e(),n=(new Date).getTime()),r.id=requestAnimationFrame(i)})),r}((function(){o.current()}),t),function(){u.current&&dt(u.current)}}),[t]),(0,r.useCallback)((function(){u.current&&dt(u.current)}),[])};var ht=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var pt=function(e,t){var n=d(e),i=(0,r.useRef)();return(0,r.useEffect)((function(){if((0,v.hj)(t)&&!(t<0))return i.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setTimeout(e,t)};var n={id:0},r=(new Date).getTime();return n.id=requestAnimationFrame((function i(){(new Date).getTime()-r>=t?e():n.id=requestAnimationFrame(i)})),n}((function(){n.current()}),t),function(){i.current&&ht(i.current)}}),[t]),(0,r.useCallback)((function(){i.current&&ht(i.current)}),[])},mt=n(72946),gt=n.n(mt),_t=new WeakMap,yt=new WeakMap;function bt(e,t){var n=_t.get(e);if(n)return n;if(yt.has(e))return e;var r=new Proxy(e,{get:function(e,n,r){var i=Reflect.get(e,n,r);return gt()(i)||Array.isArray(i)?bt(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 _t.set(e,r),yt.set(r,e),r}var wt,Et=function(e){var t=(0,z.Z)(),n=(0,r.useRef)(e);return f((function(){return bt(n.current,(function(){t()}))}),[])},St=function(e){var t=(0,o.__read)((0,r.useState)(e),2),n=t[0],i=t[1],a=(0,u.Z)((function(){i(e)}));return[n,i,a]},Tt=new Set,At={xs:0,sm:576,md:768,lg:992,xl:1200};function Rt(){var e,t,n=wt;if(kt(),n!==wt)try{for(var r=(0,o.__values)(Tt),i=r.next();!i.done;i=r.next()){(0,i.value)()}}catch(u){e={error:u}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}var Lt=!1;function kt(){var e,t,n=window.innerWidth,r={},i=!1;try{for(var u=(0,o.__values)(Object.keys(At)),a=u.next();!a.done;a=u.next()){var c=a.value;r[c]=n>=At[c],r[c]!==wt[c]&&(i=!0)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}i&&(wt=r)}function xt(e){At=e,wt&&kt()}function Ot(){R&&!Lt&&(wt={},kt(),window.addEventListener("resize",Rt),Lt=!0);var e=(0,o.__read)((0,r.useState)(wt),2),t=e[0],n=e[1];return(0,r.useEffect)((function(){if(R){Lt||window.addEventListener("resize",Rt);var e=function(){n(wt)};return Tt.add(e),function(){Tt.delete(e),0===Tt.size&&(window.removeEventListener("resize",Rt),Lt=!1)}}}),[]),t}var Ct=function(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var Mt=function(e){var t=Ct(),n=(0,o.__read)((0,r.useState)(e),2),i=n[0],u=n[1];return[i,(0,r.useCallback)((function(e){t.current||u(e)}),[])]};var Ft=function(e,t){void 0===t&&(t=function(){return!0});var n=(0,o.__read)(it(),2),r=n[0],i=n[1],u=d(t);return Q((function(){var t=K(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)&&i(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),r};function It(e,t){void 0===t&&(t=[]);var n=(0,o.__read)((0,r.useState)(t),2),i=n[0],a=n[1],c=(0,r.useMemo)((function(){return new Set(i)}),[i]),s=function(e){return c.has(e)},l=function(e){return c.add(e),a(Array.from(c))},f=function(e){return c.delete(e),a(Array.from(c))},d=function(){e.forEach((function(e){c.add(e)})),a(Array.from(c))},v=function(){e.forEach((function(e){c.delete(e)})),a(Array.from(c))},h=(0,r.useMemo)((function(){return e.every((function(e){return!c.has(e)}))}),[e,c]),p=(0,r.useMemo)((function(){return e.every((function(e){return c.has(e)}))&&!h}),[e,c,h]),m=(0,r.useMemo)((function(){return!h&&!p}),[h,p]);return{selected:i,noneSelected:h,allSelected:p,partiallySelected:m,setSelected:a,isSelected:s,select:(0,u.Z)(l),unSelect:(0,u.Z)(f),toggle:(0,u.Z)((function(e){s(e)?f(e):l(e)})),selectAll:(0,u.Z)(d),unSelectAll:(0,u.Z)(v),toggleAll:(0,u.Z)((function(){return p?v():d()}))}}var Nt=Je((function(){return R?sessionStorage:void 0}));var Dt=function(e){var t=function(){return new Set(e)},n=(0,o.__read)((0,r.useState)(t),2),i=n[0],a=n[1];return[i,{add:(0,u.Z)((function(e){i.has(e)||a((function(t){var n=new Set(t);return n.add(e),n}))})),remove:(0,u.Z)((function(e){i.has(e)&&a((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())}))}]},Pt=function(e){var t=(0,o.__read)((0,r.useState)(e),2),n=t[0],i=t[1];return[n,(0,r.useCallback)((function(e){i((function(t){var n=(0,v.mf)(e)?e(t):e;return n?(0,o.__assign)((0,o.__assign)({},t),n):t}))}),[])]},Zt=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}()}(),jt="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,zt="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")(),Ht="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(zt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Vt=["top","right","bottom","left","width","height","size","weight"],qt="undefined"!==typeof MutationObserver,Wt=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&&a()}function u(){Ht(o)}function a(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);i=e}return a}(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(){jt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qt?(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(){jt&&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;Vt.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}(),Bt=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},Ut=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||zt},Yt=Qt(0,0,0,0);function Xt(e){return parseFloat(e)||0}function Gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Xt(e["border-"+n+"-width"])}),0)}function Kt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Yt;var r=Ut(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]=Xt(o)}return t}(r),o=i.left+i.right,u=i.top+i.bottom,a=Xt(r.width),c=Xt(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=Gt(r,"left","right")+o),Math.round(c+u)!==n&&(c-=Gt(r,"top","bottom")+u)),!function(e){return e===Ut(e).document.documentElement}(e)){var s=Math.round(a+o)-t,l=Math.round(c+u)-n;1!==Math.abs(s)&&(a-=s),1!==Math.abs(l)&&(c-=l)}return Qt(i.left,i.top,a,c)}var Jt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Ut(e).SVGGraphicsElement}:function(e){return e instanceof Ut(e).SVGElement&&"function"===typeof e.getBBox};function $t(e){return jt?Jt(e)?function(e){var t=e.getBBox();return Qt(0,0,t.width,t.height)}(e):Kt(e):Yt}function Qt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var en=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=$t(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}(),tn=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 Bt(u,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),u}(t);Bt(this,{target:e,contentRect:n})},nn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Zt,"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 Ut(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new en(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 Ut(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 tn(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}(),rn="undefined"!==typeof WeakMap?new WeakMap:new Zt,on=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=Wt.getInstance(),r=new nn(t,n,this);rn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){on.prototype[e]=function(){var t;return(t=rn.get(this))[e].apply(t,arguments)}}));var un="undefined"!==typeof zt.ResizeObserver?zt.ResizeObserver:on,an=$(r.useLayoutEffect),cn=R?an:Q;var sn=function(e){var t=(0,o.__read)(it((function(){var t=K(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0})),2),n=t[0],r=t[1];return cn((function(){var t=K(e);if(t){var n=new un((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,i=t.clientHeight;r({width:n,height:i})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),n},ln={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},fn=(0,o.__assign)({text:""},ln);var dn=function(e){var t=(0,o.__read)((0,r.useState)(fn),2),n=t[0],i=t[1],u=(0,r.useRef)(n),a=(0,r.useRef)(!1);return u.current=n,Q((function(){var t=K(e,document);if(t){var r=function(){var e,t=null,r=ln;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&a.current&&(r=function(e){if(!e)return ln;if(e.rangeCount<1)return ln;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),i((0,o.__assign)((0,o.__assign)((0,o.__assign)({},n),{text:e}),r)))},c=function(e){if(window.getSelection){u.current.text&&i((0,o.__assign)({},fn)),a.current=!1;var n=window.getSelection();n&&(n.removeAllRanges(),a.current=t.contains(e.target))}};return t.addEventListener("mouseup",r),document.addEventListener("mousedown",c),function(){t.removeEventListener("mouseup",r),document.removeEventListener("mousedown",c)}}}),[],e),n};var vn=function(e,t){var n;h.Z&&((0,v.mf)(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var i=d(e),u=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,a=(0,r.useMemo)((function(){return P()((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.current.apply(i,(0,o.__spreadArray)([],(0,o.__read)(e),!1))}),u,t)}),[]);return p((function(){a.cancel()})),{run:a,cancel:a.cancel,flush:a.flush}};var hn=function(e,t){var n=(0,o.__read)((0,r.useState)(e),2),i=n[0],u=n[1],a=vn((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),i};var pn=function(e,t,n){var i=(0,o.__read)((0,r.useState)({}),2),u=i[0],c=i[1],s=vn((function(){c({})}),n).run;(0,r.useEffect)((function(){return s()}),t),a(e,[u])},mn=function(e,t){var n=(0,u.Z)(e),i=(0,r.useRef)(null),o=(0,r.useCallback)((function(){i.current&&clearTimeout(i.current)}),[]);return(0,r.useEffect)((function(){if((0,v.hj)(t)&&!(t<0))return i.current=setTimeout(n,t),o}),[t]),o},gn={restoreOnUnmount:!1};var _n,yn=function(e,t){void 0===t&&(t=gn);var n=(0,r.useRef)(R?document.title:"");(0,r.useEffect)((function(){document.title=e}),[e]),p((function(){t.restoreOnUnmount&&(document.title=n.current)}))},bn=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)},wn=i(r.useLayoutEffect),En=function(e,t){var n=t.containerTarget,i=t.wrapperTarget,c=t.itemHeight,s=t.overscan,l=void 0===s?5:s,f=d(c),h=sn(n),p=(0,r.useRef)(!1),m=(0,o.__read)((0,r.useState)([]),2),g=m[0],_=m[1],y=(0,o.__read)((0,r.useState)({}),2),b=y[0],w=y[1],E=function(t){return(0,v.hj)(f.current)?t*f.current:e.slice(0,t).reduce((function(t,n,r){return t+f.current(r,e[r])}),0)},S=(0,r.useMemo)((function(){return(0,v.hj)(f.current)?e.length*f.current:e.reduce((function(t,n,r){return t+f.current(r,e[r])}),0)}),[e]),T=function(){var t=K(n);if(t){var r=t.scrollTop,i=t.clientHeight,o=function(t){if((0,v.hj)(f.current))return Math.floor(t/f.current)+1;for(var n=0,r=0,i=0;i<e.length;i++)if((n+=f.current(i,e[i]))>=t){r=i;break}return r+1}(r),u=function(t,n){if((0,v.hj)(f.current))return Math.ceil(t/f.current);for(var r=0,i=0,o=n;o<e.length&&(i=o,!((r+=f.current(o,e[o]))>=t));o++);return i-n}(i,o),a=Math.max(0,o-l),c=Math.min(e.length,o+u+l),s=E(a);w({height:S-s+"px",marginTop:s+"px"}),_(e.slice(a,c).map((function(e,t){return{data:e,index:t+a}})))}};a((function(){var e=K(i);e&&Object.keys(b).forEach((function(t){return e.style[t]=b[t]}))}),[b]),(0,r.useEffect)((function(){(null===h||void 0===h?void 0:h.width)&&(null===h||void 0===h?void 0:h.height)&&T()}),[null===h||void 0===h?void 0:h.width,null===h||void 0===h?void 0:h.height,e]),ye("scroll",(function(e){p.current?p.current=!1:(e.preventDefault(),T())}),{target:n});return[g,(0,u.Z)((function(e){var t=K(n);t&&(p.current=!0,t.scrollTop=E(e),T())}))]};function Sn(e,t){void 0===t&&(t={});var n=t.reconnectLimit,i=void 0===n?3:n,a=t.reconnectInterval,c=void 0===a?3e3:a,s=t.manual,l=void 0!==s&&s,f=t.onOpen,v=t.onClose,h=t.onMessage,m=t.onError,g=t.protocols,_=d(f),y=d(v),b=d(h),w=d(m),E=(0,r.useRef)(0),S=(0,r.useRef)(),T=(0,r.useRef)(),A=(0,r.useRef)(!1),R=(0,o.__read)((0,r.useState)(),2),L=R[0],k=R[1],x=(0,o.__read)((0,r.useState)(_n.Closed),2),O=x[0],C=x[1],M=function(){var e;E.current<i&&(null===(e=T.current)||void 0===e?void 0:e.readyState)!==_n.Open&&(S.current&&clearTimeout(S.current),S.current=setTimeout((function(){F(),E.current++}),c))},F=function(){S.current&&clearTimeout(S.current),T.current&&T.current.close();var t=new WebSocket(e,g);C(_n.Connecting),t.onerror=function(e){var n;A.current||(M(),null===(n=w.current)||void 0===n||n.call(w,e,t),C(t.readyState||_n.Closed))},t.onopen=function(e){var n;A.current||(null===(n=_.current)||void 0===n||n.call(_,e,t),E.current=0,C(t.readyState||_n.Open))},t.onmessage=function(e){var n;A.current||(null===(n=b.current)||void 0===n||n.call(b,e,t),k(e))},t.onclose=function(e){var n;A.current||(M(),null===(n=y.current)||void 0===n||n.call(y,e,t),C(t.readyState||_n.Closed))},T.current=t},I=function(){E.current=0,F()},N=function(){var e;S.current&&clearTimeout(S.current),E.current=i,null===(e=T.current)||void 0===e||e.close()};return(0,r.useEffect)((function(){l||I()}),[e,l]),p((function(){A.current=!0,N()})),{latestMessage:L,sendMessage:(0,u.Z)((function(e){var t;if(O!==_n.Open)throw new Error("WebSocket disconnected");null===(t=T.current)||void 0===t||t.send(e)})),connect:(0,u.Z)(I),disconnect:(0,u.Z)(N),readyState:O,webSocketIns:T.current}}function Tn(e,t){var n=(0,r.useRef)({});(0,r.useEffect)((function(){if(n.current){var r=Object.keys((0,o.__assign)((0,o.__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"}(_n||(_n={}));var An=function(e,t,n){void 0===n&&(n={});var r=d(e);Be((function(){var e=K(t);if(e){var i=new MutationObserver(r.current);return i.observe(e,n),function(){i&&i.disconnect()}}}),[n],t)}},99360:function(e,t,n){"use strict";var r=n(5057),i=n(89141),o=n(59818);t.Z=function(e){o.Z&&((0,i.mf)(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof 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=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(this,e)}),n.current}},39861:function(e,t,n){"use strict";var r=n(9161),i=n(5057);t.Z=function(){var e=(0,r.__read)((0,i.useState)({}),2)[1];return(0,i.useCallback)((function(){return e({})}),[])}},89141:function(e,t,n){"use strict";n.d(t,{G7:function(){return c},HD:function(){return o},Kn:function(){return r},hj:function(){return a},jn:function(){return u},mf:function(){return i}});var r=function(e){return null!==e&&"object"===typeof e},i=function(e){return"function"===typeof e},o=function(e){return"string"===typeof e},u=function(e){return"boolean"===typeof e},a=function(e){return"number"===typeof e},c=function(e){return"undefined"===typeof e}},59818:function(e,t){"use strict";t.Z=!1},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):(a(n,"resize",r,!0),a(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),c(e,"resize",r,!0)),c(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 a=i(t);a&&this._unmonitorIntersections(a.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),a=this._rootContainsTarget(i),c=r.entry,s=e&&a&&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});c?e&&a?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.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,a=h(t),c=!1;!c&&a;){var f=null,v=1==a.nodeType?window.getComputedStyle(a):{};if("none"==v.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==e)n&&!this.root?!r||0==r.width&&0==r.height?(a=null,f=null,u=null):f=r:f=o;else{var p=h(a),m=p&&l(p),g=p&&this._computeTargetAndRootIntersection(p,m,o);m&&g?(a=p,f=d(m,g)):(a=null,u=null)}else{var _=a.ownerDocument;a!=_.body&&a!=_.documentElement&&"visible"!=v.overflow&&(f=l(a))}if(f&&(u=s(f,u)),!u)break;a=a&&h(a)}return u}},u.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=l(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=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 a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(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,a=r-n;return u>=0&&a>=0&&{top:n,bottom:r,left:i,right:o,width:u,height:a}||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 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,a=Math.min;e.exports=function(e,t,n){var c,s,l,f,d,v,h=0,p=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=c,r=s;return c=s=void 0,h=t,f=e.apply(r,n)}function y(e){var n=e-v;return void 0===v||n>=t||n<0||m&&e-h>=l}function b(){var e=i();if(y(e))return w(e);d=setTimeout(b,function(e){var n=t-(e-v);return m?a(n,l-(e-h)):n}(e))}function w(e){return d=void 0,g&&c?_(e):(c=s=void 0,f)}function E(){var e=i(),n=y(e);if(c=arguments,s=this,v=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(b,t),p?_(e):f}(v);if(m)return clearTimeout(d),d=setTimeout(b,t),_(v)}return void 0===d&&(d=setTimeout(b,t)),f}return t=o(t)||0,r(n)&&(p=!!n.leading,l=(m="maxWait"in n)?u(o(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=v=s=d=void 0},E.flush=function(){return void 0===d?f:w(i())},E}},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 a=(e=e||t.documentElement)[r.requestFullscreen](n);a instanceof Promise&&a.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}}()}}]);
|