@abtnode/webapp 1.16.6-beta-9e9fec72 → 1.16.6-beta-1fde60e3
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 +36 -35
- package/build/index.html +1 -1
- package/build/static/css/4691.cc1ab277.chunk.css +1 -0
- package/build/static/js/1366.1d344aa8.chunk.js +2 -0
- package/build/static/js/{9779.f84e9d58.chunk.js → 1371.f6abf65e.chunk.js} +1 -1
- package/build/static/js/1667.e892e657.chunk.js +1 -0
- package/build/static/js/2878.9b638eb1.chunk.js +1 -0
- package/build/static/js/3037.cc5d3d8a.chunk.js +1 -0
- package/build/static/js/3453.d7a4afde.chunk.js +2 -0
- package/build/static/js/3633.67f1416e.chunk.js +1 -0
- package/build/static/js/4274.22984e96.chunk.js +1 -0
- package/build/static/js/442.ed7bae8d.chunk.js +1 -0
- package/build/static/js/4517.c6d1a021.chunk.js +1 -0
- package/build/static/js/{4608.19aca3fc.chunk.js → 4608.d17624a8.chunk.js} +2 -2
- package/build/static/js/4691.82afa694.chunk.js +2 -0
- package/build/static/js/{519.62a15b1b.chunk.js → 519.0d9e0695.chunk.js} +1 -1
- package/build/static/js/5236.89fd74e3.chunk.js +2 -0
- package/build/static/js/5236.89fd74e3.chunk.js.LICENSE.txt +31 -0
- package/build/static/js/5873.e467bcef.chunk.js +2 -0
- package/build/static/js/{5984.ca24ac1d.chunk.js → 5984.6d4bc633.chunk.js} +1 -1
- package/build/static/js/6014.99086001.chunk.js +1 -0
- package/build/static/js/6780.c6efc1ec.chunk.js +1 -0
- package/build/static/js/6898.cf300f9c.chunk.js +2 -0
- package/build/static/js/7298.408e0855.chunk.js +1 -0
- package/build/static/js/{744.8b656dd2.chunk.js → 744.f4da0c57.chunk.js} +1 -1
- package/build/static/js/{8058.d71f2e07.chunk.js → 8058.17e4868a.chunk.js} +1 -1
- package/build/static/js/8352.9c2684aa.chunk.js +1 -0
- package/build/static/js/851.69afaaba.chunk.js +1 -0
- package/build/static/js/{9076.7dfc9ce4.chunk.js → 9076.150e000f.chunk.js} +1 -1
- package/build/static/js/9244.6c1f3ce8.chunk.js +1 -0
- package/build/static/js/9327.97924337.chunk.js +1 -0
- package/build/static/js/9711.c8c469a4.chunk.js +2 -0
- package/build/static/js/{7043.f8cab3e1.chunk.js.LICENSE.txt → 9711.c8c469a4.chunk.js.LICENSE.txt} +1 -1
- package/build/static/js/main.03bf974a.js +2 -0
- package/build/static/js/{main.7e518ad9.js.LICENSE.txt → main.03bf974a.js.LICENSE.txt} +3 -3
- package/build/static/media/iconify.26e4076719101e021ba0.cjs +2 -0
- package/package.json +1 -1
- package/build/static/css/4691.56c2f951.chunk.css +0 -1
- package/build/static/js/1366.6707269e.chunk.js +0 -2
- package/build/static/js/1667.9191c25c.chunk.js +0 -1
- package/build/static/js/2878.be9568bc.chunk.js +0 -1
- package/build/static/js/2879.44b63eaf.chunk.js +0 -2
- package/build/static/js/2879.44b63eaf.chunk.js.LICENSE.txt +0 -22
- package/build/static/js/3037.ed2bb752.chunk.js +0 -1
- package/build/static/js/3453.5ca9959b.chunk.js +0 -2
- package/build/static/js/3633.8c7cf02d.chunk.js +0 -1
- package/build/static/js/4274.e18ffddd.chunk.js +0 -1
- package/build/static/js/4517.b93ba337.chunk.js +0 -1
- package/build/static/js/4682.fc9fc6aa.chunk.js +0 -1
- package/build/static/js/4691.854b6856.chunk.js +0 -2
- package/build/static/js/6780.64314507.chunk.js +0 -1
- package/build/static/js/6898.6fe0c32d.chunk.js +0 -2
- package/build/static/js/7043.f8cab3e1.chunk.js +0 -2
- package/build/static/js/7298.92c2419a.chunk.js +0 -1
- package/build/static/js/8352.d3763940.chunk.js +0 -1
- package/build/static/js/8464.b4b82828.chunk.js +0 -1
- package/build/static/js/851.447224fb.chunk.js +0 -1
- package/build/static/js/9244.2bbab0af.chunk.js +0 -1
- package/build/static/js/9327.a84f2ae6.chunk.js +0 -2
- package/build/static/js/main.7e518ad9.js +0 -2
- package/build/static/media/iconify.32b54549e843e448ee9b.cjs +0 -2
- /package/build/static/css/{4682.f696fdbf.chunk.css → 1371.f696fdbf.chunk.css} +0 -0
- /package/build/static/css/{5245.5d6e9197.chunk.css → 4665.5d6e9197.chunk.css} +0 -0
- /package/build/static/css/{2879.5ade355d.chunk.css → 5236.5ade355d.chunk.css} +0 -0
- /package/build/static/css/{9779.f696fdbf.chunk.css → 6014.f696fdbf.chunk.css} +0 -0
- /package/build/static/js/{1366.6707269e.chunk.js.LICENSE.txt → 1366.1d344aa8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3453.5ca9959b.chunk.js.LICENSE.txt → 3453.d7a4afde.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4608.19aca3fc.chunk.js.LICENSE.txt → 4608.d17624a8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4691.854b6856.chunk.js.LICENSE.txt → 4691.82afa694.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9327.a84f2ae6.chunk.js.LICENSE.txt → 5873.e467bcef.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6898.6fe0c32d.chunk.js.LICENSE.txt → 6898.cf300f9c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/media/{iconify.32b54549e843e448ee9b.cjs.LICENSE.txt → iconify.26e4076719101e021ba0.cjs.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6780],{79777:function(e,t,n){n.d(t,{C:function(){return s},P:function(){return l},R:function(){return u}});var r=n(9249),a=n(87371),i=Object.defineProperty,o=function(e,t){return i(e,"name",{value:t,configurable:!0})},s=function(){function e(t){var n=this;(0,r.Z)(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,a=null;"string"===typeof e?(a=new RegExp(e,arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"i":"g").test(n._sourceText.substr(n._pos,e.length)),r=e):e instanceof RegExp&&(r=null===(a=n._sourceText.slice(n._pos).match(e))||void 0===a?void 0:a[0]);return!(null==a||!("string"===typeof e||a instanceof Array&&n._sourceText.startsWith(a[0],n._pos)))&&(t&&(n._start=n._pos,r&&r.length&&(n._pos+=r.length)),a)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0!==e.length)for(var r=e[0],a=0;r.length>a;)9===r.charCodeAt(a)?t+=2:t++,a++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return(0,a.Z)(e,[{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t)}}]),e}();o(s,"CharacterStream");var u=function(){function e(t,n){var a=this;(0,r.Z)(this,e),this.containsPosition=function(e){return a.start.line===e.line?a.start.character<=e.character:a.end.line===e.line?a.end.character>=e.character:a.start.line<=e.line&&a.end.line>=e.line},this.start=t,this.end=n}return(0,a.Z)(e,[{key:"setStart",value:function(e,t){this.start=new l(e,t)}},{key:"setEnd",value:function(e,t){this.end=new l(e,t)}}]),e}();o(u,"Range");var l=function(){function e(t,n){var a=this;(0,r.Z)(this,e),this.lessThanOrEqualTo=function(e){return a.line<e.line||a.line===e.line&&a.character<=e.character},this.line=t,this.character=n}return(0,a.Z)(e,[{key:"setLine",value:function(e){this.line=e}},{key:"setCharacter",value:function(e){this.character=e}}]),e}();o(l,"Position")},66780:function(e,t,n){n.r(t);var r,a=n(56666),i=n(48262),o=n(1367),s=n(8590),u=n(63669),l=n(15617),c=n(77916),f=n(86066),p=n(52546),v=n(84646),h=n(23453),d=n(92793),g=n(65915),m=n(83703),y=n(14141),_=n(5826),k=n(77382),S=n(27499),x=n(72996),b=n(60844),C=n(56327),T=n(92460),w=n(31478),R=n(43113),A=(n(96872),n(79777)),P=n(13693),L=(n(5057),n(53627),Object.defineProperty),E=function(e,t){return L(e,"name",{value:t,configurable:!0})},O=[o.t,s.q,u.P,l.L,c.y,f.o,p.I,v.J,h.k,d.g,g.L,m.P];function Z(e,t,n,r,a){var i=y.i.filter((function(e){return e!==_.J&&e!==k.i&&(!r||e!==S.a)}));return n&&Array.prototype.push.apply(i,n),a&&Array.prototype.push.apply(i,O),(0,x.Gu)(e,t,i).filter((function(e){if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){var t=e.nodes[0];if(t&&t.kind===b.h.DIRECTIVE){var n=t.name.value;if("arguments"===n||"argumentDefinitions"===n)return!1}}return!0}))}E(Z,"validateWithCustomRules");var Q="Error",W="Warning",G="Information",I="Hint",j=(r={},(0,a.Z)(r,Q,1),(0,a.Z)(r,W,2),(0,a.Z)(r,G,3),(0,a.Z)(r,I,4),r),D=E((function(e,t){if(!e)throw new Error(t)}),"invariant");function N(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=null;o&&(e+="string"===typeof o?"\n\n"+o:"\n\n"+o.reduce((function(e,t){return e+=(0,C.S)(t)+"\n\n"}),""));try{s=(0,T.Qc)(e)}catch(l){if(l instanceof w.__){var u=B(null!==(n=null===(t=l.locations)||void 0===t?void 0:t[0])&&void 0!==n?n:{line:0,column:0},e);return[{severity:j.Error,message:l.message,source:"GraphQL: Syntax",range:u}]}throw l}return q(s,r,a,i)}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return[];var n=U(Z(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0),(function(e){return V(e,j.Error,"Validation")})),r=U((0,x.Gu)(t,e,[R.r]),(function(e){return V(e,j.Warning,"Deprecation")}));return n.concat(r)}function U(e,t){return Array.prototype.concat.apply([],e.map(t))}function V(e,t,n){if(!e.nodes)return[];var r=[];return e.nodes.forEach((function(a){var i="Variable"!==a.kind&&"name"in a&&void 0!==a.name?a.name:"variable"in a&&void 0!==a.variable?a.variable:a;if(i){D(e.locations,"GraphQL validation error requires locations.");var o=e.locations[0],s=H(i),u=o.column+(s.end-s.start);r.push({source:"GraphQL: ".concat(n),message:e.message,severity:t,range:new A.R(new A.P(o.line-1,o.column-1),new A.P(o.line-1,u))})}})),r}function B(e,t){var n=(0,P.o)(),r=n.startState(),a=t.split("\n");D(a.length>=e.line,"Query text must have more lines than where the error happened");for(var i=null,o=0;o<e.line;o++)for(i=new A.C(a[o]);!i.eol();){if("invalidchar"===n.token(i,r))break}D(i,"Expected Parser stream to be available.");var s=e.line-1,u=i.getStartOfToken(),l=i.getCurrentPosition();return new A.R(new A.P(s,u),new A.P(s,l))}function H(e){var t=e.loc;return D(t,"Expected ASTNode to have a location."),t}E(N,"getDiagnostics"),E(q,"validateQuery"),E(U,"mapCat"),E(V,"annotations"),E(B,"getRange"),E(H,"getLocation");var J=["error","warning","information","hint"],M={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};i.C.registerHelper("lint","graphql",(function(e,t){return N(e,t.schema,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?J[e.severity-1]:J[0],type:e.source?M[e.source]:void 0,from:i.C.Pos(e.range.start.line,e.range.start.character),to:i.C.Pos(e.range.end.line,e.range.end.character)}}))}))},13693:function(e,t,n){n.d(t,{o:function(){return s}});var r=n(96872),a=n(60844),i=Object.defineProperty,o=function(e,t){return i(e,"name",{value:t,configurable:!0})};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(r.i)},lexRules:r.L,parseRules:r.P,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return f(e.parseRules,t,a.h.DOCUMENT),t},token:function(t,n){return u(t,n,e)}}}function u(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");var a=n.lexRules,i=n.parseRules,o=n.eatWhitespace,s=n.editorConfig;if(t.rule&&0===t.rule.length?p(t):t.needsAdvance&&(t.needsAdvance=!1,v(t,!0)),e.sol()){var u=(null===s||void 0===s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/u)}if(o(e))return"ws";var h=g(a,e);if(!h)return e.match(/\S+/)||e.match(/\s/),f(c,t,"Invalid"),"invalidchar";if("Comment"===h.kind)return f(c,t,"Comment"),"comment";var m=l({},t);if("Punctuation"===h.kind)if(/^[{([]/.test(h.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(h.value)){var y=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&y.length>0&&y[y.length-1]<t.indentLevel&&(t.indentLevel=y[y.length-1])}for(;t.rule;){var _="function"===typeof t.rule?0===t.step?t.rule(h,e):null:t.rule[t.step];if(t.needsSeparator&&(_=null===_||void 0===_?void 0:_.separator),_){if(_.ofRule&&(_=_.ofRule),"string"===typeof _){f(i,t,_);continue}if(null===(r=_.match)||void 0===r?void 0:r.call(_,h))return _.update&&_.update(t,h),"Punctuation"===h.kind?v(t,!0):t.needsAdvance=!0,_.style}d(t)}return l(t,m),f(c,t,"Invalid"),"invalidchar"}function l(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}o(s,"onlineParser"),o(u,"getToken"),o(l,"assign");var c={Invalid:[],Comment:[]};function f(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function p(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function v(e,t){var n;if(h(e)&&e.rule){var r=e.rule[e.step];if(r.separator){var a=r.separator;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&a.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)p(e),e.rule&&(h(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function h(e){var t=Array.isArray(e.rule)&&"string"!==typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function d(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)p(e);e.rule&&v(e,!1)}function g(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var a=t.match(e[n[r]]);if(a&&a instanceof Array)return{kind:n[r],value:a[0]}}}o(f,"pushRule"),o(p,"popRule"),o(v,"advanceRule"),o(h,"isList"),o(d,"unsuccessful"),o(g,"lex")}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 6898.cf300f9c.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 b},configResponsive:function(){return Ct},createUpdateEffect:function(){return i},useAntdTable:function(){return K},useAsyncEffect:function(){return J},useBoolean:function(){return Q},useClickAway:function(){return re},useControllableValue:function(){return ie},useCookieState:function(){return ae},useCountDown:function(){return fe},useCounter:function(){return ve},useCreation:function(){return m},useDebounce:function(){return pe},useDebounceEffect:function(){return me},useDebounceFn:function(){return he},useDeepCompareEffect:function(){return be},useDeepCompareLayoutEffect:function(){return we},useDocumentVisibility:function(){return Te},useDrag:function(){return Ae},useDrop:function(){return Re},useDynamicList:function(){return Le},useEventEmitter:function(){return ke},useEventListener:function(){return Ee},useEventTarget:function(){return xe},useExternal:function(){return Me},useFavicon:function(){return Ie},useFocusWithin:function(){return Ne},useFullscreen:function(){return ze},useFusionTable:function(){return je},useGetState:function(){return Ve},useHistoryTravel:function(){return qe},useHover:function(){return Be},useInViewport:function(){return Ye},useInfiniteScroll:function(){return We},useInterval:function(){return Ue},useIsomorphicLayoutEffect:function(){return Xe},useKeyPress:function(){return Ze},useLatest:function(){return g},useLocalStorageState:function(){return tt},useLockFn:function(){return nt},useLongPress:function(){return it},useMap:function(){return ot},useMemoizedFn:function(){return f},useMount:function(){return q},useMouse:function(){return st},useMutationObserver:function(){return Ln},useNetwork:function(){return dt},usePagination:function(){return G},usePrevious:function(){return ht},useRafInterval:function(){return mt},useRafState:function(){return at},useRafTimeout:function(){return _t},useReactive:function(){return Tt},useRequest:function(){return X},useResetState:function(){return At},useResponsive:function(){return Mt},useSafeState:function(){return It},useScroll:function(){return Nt},useSelections:function(){return Dt},useSessionStorageState:function(){return Pt},useSet:function(){return zt},useSetState:function(){return jt},useSize:function(){return fn},useTextSelection:function(){return hn},useThrottle:function(){return mn},useThrottleEffect:function(){return gn},useThrottleFn:function(){return pn},useTimeout:function(){return _n},useTitle:function(){return wn},useToggle:function(){return $},useTrackedEffect:function(){return En},useUnmount:function(){return _},useUnmountedRef:function(){return Ft},useUpdate:function(){return B},useUpdateEffect:function(){return d},useUpdateLayoutEffect:function(){return Sn},useVirtualList:function(){return Tn},useWebSocket:function(){return An},useWhyDidYouUpdate:function(){return Rn}});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=function(e){return null!==e&&"object"===typeof e},a=function(e){return"function"===typeof e},c=function(e){return"string"===typeof e},s=function(e){return"number"===typeof e},l=!1;var f=function(e){l&&(a(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},d=i(r.useEffect),v=function(e,t){var n=t.manual,i=t.ready,u=void 0===i||i,a=t.defaultParams,c=void 0===a?[]:a,s=t.refreshDeps,l=void 0===s?[]:s,f=t.refreshDepsAction,v=(0,r.useRef)(!1);return v.current=!1,d((function(){!n&&u&&(v.current=!0,e.run.apply(e,(0,o.__spreadArray)([],(0,o.__read)(c),!1)))}),[u]),d((function(){v.current||n||(v.current=!0,f?f():e.refresh())}),(0,o.__spreadArray)([],(0,o.__read)(l),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};v.onInit=function(e){var t=e.ready,n=void 0===t||t;return{loading:!e.manual&&n}};var h=v;function p(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 m(e,t){var n=(0,r.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==n.initialized&&p(n.deps,t)||(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}var g=function(e){var t=(0,r.useRef)(e);return t.current=e,t},_=function(e){l&&(a(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=g(e);(0,r.useEffect)((function(){return function(){t.current()}}),[])},y=new Map,b=function(e){e?(Array.isArray(e)?e:[e]).forEach((function(e){return y.delete(e)})):y.clear()},w=new Map,E={},S=function(e,t){return E[e]||(E[e]=[]),E[e].push(t),function(){var n=E[e].indexOf(t);E[e].splice(n,1)}},T=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,f=(0,r.useRef)(),d=(0,r.useRef)(),v=function(e,t){s?s(t):function(e,t,n){var r=y.get(e);(null===r||void 0===r?void 0:r.timer)&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout((function(){y.delete(e)}),t)),y.set(e,(0,o.__assign)((0,o.__assign)({},n),{timer:i}))}(e,u,t),function(e,t){E[e]&&E[e].forEach((function(e){return e(t)}))}(e,t.data)},h=function(e,t){return void 0===t&&(t=[]),l?l(t):function(e){return y.get(e)}(e)};return m((function(){if(n){var t=h(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)),f.current=S(n,(function(t){e.setState({data:t})}))}}),[]),_((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===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 w.get(e)}(n);return r&&r!==d.current||(r=e.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(t),!1)),d.current=r,function(e,t){w.set(e,t),t.then((function(t){return w.delete(e),t})).catch((function(){w.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=S(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=S(n,(function(t){e.setState({data:t})})))}}:{}},A=n(67047),R=n.n(A),L=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=R()((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()}}:{}},O=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()}}},k=!("undefined"===typeof window||!window.document||!window.document.createElement);function x(){return!k||"hidden"!==document.visibilityState}var C=[];if(k){window.addEventListener("visibilitychange",(function(){if(x())for(var e=0;e<C.length;e++){(0,C[e])()}}),!1)}var M=function(e){return C.push(e),function(){var t=C.indexOf(e);C.splice(t,1)}},F=function(e,t){var n=t.pollingInterval,i=t.pollingWhenHidden,o=void 0===i||i,u=t.pollingErrorRetryCount,a=void 0===u?-1:u,c=(0,r.useRef)(),s=(0,r.useRef)(),l=(0,r.useRef)(0),f=function(){var e;c.current&&clearTimeout(c.current),null===(e=s.current)||void 0===e||e.call(s)};return d((function(){n||f()}),[n]),n?{onBefore:function(){f()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){-1===a||-1!==a&&l.current<=a?c.current=setTimeout((function(){o||x()?e.refresh():s.current=M((function(){e.refresh()}))}),n):l.current=0},onCancel:function(){f()}}:{}};var I=[];if(k){var N=function(){if(x()&&(!k||"undefined"===typeof navigator.onLine||navigator.onLine))for(var e=0;e<I.length;e++){(0,I[e])()}};window.addEventListener("visibilitychange",N,!1),window.addEventListener("focus",N,!1)}var D=function(e){return I.push(e),function(){var t=I.indexOf(e);t>-1&&I.splice(t,1)}},P=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=D((function(){t()}))}return function(){c()}}),[n,u]),_((function(){c()})),{}},z=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)}}:{}},j=n(8406),V=n.n(j),H=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=V()((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()}}:{}},q=function(e){l&&(a(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()}),[])},B=function(){var e=(0,o.__read)((0,r.useState)({}),2)[1];return(0,r.useCallback)((function(){return e({})}),[])},W=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=a(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})},e}(),U=W;var Y=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=t.manual,i=void 0!==r&&r,u=(0,o.__rest)(t,["manual"]);l&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var a=(0,o.__assign)({manual:i},u),c=g(e),s=B(),d=m((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,a)})).filter(Boolean);return new U(c,a,s,Object.assign.apply(Object,(0,o.__spreadArray)([{}],(0,o.__read)(e),!1)))}),[]);return d.options=a,d.pluginImpls=n.map((function(e){return e(d,a)})),q((function(){if(!i){var e=d.state.params||t.defaultParams||[];d.run.apply(d,(0,o.__spreadArray)([],(0,o.__read)(e),!1))}})),_((function(){d.cancel()})),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:f(d.cancel.bind(d)),refresh:f(d.refresh.bind(d)),refreshAsync:f(d.refreshAsync.bind(d)),run:f(d.run.bind(d)),runAsync:f(d.runAsync.bind(d)),mutate:f(d.mutate.bind(d))}};var X=function(e,t,n){return Y(e,t,(0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(n||[]),!1),[L,O,F,P,H,h,T,z],!1))},G=function(e,t){var n;void 0===t&&(t={});var i=t.defaultPageSize,u=void 0===i?10:i,a=t.defaultCurrent,c=void 0===a?1:a,s=(0,o.__rest)(t,["defaultPageSize","defaultCurrent"]),l=X(e,(0,o.__assign)({defaultParams:[{current:c,pageSize:u}],refreshDepsAction:function(){b(1)}},s)),d=l.params[0]||{},v=d.current,h=void 0===v?1:v,p=d.pageSize,m=void 0===p?u:p,g=(null===(n=l.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)(l.params||[]),a=u[0],c=void 0===a?{}:a,s=u.slice(1);l.run.apply(l,(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)({},l),{pagination:{current:h,pageSize:m,total:g,totalPage:_,onChange:f(y),changeCurrent:f(b),changePageSize:f((function(e){y(h,e)}))}})},K=function(e,t){var n;void 0===t&&(t={});var i=t.form,u=t.defaultType,a=void 0===u?"simple":u,c=t.defaultParams,s=t.manual,l=void 0!==s&&s,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"]),_=G(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)||a),2),T=S[0],A=S[1],R=(0,r.useRef)({}),L=(0,r.useRef)([]),O=!!(null===i||void 0===i?void 0:i.getInternalHooks),k=function(){if(!i)return{};if(O)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},x=function(){if(i){if(O)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=k(),t=Object.keys(e);return O?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)||{},x(),void w.apply(void 0,(0,o.__spreadArray)([],(0,o.__read)(b),!1));!l&&m&&(R.current=(null===c||void 0===c?void 0:c[1])||{},x(),C(null===c||void 0===c?void 0:c[0]))}),[]),d((function(){m&&x()}),[T]);var M=(0,r.useRef)(!1);return M.current=!1,d((function(){!l&&m&&(M.current=!0,i&&i.resetFields(),R.current=(null===c||void 0===c?void 0:c[1])||{},x(),C(null===c||void 0===c?void 0:c[0]))}),[m]),d((function(){M.current||m&&(l||(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:f((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:f((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:f((function(){var e=k();R.current=(0,o.__assign)((0,o.__assign)({},R.current),e),A((function(e){return"simple"===e?"advance":"simple"}))})),reset:f((function(){i&&i.resetFields(),C((null===c||void 0===c?void 0:c[0])||{pageSize:t.defaultPageSize||10,current:1})}))}})};var J=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(!a(t[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]}}))}))}(),function(){n=!0}}),t)};var $=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 Q(e){void 0===e&&(e=!1);var t=(0,o.__read)($(!!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 Z(e,t){if(k)return e?a(e)?e():"current"in e?e.current:e:t}var ee=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=Z(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=Z(n[0]))?t.getRootNode():document},te=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 Z(e)}));if(!o.current)return o.current=!0,u.current=r,a.current=n,void(c.current=t());r.length===u.current.length&&p(r,u.current)&&p(n,a.current)||(null===(e=c.current)||void 0===e||e.call(c),u.current=r,a.current=n,c.current=t())})),_((function(){var e;null===(e=c.current)||void 0===e||e.call(c),o.current=!1}))}},ne=te(r.useEffect);function re(e,t,n){void 0===n&&(n="click");var r=g(e);ne((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=Z(t);return!n||n.contains(e.target)}))||r.current(e)},i=ee(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 ie=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.defaultValue,i=t.defaultValuePropName,u=void 0===i?"defaultValue":i,c=t.valuePropName,s=void 0===c?"value":c,l=t.trigger,d=void 0===l?"onChange":l,v=e[s],h=e.hasOwnProperty(s),p=(0,r.useMemo)((function(){return h?v:e.hasOwnProperty(u)?e[u]:n}),[]),m=(0,r.useRef)(p);h&&(m.current=v);var g=B();return[m.current,f((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=a(t)?t(m.current):t;h||(m.current=i,g()),e[d]&&e[d].apply(e,(0,o.__spreadArray)([i],(0,o.__read)(n),!1))}))]},oe=n(4899),ue=n.n(oe);var ae=function(e,t){void 0===t&&(t={});var n=(0,o.__read)((0,r.useState)((function(){var n=ue().get(e);return c(n)?n:a(t.defaultValue)?t.defaultValue():t.defaultValue})),2),i=n[0],u=n[1],s=f((function(n,r){void 0===r&&(r={});var c=(0,o.__assign)((0,o.__assign)({},t),r),s=(c.defaultValue,(0,o.__rest)(c,["defaultValue"])),l=a(n)?n(i):n;u(l),void 0===l?ue().remove(e):ue().set(e,l,s)}));return[i,s]},ce=n(74410),se=n.n(ce),le=function(e){if(!e)return 0;var t=se()(e).valueOf()-Date.now();return t<0?0:t},fe=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,l=(0,r.useMemo)((function(){return"leftTime"in e?s(n)&&n>0?Date.now()+n:void 0:i}),[n,i]),f=(0,o.__read)((0,r.useState)((function(){return le(l)})),2),d=f[0],v=f[1],h=g(c);(0,r.useEffect)((function(){if(l){v(le(l));var e=setInterval((function(){var t,n=le(l);v(n),0===n&&(clearInterval(e),null===(t=h.current)||void 0===t||t.call(h))}),a);return function(){return clearInterval(e)}}v(0)}),[l,a]);var p=(0,r.useMemo)((function(){return e=d,{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}),[d]);return[d,p]};function de(e,t){void 0===t&&(t={});var n=t.min,r=t.max,i=e;return s(r)&&(i=Math.min(r,i)),s(n)&&(i=Math.max(n,i)),i}var ve=function(e,t){void 0===e&&(e=0),void 0===t&&(t={});var n=t.min,i=t.max,u=(0,o.__read)((0,r.useState)((function(){return de(e,{min:n,max:i})})),2),a=u[0],c=u[1],l=function(e){c((function(t){return de(s(e)?e:e(t),{max:i,min:n})}))};return[a,{inc:f((function(e){void 0===e&&(e=1),l((function(t){return t+e}))})),dec:f((function(e){void 0===e&&(e=1),l((function(t){return t-e}))})),set:f((function(e){l(e)})),reset:f((function(){l(e)}))}]};var he=function(e,t){var n;l&&(a(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var i=g(e),u=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,c=(0,r.useMemo)((function(){return R()((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 _((function(){c.cancel()})),{run:c,cancel:c.cancel,flush:c.flush}};var pe=function(e,t){var n=(0,o.__read)((0,r.useState)(e),2),i=n[0],u=n[1],a=he((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),i};var me=function(e,t,n){var i=(0,o.__read)((0,r.useState)({}),2),u=i[0],a=i[1],c=he((function(){a({})}),n).run;(0,r.useEffect)((function(){return c()}),t),d(e,[u])},ge=n(50482),_e=n.n(ge),ye=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=[]),_e()(i,o))||(u.current=n,a.current+=1),e(t,[a.current])}},be=ye(r.useEffect),we=ye(r.useLayoutEffect);var Ee=function(e,t,n){void 0===n&&(n={});var r=g(t);ne((function(){var t=Z(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)},Se=function(){return k?document.visibilityState:"visible"};var Te=function(){var e=(0,o.__read)((0,r.useState)((function(){return Se()})),2),t=e[0],n=e[1];return Ee("visibilitychange",(function(){n(Se())}),{target:function(){return document}}),t},Ae=function(e,t,n){void 0===n&&(n={});var r=g(n),i=g(e);ne((function(){var e=Z(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)},Re=function(e,t){void 0===t&&(t={});var n=g(t),i=(0,r.useRef)();ne((function(){var t=Z(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)},Le=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}},Oe=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 ke(){var e=(0,r.useRef)();return e.current||(e.current=new Oe),e.current}var xe=function(e){var t=e||{},n=t.initialValue,i=t.transformer,u=(0,o.__read)((0,r.useState)(n),2),c=u[0],s=u[1],l=g(i),f=(0,r.useCallback)((function(){return s(n)}),[]);return[c,{onChange:(0,r.useCallback)((function(e){var t=e.target.value;return a(l.current)?s(l.current(t)):s(t)}),[]),reset:f}]},Ce={},Me=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===Ce[e]?Ce[e]=1:Ce[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 t,n,r;null===(t=a.current)||void 0===t||t.removeEventListener("load",i),null===(n=a.current)||void 0===n||n.removeEventListener("error",i),Ce[e]-=1,0===Ce[e]&&(null===(r=a.current)||void 0===r||r.remove()),a.current=void 0}}}else u("unset")}),[e]),i},Fe={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},Ie=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=Fe[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function Ne(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 Ee("focusin",(function(e){i||(null===c||void 0===c||c(e),null===l||void 0===l||l(!0),u(!0))}),{target:e}),Ee("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 De=n(20026),Pe=n.n(De),ze=function(e,t){var n=t||{},i=n.onExit,u=n.onEnter,a=n.pageFullscreen,c=void 0!==a&&a,s="boolean"!==typeof c&&c?c:{},l=s.className,d=void 0===l?"ahooks-page-fullscreen":l,v=s.zIndex,h=void 0===v?999999:v,p=g(i),m=g(u),y=(0,o.__read)((0,r.useState)(!1),2),b=y[0],w=y[1],E=function(e){var t,n;e?null===(t=m.current)||void 0===t||t.call(m):null===(n=p.current)||void 0===n||n.call(p)},S=f((function(){if(Pe().isEnabled){var t=Z(e);if(Pe().element){var n=Pe().element===t;E(n),w(n)}else E(!1),w(!1),Pe().off("change",S)}})),T=function(t){var n=Z(e);if(n){var r=document.getElementById(d);t?(n.classList.add(d),r||((r=document.createElement("style")).setAttribute("id",d),r.textContent="\n .".concat(d," {\n position: fixed; left: 0; top: 0; right: 0; bottom: 0;\n width: 100% !important; height: 100% !important;\n z-index: ").concat(h,";\n }"),n.appendChild(r))):(n.classList.remove(d),r&&r.remove()),b!==t&&(E(t),w(t))}},A=function(){var t=Z(e);if(t)if(c)T(!0);else if(Pe().isEnabled)try{Pe().request(t),Pe().on("change",S)}catch(n){console.error(n)}},R=function(){var t=Z(e);t&&(c?T(!1):Pe().isEnabled&&Pe().element===t&&Pe().exit())};return _((function(){Pe().isEnabled&&!c&&Pe().off("change",S)})),[b,{enterFullscreen:f(A),exitFullscreen:f(R),toggleFullscreen:f((function(){b?R():A()})),isEnabled:Pe().isEnabled}]},je=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})}(K(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 Ve=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}),[])]},He=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 qe(e,t){void 0===t&&(t=0);var n=(0,o.__read)((0,r.useState)({present:e,past:[],future:[]}),2),i=n[0],u=n[1],a=i.present,c=i.past,l=i.future,d=(0,r.useRef)(e),v=function(e){var t=s(e)?e:Number(e);if(0!==t)return t>0?function(e){if(void 0===e&&(e=1),0!==l.length){var t=He(e,l),n=t._before,r=t._current,i=t._after;u({past:(0,o.__spreadArray)((0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(c),!1),[a],!1),(0,o.__read)(n),!1),present:r,future:i})}}(t):void function(e){if(void 0===e&&(e=-1),0!==c.length){var t=He(e,c),n=t._before,r=t._current,i=t._after;u({past:n,present:r,future:(0,o.__spreadArray)((0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(i),!1),[a],!1),(0,o.__read)(l),!1)})}}(t)};return{value:a,backLength:c.length,forwardLength:l.length,setValue:f((function(e){var n=(0,o.__spreadArray)((0,o.__spreadArray)([],(0,o.__read)(c),!1),[a],!1),r=s(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),u({present:e,future:[],past:n})})),go:f(v),back:f((function(){v(-1)})),forward:f((function(){v(1)})),reset:f((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length>0?e[0]:d.current;d.current=n,u({present:n,future:[],past:[]})}))}}var Be=function(e,t){var n=t||{},r=n.onEnter,i=n.onLeave,u=n.onChange,a=(0,o.__read)(Q(!1),2),c=a[0],s=a[1],l=s.setTrue,f=s.setFalse;return Ee("mouseenter",(function(){null===r||void 0===r||r(),l(),null===u||void 0===u||u(!0)}),{target:e}),Ee("mouseleave",(function(){null===i||void 0===i||i(),f(),null===u||void 0===u||u(!1)}),{target:e}),c},We=function(e,t){void 0===t&&(t={});var n=t.target,i=t.isNoMore,u=t.threshold,a=void 0===u?100:u,c=t.reloadDeps,s=void 0===c?[]:c,l=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=X((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:l,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,O=T.cancel,k=f((function(){S||(E(!0),R(_))})),x=f((function(){return S?Promise.reject():(E(!0),L(_))})),C=function(){var e=Z(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+a&&k()}};return Ee("scroll",(function(){A||w||C()}),{target:n}),d((function(){R()}),(0,o.__spreadArray)([],(0,o.__read)(s),!1)),{data:_,loading:!w&&A,loadingMore:w,noMore:S,loadMore:k,loadMoreAsync:x,reload:f((function(){return E(!1),R()})),reloadAsync:f((function(){return E(!1),L()})),mutate:y,cancel:O}},Ue=function(e,t,n){void 0===n&&(n={});var i=f(e),o=(0,r.useRef)(null),u=(0,r.useCallback)((function(){o.current&&clearInterval(o.current)}),[]);return(0,r.useEffect)((function(){if(s(t)&&!(t<0))return n.immediate&&i(),o.current=setInterval(i,t),u}),[t]),u};n(53634);var Ye=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 ne((function(){var n=Z(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:Z(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]},Xe=k?r.useLayoutEffect:r.useEffect,Ge=function(e,t,n){var i,o,u=(0,r.useRef)(),a=(0,r.useRef)(0);i=t,void 0===(o=u.current)&&(o=[]),_e()(i,o)||(u.current=t,a.current+=1),ne(e,[a.current],n)},Ke={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},Je={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?Ke.meta.includes(e.keyCode):e.metaKey}};function $e(e,t,n){var r,i;if(!e.key)return!1;if(s(t))return e.keyCode===t;var u=t.split("."),a=0;try{for(var c=(0,o.__values)(u),l=c.next();!l.done;l=c.next()){var f=l.value,d=Je[f],v=Ke[f.toLowerCase()];(d&&d(e)||v&&v===e.keyCode)&&a++}}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return n?a===u.length&&function(e){var t=Object.keys(Je).reduce((function(t,n){return Je[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 Qe=["keydown"];var Ze=function(e,t,n){var r=n||{},i=r.events,u=void 0===i?Qe:i,l=r.target,f=r.exactMatch,d=void 0!==f&&f,v=r.useCapture,h=void 0!==v&&v,p=g(t),m=g(e);Ge((function(){var e,t,n,r=Z(l,window);if(r){var i=function(e){var t,n=function(e,t){return a(e)?e:c(e)||s(e)?function(n){return $e(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return $e(n,e,t)}))}:function(){return Boolean(e)}}(m.current,d);if(n(e))return null===(t=p.current)||void 0===t?void 0:t.call(p,e)};try{for(var f=(0,o.__values)(u),v=f.next();!v.done;v=f.next()){var g=v.value;null===(n=null===r||void 0===r?void 0:r.addEventListener)||void 0===n||n.call(r,g,i,h)}}catch(_){e={error:_}}finally{try{v&&!v.done&&(t=f.return)&&t.call(f)}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,h)}}catch(l){e={error:l}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}}}),[u],l)};function et(e){return function(t,n){var i;try{i=e()}catch(v){console.error(v)}function u(){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 a(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 c=(0,o.__read)((0,r.useState)((function(){return u()})),2),s=c[0],l=c[1];return d((function(){l(u())}),[t]),[s,f((function(e){var r=a(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 tt=et((function(){return k?localStorage:void 0}));var nt=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])},rt=k&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var it=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=g(e),f=g(c),d=g(s),v=(0,r.useRef)(),h=(0,r.useRef)(!1),p=(0,r.useRef)({x:0,y:0}),m=!!((null===a||void 0===a?void 0:a.x)&&a.x>0||(null===a||void 0===a?void 0:a.y)&&a.y>0);ne((function(){var e=Z(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(m){var t=c(e),n=t.clientX,r=t.clientY;p.current.x=n,p.current.y=r}v.current=setTimeout((function(){l.current(e),h.current=!0}),u)},r=function(e){v.current&&function(e){var t=c(e),n=t.clientX,r=t.clientY,i=Math.abs(n-p.current.x),o=Math.abs(r-p.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(v.current),v.current=void 0)},i=function(e,t){var n;void 0===t&&(t=!1),v.current&&clearTimeout(v.current),h.current&&(null===(n=d.current)||void 0===n||n.call(d,e)),t&&!h.current&&f.current&&f.current(e),h.current=!1},o=function(e){return i(e,!0)};return rt?(e.addEventListener("touchstart",n),e.addEventListener("touchend",o),m&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",o),e.addEventListener("mouseleave",i),m&&e.addEventListener("mousemove",r)),function(){v.current&&(clearTimeout(v.current),h.current=!1),rt?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",o),m&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",o),e.removeEventListener("mouseleave",i),m&&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 ot=function(e){var t=function(){return new Map(e)},n=(0,o.__read)((0,r.useState)(t),2),i=n[0],u=n[1];return[i,{set:f((function(e,t){u((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:f((function(e){u(new Map(e))})),remove:f((function(e){u((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:f((function(){return u(t())})),get:f((function(e){return i.get(e)}))}]};var ut,at=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 _((function(){cancelAnimationFrame(t.current)})),[i,a]},ct={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},st=function(e){var t=(0,o.__read)(at(ct),2),n=t[0],r=t[1];return Ee("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=Z(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 lt(){var e=navigator;return u(e)?e.connection||e.mozConnection||e.webkitConnection:null}function ft(){var e=lt();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"}(ut||(ut={}));var dt=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},ft())})),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),ft())}))};window.addEventListener(ut.ONLINE,e),window.addEventListener(ut.OFFLINE,t);var i=lt();return null===i||void 0===i||i.addEventListener(ut.CHANGE,r),function(){window.removeEventListener(ut.ONLINE,e),window.removeEventListener(ut.OFFLINE,t),null===i||void 0===i||i.removeEventListener(ut.CHANGE,r)}}),[]),t},vt=function(e,t){return!Object.is(e,t)};var ht=function(e,t){void 0===t&&(t=vt);var n=(0,r.useRef)(),i=(0,r.useRef)();return t(i.current,e)&&(n.current=i.current,i.current=e),n.current};var pt=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=g(e),u=(0,r.useRef)();return(0,r.useEffect)((function(){if(s(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&&pt(u.current)}}),[t]),(0,r.useCallback)((function(){u.current&&pt(u.current)}),[])};var gt=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var _t=function(e,t){var n=g(e),i=(0,r.useRef)();return(0,r.useEffect)((function(){if(s(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&>(i.current)}}),[t]),(0,r.useCallback)((function(){i.current&>(i.current)}),[])},yt=n(65873),bt=new WeakMap,wt=new WeakMap;function Et(e,t){var n=bt.get(e);if(n)return n;if(wt.has(e))return e;var r=new Proxy(e,{get:function(e,n,r){var i=Reflect.get(e,n,r);return(0,yt.isPlainObject)(i)||Array.isArray(i)?Et(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 bt.set(e,r),wt.set(r,e),r}var St,Tt=function(e){var t=B(),n=(0,r.useRef)(e);return m((function(){return Et(n.current,(function(){t()}))}),[])},At=function(e){var t=(0,o.__read)((0,r.useState)(e),2),n=t[0],i=t[1],u=f((function(){i(e)}));return[n,i,u]},Rt=new Set,Lt={xs:0,sm:576,md:768,lg:992,xl:1200};function Ot(){var e,t,n=St;if(xt(),n!==St)try{for(var r=(0,o.__values)(Rt),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 kt=!1;function xt(){var e,t,n=window.innerWidth,r={},i=!1;try{for(var u=(0,o.__values)(Object.keys(Lt)),a=u.next();!a.done;a=u.next()){var c=a.value;r[c]=n>=Lt[c],r[c]!==St[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&&(St=r)}function Ct(e){Lt=e,St&&xt()}function Mt(){k&&!kt&&(St={},xt(),window.addEventListener("resize",Ot),kt=!0);var e=(0,o.__read)((0,r.useState)(St),2),t=e[0],n=e[1];return(0,r.useEffect)((function(){if(k){kt||window.addEventListener("resize",Ot);var e=function(){n(St)};return Rt.add(e),function(){Rt.delete(e),0===Rt.size&&(window.removeEventListener("resize",Ot),kt=!1)}}}),[]),t}var Ft=function(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var It=function(e){var t=Ft(),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 Nt=function(e,t){void 0===t&&(t=function(){return!0});var n=(0,o.__read)(at(),2),r=n[0],i=n[1],u=g(t);return ne((function(){var t=Z(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 Dt(e,t){void 0===t&&(t=[]);var n=(0,o.__read)((0,r.useState)(t),2),i=n[0],u=n[1],a=(0,r.useMemo)((function(){return new Set(i)}),[i]),c=function(e){return a.has(e)},s=function(e){return a.add(e),u(Array.from(a))},l=function(e){return a.delete(e),u(Array.from(a))},d=function(){e.forEach((function(e){a.add(e)})),u(Array.from(a))},v=function(){e.forEach((function(e){a.delete(e)})),u(Array.from(a))},h=(0,r.useMemo)((function(){return e.every((function(e){return!a.has(e)}))}),[e,a]),p=(0,r.useMemo)((function(){return e.every((function(e){return a.has(e)}))&&!h}),[e,a,h]),m=(0,r.useMemo)((function(){return!h&&!p}),[h,p]);return{selected:i,noneSelected:h,allSelected:p,partiallySelected:m,setSelected:u,isSelected:c,select:f(s),unSelect:f(l),toggle:f((function(e){c(e)?l(e):s(e)})),selectAll:f(d),unSelectAll:f(v),toggleAll:f((function(){return p?v():d()}))}}var Pt=et((function(){return k?sessionStorage:void 0}));var zt=function(e){var t=function(){return new Set(e)},n=(0,o.__read)((0,r.useState)(t),2),i=n[0],u=n[1];return[i,{add:f((function(e){i.has(e)||u((function(t){var n=new Set(t);return n.add(e),n}))})),remove:f((function(e){i.has(e)&&u((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:f((function(){return u(t())}))}]},jt=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=a(e)?e(t):e;return n?(0,o.__assign)((0,o.__assign)({},t),n):t}))}),[])]},Vt=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}()}(),Ht="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,qt="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")(),Bt="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(qt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Wt=["top","right","bottom","left","width","height","size","weight"],Ut="undefined"!==typeof MutationObserver,Yt=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(){Bt(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(){Ht&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ut?(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(){Ht&&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;Wt.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}(),Xt=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},Gt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||qt},Kt=tn(0,0,0,0);function Jt(e){return parseFloat(e)||0}function $t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Jt(e["border-"+n+"-width"])}),0)}function Qt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Kt;var r=Gt(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]=Jt(o)}return t}(r),o=i.left+i.right,u=i.top+i.bottom,a=Jt(r.width),c=Jt(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=$t(r,"left","right")+o),Math.round(c+u)!==n&&(c-=$t(r,"top","bottom")+u)),!function(e){return e===Gt(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 tn(i.left,i.top,a,c)}var Zt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Gt(e).SVGGraphicsElement}:function(e){return e instanceof Gt(e).SVGElement&&"function"===typeof e.getBBox};function en(e){return Ht?Zt(e)?function(e){var t=e.getBBox();return tn(0,0,t.width,t.height)}(e):Qt(e):Kt}function tn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var nn=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=tn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=en(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}(),rn=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 Xt(u,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),u}(t);Xt(this,{target:e,contentRect:n})},on=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Vt,"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 Gt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new nn(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 Gt(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 rn(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}(),un="undefined"!==typeof WeakMap?new WeakMap:new Vt,an=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=Yt.getInstance(),r=new on(t,n,this);un.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){an.prototype[e]=function(){var t;return(t=un.get(this))[e].apply(t,arguments)}}));var cn="undefined"!==typeof qt.ResizeObserver?qt.ResizeObserver:an,sn=te(r.useLayoutEffect),ln=k?sn:ne;var fn=function(e){var t=(0,o.__read)(at((function(){var t=Z(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0})),2),n=t[0],r=t[1];return ln((function(){var t=Z(e);if(t){var n=new cn((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},dn={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},vn=(0,o.__assign)({text:""},dn);var hn=function(e){var t=(0,o.__read)((0,r.useState)(vn),2),n=t[0],i=t[1],u=(0,r.useRef)(n),a=(0,r.useRef)(!1);return u.current=n,ne((function(){var t=Z(e,document);if(t){var r=function(){var e,t=null,r=dn;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&a.current&&(r=function(e){if(!e)return dn;if(e.rangeCount<1)return dn;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)({},vn)),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 pn=function(e,t){var n;l&&(a(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var i=g(e),u=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,c=(0,r.useMemo)((function(){return V()((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 _((function(){c.cancel()})),{run:c,cancel:c.cancel,flush:c.flush}};var mn=function(e,t){var n=(0,o.__read)((0,r.useState)(e),2),i=n[0],u=n[1],a=pn((function(){u(e)}),t).run;return(0,r.useEffect)((function(){a()}),[e]),i};var gn=function(e,t,n){var i=(0,o.__read)((0,r.useState)({}),2),u=i[0],a=i[1],c=pn((function(){a({})}),n).run;(0,r.useEffect)((function(){return c()}),t),d(e,[u])},_n=function(e,t){var n=f(e),i=(0,r.useRef)(null),o=(0,r.useCallback)((function(){i.current&&clearTimeout(i.current)}),[]);return(0,r.useEffect)((function(){if(s(t)&&!(t<0))return i.current=setTimeout(n,t),o}),[t]),o},yn={restoreOnUnmount:!1};var bn,wn=function(e,t){void 0===t&&(t=yn);var n=(0,r.useRef)(k?document.title:"");(0,r.useEffect)((function(){document.title=e}),[e]),_((function(){t.restoreOnUnmount&&(document.title=n.current)}))},En=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)},Sn=i(r.useLayoutEffect),Tn=function(e,t){var n=t.containerTarget,i=t.wrapperTarget,u=t.itemHeight,a=t.overscan,c=void 0===a?5:a,l=g(u),v=fn(n),h=(0,r.useRef)(!1),p=(0,o.__read)((0,r.useState)([]),2),m=p[0],_=p[1],y=(0,o.__read)((0,r.useState)({}),2),b=y[0],w=y[1],E=function(t){return s(l.current)?t*l.current:e.slice(0,t).reduce((function(t,n,r){return t+l.current(r,e[r])}),0)},S=(0,r.useMemo)((function(){return s(l.current)?e.length*l.current:e.reduce((function(t,n,r){return t+l.current(r,e[r])}),0)}),[e]),T=function(){var t=Z(n);if(t){var r=t.scrollTop,i=t.clientHeight,o=function(t){if(s(l.current))return Math.floor(t/l.current)+1;for(var n=0,r=0,i=0;i<e.length;i++)if((n+=l.current(i,e[i]))>=t){r=i;break}return r+1}(r),u=function(t,n){if(s(l.current))return Math.ceil(t/l.current);for(var r=0,i=0,o=n;o<e.length&&(i=o,!((r+=l.current(o,e[o]))>=t));o++);return i-n}(i,o),a=Math.max(0,o-c),f=Math.min(e.length,o+u+c),d=E(a);w({height:S-d+"px",marginTop:d+"px"}),_(e.slice(a,f).map((function(e,t){return{data:e,index:t+a}})))}};d((function(){var e=Z(i);e&&Object.keys(b).forEach((function(t){return e.style[t]=b[t]}))}),[b]),(0,r.useEffect)((function(){(null===v||void 0===v?void 0:v.width)&&(null===v||void 0===v?void 0:v.height)&&T()}),[null===v||void 0===v?void 0:v.width,null===v||void 0===v?void 0:v.height,e]),Ee("scroll",(function(e){h.current?h.current=!1:(e.preventDefault(),T())}),{target:n});return[m,f((function(e){var t=Z(n);t&&(h.current=!0,t.scrollTop=E(e),T())}))]};function An(e,t){void 0===t&&(t={});var n=t.reconnectLimit,i=void 0===n?3:n,u=t.reconnectInterval,a=void 0===u?3e3:u,c=t.manual,s=void 0!==c&&c,l=t.onOpen,d=t.onClose,v=t.onMessage,h=t.onError,p=t.protocols,m=g(l),y=g(d),b=g(v),w=g(h),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],O=R[1],k=(0,o.__read)((0,r.useState)(bn.Closed),2),x=k[0],C=k[1],M=function(){var e;E.current<i&&(null===(e=T.current)||void 0===e?void 0:e.readyState)!==bn.Open&&(S.current&&clearTimeout(S.current),S.current=setTimeout((function(){F(),E.current++}),a))},F=function(){S.current&&clearTimeout(S.current),T.current&&T.current.close();var t=new WebSocket(e,p);C(bn.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||bn.Closed))},t.onopen=function(e){var n;A.current||(null===(n=m.current)||void 0===n||n.call(m,e,t),E.current=0,C(t.readyState||bn.Open))},t.onmessage=function(e){var n;A.current||(null===(n=b.current)||void 0===n||n.call(b,e,t),O(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||bn.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(){s||I()}),[e,s]),_((function(){A.current=!0,N()})),{latestMessage:L,sendMessage:f((function(e){var t;if(x!==bn.Open)throw new Error("WebSocket disconnected");null===(t=T.current)||void 0===t||t.send(e)})),connect:f(I),disconnect:f(N),readyState:x,webSocketIns:T.current}}function Rn(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"}(bn||(bn={}));var Ln=function(e,t,n){void 0===n&&(n={});var r=g(e);Ge((function(){var e=Z(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):(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}}()}}]);
|